/* ===== D'esten — фирменные токены ===== */
:root{
  --background:#F8F7FB;
  --foreground:#241E33;
  --surface:#FFFFFF;
  --primary:#5B3F8C;
  --primary-foreground:#FFFFFF;
  --accent:#F5A623;
  --accent-foreground:#2B2419;
  --muted:#F2F0F7;
  --muted-foreground:#6E6880;
  --border:#E7E4EF;
  --radius:1rem;
  --font-display:"Unbounded",system-ui,sans-serif;
  --font-sans:"Manrope",system-ui,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--background);color:var(--foreground);
  font-family:var(--font-sans);-webkit-font-smoothing:antialiased;line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--font-display);letter-spacing:-.02em;line-height:1.12}
h2{font-size:clamp(1.75rem,3vw,2.35rem);font-weight:700}
.ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.container{max-width:72rem;margin:0 auto;padding:0 1.25rem}
.container--narrow{max-width:48rem}
.center{text-align:center}
.muted{color:var(--muted-foreground)}
.narrow{max-width:36rem}
.eyebrow{font-size:.8rem;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:.08em}
.section{padding:5rem 0}
.section--surface{background:var(--surface)}

/* ===== Header ===== */
.header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(248,247,251,.8);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
.header__inner{height:64px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.header__logo img{height:38px;width:auto}
.header__addr{display:none;align-items:center;gap:.5rem;color:var(--muted-foreground);font-size:.9rem}
.header__addr .ic{color:var(--primary)}
.header__phone{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;white-space:nowrap}
.header__phone .ic{color:var(--primary)}
.only-desktop{display:none}
@media(min-width:640px){.only-desktop{display:inline}.only-mobile{display:none}}
@media(min-width:768px){.header__addr{display:flex}}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  border-radius:999px;padding:1rem 1.75rem;font-weight:600;font-size:1rem;
  white-space:nowrap;transition:.2s;border:1px solid transparent;cursor:pointer}
.btn--accent{background:var(--accent);color:var(--accent-foreground);box-shadow:0 10px 24px -8px rgba(245,166,35,.6)}
.btn--accent:hover{transform:translateY(-1px)}
.btn--ghost{background:var(--surface);color:var(--foreground);border-color:var(--border)}
.btn--ghost:hover{border-color:rgba(91,63,140,.4)}
.btn--full{width:100%}

