/* ============================================================
   МЦ Релайф — Main Design System
   Navy/Teal theme matching clinic_v2.html reference
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0d2340;--navy-mid:#1a3a5c;--navy-dark:#081628;
  --teal:#1b8a7a;--teal-light:#2aada0;--teal-pale:#e8f5f4;--teal-xpale:#f0faf9;
  --gold:#c8a84b;--orange:#e8733a;
  --text:#1a1a1a;--text-muted:#5a6478;--text-light:#8898aa;
  --bg:#f7f8fa;--white:#fff;--border:#e2e8f0;--border-light:#edf2f7;
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Manrope','Inter',sans-serif;
  --radius:12px;--radius-sm:8px;--radius-lg:20px;
  --shadow:0 4px 20px rgba(0,0,0,.08);--shadow-lg:0 16px 48px rgba(0,0,0,.12);
  --header-h:68px;
  /* Hero redesign palette — strictly per ТЗ mockup */
  --primary:#28B673;--primary-dark:#239a61;
  --accent:#FF8A5B;
  --hero-bg:#F7F9F8;
  --c-text:#1F2028;--c-secondary:#687C7A;--c-border:#E6ECEA;
  --surface-alt:#F5F7F6;
  /* Pastel category tiles (fill / icon ink) */
  --tile-mint:#E3F6ED;--tile-mint-ink:#0FA37C;
  --tile-peach:#FFEFE4;--tile-peach-ink:#E07A4B;
  --tile-lime:#EFF6DE;--tile-lime-ink:#7A9E3B;
  --tile-lilac:#F1EDFB;--tile-lilac-ink:#7B62C9;
  --tile-cyan:#E2F3F7;--tile-cyan-ink:#2795AE;
  --tile-rose:#FBEBEF;--tile-rose-ink:#C25B7E;
  --tile-sand:#FAF3E0;--tile-sand-ink:#B08A3E;
  --display:'Onest',var(--sans);
  --text-ui:'Golos Text',var(--sans);
}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--text);background:var(--white);line-height:1.6;overflow-x:hidden}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font-family:var(--sans);border:none}
img{display:block;max-width:100%}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar{background:var(--navy);color:rgba(255,255,255,.75);font-size:13px;padding:8px 5%;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.topbar-left{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.topbar-phone{display:flex;align-items:center;gap:6px;color:white;font-weight:600;font-size:14px}
.topbar-phone svg{width:14px;height:14px;stroke:var(--teal-light);fill:none;stroke-width:2;flex-shrink:0}
.topbar-social{display:flex;gap:10px}
.topbar-social a{display:flex;align-items:center;gap:5px;color:rgba(255,255,255,.6);font-size:12px;transition:color .2s}
.topbar-social a:hover{color:var(--teal-light)}
.topbar-social svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.topbar-hours{display:flex;align-items:center;gap:6px;color:rgba(255,255,255,.6);font-size:12px}
.topbar-right{display:flex;align-items:center;gap:12px}
.topbar-lang{display:flex;gap:4px}
.topbar-lang a{padding:3px 10px;border-radius:12px;font-size:12px;font-weight:600;color:rgba(255,255,255,.5);transition:all .2s}
.topbar-lang a.active,.topbar-lang a:hover{background:var(--teal);color:white}
.topbar-login{display:flex;align-items:center;gap:6px;color:rgba(255,255,255,.75);font-size:13px;padding:5px 14px;border:1px solid rgba(255,255,255,.2);border-radius:20px;transition:all .2s}
.topbar-login:hover{border-color:var(--teal-light);color:white}
.topbar-login svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}

/* ── Header ─────────────────────────────────────────────── */
header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);box-shadow:0 2px 12px rgba(0,0,0,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:0 5%;height:var(--header-h);gap:20px}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo-mark{width:40px;height:40px;background:linear-gradient(135deg,var(--teal),var(--teal-light));border-radius:10px;display:flex;align-items:center;justify-content:center}
.logo-mark svg{width:22px;height:22px;fill:none;stroke:white;stroke-width:2.2;stroke-linecap:round}
.logo-text{font-family:var(--serif);font-size:20px;font-weight:600;color:var(--navy);line-height:1.1}
.logo-text span{display:block;font-family:var(--sans);font-size:10px;font-weight:500;color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase}
.header-search{display:flex;align-items:center;gap:8px;background:var(--surface-alt);border-radius:20px;height:40px;padding:0 16px;flex:0 1 240px;min-width:0}
.header-search svg{width:16px;height:16px;stroke:var(--text-light);fill:none;stroke-width:2;flex-shrink:0}
.header-search input{border:none;background:none;outline:none;font-family:var(--text-ui);font-size:13px;color:var(--text);width:100%}
.header-search input::placeholder{color:var(--text-light)}
.main-nav{display:flex;align-items:center;gap:4px}
.main-nav a{font-size:14px;font-weight:500;color:var(--text-muted);padding:8px 12px;border-radius:var(--radius-sm);transition:all .2s;white-space:nowrap}
.main-nav a:hover,.main-nav a.active{color:var(--teal);background:var(--teal-xpale)}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.btn-search{display:none;width:38px;height:38px;border:1px solid var(--border);border-radius:var(--radius-sm);align-items:center;justify-content:center;color:var(--text-muted);background:none;transition:all .2s}
.btn-search:hover{border-color:var(--teal);color:var(--teal)}
.btn-search svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}
.btn-cart{position:relative;width:38px;height:38px;border:1px solid var(--border);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;color:var(--text-muted);background:none;transition:all .2s}
.btn-cart:hover{border-color:var(--teal);color:var(--teal)}
.btn-cart svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}
.cart-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;background:var(--orange);border-radius:9px;font-size:10px;font-weight:700;color:white;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid white}
.btn-cta{background:var(--teal);color:white;padding:10px 22px;border-radius:24px;font-size:14px;font-weight:600;transition:all .2s;white-space:nowrap}
.btn-cta:hover{background:var(--navy);transform:translateY(-1px)}
.btn-orange{background:var(--orange);color:white;padding:10px 20px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;transition:all .2s;white-space:nowrap}
.btn-orange:hover{background:#d4632a}

/* ── Sections ────────────────────────────────────────────── */
section{padding:72px 5%}
.sec-label{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--teal);margin-bottom:10px}
.sec-title{font-family:var(--serif);font-size:clamp(24px,2.5vw,38px);color:var(--navy);font-weight:400;line-height:1.2;margin-bottom:12px}
.sec-sub{font-size:15px;color:var(--text-muted);max-width:500px;line-height:1.7}
.sec-head-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:44px;flex-wrap:wrap}
.link-all{font-size:14px;font-weight:600;color:var(--teal);display:flex;align-items:center;gap:6px;white-space:nowrap;transition:gap .2s}
.link-all:hover{gap:10px}

