/* =============================================================
   VG 2026 — visual polish layer (loaded last).
   Self-hosted fonts, softer shapes, depth and gentle motion.
   Keeps the navy / gold identity and the FAQ behaviour.
   ============================================================= */

/* Fonts: served from /assets/fonts (CSP allows font-src 'self' only). */
@font-face{font-family:'Frank Ruhl Libre';font-style:normal;font-weight:300 900;font-display:swap;src:url(assets/fonts/frank-ruhl-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Frank Ruhl Libre';font-style:normal;font-weight:300 900;font-display:swap;src:url(assets/fonts/frank-ruhl-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(assets/fonts/rubik-hebrew.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(assets/fonts/rubik-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(assets/fonts/rubik-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
 --vg-sans:'Rubik',Arial,"Segoe UI",Tahoma,sans-serif;
 /* Frank Ruhl has no Cyrillic: Russian letters fall back to Georgia / serif. */
 --vg-serif:'Frank Ruhl Libre',Georgia,"Times New Roman",serif;
 --vg-navy:#102e43;--vg-navy-deep:#0b2334;--vg-gold:#c8a364;--vg-gold-soft:#f3ead8;
 --vg-radius:16px;--vg-radius-sm:10px;
 --vg-shadow:0 1px 2px #102e430a,0 10px 30px #102e430f;
 --vg-shadow-lift:0 2px 4px #102e430d,0 22px 48px #102e431f;
}

/* ---------- Typography ---------- */
body,button,input,select,textarea{font-family:var(--vg-sans)}
h1,h2,h3,.paper-heading,.brand strong,.identity-quote,.degrees b,.process-tabs button span{font-family:var(--vg-serif)}
h1,h2{letter-spacing:0}
.hero h1{font-weight:500;letter-spacing:0;line-height:1.12}
.hero h1 em{font-weight:500}
h2{font-weight:500}
h3{font-weight:600}
.eyebrow{font-family:var(--vg-sans);font-weight:500;letter-spacing:.04em}
.identity-quote{font-size:21px;line-height:1.6}

/* ---------- Header ---------- */
.site-header{transition:box-shadow .25s ease;box-shadow:0 1px 0 #102e430d}
.site-header nav a{position:relative;padding-block:6px}
.site-header nav a::after{content:'';position:absolute;inset-inline:0;bottom:0;height:2px;border-radius:2px;background:var(--vg-gold);transform:scaleX(0);transition:transform .25s ease}
.site-header nav a:hover::after{transform:scaleX(1)}
.header-cta{border-radius:999px;padding-inline:18px;transition:background .2s ease,transform .2s ease}
.header-cta:hover{transform:translateY(-1px)}
.languages{border-radius:999px}
.languages button{border-radius:999px}

/* ---------- Buttons ---------- */
.button{border-radius:999px;transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
.button.primary:hover{box-shadow:0 12px 28px #0b233433}
.hero .button.primary{box-shadow:0 10px 30px #d2b0783d}
.hero .button.primary:hover{box-shadow:0 14px 36px #d2b07859}

/* ---------- Hero ---------- */
.hero::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 85% 110%,#c8a36424 0,transparent 45%),radial-gradient(circle at 10% -10%,#3d6a8233 0,transparent 50%)}
/* The enlarged body type made the plan card overflow; let it grow and keep it compact. */
.hero .hero-art{height:560px}
.hero .main-paper{border-radius:14px;height:auto;padding:22px 26px}
.hero .shadow-paper{border-radius:14px;height:500px}
.hero .paper-step{padding-block:8px}
.hero .paper-step b{font-size:16px!important;line-height:1.4}
.hero .paper-step small,.hero .paper-small,.hero .paper-foot{font-size:13px!important;line-height:1.5}
.hero .floating-note{border-radius:12px;box-shadow:0 18px 40px #0005}
@media(prefers-reduced-motion:no-preference){
 .hero .main-paper{animation:vg-float 7s ease-in-out infinite}
 .hero .floating-note{animation:vg-float 7s ease-in-out -3.5s infinite}
 @keyframes vg-float{0%,100%{translate:0 0}50%{translate:0 -10px}}
}
.hero-credential{align-items:center}
.hero-credential .credential-photo{flex:0 0 auto;width:58px;height:58px;border-radius:50%;object-fit:cover;object-position:center 30%;border:2px solid var(--vg-gold);box-shadow:0 0 0 4px #c8a36426;max-width:none}

/* Russian hero copy has paragraphs (\n) and four benefits with explanations;
   the Hebrew strings for the extra keys are empty and stay hidden. */
.hero .hero-description{white-space:pre-line}
.hero-benefits b{font-weight:500}
.hero-benefits small:empty,.hero-benefits li:has(b:empty){display:none}
.hero-benefits:has(small:not(:empty)){flex-direction:column;gap:14px;font-size:16px;max-width:560px}
.hero-benefits:has(small:not(:empty)) li{align-items:flex-start}
.hero-benefits:has(small:not(:empty)) li>span:first-child{line-height:1.5}
.hero-benefits small{display:block;margin-top:2px;color:#a9bcc7;font-size:15px;line-height:1.6}
html[lang=ru] .hero .hero-description{max-width:560px}

/* ---------- Cards ---------- */
.service-card,.situation-card,.article-card,.about-identity,.process-panel,.transfer-banner,.contact-form{border-radius:var(--vg-radius)}
.service-card,.situation-card,.article-card{position:relative;box-shadow:var(--vg-shadow);overflow:hidden}
.service-card::before,.situation-card::before{content:'';position:absolute;inset-inline:0;top:0;height:3px;background:linear-gradient(90deg,var(--vg-gold),#e5cc98);transform:scaleX(0);transform-origin:right;transition:transform .35s ease}
.service-card:hover::before,.situation-card:hover::before{transform:scaleX(1)}
.service-card:hover,.situation-card:hover,.article-card:hover{transform:translateY(-4px);box-shadow:var(--vg-shadow-lift)}
.service-icon{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--vg-gold-soft);color:#8f6a32;font-size:20px}
.process-tabs button{border-radius:var(--vg-radius-sm)}
.process-panel{box-shadow:var(--vg-shadow)}
.transfer-banner{box-shadow:0 20px 50px #0b233433}

/* ---------- Sections ---------- */
.conversion-band{background:linear-gradient(120deg,#efe4cc 0%,#e6d6b4 100%)}
.about-identity{box-shadow:var(--vg-shadow-lift)}
.about-identity>img.specialist-portrait{border-radius:14px;box-shadow:0 0 0 6px #fff,0 0 0 7px #c8a36466,0 18px 40px #102e4326}
.contact{background:radial-gradient(circle at 15% 0%,#1d4560 0,transparent 55%),var(--vg-navy)}
.contact-form{box-shadow:0 30px 70px #0006}
.contact-form input,.contact-form select{border-radius:var(--vg-radius-sm)}
.contact-links a{transition:color .2s ease}
.contact-links a:hover{color:#e0c58f}

/* ---------- Scroll-in reveal (classes added by app.js; content stays visible without JS) ---------- */
@media(prefers-reduced-motion:no-preference){
 .vg-reveal{opacity:0;translate:0 24px;transition:opacity .7s ease var(--vg-delay,0ms),translate .7s ease var(--vg-delay,0ms),transform .22s ease,box-shadow .22s ease,border-color .22s ease}
 .vg-reveal.vg-in{opacity:1;translate:0 0}
}

@media(max-width:620px){
 .hero-credential .credential-photo{width:50px;height:50px}
 .hero .hero-art{height:470px}
 .service-card:hover,.situation-card:hover,.article-card:hover{transform:none}
 .identity-quote{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
 .service-card::before,.situation-card::before,.site-header nav a::after{transition:none}
}