/* ===== Hero ===== */
.hero{padding:7rem 0 4rem;
  background-image:
    radial-gradient(at 80% 0%,rgba(245,166,35,.20),transparent 50%),
    radial-gradient(at 0% 100%,rgba(91,63,140,.20),transparent 55%),
    linear-gradient(180deg,var(--background),var(--surface));
}
.hero__grid{display:grid;gap:2.5rem;align-items:center}
@media(min-width:768px){.hero{padding:9rem 0 6rem}.hero__grid{grid-template-columns:1fr 1fr;gap:3.5rem}}
.badge{display:inline-flex;align-items:center;gap:.5rem;border:1px solid rgba(91,63,140,.2);
  background:rgba(91,63,140,.06);color:var(--primary);border-radius:999px;padding:.3rem .8rem;
  font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.hero h1{margin-top:1.25rem;font-size:clamp(1.9rem,5vw,3rem);font-weight:700;text-wrap:balance}
.lead{margin-top:1.25rem;color:var(--muted-foreground);font-size:1.05rem;text-wrap:balance}
.checklist{list-style:none;margin-top:1.75rem;display:grid;gap:.75rem}
.checklist li{display:flex;gap:.75rem;align-items:flex-start}
.tick{flex:none;width:24px;height:24px;border-radius:999px;background:rgba(91,63,140,.1);
  color:var(--primary);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.8rem}
.hero__cta{margin-top:2rem;display:flex;flex-direction:column;gap:.75rem}
@media(min-width:640px){.hero__cta{flex-direction:row}}
.hero__media{position:relative;order:-1}
@media(min-width:768px){.hero__media{order:0}}
.hero__glow{position:absolute;inset:-1rem;background:rgba(91,63,140,.1);border-radius:2rem;filter:blur(32px)}
.hero__card{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:2rem;
  border:1px solid var(--border);background:var(--surface);box-shadow:0 30px 60px -30px rgba(91,63,140,.5)}
.hero__card img{height:100%;width:100%;object-fit:cover}
.flip{transform:scaleX(-1)}
.hero__card figcaption{position:absolute;left:1rem;right:1rem;bottom:1rem;background:rgba(255,255,255,.9);
  backdrop-filter:blur(6px);border:1px solid var(--border);border-radius:1rem;padding:.75rem 1rem;font-weight:600}

/* ===== Doctor ===== */
.doctor__grid{display:grid;gap:2.5rem;align-items:center}
@media(min-width:768px){.doctor__grid{grid-template-columns:4fr 8fr;gap:3.5rem}}
.doctor__photo img{aspect-ratio:3/4;object-fit:cover;object-position:top center;width:100%;max-height:560px;border-radius:2rem;border:1px solid var(--border)}
.doctor__grid h2{margin-top:.75rem}
.doctor__grid p.muted{margin-top:.75rem}
.facts{list-style:none;margin-top:2rem;display:grid;gap:1rem}
@media(min-width:640px){.facts{grid-template-columns:1fr 1fr}}
.facts li{display:flex;gap:.75rem;align-items:center;border:1px solid var(--border);
  background:var(--background);border-radius:1rem;padding:1rem;font-size:.92rem}
.facts__ic{color:var(--primary);flex:none;width:40px;height:40px;border-radius:.75rem;background:rgba(91,63,140,.1);
  display:inline-flex;align-items:center;justify-content:center}
.quote{margin-top:2rem;background:var(--primary);color:var(--primary-foreground);
  border-radius:1rem;padding:1.75rem;font-family:var(--font-display);font-size:1.15rem;line-height:1.35;text-wrap:balance}

/* ===== Case ===== */
.case__grid{margin-top:2.5rem;display:grid;gap:1.25rem}
@media(min-width:768px){.case__grid{grid-template-columns:1fr 1fr}}
.case__item{position:relative;overflow:hidden;border-radius:1.5rem;border:1px solid var(--border);background:var(--surface)}
.case__item img{aspect-ratio:4/3;object-fit:cover;width:100%}
.tag{position:absolute;top:1rem;left:1rem;padding:.25rem .75rem;border-radius:999px;
  font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.tag--dark{background:var(--foreground);color:#fff}
.tag--accent{background:var(--accent);color:var(--accent-foreground)}

/* ===== Form ===== */
.section--primary{background:var(--primary);color:var(--primary-foreground);position:relative;overflow:hidden}
.on-primary{color:var(--primary-foreground);text-wrap:balance}
.on-primary-soft{margin-top:.75rem;color:rgba(255,255,255,.8)}
.card-form{margin-top:2.5rem;background:var(--surface);color:var(--foreground);
  border-radius:1.5rem;padding:1.75rem;text-align:left;display:grid;gap:1rem}
.card-form label{font-size:.88rem;font-weight:500}
.card-form input{margin-top:.5rem;width:100%;border:1px solid var(--border);background:var(--background);
  border-radius:.75rem;padding:.85rem 1rem;font:inherit;outline:none}
.card-form input:focus{border-color:var(--primary)}
.fineprint{font-size:.75rem;color:var(--muted-foreground);text-align:center}
.fineprint a{text-decoration:underline}
.err{color:#c0392b;font-size:.85rem;text-align:center}
.success{text-align:center;justify-items:center}
.success__ic{width:48px;height:48px;border-radius:999px;background:var(--accent);color:var(--accent-foreground);
  display:inline-flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:800;margin:0 auto}
.form__links{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}
.pill{display:inline-flex;align-items:center;gap:.5rem;border-radius:999px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);padding:.75rem 1.25rem;font-weight:600;font-size:.9rem}
.pill:hover{background:rgba(255,255,255,.16)}

/* ===== Contacts ===== */
.contacts__grid{display:grid;gap:2.5rem;align-items:start}
@media(min-width:768px){.contacts__grid{grid-template-columns:1fr 1fr}}
.contacts__list{list-style:none;margin-top:2rem;display:grid;gap:1rem}
.contacts__list li{display:flex;gap:1rem;border:1px solid var(--border);background:var(--background);border-radius:1rem;padding:1rem}
.contacts__ic{color:var(--primary);flex:none;width:44px;height:44px;border-radius:.75rem;background:rgba(91,63,140,.1);
  display:inline-flex;align-items:center;justify-content:center}
.contacts__label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-foreground)}
.contacts__val{font-weight:600}
.map{overflow:hidden;border-radius:1.5rem;border:1px solid var(--border);min-height:320px;height:100%}
.map iframe{width:100%;height:100%;min-height:320px;border:0}

/* ===== Footer ===== */
.footer{background:var(--foreground);color:rgba(255,255,255,.8)}
.footer__grid{display:grid;gap:2rem;padding-top:3rem;padding-bottom:3rem}
@media(min-width:768px){.footer__grid{grid-template-columns:repeat(3,1fr)}}
.footer__logo{height:40px;width:auto;background:#fff;border-radius:.5rem;padding:.5rem}
.footer__about{margin-top:1rem;font-size:.9rem;color:rgba(255,255,255,.6)}
.footer__col{font-size:.9rem;display:grid;gap:.5rem;align-content:start;color:rgba(255,255,255,.7)}
.footer__col a:hover{color:var(--accent)}
.footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.25rem;text-align:center;font-size:.75rem;color:rgba(255,255,255,.4)}
.footer__bottom p{margin:.25rem 0}

/* ===== Mobile call button ===== */
.mobile-call{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:50;display:inline-flex;
  align-items:center;justify-content:center;gap:.5rem;background:var(--accent);color:var(--accent-foreground);
  border-radius:999px;padding:1rem;font-weight:600;box-shadow:0 18px 40px -12px rgba(245,166,35,.7)}
@media(min-width:768px){.mobile-call{display:none}}
body{padding-bottom:5rem}
@media(min-width:768px){body{padding-bottom:0}}

.facts__ic .ic,.contacts__ic .ic{width:20px;height:20px}
.pill .ic{width:16px;height:16px}

[hidden]{display:none !important}
.hp{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden}


/* ===== Юридические страницы ===== */
.policy { background: var(--bg); color: var(--text); padding: 4rem 0; min-height: 100vh; }
.policy__back { display: inline-flex; gap: .35rem; font-weight: 600; color: var(--primary); text-decoration: none; font-size: .9rem; }
.policy__back:hover { text-decoration: underline; }
.policy h1 { margin-top: 1.25rem; font-family: 'Unbounded', sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; }
.policy__body { margin-top: 2rem; display: grid; gap: 1.5rem; line-height: 1.7; }
.policy__body h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .4rem; }
.policy__body p { margin: 0; }
.policy__body ul { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .25rem; }
.policy__meta { border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); padding: 1.25rem; display: grid; gap: .35rem; font-size: .9rem; }
.policy__cross { padding-top: 1rem; border-top: 1px solid var(--border); }
.policy__cross a { color: var(--primary); font-weight: 600; text-decoration: none; }
.policy__cross a:hover { text-decoration: underline; }

/* ===== Чекбоксы согласия ===== */
.consents { display: grid; gap: .75rem; margin-top: .25rem; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; line-height: 1.5; cursor: pointer; font-weight: 400; }
.consent input { margin-top: .15rem; width: 1rem; height: 1rem; flex: 0 0 auto; accent-color: var(--primary); }
.consent a { color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Cookie ===== */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: .75rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 1.25rem; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(15,23,42,.18); }
.cookie p { margin: 0; font-size: .875rem; line-height: 1.6; }
.cookie p a { color: var(--primary); }
.cookie__actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie .btn { padding: .6rem 1.25rem; font-size: .85rem; }
.btn--ghost { border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; display: inline-flex; align-items: center; text-decoration: none; }
@media (min-width: 768px) { .cookie { right: auto; max-width: 28rem; margin: 1rem; } }
@media (max-width: 767px) { .cookie { bottom: 4.5rem; } }
