/* ============================================================
   NOVO CLINIC — Design System
   Brand blue #084878 · Spectral (display) + Manrope (text)
   Author: single source of truth for all pages.
   ============================================================ */

/* ---------- Tokens ---------- */
:root{
  /* Brand */
  --brand:        #084878;
  --brand-600:    #0a5793;
  --brand-700:    #063455;
  --brand-800:    #052840;
  --azure:        #1e77c4;   /* links / interactive accent */
  --azure-600:    #1a68ab;

  /* Ink / text */
  --ink:          #0b2942;   /* primary headings */
  --ink-2:        #3a5065;   /* body text */
  --muted:        #5b7085;   /* tertiary / captions */

  /* Surfaces */
  --white:        #ffffff;
  --paper:        #f4f8fc;   /* soft section bg */
  --paper-2:      #eaf2f9;   /* stronger tint */
  --sky:          #e7f1fa;   /* chips / badges */
  --line:         #e1eaf2;   /* hairlines / borders */
  --line-strong:  #cddcea;

  /* Functional */
  --ok:           #1f9d74;   /* verified / guarantee ticks (used tiny) */

  /* Type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-text:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.78rem;
  --fs-small:   0.9rem;
  --fs-body:    1.0625rem;   /* 17px base for readability */
  --fs-lead:    clamp(1.15rem, 0.9rem + 1vw, 1.4rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 1.35rem + 2.4vw, 3rem);
  --fs-h1:      clamp(2rem, 1.35rem + 3vw, 4rem);
  --fs-display: clamp(3rem, 1.6rem + 6vw, 6rem);

  /* Spacing scale */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem;  --sp-10: 8rem;

  --container: 1200px;
  --container-wide: 1320px;
  --radius:   14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(8,40,64,.05), 0 2px 6px rgba(8,40,64,.04);
  --shadow:    0 6px 24px rgba(8,40,64,.08), 0 2px 6px rgba(8,40,64,.05);
  --shadow-lg: 0 24px 60px rgba(8,40,64,.14), 0 6px 16px rgba(8,40,64,.06);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0; background:var(--white); color:var(--ink-2);
  font-family:var(--font-text); font-size:var(--fs-body); line-height:1.65;
  font-weight:400; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video{ max-width:100%; display:block; }
a{ color:var(--azure); text-decoration:none; }
button{ font:inherit; cursor:pointer; }
h1,h2,h3,h4{ color:var(--ink); font-family:var(--font-display); font-weight:600; line-height:1.08; letter-spacing:-.01em; margin:0; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
:focus-visible{ outline:3px solid var(--azure); outline-offset:3px; border-radius:4px; }
::selection{ background:rgba(30,119,196,.18); }

/* ---------- Layout ---------- */
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:clamp(1.15rem,4vw,2rem); }
.container.wide{ max-width:var(--container-wide); }
.section{ padding-block:clamp(3.5rem,7vw,7rem); position:relative; }
.section--paper{ background:var(--paper); }
.section--tint{ background:linear-gradient(180deg,var(--white),var(--paper)); }
.section--ink{ background:var(--brand-800); color:#c7d9e8; }
.section--ink h2,.section--ink h3{ color:#fff; }

.grid{ display:grid; gap:clamp(1rem,2.4vw,1.75rem); }
.center{ text-align:center; }

/* ---------- Eyebrow + section head ---------- */
.eyebrow{
  font-family:var(--font-text); font-weight:700; font-size:var(--fs-eyebrow);
  letter-spacing:.16em; text-transform:uppercase; color:var(--brand);
  display:inline-flex; align-items:center; gap:.55rem;
}
.eyebrow .burst-mini{ width:18px; height:18px; flex:0 0 auto; }
.section--ink .eyebrow{ color:#7db4e0; }
.section-head{ max-width:64ch; margin-bottom:clamp(2rem,4vw,3.25rem); }
.section-head.center{ margin-inline:auto; }
.section-head h2{ font-size:var(--fs-h2); margin-top:.85rem; }
.section-head p{ font-size:var(--fs-lead); color:var(--ink-2); margin-top:1rem; }

/* ---------- Buttons ---------- */
.btn{
  --bg:var(--brand); --fg:#fff;
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  padding:.95rem 1.6rem; border-radius:999px; border:1px solid transparent;
  background:var(--bg); color:var(--fg); font-weight:600; font-size:1rem;
  letter-spacing:.005em; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
  box-shadow:var(--shadow-sm); text-align:center;
}
.btn:hover{ background:var(--brand-600); transform:translateY(-2px); box-shadow:var(--shadow); }
.btn:active{ transform:translateY(0); }
.btn--lg{ padding:1.1rem 2rem; font-size:1.05rem; }
.btn--ghost{ --bg:transparent; --fg:var(--brand); border-color:var(--line-strong); box-shadow:none; }
.btn--ghost:hover{ --bg:var(--sky); border-color:var(--brand); }
.btn--light{ --bg:#fff; --fg:var(--brand); }
.btn--light:hover{ --bg:#eef5fb; }
.btn--wa{ --bg:#25D366; --fg:#0a2e17; }
.btn--wa:hover{ --bg:#20bd5a; }
.btn--tg{ --bg:#2b9fe0; --fg:#fff; }
.btn--tg:hover{ --bg:#2490cd; }
.btn .ico{ width:19px; height:19px; }

/* ---------- Header ---------- */
.site-header{
  min-height:74px;
  position:sticky; top:0; z-index:60; background:rgba(255,255,255,.86);
  backdrop-filter:saturate(140%) blur(14px); -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid transparent; transition:border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled{ border-bottom-color:var(--line); box-shadow:0 6px 24px rgba(8,40,64,.06); }
.nav{ display:flex; align-items:center; gap:1.25rem; height:74px; }
.brand{ display:flex; align-items:center; gap:.6rem; flex:0 0 auto; }
.brand img{ height:38px; width:auto; }
.brand .brand-sub{ font-family:var(--font-text); font-size:.62rem; letter-spacing:.34em; text-transform:uppercase; color:var(--muted); }
.nav-menu{ display:flex; align-items:center; gap:.35rem; margin-left:.5rem; }
.nav-link{
  position:relative; color:var(--ink); font-weight:600; font-size:.95rem;
  padding:.55rem .7rem; border-radius:8px; white-space:nowrap; transition:color .2s, background .2s;
  background:transparent; border:0; font-family:var(--font-text);
}
.nav-link:hover{ color:var(--brand); background:var(--sky); }
.nav-link.has-menu{ display:inline-flex; align-items:center; gap:.3rem; }
.nav-link .chev{ width:14px; height:14px; transition:transform .25s; }
.nav-item{ position:relative; }
.nav-item:hover .chev{ transform:rotate(180deg); }
.nav-spacer{ flex:1 1 auto; }

/* Dropdown */
.dropdown{
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(8px);
  min-width:300px; background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-lg); padding:.6rem; opacity:0; visibility:hidden; transition:.28s var(--ease);
  z-index:70;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.dropdown a{ display:flex; gap:.8rem; align-items:flex-start; padding:.7rem .8rem; border-radius:9px; color:var(--ink); transition:background .18s; }
.dropdown a:hover{ background:var(--sky); }
.dropdown .d-ico{ width:34px; height:34px; flex:0 0 auto; color:var(--brand); background:var(--sky); border-radius:8px; padding:7px; }
.dropdown .d-txt{ display:flex; flex-direction:column; gap:.2rem; }
.dropdown .d-t{ display:block; font-weight:700; font-size:.96rem; line-height:1.25; color:var(--ink); }
.dropdown .d-d{ display:block; font-size:.82rem; color:var(--muted); line-height:1.35; }

.header-actions{ display:flex; align-items:center; gap:.6rem; flex:0 0 auto; }
.header-phone{ display:inline-flex; align-items:center; gap:.45rem; font-weight:700; color:var(--ink); font-size:.95rem; white-space:nowrap; }
.header-phone .ico{ width:17px; height:17px; color:var(--brand); }

/* Lang switcher */
/* ---------- Кнопка «Связаться» с выбором мессенджера ---------- */
.contact-drop{ position:relative; }
.contact-btn{
  display:inline-flex; align-items:center; gap:.45rem; min-height:44px;
  background:transparent; border:1px solid var(--line-strong); border-radius:999px;
  padding:.45rem .95rem; color:var(--ink); font-weight:600; font-size:.9rem;
  font-family:var(--font-text); white-space:nowrap;
  transition:background .25s var(--ease), border-color .25s, color .2s;
}
.contact-btn:hover{ background:var(--sky); border-color:var(--brand); color:var(--brand); }
.contact-btn .ico{ width:17px; height:17px; color:var(--brand); flex:0 0 auto; }
.contact-btn .chev{ width:14px; height:14px; transition:transform .25s; }
.contact-btn[aria-expanded="true"] .chev{ transform:rotate(180deg); }
.contact-menu{
  position:absolute; right:0; top:calc(100% + 8px); background:#fff;
  border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg);
  padding:.45rem; min-width:250px; display:none; z-index:80;
}
.contact-menu.open{ display:block; }
.contact-menu a{ display:flex; align-items:center; gap:.7rem; min-height:52px; padding:.55rem .65rem; border-radius:10px; color:var(--ink); transition:background .18s; }
.contact-menu a:hover{ background:var(--sky); }
.contact-menu .c-ico{ width:36px; height:36px; flex:0 0 auto; border-radius:10px; padding:8px; display:flex; }
.contact-menu .c-ico svg{ width:100%; height:100%; }
.contact-menu .c-ico--wa{ background:#e6f8ed; color:#1da851; }
.contact-menu .c-ico--tg{ background:#e6f2fb; color:#2b9fe0; }
.contact-menu .c-ico--tel{ background:var(--sky); color:var(--brand); }
.contact-menu .c-t{ display:block; font-weight:700; font-size:.93rem; line-height:1.25; }
.contact-menu .c-d{ display:block; font-size:.8rem; color:var(--muted); line-height:1.3; }

.lang{ position:relative; }
.lang-btn{ display:inline-flex; align-items:center; gap:.4rem; min-height:44px; background:transparent; border:1px solid var(--line-strong); border-radius:999px; padding:.45rem .7rem; color:var(--ink); font-weight:600; font-size:.85rem; }
.lang-btn:hover{ background:var(--sky); }
.lang-btn .flag{ font-size:1rem; line-height:1; }
.lang-menu{ position:absolute; right:0; top:calc(100% + 8px); background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-lg); padding:.4rem; min-width:190px; display:none; z-index:80; }
.lang-menu.open{ display:block; }
.lang-menu button{ display:flex; width:100%; align-items:center; gap:.6rem; min-height:44px; padding:.55rem .65rem; border:0; background:transparent; border-radius:8px; color:var(--ink); font-weight:600; font-size:.9rem; text-align:left; }
.lang-menu button:hover{ background:var(--sky); }
.lang-menu button[aria-current="true"]{ color:var(--brand); background:var(--sky); }

.menu-toggle{ display:none; width:44px; height:44px; border:1px solid var(--line-strong); border-radius:10px; background:#fff; align-items:center; justify-content:center; }
.menu-toggle svg{ width:22px; height:22px; color:var(--ink); }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop{ position:fixed; inset:0; background:rgba(6,25,40,.4); opacity:0; visibility:hidden; transition:.3s; z-index:90; }
.drawer-backdrop.open{ opacity:1; visibility:visible; }
.drawer{
  position:fixed; top:0; right:0; height:100%; width:min(88vw,380px); background:#fff; z-index:95;
  transform:translateX(100%); transition:transform .35s var(--ease); overflow-y:auto; padding:1.15rem 1.25rem 3rem;
  box-shadow:var(--shadow-lg);
}
.drawer.open{ transform:translateX(0); }
.drawer-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:1.25rem; }
.drawer-top img{ height:34px; }
.drawer-close{ width:42px; height:42px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.drawer nav a{ display:block; padding:.85rem .4rem; font-weight:600; color:var(--ink); border-bottom:1px solid var(--line); font-size:1.05rem; }
.drawer .m-sub{ font-size:.9rem; color:var(--muted); font-weight:600; padding:.9rem .4rem .3rem; text-transform:uppercase; letter-spacing:.1em; }
.drawer .m-child{ padding-left:1.2rem !important; font-weight:500 !important; color:var(--ink-2) !important; border-bottom:1px dashed var(--line) !important; }
.drawer-cta{ margin-top:1.4rem; display:grid; gap:.6rem; }

/* ---------- Hero ---------- */
.hero{ position:relative; padding-top:clamp(2.5rem,6vw,5rem); padding-bottom:clamp(2.5rem,6vw,4.5rem); overflow:hidden; }
.hero-burst{ position:absolute; right:-14%; top:-18%; width:min(52vw,640px); opacity:.32; pointer-events:none; z-index:0; color:var(--brand); }
@media (max-width:820px){ .hero-burst{ opacity:.14; right:-30%; top:-6%; } }
.hero-inner{ position:relative; z-index:2; display:grid; gap:clamp(1.4rem,2.6vw,2.1rem); }
.hero-eyebrow{ margin-bottom:.4rem; }
.hero h1{ font-size:var(--fs-h1); font-weight:600; max-width:21ch; line-height:1.04; letter-spacing:-.02em; text-wrap:balance; }
.hero h1 em{ font-style:normal; color:var(--brand); }
.hero-lead{ font-size:var(--fs-lead); color:var(--ink-2); max-width:48ch; text-wrap:pretty; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:clamp(1.2rem,4vw,3rem); margin-top:.5rem; padding-top:1.6rem; border-top:1px solid var(--line); }
.trust-item .n{ font-family:var(--font-display); font-size:clamp(1.7rem,1.2rem+1.6vw,2.4rem); font-weight:600; color:var(--brand); line-height:1; }
.trust-item .l{ font-size:.85rem; color:var(--muted); margin-top:.35rem; max-width:20ch; }

/* ---------- Direction cards (the core wayfinding) ---------- */
.dir-grid{ grid-template-columns:repeat(3,1fr); }
.dir-card{
  position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:clamp(1.4rem,2.4vw,2rem); overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  min-height:290px; isolation:isolate;
}
.dir-card::after{ content:""; position:absolute; inset:0; background:radial-gradient(120% 80% at 100% 0%, rgba(8,72,120,.06), transparent 60%); z-index:-1; opacity:0; transition:opacity .35s; }
.dir-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:var(--line-strong); }
.dir-card:hover::after{ opacity:1; }
.dir-ico{ width:56px; height:56px; color:var(--brand); background:var(--sky); border-radius:14px; padding:12px; margin-bottom:1.1rem; --tone:#bcd6ec; transition:transform .4s var(--ease), background .3s; }
/* duotone icon tone across all icon chips */
.feat-ico, .treat-ico, .contact-row .ico, .dropdown .d-ico, .doc-photo .ph-mark, .dir-ico{ --tone:#bcd6ec; }
.dir-card:hover .dir-ico{ transform:translateY(-2px) scale(1.06) rotate(-3deg); background:#dcebf8; }
.dir-card h3{ font-size:var(--fs-h3); }
.dir-card .dir-desc{ margin-top:.6rem; color:var(--ink-2); font-size:.98rem; }
.dir-tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1.1rem; }
.dir-tag{ font-size:.8rem; font-weight:600; color:var(--brand-700); background:var(--sky); border-radius:999px; padding:.3rem .7rem; }
.dir-more{ margin-top:auto; padding-top:1.3rem; display:inline-flex; align-items:center; gap:.45rem; font-weight:700; color:var(--brand); font-size:.95rem; }
.dir-more .arr{ width:18px; height:18px; transition:transform .3s var(--ease); }
.dir-card:hover .dir-more .arr{ transform:translateX(5px); }

/* ---------- Steps (process) ---------- */
.steps{ counter-reset:step; grid-template-columns:repeat(5,1fr); }
.step{ position:relative; padding-top:2.6rem; }
.step::before{
  counter-increment:step; content:"0" counter(step);
  font-family:var(--font-display); font-weight:600; font-size:1.5rem; color:var(--brand);
  position:absolute; top:0; left:0;
}
.step::after{ content:""; position:absolute; top:.85rem; left:2.6rem; right:-.8rem; height:1px; background:var(--line-strong); }
.step:last-child::after{ display:none; }
.step h3{ font-size:1.08rem; font-family:var(--font-text); font-weight:700; color:var(--ink); }
.step p{ font-size:.92rem; color:var(--ink-2); margin-top:.4rem; }

/* ---------- Packages ---------- */
.pkg-grid{ grid-template-columns:repeat(3,1fr); align-items:stretch; }
.pkg{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:1.8rem; transition:transform .35s var(--ease), box-shadow .35s; }
.pkg:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.pkg--featured{ border-color:var(--brand); box-shadow:var(--shadow); position:relative; }
.pkg--featured::before{ content:attr(data-badge); position:absolute; top:-13px; left:1.8rem; background:var(--brand); color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:.35rem .8rem; border-radius:999px; }
.pkg h3{ font-family:var(--font-text); font-weight:800; font-size:1.2rem; color:var(--ink); }
.pkg .pkg-for{ color:var(--muted); font-size:.9rem; margin-top:.3rem; }
.pkg ul{ margin-top:1.2rem; display:grid; gap:.7rem; }
.pkg li{ display:flex; gap:.6rem; font-size:.95rem; color:var(--ink-2); align-items:flex-start; }
.pkg li .tick{ width:20px; height:20px; color:var(--ok); flex:0 0 auto; margin-top:.15rem; }
.pkg .pkg-cta{ margin-top:auto; padding-top:1.5rem; }

/* ---------- Feature / value rows ---------- */
.feat-grid{ grid-template-columns:repeat(3,1fr); }
.feat{ position:relative; padding:clamp(1.3rem,2.2vw,1.75rem); background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; transform-style:preserve-3d; overflow:hidden; }
.feat::after{ content:""; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(130% 90% at 100% 0%, rgba(8,72,120,.05), transparent 55%); opacity:0; transition:opacity .35s; z-index:0; }
.feat:hover{ box-shadow:var(--shadow); border-color:var(--line-strong); }
.feat:hover::after{ opacity:1; }
.feat > *{ position:relative; z-index:1; }
.feat-ico{ width:52px; height:52px; color:var(--brand); background:var(--sky); border-radius:13px; padding:12px; margin-bottom:1.05rem; transition:transform .45s var(--ease), background .3s; }
.feat:hover .feat-ico{ transform:translateY(-3px) scale(1.08) rotate(-4deg); background:#dcebf8; }

/* Карточка направления с фотографией вместо иконки */
.dir-card--photo{ padding:0; }
.dir-card--photo .dir-photo{ aspect-ratio:4/3; overflow:hidden; background:var(--paper-2); }
.dir-card--photo .dir-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .8s var(--ease); }
.dir-card--photo:hover .dir-photo img{ transform:scale(1.06); }
.dir-card--photo > :not(.dir-photo){ padding-inline:clamp(1.4rem,2.4vw,2rem); }
.dir-card--photo h3{ margin-top:clamp(1.2rem,2vw,1.5rem); }
.dir-card--photo .dir-more{ padding-bottom:clamp(1.4rem,2.4vw,2rem); }

/* Карточка с фотографией вместо иконки */
.feat--photo{ padding:0; overflow:hidden; display:flex; flex-direction:column; }
.feat--photo .feat-photo{ aspect-ratio:3/2; overflow:hidden; background:var(--paper-2); }
.feat--photo .feat-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .7s var(--ease); }
.feat--photo:hover .feat-photo img{ transform:scale(1.05); }
/* Продуктовый кадр на белом фоне (линза, инструмент): вписываем целиком на фирменный фон */
.feat-photo--product{ background:linear-gradient(135deg,var(--paper-2),var(--sky)) !important; isolation:isolate; }
.feat-photo--product img{ object-fit:contain !important; padding:6%; mix-blend-mode:multiply; }
.feat--photo:hover .feat-photo--product img{ transform:scale(1.04); }

.feat--photo h3{ margin-top:clamp(1.1rem,2vw,1.35rem); padding-inline:clamp(1.3rem,2.2vw,1.75rem); }
.feat--photo p{ padding:0 clamp(1.3rem,2.2vw,1.75rem) clamp(1.3rem,2.2vw,1.75rem); }
.feat h3{ font-family:var(--font-text); font-weight:700; font-size:1.08rem; color:var(--ink); }
.feat p{ font-size:.95rem; color:var(--ink-2); margin-top:.45rem; }

/* ---------- Doctors ---------- */
.doc-grid{ grid-template-columns:repeat(3,1fr); }
.doc{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; transition:transform .35s var(--ease), box-shadow .35s; }
.doc:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.doc-photo{ aspect-ratio:4/5; background:linear-gradient(135deg,var(--paper-2),var(--sky)); position:relative; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.doc-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; display:block; transition:transform .6s var(--ease); }
.doc:hover .doc-photo img{ transform:scale(1.04); }
.doc-photo .ph-mark{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:.4; color:var(--brand); }
.doc-photo .ph-mark svg{ width:56%; }
.doc-photo .ph-note{ position:absolute; bottom:.7rem; font-size:.8rem; color:var(--brand-700); background:rgba(255,255,255,.85); padding:.2rem .6rem; border-radius:999px; font-weight:600; }
.doc-body{ padding:1.3rem 1.4rem 1.5rem; }
.doc-spec{ font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--azure); }
.doc-name{ font-family:var(--font-display); font-size:1.2rem; font-weight:600; color:var(--ink); margin-top:.3rem; }
.doc-meta{ font-size:.9rem; color:var(--ink-2); margin-top:.5rem; }
.doc-tags{ display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.9rem; }
.doc-tag{ font-size:.75rem; font-weight:600; color:var(--brand-700); background:var(--sky); border-radius:999px; padding:.25rem .6rem; }

/* ---------- Partners ---------- */
.partners{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:clamp(1.8rem,5vw,4rem);
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm);
  padding:clamp(1.6rem,4vw,2.6rem) clamp(1.5rem,5vw,3.5rem); max-width:1020px; margin-inline:auto; }
/* Логотипы теперь прозрачные PNG — костыли с multiply/яркостью не нужны */
.partners img{ width:auto; opacity:.75; transition:opacity .35s, transform .35s var(--ease); }
.partners img:hover{ opacity:1; transform:scale(1.06); }
/* высоты подобраны так, чтобы ширина логотипов была примерно равной (оптический баланс) */
.partners img:nth-child(1){ height:clamp(24px,2.6vw,30px); } /* straumann — очень широкий */
.partners img:nth-child(2){ height:clamp(38px,4.2vw,46px); } /* ivoclar  */
.partners img:nth-child(3){ height:clamp(46px,5.2vw,56px); } /* osstem   */
.partners img:nth-child(4){ height:clamp(42px,4.8vw,52px); } /* medigma  */

/* ---------- Before/After ---------- */
.ba-grid{ grid-template-columns:repeat(3,1fr); }
.ba{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); background:#fff; }
.ba-imgs{ display:grid; grid-template-columns:1fr 1fr; aspect-ratio:16/9; }
.ba-half{ position:relative; background:linear-gradient(135deg,var(--paper-2),var(--sky)); display:flex; align-items:center; justify-content:center; color:var(--brand); }
.ba-half:first-child{ border-right:2px solid #fff; }
.ba-half span{ position:absolute; top:.6rem; left:.6rem; font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; background:rgba(255,255,255,.9); color:var(--brand-700); padding:.2rem .55rem; border-radius:999px; }
.ba-half svg{ width:34px; height:34px; opacity:.5; }
.ba-cap{ padding:.85rem 1rem; font-size:.88rem; color:var(--ink-2); }

/* ---------- Photo galleries (real before/after + process) ---------- */
.photo-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(.8rem,2vw,1.25rem); }
.ba-photo{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .35s var(--ease), box-shadow .35s; }
.ba-photo:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.ba-photo img{ width:100%; display:block; aspect-ratio:4/5; object-fit:cover; object-position:center; background:var(--paper-2); }
.ba-photo figcaption{ padding:.75rem .95rem; font-size:.9rem; color:var(--ink-2); font-weight:600; }

.photo-masonry{ columns:3 280px; column-gap:clamp(.8rem,2vw,1.25rem); }
.photo-masonry img{ width:100%; margin:0 0 clamp(.8rem,2vw,1.25rem); border-radius:var(--radius); border:1px solid var(--line); display:block; break-inside:avoid; box-shadow:var(--shadow-sm); background:var(--paper-2); }

.photo-tiles{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(.8rem,2vw,1.25rem); }
.photo-tile{ position:relative; aspect-ratio:3/4; overflow:hidden; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.photo-tile img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s var(--ease); }
.photo-tile:hover img{ transform:scale(1.05); }
@media (max-width:900px){ .photo-tiles{ grid-template-columns:repeat(2,1fr); } .photo-masonry{ columns:2 200px; } }
@media (max-width:560px){ .photo-3{ grid-template-columns:1fr; } .photo-masonry{ columns:1; } }

/* ---------- Reviews ---------- */
.rev-grid{ grid-template-columns:repeat(3,1fr); }
.rev{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem; display:flex; flex-direction:column; }
.stars{ display:flex; gap:2px; color:#a9791a; margin-bottom:.8rem; }
.stars svg{ width:18px; height:18px; }
.rev-text{ color:var(--ink-2); font-size:.98rem; }
.rev-by{ margin-top:auto; padding-top:1.1rem; display:flex; align-items:center; gap:.7rem; }
.rev-av{ width:38px; height:38px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-text); }
.rev-name{ font-weight:700; color:var(--ink); font-size:.92rem; }
.rev-loc{ font-size:.8rem; color:var(--muted); }
.google-badge{ display:inline-flex; align-items:center; gap:.6rem; background:#fff; border:1px solid var(--line); border-radius:999px; padding:.5rem 1rem; box-shadow:var(--shadow-sm); font-weight:700; color:var(--ink); }
.google-badge .g{ font-family:var(--font-display); font-weight:700; }
.google-badge .score{ color:#a9791a; }

/* ---------- FAQ ---------- */
.faq{ max-width:820px; margin-inline:auto; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; text-align:left; background:none; border:0; padding:1.25rem .25rem; display:flex; justify-content:space-between; gap:1rem; align-items:center; font-family:var(--font-text); font-weight:700; font-size:1.05rem; color:var(--ink); }
.faq-q .pm{ width:24px; height:24px; flex:0 0 auto; color:var(--brand); transition:transform .3s; }
.faq-item.open .faq-q .pm{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-a-inner{ padding:0 .25rem 1.3rem; color:var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band{ background:linear-gradient(120deg,var(--brand-700),var(--brand)); color:#fff; border-radius:var(--radius-lg); padding:clamp(2rem,5vw,3.5rem); position:relative; overflow:hidden; }
.cta-band .cta-burst{ position:absolute; right:-6%; bottom:-30%; width:340px; color:#fff; opacity:.14; }
.cta-band h2{ color:#fff; font-size:var(--fs-h2); max-width:20ch; position:relative; }
.cta-band p{ color:#cfe0ee; margin-top:.9rem; max-width:52ch; position:relative; }
.cta-band .cta-band-actions{ margin-top:1.6rem; display:flex; flex-wrap:wrap; gap:.8rem; position:relative; }

/* ---------- Form ---------- */
.form-wrap{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(1.5rem,3vw,2.4rem); box-shadow:var(--shadow); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem 1.1rem; }
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field.full{ grid-column:1 / -1; }
.field label{ font-weight:600; font-size:.9rem; color:var(--ink); }
.field label .req{ color:#d1495b; }
.field input,.field select,.field textarea{
  font:inherit; font-size:1rem; color:var(--ink); background:#fff; border:1.5px solid var(--line-strong);
  border-radius:11px; padding:.85rem .95rem; transition:border-color .2s, box-shadow .2s; width:100%;
}
.field textarea{ resize:vertical; min-height:110px; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 4px rgba(8,72,120,.12); }
.field .hint{ font-size:.8rem; color:var(--muted); }
.field .err{ font-size:.82rem; color:#d1495b; display:none; }
.field.invalid input,.field.invalid select{ border-color:#d1495b; }
.field.invalid .err{ display:block; }
.consent{ display:flex; gap:.65rem; align-items:flex-start; font-size:.88rem; color:var(--ink-2); }
.consent input{ width:20px; height:20px; margin-top:.15rem; flex:0 0 auto; accent-color:var(--brand); }
.form-note{ display:flex; gap:.5rem; align-items:center; font-size:.85rem; color:var(--muted); margin-top:.4rem; }
.form-note .ico{ width:16px; height:16px; color:var(--ok); }
.form-success{ display:none; text-align:center; padding:1rem; }
.form-success.show{ display:block; }
.form-success .ok-ico{ width:64px; height:64px; color:var(--ok); margin:0 auto 1rem; }

/* Ловушка для ботов: человек это поле не видит и не может сфокусировать.
   Не display:none — часть спам-роботов такие поля намеренно пропускает. */
.hp{ position:absolute !important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* Кнопка во время отправки */
.btn.is-loading{ pointer-events:none; opacity:.75; }
.btn.is-loading::before{
  content:""; width:1em; height:1em; margin-right:.55rem; border-radius:50%;
  border:2px solid currentColor; border-top-color:transparent; animation:btn-spin .7s linear infinite;
}
@keyframes btn-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .btn.is-loading::before{ animation-duration:2.4s; } }

/* Заявка не ушла — показываем честную ошибку и запасной канал связи */
.form-error{ display:none; margin-top:1rem; padding:1rem 1.1rem; border-radius:12px;
  background:#fdf1f3; border:1px solid #f0c4cb; color:#8f2233; font-size:.9rem; }
.form-error.show{ display:block; }
.form-error .btn{ margin-top:.85rem; }

/* ---------- Info / contact split ---------- */
.split{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(1.5rem,4vw,3.5rem); align-items:start; }
.contact-list{ display:grid; gap:1.1rem; margin-top:1.5rem; }
.contact-row{ display:flex; gap:.9rem; align-items:flex-start; }
.contact-row .ico{ width:42px; height:42px; flex:0 0 auto; color:var(--brand); background:var(--sky); border-radius:11px; padding:10px; }
.contact-row .c-l{ font-size:.82rem; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.contact-row .c-v{ font-weight:700; color:var(--ink); font-size:1.02rem; }
.contact-row a.c-v:hover{ color:var(--brand); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--brand-800); color:#a9c3d8; padding-top:clamp(3rem,6vw,4.5rem); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:2rem; padding-bottom:2.5rem; }
.footer-brand img{ height:46px; margin-bottom:1.1rem; filter:brightness(0) invert(1); }
.footer-brand p{ font-size:.92rem; color:#8fb0c9; max-width:34ch; }
.footer-col h4{ color:#fff; font-family:var(--font-text); font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; font-weight:700; margin-bottom:1rem; }
.footer-col a{ display:block; color:#a9c3d8; padding:.35rem 0; font-size:.94rem; transition:color .2s; }
.footer-col a:hover{ color:#fff; }
.footer-contact div{ margin-bottom:.7rem; font-size:.94rem; }
.footer-contact .lbl{ color:#6f93ad; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.footer-social{ display:flex; gap:.6rem; margin-top:1rem; }
.footer-social a{ width:40px; height:40px; border:1px solid rgba(255,255,255,.16); border-radius:10px; display:flex; align-items:center; justify-content:center; color:#cfe0ee; }
.footer-social a:hover{ background:rgba(255,255,255,.1); color:#fff; }
.footer-social svg{ width:19px; height:19px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding:1.5rem 0; display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; font-size:.84rem; color:#83a4bd; }
.footer-legal-name{ font-size:.8rem; color:#6f93ad; max-width:70ch; line-height:1.6; }
.footer-bottom a{ color:#a9c3d8; }
.footer-bottom a:hover{ color:#fff; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero{ position:relative; background:linear-gradient(180deg,var(--paper),var(--white)); padding-block:clamp(2.5rem,6vw,4.5rem); overflow:hidden; border-bottom:1px solid var(--line); }
.page-hero .hero-burst{ opacity:.35; }
.breadcrumb{ display:flex; gap:.5rem; align-items:center; font-size:.85rem; color:var(--muted); margin-bottom:1.1rem; }
.breadcrumb a{ color:var(--muted); }
.breadcrumb a:hover{ color:var(--brand); }
.page-hero h1{ font-size:var(--fs-h1); max-width:18ch; }
.page-hero .lead{ font-size:var(--fs-lead); color:var(--ink-2); max-width:56ch; margin-top:1.1rem; }

/* ---------- Treatment list (sub-pages) ---------- */
.treat-grid{ grid-template-columns:repeat(2,1fr); }
.treat{ display:flex; gap:1.1rem; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem; transition:box-shadow .3s, border-color .3s, transform .3s var(--ease); }
.treat:hover{ box-shadow:var(--shadow); transform:translateY(-3px); }
.treat-ico{ width:48px; height:48px; flex:0 0 auto; color:var(--brand); background:var(--sky); border-radius:12px; padding:11px; }
/* Карточка процедуры с фото вместо иконки */
.treat--photo .treat-photo{ width:clamp(84px,8.5vw,108px); aspect-ratio:1; flex:0 0 auto; border-radius:14px; overflow:hidden; background:var(--paper-2); }
.treat--photo .treat-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s var(--ease); }
.treat--photo:hover .treat-photo img{ transform:scale(1.07); }
.treat h3{ font-family:var(--font-text); font-weight:700; font-size:1.12rem; color:var(--ink); }
.treat p{ font-size:.94rem; color:var(--ink-2); margin-top:.4rem; }

/* ---------- Reveal animation (only when JS is active) ---------- */
.js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in{ opacity:1; transform:none; }
.js .reveal[data-d="1"]{ transition-delay:.08s; }
.js .reveal[data-d="2"]{ transition-delay:.16s; }
.js .reveal[data-d="3"]{ transition-delay:.24s; }
.js .reveal[data-d="4"]{ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none; }
  .btn:hover,.dir-card:hover,.doc:hover,.pkg:hover,.treat:hover{ transform:none; }
  .hero-burst,.spin{ animation:none !important; }
}

/* Slow spin for ambient burst */
@keyframes spin{ to{ transform:rotate(360deg); } }
.spin{ animation:spin 90s linear infinite; transform-origin:center; }

/* ---------- Word-by-word heading reveal ---------- */
.split-w{ display:inline-block; opacity:0; transform:translateY(.5em); transition:opacity .55s var(--ease), transform .55s var(--ease); will-change:transform,opacity; }
.split-w.in{ opacity:1; transform:none; }

/* ---------- 3D tilt + cursor glare on cards ---------- */
.dir-card, .pkg, .ba-photo, .doc, .treat, .feat{ transform-style:preserve-3d; }
.glare{ position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; z-index:6;
  transition:opacity .4s var(--ease);
  background:radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.5), rgba(255,255,255,0) 42%); }
.ba-photo .glare{ mix-blend-mode:soft-light; background:radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.8), rgba(255,255,255,0) 45%); }
.treat-ico{ transition:transform .45s var(--ease), background .3s; }
.treat:hover .treat-ico{ transform:translateY(-2px) scale(1.08) rotate(-4deg); background:#dcebf8; }
@media (prefers-reduced-motion: reduce){ .glare{ display:none; } .split-w{ opacity:1 !important; transform:none !important; } }

/* ---------- Utilities ---------- */
.muted{ color:var(--muted); }
.mt-0{ margin-top:0; } .mt-2{ margin-top:.5rem; } .mt-4{ margin-top:1rem; } .mt-6{ margin-top:2rem; }
.chiprow{ display:flex; flex-wrap:wrap; gap:.5rem; }
.chip{ font-size:.82rem; font-weight:600; color:var(--brand-700); background:var(--sky); border:1px solid var(--line); border-radius:999px; padding:.4rem .85rem; }
.prose p{ margin-bottom:1rem; max-width:70ch; } .prose p:last-child{ margin-bottom:0; }
.hide{ display:none !important; }

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .nav-menu{ gap:.1rem; }
  .nav-link{ font-size:.9rem; padding:.5rem .5rem; }
  .header-phone{ display:none; }
}
@media (max-width:960px){
  .desktop-only{ display:none !important; }
  .menu-toggle{ display:inline-flex; }
  .nav-menu{ display:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:2rem 1.5rem; }
  .split{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:repeat(2,1fr); gap:1.5rem 1.2rem; }
  .step::after{ display:none; }
}
@media (max-width:820px){
  .dir-grid,.pkg-grid,.feat-grid,.doc-grid,.ba-grid,.rev-grid,.treat-grid{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .hero-trust{ gap:1.2rem 1.8rem; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
  .trust-item{ min-width:44%; }
  .btn{ width:100%; }
  .hero-cta .btn, .cta-band-actions .btn{ width:100%; }
}


/* ---------- Prod hardening (accessibility) ---------- */
.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link{ position:absolute; left:1rem; top:-64px; z-index:200; background:var(--brand); color:#fff; padding:.75rem 1.15rem; border-radius:0 0 12px 12px; font-weight:700; box-shadow:var(--shadow); transition:top .2s var(--ease); }
.skip-link:focus{ top:0; outline:3px solid #fff; outline-offset:2px; }
/* 2-up doctor grid only on wider screens (never override the mobile collapse) */
@media (min-width:821px){ .doc-grid--2{ grid-template-columns:repeat(2,1fr); max-width:820px; margin-inline:auto; } }

/* ---------- Ссылка на Google Карты ---------- */
.map-link{
  display:flex; width:fit-content; align-items:center; gap:.45rem; margin-top:.85rem;
  padding:.5rem .95rem; border:1px solid var(--line-strong); border-radius:999px;
  background:#fff; color:var(--brand); font-weight:600; font-size:.88rem; min-height:40px;
  transition:background .25s var(--ease), border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
/* внутри блока контактов текст города — своей строкой, кнопка под ним */
.contact-row .c-v{ display:block; }
.map-link:hover{ background:var(--sky); border-color:var(--brand); transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.map-link .ico{ width:16px; height:16px; flex:0 0 auto; background:none; padding:0; border-radius:0; }
.map-link .arr{ width:15px; height:15px; flex:0 0 auto; transition:transform .25s var(--ease); }
.map-link:hover .arr{ transform:translateX(3px); }
.contact-row .map-link .ico{ width:16px; height:16px; color:var(--brand); }


/* ---------- Мобильная устойчивость раскладки ---------- */
/* Грид/флекс-элементы по умолчанию не сжимаются уже своего содержимого:
   из-за этого одно длинное слово распирало колонку за пределы экрана. */
.grid > *, .hero-inner > *, .split > *, .feat-grid > *, .treat-grid > *,
.dir-grid > *, .doc-grid > *, .pkg-grid > *, .steps > *, .ba-grid > *, .rev-grid > *{ min-width:0; }
/* Длинные слова переносятся, а не вылезают за край */
h1, h2, h3, h4, p, li, .doc-name, .doc-meta, .dir-desc, .treat p, .feat p,
.trust-item .l, .chip, .dir-tag, .doc-tag{ overflow-wrap:break-word; }
/* Страховка от горизонтальной прокрутки */
html{ overflow-x:hidden; }

/* Цифры-доверия на мобильном — ровная сетка 2 колонки вместо рваного flex */
@media (max-width:560px){
  .hero-trust{ display:grid; grid-template-columns:1fr 1fr; gap:1.3rem 1rem; }
  .trust-item{ min-width:0; }
  .trust-item .l{ max-width:none; }
}

/* ---------- Шапка на мобильном ---------- */
@media (max-width:700px){
  .nav{ gap:.6rem; }
  .brand{ flex:0 0 auto; }
  .brand img{ height:34px; max-width:none; }
  /* «Связаться» сжимается до круглой иконки — иначе бургер не влезает */
  .contact-btn{ width:44px; padding:0; justify-content:center; }
  .contact-btn > span:not(.ico){ display:none; }
  .contact-btn .ico{ width:20px; height:20px; }
  /* меню разворачивается на всю ширину под шапкой */
  .contact-menu{ position:fixed; top:64px; left:12px; right:12px; min-width:0; }
  .lang-btn{ padding:.45rem .55rem; }
}

/* 2 колонки только на широких экранах — на мобильном одна (было inline-стилем) */
.feat-grid--2{ grid-template-columns:1fr; }
@media (min-width:821px){ .feat-grid--2{ grid-template-columns:1fr 1fr; } }

/* Логотипы партнёров крупнее на мобильном */
@media (max-width:560px){
  .partners{ gap:1.8rem 1.6rem; padding:1.6rem 1.2rem; }
  .partners img:nth-child(1){ height:28px; }
  .partners img:nth-child(2){ height:44px; }
  .partners img:nth-child(3){ height:54px; }
  .partners img:nth-child(4){ height:50px; }
}
/* Логотип в шапке — крупнее и чётче (обрезаны пустые поля) */
.brand img{ height:42px; }
@media (max-width:700px){ .brand img{ height:38px; } }
.footer-brand img{ height:46px; }