/* ── Buttons (global) ────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 22px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;transition:all .2s;cursor:pointer;border:none;font-family:var(--sans)}
.btn-primary{background:var(--teal);color:white}.btn-primary:hover{background:var(--teal-light);transform:translateY(-1px)}
.btn-navy{background:var(--navy);color:white}.btn-navy:hover{background:var(--navy-mid)}
.btn-outline{background:none;color:var(--teal);border:1.5px solid var(--teal)}.btn-outline:hover{background:var(--teal-pale)}
.btn-ghost{background:rgba(255,255,255,.08);color:rgba(255,255,255,.8);border:1px solid rgba(255,255,255,.15)}.btn-ghost:hover{background:rgba(255,255,255,.15)}
.btn-sm{padding:8px 16px;font-size:13px}
.btn-lg{padding:14px 28px;font-size:15px}
.btn-block{width:100%;justify-content:center}
.btn-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0}

/* ── Hero (photo card left, white panel overlapping right) ── */
.hero{background:var(--hero-bg);padding:32px 5% 0}
.hero{display:flex;align-items:stretch;max-width:1360px;margin:0 auto;min-height:560px}
.hero-image{flex:1 1 58%;min-height:460px;overflow:hidden;position:relative;border-radius:24px;opacity:0;transform:scale(1.03);animation:heroImgIn .7s cubic-bezier(.22,1,.36,1) forwards}
.hero-image img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}
.hero-image::after{content:'';position:absolute;inset:0;background:linear-gradient(to right,transparent 76%,rgba(255,255,255,.55) 100%);pointer-events:none}
.hero-content{flex:1 1 46%;margin-left:-7%;background:#fff;border-radius:24px 24px 24px 0;padding:56px 8px 44px 60px;box-shadow:-30px 0 56px -30px rgba(15,45,35,.16);position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center}
.hero-content>*{opacity:0;transform:translateY(16px);animation:heroIn .6s cubic-bezier(.22,1,.36,1) forwards}
.hero-content>*:nth-child(1){animation-delay:.05s}
.hero-content>*:nth-child(2){animation-delay:.14s}
.hero-content>*:nth-child(3){animation-delay:.23s}
.hero-content>*:nth-child(4){animation-delay:.32s}
.hero-content>*:nth-child(5){animation-delay:.41s}
.hero-content>*:nth-child(6){animation-delay:.5s}
@keyframes heroImgIn{to{opacity:1;transform:scale(1)}}
@keyframes heroIn{to{opacity:1;transform:none}}
.hero-badge{display:inline-flex;align-items:center;gap:7px;background:rgba(40,182,115,.1);border:1px solid rgba(40,182,115,.22);color:var(--primary);padding:6px 16px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:22px;width:fit-content}
.hero-badge svg{width:13px;height:13px;fill:currentColor}
.hero h1{font-family:var(--display);font-size:clamp(28px,2.8vw,46px);color:var(--c-text);font-weight:800;line-height:1.14;letter-spacing:-.02em;margin-bottom:16px}
.hero h1 em{color:var(--primary);font-style:normal}
.hero-heart{width:.78em;height:.78em;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:var(--primary);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;animation:heartPulse 2.4s ease-in-out infinite}
@keyframes heartPulse{0%,100%{transform:scale(1)}12%{transform:scale(1.14)}24%{transform:scale(1)}36%{transform:scale(1.08)}48%{transform:scale(1)}}
.hero-sub{font-family:var(--text-ui);font-size:16px;color:var(--c-secondary);line-height:1.7;margin-bottom:30px;max-width:440px}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:30px}
.hero .btn{border-radius:28px;padding:14px 26px}
.hero .btn svg{transition:transform .2s}
.hero .btn:hover svg{transform:translateX(3px)}
.hero .btn-primary{background:var(--primary);color:white}
.hero .btn-primary:hover{background:var(--primary-dark);transform:translateY(-2px)}
.hero .btn-ghost{background:transparent;color:var(--c-text);border:1.5px solid var(--c-border)}
.hero .btn-ghost:hover{border-color:var(--primary);color:var(--primary);background:rgba(40,182,115,.06)}
.hero-mini-features{display:flex;gap:28px;flex-wrap:wrap;margin-bottom:30px}
.hmf-item{display:flex;align-items:center;gap:14px;font-family:var(--text-ui);font-size:13px;font-weight:500;color:var(--c-secondary);line-height:1.4}
.hmf-item svg{width:26px;height:26px;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;border-radius:16px;padding:11px;box-sizing:content-box}
.hmf-mint svg{background:var(--tile-mint);color:var(--tile-mint-ink)}
.hmf-peach svg{background:var(--tile-peach);color:var(--tile-peach-ink)}
.hero-stats{display:flex;gap:0;border-top:1px solid var(--c-border);padding-top:22px;margin-top:auto}
.stat-item{flex:1;padding-right:24px;border-right:1px solid var(--c-border);margin-right:24px}
.stat-item:last-child{border-right:none;margin-right:0}
.stat-num{font-family:var(--display);font-size:28px;color:var(--primary);font-weight:700;line-height:1}
.stat-lbl{font-family:var(--text-ui);font-size:12px;color:var(--c-secondary);margin-top:4px}
@media(prefers-reduced-motion:reduce){
  .hero-image,.hero-content>*{opacity:1;transform:none;animation:none}
  .hero-heart{animation:none}
}

