/* Conversion-focused visual layer — My Agency IVF */
:root{--coral:#f4a58f;--mint:#8fc9bd;--glass:rgba(255,255,255,.1)}
body{overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.025;background-image:radial-gradient(#122a25 .65px,transparent .65px);background-size:7px 7px}
.reading-progress{position:fixed;inset:0 auto auto 0;height:3px;width:var(--progress,0%);background:linear-gradient(90deg,var(--gold),var(--coral));z-index:1000;box-shadow:0 0 18px rgba(227,197,127,.45)}
header{isolation:isolate}
.nav{gap:20px}
header .container{max-width:1400px}
.nav nav{min-width:0;flex:1}
.nav-links{justify-content:center;gap:clamp(16px,2vw,30px)!important}
.nav-links a{white-space:nowrap}
.nav>.btn{white-space:nowrap;padding-left:24px!important;padding-right:24px!important}
.logo{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.logo-img{width:46px;height:38px;object-fit:contain;border-radius:12px;mix-blend-mode:screen}
.hero{min-height:min(920px,100svh)}
.hero-grid>div:first-child{position:relative}
.hero-grid>div:first-child::before{display:none!important;content:none!important}
.hero h1{max-width:760px;text-wrap:balance}
.hero .lead{font-size:clamp(1rem,1.6vw,1.18rem)!important;max-width:610px!important}
.hero-actions .btn:first-child{box-shadow:0 18px 45px -18px rgba(227,197,127,.78)}
.hero-trust{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);backdrop-filter:blur(14px);border-radius:20px;padding:14px 16px;width:max-content;max-width:100%}
@media(min-width:1041px){
  .hero-chips{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;width:100%;max-width:620px;margin-top:38px!important;padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.045);backdrop-filter:blur(12px)}
  .hero-chips .chip{min-width:0;min-height:42px;display:flex;align-items:center;justify-content:center;padding:9px 14px!important;font-size:.74rem!important;letter-spacing:.055em!important;line-height:1.3;text-align:center;white-space:normal}
}
.language-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.07);backdrop-filter:blur(12px);white-space:nowrap}
.language-switch a{display:flex;align-items:center;justify-content:center;min-width:38px;height:32px;padding:0 10px;border-radius:999px;color:rgba(255,255,255,.72);font-size:.7rem;font-weight:600;letter-spacing:.12em;transition:background .25s,color .25s}
.language-switch a.active{background:var(--gold);color:var(--ink)}
.trust-ribbon{position:absolute;left:28px;right:28px;bottom:22px;z-index:5;display:flex;justify-content:center;pointer-events:none}
.trust-ribbon__inner{display:flex;gap:8px;align-items:center;padding:9px 13px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(13,33,29,.68);backdrop-filter:blur(14px);color:rgba(255,255,255,.84);font-size:.73rem;letter-spacing:.04em;box-shadow:0 12px 30px rgba(0,0,0,.14)}
.trust-ribbon__dot{width:7px;height:7px;border-radius:50%;background:#7ed5aa;box-shadow:0 0 0 5px rgba(126,213,170,.13)}
.form-card{position:relative;border:1px solid rgba(201,164,92,.25);box-shadow:0 30px 80px -32px rgba(13,33,29,.45)!important;overflow:hidden}
.form-card::before{content:"Заявка займёт 2 минуты";position:static;inset:auto;border:0;pointer-events:auto;display:inline-flex;margin:0 0 18px;padding:7px 12px;border-radius:999px;background:#eef7f3;color:#1e5a4c;font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
html[lang="en"] .form-card::before{content:"Takes about 2 minutes"}
.form-card input,.form-card select{transition:border-color .25s,box-shadow .25s,background .25s}
.form-card input:focus,.form-card select:focus{border-color:var(--gold)!important;box-shadow:0 0 0 4px rgba(201,164,92,.13);background:#fff!important;outline:none}
.form-card .btn{width:100%;justify-content:center;min-height:54px}
.cta{position:relative;overflow:hidden}
.cta::before,.hero::after{display:none!important;content:none!important}
.sticky-apply{display:none}
.mobile-menu{display:none}
@media(max-width:1180px){
  header .nav{height:72px}.nav-links,header .nav>.btn{display:none!important}
  .language-switch{margin-left:auto}
  .mobile-menu{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font-size:1.25rem;cursor:pointer}
  header.menu-open{background:#122a25}.menu-open nav{display:block;position:absolute;left:18px;right:18px;top:72px;padding:14px;border-radius:18px;background:#fbf8f3;box-shadow:0 25px 60px rgba(0,0,0,.25)}
  .menu-open .nav-links{display:flex!important;flex-direction:column;gap:2px;color:#122a25}.menu-open .nav-links a{display:block;padding:12px;border-radius:10px}.menu-open .nav-links a:hover{background:#f1e8dc}
  .hero{padding-top:120px!important;padding-bottom:112px!important}.hero-grid{gap:44px!important}
  .trust-ribbon{bottom:72px}
  .sticky-apply{position:fixed;display:flex;align-items:center;justify-content:space-between;gap:14px;z-index:990;left:12px;right:12px;bottom:12px;padding:10px 10px 10px 16px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:rgba(18,42,37,.94);backdrop-filter:blur(16px);box-shadow:0 20px 60px rgba(0,0,0,.28);color:#fff}
  .sticky-apply span{font-size:.76rem;line-height:1.3;color:rgba(255,255,255,.76)}.sticky-apply strong{display:block;color:#fff;font-size:.88rem}
  .sticky-apply .btn{padding:12px 17px;font-size:.68rem;white-space:nowrap}
  body{padding-bottom:88px}
}
@media(max-width:640px){
  .container{padding-left:20px!important;padding-right:20px!important}
  section{padding-top:76px!important;padding-bottom:76px!important}
  .hero h1{font-size:clamp(2.65rem,13vw,4rem)!important;line-height:.98!important}
  .hero .eyebrow{letter-spacing:.2em}.hero-actions{display:grid!important}.hero-actions .btn{justify-content:center}
  .trust-ribbon{left:20px;right:20px}.trust-ribbon__inner{text-align:center;border-radius:16px}
  .form-card{padding:28px 20px!important}.frow{grid-template-columns:1fr!important}
  .sticky-apply span{display:none}.sticky-apply .btn{width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* ===== Header fit fixes ===== */
@media(min-width:1181px) and (max-width:1560px){
  .nav-links{gap:16px!important;font-size:.78rem}
  .nav>.btn{padding:12px 20px!important;font-size:.7rem!important}
  .language-switch a{min-width:34px;height:30px}
  .logo{font-size:1.3rem}
  .logo-img{width:40px;height:34px}
}
.nav{min-width:0}
.nav nav{overflow:hidden}
/* hero actions stay on one line where possible */
.hero-actions{align-items:center}
.hero-actions .btn{white-space:nowrap}

/* ===== Textarea (comment field) ===== */
.field textarea{
  width:100%;padding:14px 18px;border-radius:12px;border:1px solid rgba(18,42,37,.16);
  background:#fff;font-family:'Jost',sans-serif;font-size:.95rem;color:#122A25;
  resize:vertical;min-height:88px;transition:border-color .25s,box-shadow .25s;
}
.field textarea:focus{border-color:#C9A45C;box-shadow:0 0 0 4px rgba(201,164,92,.13);outline:none}

/* ===== Mobile overflow fixes ===== */
html,body{max-width:100%;overflow-x:hidden}

/* form field rows: base style was missing on the homepage */
.frow{display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* footer: had no responsive rules anywhere -> forced horizontal scroll on phones */
@media(max-width:1040px){
  .foot-grid{grid-template-columns:1fr 1fr!important;gap:36px!important}
}
@media(max-width:640px){
  .foot-grid{grid-template-columns:1fr!important;gap:30px!important}
  .foot p{max-width:100%!important}
  .frow{grid-template-columns:1fr!important}
  .why-visual::before{display:none}
  .gold-frame{display:none}
  .stat-float{left:12px!important;right:auto}
  .hero-visual{width:100%!important;max-width:420px}
  .marquee{font-size:1.05rem}
  .foot-bottom{flex-direction:column;gap:8px}
}

/* ===== Footer socials (global) ===== */
.socials{display:flex;gap:14px;margin-top:20px}
.socials a{
  width:38px;height:38px;border-radius:50%;border:1px solid #C9A45C;
  display:flex;align-items:center;justify-content:center;color:#C9A45C;font-size:.78rem;
  transition:background .3s,color .3s,transform .3s;
}
.socials a:hover{background:#C9A45C;color:#FBF8F3;transform:translateY(-3px)}

/* ===== Form status & honeypot ===== */
.form-status{margin-top:14px;font-size:.88rem;min-height:1.2em;text-align:center}
.form-status.ok{color:#2E7D5B;font-weight:500}
.form-status.err{color:#B4413E;font-weight:500}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}

/* ===== Compact hero: fits one screen ===== */
.hero{padding:116px 0 60px!important}
.hero .eyebrow{margin-bottom:0}
.hero h1{margin:18px 0 16px!important;line-height:1.06!important}
.hero p.lead{margin-bottom:28px!important}
.hero-trust{margin-top:30px!important}
@media(min-width:1041px){.hero-chips{margin-top:28px!important}}

/* Cyrillic headlines are longer — size them down so lines don't wrap */
html[lang="ru"] .hero h1{font-size:clamp(2.2rem,4.2vw,3.5rem)!important}
html[lang="ru"] .hero p.lead{font-size:1.02rem!important}
html[lang="ru"] .payout .sum{font-size:clamp(3rem,5vw,4.2rem)}

/* Short screens (laptops 768–850px tall): shrink further so CTA stays above the fold */
@media(min-width:1041px) and (max-height:860px){
  .hero{padding:104px 0 44px!important}
  .hero h1{font-size:clamp(2rem,3.8vw,3.1rem)!important}
  html[lang="ru"] .hero h1{font-size:clamp(1.9rem,3.6vw,2.9rem)!important}
  .hero p.lead{font-size:.98rem!important;margin-bottom:22px!important}
  .hero-visual{width:min(430px,100%)!important}
  .payout{padding:34px 32px!important}
  .hero-trust{margin-top:22px!important}
  .hero-chips{margin-top:20px!important;padding:9px!important}
  .hero-chips .chip{min-height:36px!important}
}

/* ===== Mobile overlap fix: trust ribbon flows after content, never overlaps ===== */
@media(max-width:1180px){
  .hero{display:block!important;padding:110px 0 56px!important}
  .hero .container{position:relative;z-index:2}
  .trust-ribbon{position:static!important;left:auto;right:auto;bottom:auto;margin:30px auto 0;pointer-events:none}
  .trust-ribbon__inner{margin:0 auto;text-align:center}
}
@media(max-width:640px){
  .hero{padding:100px 0 48px!important}
  /* mobile headline sizes (the compact desktop rule was shrinking them too far) */
  .hero h1{font-size:clamp(2.4rem,11.5vw,3.6rem)!important;line-height:1.04!important}
  html[lang="ru"] .hero h1{font-size:clamp(2.1rem,10.5vw,3.1rem)!important}
  .hero p.lead{font-size:1rem!important}
  /* blurred petals showed through glass cards on phones — hide them there */
  .petal{display:none}
}

/* ===== Readability: bump the smallest texts ===== */
.nav-links{font-size:.95rem!important;letter-spacing:.05em}
@media(min-width:1181px) and (max-width:1560px){.nav-links{font-size:.86rem!important;gap:18px!important}}
.nav>.btn{font-size:.78rem!important}
.language-switch a{font-size:.78rem!important;min-width:40px}
.trust-ribbon__inner{font-size:.88rem!important;padding:11px 18px!important}
@media(min-width:1041px){.hero-chips .chip{font-size:.82rem!important;letter-spacing:.06em!important}}
.hero-trust{font-size:.9rem!important}
.sstep .tag{font-size:.76rem!important}
.sticky-apply span{font-size:.84rem!important}
.sticky-apply strong{font-size:.95rem!important}

/* ===== RU homepage headline: short phrase now, restore full display size ===== */
html[lang="ru"] .hero h1.h1-home{font-size:clamp(2.9rem,5.8vw,5rem)!important;line-height:1.04!important}
html[lang="ru"] .hero h1.h1-home ~ .lead,
html[lang="ru"] .h1-home + p.lead{font-size:1.1rem!important}
@media(min-width:1041px) and (max-height:860px){
  html[lang="ru"] .hero h1.h1-home{font-size:clamp(2.5rem,5vw,4.2rem)!important}
}
@media(max-width:640px){
  html[lang="ru"] .hero h1.h1-home{font-size:clamp(2.6rem,12.5vw,3.8rem)!important}
}

/* ===== Mobile grid blowout fix =====
   width:max-content на .hero-trust не даёт грид-колонке сжаться уже своего текста,
   и вся страница становится шире экрана. minmax(0,1fr) + min-width:0 запрещают это. */
@media(max-width:1040px){
  .hero-grid,.cta-grid,.reqs-grid,.why-grid,.journey-grid,.steps-grid{grid-template-columns:minmax(0,1fr)!important}
  .hero-grid>*,.cta-grid>*,.reqs-grid>*,.why-grid>*{min-width:0}
  .container{min-width:0}
}
@media(max-width:640px){
  .hero-trust{width:100%!important;max-width:100%!important;flex-wrap:wrap;justify-content:center;text-align:center;row-gap:6px}
  .hero .eyebrow{flex-wrap:wrap;letter-spacing:.22em}
  .hero-actions .btn{width:100%;max-width:100%}
  .marquee{max-width:100vw}
}

/* ===== Tighter gap: stats band -> next section ===== */
.stats{padding:70px 0 34px!important}
.stats + section{padding-top:54px!important}
@media(max-width:640px){
  .stats{padding:56px 0 26px!important}
  .stats + section{padding-top:44px!important}
}

/* ===== Vertical rhythm: collapse double gaps on same-light-bg seams ===== */
/* 1) white "why" section -> next light section (donor & surrogate pages) */
.why{padding-bottom:64px!important}
.why + section{padding-top:56px!important}
/* 2) light testimonials -> white FAQ (all pages) */
.faq{padding-top:56px!important}
section:has(+ .faq){padding-bottom:64px!important}
/* 3) blush quote band: slimmer, it's an accent not a chapter */
.quote{padding:84px 0!important}
/* 4) testimonials after dark CTA on parents/fathers pages: slightly tighter */
.cta + section{padding-top:88px!important}
@media(max-width:640px){
  .why{padding-bottom:48px!important}
  .why + section{padding-top:44px!important}
  .faq{padding-top:44px!important}
  section:has(+ .faq){padding-bottom:48px!important}
  .quote{padding:64px 0!important}
}

/* language switch moved after the CTA button */
.language-switch{margin-left:4px}

/* во время скролла карточки не дёргаются от hover/tilt */
.is-scrolling .pc,.is-scrolling .svc,.is-scrolling .ben,.is-scrolling .testi,.is-scrolling .sstep,.is-scrolling .payout,.is-scrolling .country,.is-scrolling .wp{transform:none!important;transition:none!important}
.is-scrolling .svc img,.is-scrolling .pc img{transform:none!important}

/* тёмная подложка: при оттягивании страницы сверху не мелькает белое */
html{background:#122A25}