/* ── Specialty strip (pastel category cards) ──────────────── */
.specialty-strip{background:var(--surface-alt);padding:32px 5%}
.spec-list{display:flex;gap:14px;overflow-x:auto;padding:0 0 4px;scrollbar-width:none;max-width:1360px;margin:0 auto}
.spec-list::-webkit-scrollbar{display:none}
.spec-card{flex:0 0 auto;display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;border:1px solid transparent;text-decoration:none;min-width:230px;background:white;box-shadow:0 2px 8px rgba(15,40,32,.05);transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s}
.spec-card:hover{box-shadow:0 12px 28px rgba(15,40,32,.10);transform:translateY(-4px)}
.spec-card:hover .spec-arrow{color:var(--primary);transform:translateX(3px)}
.spec-icon{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.spec-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.spec-icon img{width:34px;height:34px;object-fit:contain}
.spec-name{font-family:var(--display);font-size:15px;font-weight:600;color:var(--c-text);line-height:1.35}
.spec-arrow{margin-left:auto;color:var(--text-light);font-size:18px;flex-shrink:0;transition:all .2s}
.si-green{background:var(--tile-mint);color:var(--tile-mint-ink)}
.si-peach{background:var(--tile-peach);color:var(--tile-peach-ink)}
.si-mint{background:var(--tile-lime);color:var(--tile-lime-ink)}
.si-violet{background:var(--tile-lilac);color:var(--tile-lilac-ink)}
.si-sky{background:var(--tile-cyan);color:var(--tile-cyan-ink)}
.si-gold{background:var(--tile-sand);color:var(--tile-sand-ink)}
@media(min-width:993px){
  .spec-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));overflow:visible}
}

/* ── Directions section ──────────────────────────────────── */
.directions-bg{background:var(--bg)}
.dirs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.dir-card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:20px;display:flex;align-items:center;gap:14px;cursor:pointer;transition:all .25s}
.dir-card:hover{border-color:var(--teal);box-shadow:var(--shadow);transform:translateY(-2px)}
.dir-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dir-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
.dir-icon img{width:30px;height:30px;object-fit:contain}
.di-teal{background:var(--teal-pale);color:var(--teal)}
.di-blue{background:#e8eef5;color:var(--navy)}
.di-gold{background:#fdf3e3;color:#a07830}
.di-red{background:#fdeaea;color:#c0392b}
.di-purple{background:#f0eafa;color:#7a3a9a}
.di-pink{background:#fde8f0;color:#b5386a}
.dir-info h4{font-size:15px;font-weight:600;color:var(--navy);margin-bottom:2px}
.dir-info span{font-size:12px;color:var(--text-muted)}
.dir-arrow{margin-left:auto;color:var(--border);font-size:18px;flex-shrink:0;transition:color .2s}
.dir-card:hover .dir-arrow{color:var(--teal)}

/* ── Why choose us ───────────────────────────────────────── */
.why{background:white}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
.why-item{text-align:left}
.why-icon{width:40px;height:40px;color:var(--primary-teal,var(--primary));margin-bottom:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.why-item h4{font-family:var(--display);font-size:17px;font-weight:600;color:var(--navy);margin-bottom:6px}
.why-item p{font-family:var(--text-ui);font-size:14px;color:var(--text-muted);line-height:1.6}

/* ── Scroll-reveal utility ───────────────────────────────── */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1);transition-delay:calc(var(--i,0)*70ms)}
.reveal.reveal--in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition-delay:0s}
}

/* ── Doctors grid ────────────────────────────────────────── */
.docs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.doc-card{background:white;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;cursor:pointer;transition:all .25s}
.doc-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--teal-light)}
.doc-photo{height:240px;display:flex;align-items:center;justify-content:center;font-size:64px;font-family:var(--serif);position:relative;overflow:hidden}
.doc-photo img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.dp-teal{background:linear-gradient(135deg,#d0ede8,#e8f5f4);color:var(--teal)}
.dp-blue{background:linear-gradient(135deg,#d0dce8,#e8eef5);color:var(--navy)}
.dp-gold{background:linear-gradient(135deg,#f0e0c0,#fdf3e3);color:#a07830}
.dp-purple{background:linear-gradient(135deg,#e0d0f0,#f0eafa);color:#7a3a9a}
.doc-exp-badge{position:absolute;bottom:12px;right:12px;background:var(--navy);color:white;font-size:11px;font-weight:600;padding:4px 10px;border-radius:6px}
.doc-info{padding:16px}
.doc-name{font-size:15px;font-weight:700;color:var(--navy);margin-bottom:3px;line-height:1.3}
.doc-spec{font-size:12px;color:var(--teal);font-weight:600;margin-bottom:8px}
.doc-stars{display:flex;align-items:center;gap:4px;margin-bottom:8px}
.doc-stars span{font-size:12px;color:var(--gold)}
.doc-stars small{font-size:11px;color:var(--text-muted)}
.doc-tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}
.doc-tag{font-size:11px;padding:3px 9px;border-radius:20px;background:var(--bg);color:var(--text-muted);font-weight:500}
.doc-price{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--border-light)}
.doc-price-val{font-size:15px;font-weight:700;color:var(--navy)}
.doc-price small{font-size:11px;color:var(--text-muted);display:block;font-weight:400}

/* ── Reviews ────────────────────────────────────────────── */
.reviews-bg{background:var(--bg)}
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rev-card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.rev-stars{color:var(--gold);font-size:15px;margin-bottom:12px;letter-spacing:2px}
.rev-text{font-size:14px;color:var(--text-muted);line-height:1.7;margin-bottom:18px;font-style:italic}
.rev-author{display:flex;align-items:center;gap:10px}
.rev-avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:white;flex-shrink:0}
.rev-name{font-size:14px;font-weight:600;color:var(--navy)}
.rev-date{font-size:11px;color:var(--text-light)}

/* ── CTA block ───────────────────────────────────────────── */
.cta-block{background:var(--teal-pale);border-radius:var(--radius-lg);margin:0 5%;padding:52px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:32px}
.cta-block h2{font-family:var(--serif);font-size:clamp(22px,2.2vw,34px);color:var(--navy);font-weight:400;margin-bottom:10px}
.cta-block p{font-size:15px;color:var(--text-muted);max-width:480px}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap;flex-shrink:0}

/* ── Appointment form (dark bg) ──────────────────────────── */
.appt-section{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%)}
.appt-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.appt-section .sec-title{color:white}
.appt-section .sec-sub{color:rgba(255,255,255,.55)}
.notif-select{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.notif-btn{display:flex;align-items:center;gap:7px;padding:9px 16px;border:1px solid rgba(255,255,255,.15);border-radius:var(--radius-sm);background:rgba(255,255,255,.05);color:rgba(255,255,255,.65);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}
.notif-btn:hover{border-color:rgba(255,255,255,.3);color:white}
.notif-btn.active{background:rgba(27,138,122,.25);border-color:var(--teal-light);color:white}
.notif-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.notif-btn:disabled{opacity:.4;cursor:not-allowed}
.notif-label{font-size:12px;color:rgba(255,255,255,.5);margin-bottom:8px;display:block;font-weight:500;text-transform:uppercase;letter-spacing:.05em}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.form-group{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.form-group label{font-size:12px;font-weight:600;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.04em}
.form-group input,.form-group select,.form-group textarea{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-sm);padding:12px 14px;font-size:14px;color:white;font-family:var(--sans);outline:none;transition:border .2s;-webkit-appearance:none}
.form-group input::placeholder,.form-group textarea::placeholder{color:rgba(255,255,255,.3)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--teal-light)}
.form-group select{color:rgba(255,255,255,.7);cursor:pointer}
.form-group select option{background:var(--navy);color:white}
.form-group textarea{resize:vertical;min-height:80px}
.form-group .field-error{font-size:12px;color:#ff8080;margin-top:2px}
.pay-options{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.pay-opt{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-sm);cursor:pointer;transition:all .2s}
.pay-opt:hover{border-color:rgba(255,255,255,.25)}
.pay-opt.selected{background:rgba(27,138,122,.2);border-color:var(--teal-light)}
.pay-opt input[type=radio]{accent-color:var(--teal-light)}
.pay-opt-label{font-size:14px;color:rgba(255,255,255,.8);font-weight:500}
.pay-opt-badge{margin-left:auto;font-size:11px;padding:3px 8px;border-radius:20px;font-weight:600}
.pb-kaspi{background:rgba(255,66,0,.2);color:#ff9966}
.pb-card{background:rgba(255,255,255,.1);color:rgba(255,255,255,.6)}
.pb-cash{background:rgba(200,168,75,.15);color:#e8c870}
.btn-submit{width:100%;background:var(--teal);color:white;border:none;border-radius:var(--radius-sm);padding:15px;font-size:15px;font-weight:700;font-family:var(--sans);transition:all .2s;margin-top:8px;cursor:pointer}
.btn-submit:hover{background:var(--teal-light);transform:translateY(-1px)}
.form-note{display:flex;align-items:flex-start;gap:8px;margin-top:14px}
.form-note svg{width:15px;height:15px;stroke:var(--teal-light);fill:none;stroke-width:2;flex-shrink:0;margin-top:2px}
.form-note span{font-size:12px;color:rgba(255,255,255,.4);line-height:1.5}
.appt-benefits{display:flex;flex-direction:column}
.benefit{display:flex;gap:18px;align-items:flex-start;padding:26px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.benefit:last-child{border-bottom:none}
.benefit-num{font-family:var(--serif);font-size:44px;color:rgba(255,255,255,.1);line-height:1;flex-shrink:0;width:52px;text-align:right}
.benefit h4{font-size:15px;font-weight:600;color:white;margin-bottom:5px}
.benefit p{font-size:13px;color:rgba(255,255,255,.5);line-height:1.6}

/* ── Footer ─────────────────────────────────────────────── */
footer{background:#07172b;color:rgba(255,255,255,.55);padding:56px 5% 32px}
.footer-grid{display:grid;grid-template-columns:2.2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer-brand .flogo{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.footer-brand .flogo .logo-mark{width:36px;height:36px;border-radius:9px}
.footer-brand .flogo span{font-family:var(--serif);font-size:18px;color:white;font-weight:600}
.footer-brand p{font-size:13px;line-height:1.7;max-width:260px;margin-bottom:16px}
.footer-phones a{display:block;color:rgba(255,255,255,.8);font-size:15px;font-weight:600;margin-bottom:4px}
.footer-socials{display:flex;gap:10px;margin-top:14px}
.footer-socials a{width:34px;height:34px;background:rgba(255,255,255,.07);border-radius:8px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);transition:all .2s}
.footer-socials a:hover{background:var(--teal);color:white}
.footer-socials svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
footer h5{font-size:12px;font-weight:700;color:rgba(255,255,255,.9);letter-spacing:.07em;text-transform:uppercase;margin-bottom:14px}
footer ul{list-style:none;display:flex;flex-direction:column;gap:8px}
footer ul li a{font-size:13px;color:rgba(255,255,255,.5);transition:color .2s}
footer ul li a:hover{color:var(--teal-light)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.07);padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-bottom p{font-size:12px}
.license-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:rgba(255,255,255,.35);background:rgba(255,255,255,.05);padding:5px 12px;border-radius:20px}

/* ── Mobile bottom nav ───────────────────────────────────── */
.mobile-nav{display:none;position:fixed;bottom:0;left:0;right:0;z-index:200;background:white;border-top:1px solid var(--border);padding:8px 4px;grid-template-columns:repeat(5,1fr);box-shadow:0 -4px 20px rgba(0,0,0,.08)}
.mn-item{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px;border-radius:var(--radius-sm);color:var(--text-muted);font-size:10px;font-weight:500;cursor:pointer;transition:color .2s;position:relative;background:none;border:none;font-family:var(--sans)}
.mn-item.active,.mn-item:hover{color:var(--teal)}
.mn-item svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.mn-badge{position:absolute;top:2px;right:18px;min-width:16px;height:16px;background:var(--orange);border-radius:8px;font-size:9px;font-weight:700;color:white;display:flex;align-items:center;justify-content:center;padding:0 3px}
.mn-center{background:var(--teal);border-radius:14px;padding:8px 12px;margin-top:-18px;color:white !important}
.mn-center svg{stroke:white !important}

/* ── Mobile drawer ───────────────────────────────────────── */
.drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:300}
.drawer-overlay.open{display:block}
.drawer{position:fixed;top:0;left:-100%;bottom:0;width:300px;background:white;z-index:301;transition:left .3s ease;overflow-y:auto;padding:24px 20px}
.drawer.open{left:0}
.drawer-close{display:flex;justify-content:flex-end;margin-bottom:20px}
.drawer-close button{width:36px;height:36px;border:1px solid var(--border);border-radius:50%;background:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-muted)}
.drawer-nav{list-style:none;display:flex;flex-direction:column;gap:2px;margin-bottom:24px}
.drawer-nav li a{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:var(--radius-sm);font-size:15px;color:var(--text-muted);transition:all .2s}
.drawer-nav li a:hover{background:var(--teal-xpale);color:var(--teal)}
.drawer-lang{display:flex;gap:8px;padding:12px 14px;margin-bottom:8px}
.drawer-lang a{flex:1;text-align:center;padding:8px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;color:var(--text-muted);border:1px solid var(--border);transition:all .2s}
.drawer-lang a.active,.drawer-lang a:hover{background:var(--teal);color:white;border-color:var(--teal)}

/* ── Flash messages ──────────────────────────────────────── */
.flash-msg{padding:12px 16px;border-radius:var(--radius-sm);margin-bottom:12px;font-size:14px;font-weight:500}
.flash-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}
.flash-error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}
.flash-warning{background:#fff3cd;color:#856404;border:1px solid #ffeeba}
.flash-info{background:var(--teal-pale);color:var(--navy);border:1px solid rgba(27,138,122,.2)}

/* ── Analyses calc ───────────────────────────────────────── */
.calc-section{background:white}
.calc-layout{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:start}
.calc-sidebar{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:20px;position:sticky;top:calc(var(--header-h) + 16px)}
.calc-sidebar h4{font-size:13px;font-weight:700;color:var(--navy);letter-spacing:.05em;text-transform:uppercase;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.filter-list{list-style:none;display:flex;flex-direction:column;gap:2px;margin-bottom:20px}
.filter-list li a{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-radius:var(--radius-sm);font-size:14px;color:var(--text-muted);transition:all .2s;cursor:pointer}
.filter-list li a:hover,.filter-list li a.active{background:var(--teal-pale);color:var(--teal);font-weight:600}
.filter-list li a span{font-size:12px;opacity:.7}
.price-range{margin-bottom:20px}
.price-range label{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;display:block;margin-bottom:10px}
.range-slider{width:100%;accent-color:var(--teal)}
.range-vals{display:flex;justify-content:space-between;font-size:12px;color:var(--text-muted);margin-top:6px}
.filter-group{margin-bottom:16px}
.filter-group label:first-child{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;display:block;margin-bottom:8px}
.radio-group,.check-group{display:flex;flex-direction:column;gap:6px}
.radio-group label,.check-group label{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-muted);cursor:pointer}
.radio-group input,.check-group input{accent-color:var(--teal)}
.btn-reset{width:100%;background:none;border:1px solid var(--border);color:var(--text-muted);padding:9px;border-radius:var(--radius-sm);font-size:13px;font-weight:500;transition:all .2s;cursor:pointer}
.btn-reset:hover{border-color:var(--teal);color:var(--teal)}
.calc-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.calc-search{flex:1;min-width:200px;display:flex;align-items:center;gap:8px;background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:10px 14px}
.calc-search:focus-within{border-color:var(--teal)}
.calc-search svg{width:16px;height:16px;stroke:var(--text-muted);fill:none;stroke-width:2;flex-shrink:0}
.calc-search input{border:none;background:none;font-family:var(--sans);font-size:14px;color:var(--text);outline:none;width:100%}
.sort-select{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 14px;font-size:13px;color:var(--text-muted);font-family:var(--sans);outline:none;cursor:pointer}
.dir-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}
.dir-tab{padding:7px 14px;border-radius:20px;font-size:13px;font-weight:500;color:var(--text-muted);background:var(--bg);border:1px solid var(--border);cursor:pointer;transition:all .2s;white-space:nowrap}
.dir-tab:hover,.dir-tab.active{background:var(--teal);color:white;border-color:var(--teal)}
.analyses-grid{display:flex;flex-direction:column;gap:10px}
.analysis-card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;transition:all .2s}
.analysis-card:hover{border-color:var(--teal-light);box-shadow:var(--shadow)}
.ac-top{display:flex;align-items:flex-start;gap:12px}
.ac-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ac-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.ac-icon img{width:26px;height:26px;object-fit:contain}
.ac-body{flex:1;min-width:0}
.ac-dir{font-size:11px;color:var(--teal);font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.ac-name{font-size:15px;font-weight:600;color:var(--navy);margin-bottom:6px;line-height:1.3}
.ac-meta{display:flex;gap:14px;flex-wrap:wrap}
.ac-meta span{font-size:12px;color:var(--text-muted);display:flex;align-items:center;gap:4px}
.ac-meta svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.ac-code{font-size:11px;color:var(--text-light);font-family:monospace;margin-top:4px}
.ac-prep{font-size:12px;color:var(--text-muted);background:var(--bg);border-left:3px solid var(--teal);padding:8px 12px;border-radius:0 var(--radius-sm) var(--radius-sm) 0;margin-top:10px;line-height:1.5}
.ac-bottom{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border-light)}
.ac-price{font-size:20px;font-weight:700;color:var(--navy)}
.ac-price-old{font-size:13px;color:var(--text-light);text-decoration:line-through;margin-right:4px}
.btn-add{background:var(--teal);color:white;border:none;padding:10px 18px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;transition:all .2s;cursor:pointer}
.btn-add:hover{background:var(--teal-light)}
.btn-add.added{background:var(--navy)}
.btn-add svg{width:15px;height:15px;fill:none;stroke:white;stroke-width:2.5}
.float-cart{position:sticky;bottom:16px;background:var(--navy);border-radius:var(--radius);padding:16px 20px;display:flex;align-items:center;gap:16px;box-shadow:0 8px 32px rgba(13,35,64,.35);margin-top:24px;z-index:10}
.fc-info{flex:1}
.fc-count{font-size:13px;color:rgba(255,255,255,.65);margin-bottom:2px}
.fc-total{font-size:22px;font-weight:700;color:white;font-family:var(--serif)}
.fc-total span{font-size:13px;font-weight:400;color:rgba(255,255,255,.6);margin-left:4px}

/* ── Package card ────────────────────────────────────────── */
.pkg-card{background:linear-gradient(135deg,#e8f5f4,#f0faf9);border:2px solid rgba(27,138,122,.2);border-radius:var(--radius);padding:20px;transition:all .25s;margin-bottom:12px}
.pkg-card:hover{border-color:var(--teal);box-shadow:var(--shadow)}
.pkg-badge{display:inline-flex;align-items:center;gap:6px;background:var(--teal);color:white;font-size:11px;font-weight:700;padding:4px 12px;border-radius:20px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:12px}
.pkg-name{font-size:18px;font-weight:700;color:var(--navy);margin-bottom:8px}
.pkg-items{list-style:none;display:flex;flex-direction:column;gap:4px;margin-bottom:14px}
.pkg-items li{font-size:13px;color:var(--text-muted);display:flex;align-items:center;gap:6px}
.pkg-items li::before{content:'';width:6px;height:6px;background:var(--teal);border-radius:50%;flex-shrink:0}
.pkg-pricing{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pkg-new{font-size:24px;font-weight:700;color:var(--navy)}
.pkg-old{font-size:15px;color:var(--text-light);text-decoration:line-through}
.pkg-discount{background:var(--orange);color:white;font-size:12px;font-weight:700;padding:3px 10px;border-radius:20px}
.btn-pkg{background:var(--navy);color:white;border:none;padding:10px 20px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;margin-top:14px;transition:background .2s;cursor:pointer}
.btn-pkg:hover{background:var(--teal)}

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrap{min-height:calc(100vh - var(--header-h));display:flex;align-items:center;justify-content:center;padding:40px 20px;background:var(--bg)}
.auth-box{background:white;border:1px solid var(--border);border-radius:var(--radius-lg);padding:40px;width:100%;max-width:440px;box-shadow:var(--shadow)}
.auth-box h1{font-family:var(--serif);font-size:26px;font-weight:400;color:var(--navy);margin-bottom:8px}
.auth-box p{font-size:14px;color:var(--text-muted);margin-bottom:28px}
.auth-group{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.auth-group label{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.auth-group input{background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;font-size:14px;color:var(--text);font-family:var(--sans);outline:none;transition:border .2s}
.auth-group input:focus{border-color:var(--teal)}
.auth-group .field-error{font-size:12px;color:#c0392b;margin-top:2px}
.auth-btn{width:100%;background:var(--teal);color:white;border:none;padding:14px;border-radius:var(--radius-sm);font-size:15px;font-weight:700;font-family:var(--sans);cursor:pointer;transition:all .2s;margin-top:8px}
.auth-btn:hover{background:var(--teal-light)}
.auth-link{text-align:center;font-size:14px;color:var(--text-muted);margin-top:20px}
.auth-link a{color:var(--teal);font-weight:600}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-muted);padding:14px 5%;border-bottom:1px solid var(--border-light);flex-wrap:wrap}
.breadcrumbs a{color:var(--teal)}
.breadcrumbs span{color:var(--border)}

/* ── Page header ─────────────────────────────────────────── */
.page-header{background:var(--navy);color:white;padding:48px 5% 40px}
.page-header h1{font-family:var(--serif);font-size:clamp(28px,3vw,44px);font-weight:400;margin-bottom:8px}
.page-header p{font-size:16px;color:rgba(255,255,255,.6);max-width:600px}

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:1100px){
  .dirs-grid{grid-template-columns:repeat(2,1fr)}
  .docs-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .header-search{flex-basis:170px}
  .why-grid{grid-template-columns:repeat(2,1fr);gap:28px}
}
@media(max-width:992px){
  .header-search{display:none}
  .btn-search{display:flex}
}
@media(max-width:900px){
  .calc-layout{grid-template-columns:1fr}
  .calc-sidebar{position:static}
  .appt-grid{grid-template-columns:1fr}
  .hero{flex-direction:column;padding:20px 5% 0}
  .hero-image{min-height:280px;max-height:340px;flex-basis:auto}
  .hero-content{flex-basis:auto;margin-left:0;margin-top:-32px;border-radius:20px;padding:36px 24px;box-shadow:0 -20px 40px -30px rgba(15,45,35,.16)}
  .cta-block{grid-template-columns:1fr;padding:32px}
}
@media(max-width:768px){
  .topbar{display:none}
  .main-nav{display:none}
  .mobile-nav{display:grid}
  .reviews-grid{grid-template-columns:1fr}
  body{padding-bottom:70px}
  .dirs-grid{grid-template-columns:1fr}
  .docs-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .appt-grid{gap:32px}
  .hero h1{font-size:28px}
  .why-grid{grid-template-columns:1fr;gap:24px}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .form-row{grid-template-columns:1fr}
  .cta-actions{flex-direction:column}
  section{padding:48px 4%}
  .cta-block{margin:0 4%}
  .header-inner{padding:0 4%}
  .btn-orange{display:none}
  .btn-cta{display:none}
  .spec-card{min-width:78%;max-width:300px;scroll-snap-align:start}
  .spec-list{scroll-snap-type:x mandatory}
}
@media(max-width:480px){
  .hero-stats{flex-direction:column;gap:16px}
  .stat-item{border-right:none;margin-right:0;padding-right:0;border-bottom:1px solid var(--c-border);padding-bottom:16px}
  .stat-item:last-child{border-bottom:none;padding-bottom:0}
  .hero-btns .btn{flex:1;justify-content:center}
}

#addCartBtn:not(.btn-added):hover{background:var(--teal-light)!important}
