/* ============================================================
   Smilio — стоматология. Общие стили (все страницы).
   Палитра: приглушённый dusty teal. Тема: светлая премиум-клиника.
   ============================================================ */

:root {
  --accent: #4f9b8e;          /* приглушённый dusty teal — базовый акцент */
  --accent-bright: #6fbfae;   /* чуть ярче — точечные акценты */
  --accent-ink: #3d7a70;      /* тёмный вариант акцента — текст на светлом */
  --accent-soft: #eef6f3;     /* тихая мятная заливка */
  --accent-cta: #17876f;      /* насыщенный teal — ТОЛЬКО главная CTA-кнопка */
  --accent-cta-hover: #1ea184;/* ярче на hover */
  --bg: #fbfaf8;              /* тёплый off-white */
  --surface: #ffffff;
  --ink: #16211f;             /* глубокий тёмно-зелёный slate */
  --ink-soft: #5c6b68;        /* приглушённый текст */
  --line: #e9e6e0;
  --gold: #c8a86a;
  --shadow: 0 20px 50px -24px rgba(22, 33, 31, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(22, 33, 31, 0.25);
  --r: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fh: "Fraunces", Georgia, serif;
  --fb: "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--fh); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
svg { display: block; flex-shrink: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fraunces не содержит глиф ₽ — знак рубля рисуем шрифтом Manrope */
.rub { font-family: var(--fb); font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-cta); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--fb); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: none; transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), background 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent-cta); color: #fff; box-shadow: 0 12px 28px -10px rgba(23,135,111,0.55); }
.btn-primary:hover { background: var(--accent-cta-hover); transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 36px -10px rgba(23,135,111,0.7); }
.btn-primary:active { transform: translateY(1px) scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); transform: translateY(-2px) scale(1.02); }
.btn-ghost:active { transform: translateY(1px) scale(0.98); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Top strip ---------- */
.topbar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.topbar .wrap { display: flex; gap: 26px; align-items: center; padding: 9px 0; flex-wrap: wrap; }
.topbar .item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .item svg { width: 15px; height: 15px; color: var(--accent-ink); }
.topbar strong { color: var(--ink); font-weight: 600; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 30; background: rgba(251,250,248,0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--fh); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 18px; height: 18px; }

nav.main { display: flex; gap: 30px; font-weight: 500; font-size: 0.96rem; }
nav.main a {
  position: relative; color: var(--ink-soft); padding: 4px 1px; transition: color 0.22s var(--ease);
}
nav.main a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -4px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}
nav.main a:hover, nav.main a:focus-visible, nav.main a.active { color: var(--ink); }
nav.main a:hover::after, nav.main a:focus-visible::after, nav.main a.active::after { left: 0; right: 0; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.phone { font-family: var(--fb); font-weight: 600; font-size: 0.98rem; color: var(--ink); white-space: nowrap; transition: color 0.2s var(--ease); }
.phone:hover, .phone:focus-visible { color: var(--accent-ink); }

/* ---------- Burger / mobile menu ---------- */
.burger {
  display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.burger:hover { border-color: var(--accent); background: var(--accent-soft); }
.burger svg { width: 22px; height: 22px; }
.burger .ico-close { display: none; }
.burger[aria-expanded="true"] .ico-open { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; }

.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw); z-index: 40;
  background: var(--surface); box-shadow: -20px 0 60px -20px rgba(22,33,31,0.35);
  transform: translateX(100%); transition: transform 0.34s var(--ease);
  display: flex; flex-direction: column; padding: 26px 24px; gap: 6px;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav a.mnav-link {
  font-family: var(--fh); font-weight: 600; font-size: 1.2rem; color: var(--ink);
  padding: 12px 10px; border-radius: 12px; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mobile-nav a.mnav-link:hover, .mobile-nav a.mnav-link.active { background: var(--accent-soft); color: var(--accent-ink); }
.mobile-nav .mnav-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.mobile-nav .mnav-foot .phone { font-size: 1.1rem; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 39; background: rgba(22,33,31,0.4);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-overlay.open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(79,155,142,0.11), transparent 65%); filter: blur(20px); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 72px 0 84px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 7px 15px; border-radius: 999px; }
.eyebrow svg { width: 13px; height: 13px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 22px 0 0; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin: 24px 0 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 0.95rem; color: var(--ink-soft); flex-wrap: wrap; }
.hero-meta b { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 19px; height: 19px; color: var(--gold); }
.rating-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--ink); font-weight: 700; font-size: 1rem; padding: 3px 10px; border-radius: 999px; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.float-card:hover, .float-card:focus-visible {
  transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent);
}
.float-card:hover .fc-ico, .float-card:focus-visible .fc-ico { background: var(--accent); color: #fff; }
.fc-ico { transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.float-card.top { top: 26px; left: -26px; display: flex; align-items: center; gap: 12px; }
.float-card.bot { bottom: 28px; right: -22px; display: flex; align-items: center; gap: 12px; }
.fc-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.fc-ico svg { width: 22px; height: 22px; }
.fc-num { font-family: var(--fh); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.fc-label { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.trust-item { text-align: center; }
.trust-item b { display: block; font-family: var(--fh); font-weight: 700; font-size: 2.2rem; color: var(--ink); }
.trust-item span { font-size: 0.92rem; color: var(--ink-soft); }
.trust-item b em { color: var(--accent-ink); font-style: normal; }
.trust-item { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.trust.counted .trust-item { opacity: 1; transform: none; }
.trust.counted .trust-item:nth-child(1) { transition-delay: 0.05s; }
.trust.counted .trust-item:nth-child(2) { transition-delay: 0.18s; }
.trust.counted .trust-item:nth-child(3) { transition-delay: 0.31s; }
.trust.counted .trust-item:nth-child(4) { transition-delay: 0.44s; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--accent-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--accent-soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-photo img, .card:focus-visible .card-photo img { transform: scale(1.06); }
.card-ico {
  position: absolute; top: -27px; left: 26px; z-index: 2;
  width: 54px; height: 54px; border-radius: 15px; background: var(--surface); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform 0.32s var(--ease);
}
.card-ico svg { width: 27px; height: 27px; }
.card:hover .card-ico, .card:focus-visible .card-ico { transform: scale(1.08) rotate(-4deg); }
.card-body { position: relative; padding: 40px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin: 10px 0 18px; }
.card .price { display: flex; align-items: center; font-family: var(--fh); font-weight: 600; color: var(--ink); font-size: 1.05rem; margin-top: auto; }
.card .price small { color: var(--ink-soft); font-weight: 400; font-family: var(--fb); font-size: 0.82rem; margin-left: 4px; }
.card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line); color: var(--accent-ink); font-weight: 600; font-size: 0.92rem;
}
.card-more svg { width: 16px; height: 16px; transition: transform 0.24s var(--ease); }
.card:hover .card-more svg, .card:focus-visible .card-more svg { transform: translateX(4px); }

/* ---------- Раскрывающиеся карточки услуг (Ещё направления) ---------- */
.card--expandable { cursor: default; }
.card-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; color: inherit;
}
.card-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line); color: var(--accent-ink); font-weight: 600; font-size: 0.92rem; width: 100%;
}
.card-toggle .chev { width: 16px; height: 16px; margin-left: auto; transition: transform 0.3s var(--ease); }
.card--expandable.open .card-toggle .chev { transform: rotate(180deg); }
.card-expand { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.card-expand-inner {
  list-style: none; padding: 4px 26px 26px; display: flex; flex-direction: column; gap: 10px;
}
.card-expand-inner li {
  position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.5;
}
.card-expand-inner li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent); box-sizing: border-box;
}

/* ---------- Feature grid (Почему выбирают) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
/* Информационные карточки (оборудование) — не кликабельны, без ложного hover-лифта */
.features--static .feature { cursor: default; }
.features--static .feature:hover { transform: none; box-shadow: none; border-color: var(--line); }
.feature .f-ico {
  width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature .f-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; }
.feature p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 8px; }

/* ---------- Doctors ---------- */
.doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doctor {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.doctor:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.doctor-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--accent-soft); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.doctor:hover .doctor-photo img { transform: scale(1.05); }
.doctor-body { padding: 22px 24px 26px; }
.doctor h3 { font-size: 1.25rem; }
.doctor .role { color: var(--accent-ink); font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.doctor .exp { color: var(--ink-soft); font-size: 0.9rem; margin-top: 10px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.review .stars svg { width: 17px; height: 17px; }
.review p { color: var(--ink); font-size: 1rem; line-height: 1.6; }
.review .r-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .r-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #fff; display: grid; place-items: center; font-family: var(--fh); font-weight: 700; }
.review .r-name { font-weight: 700; font-size: 0.96rem; }
.review .r-meta { color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease); }
.faq-item:hover { border-color: var(--accent); }
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--fb); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .chev { width: 22px; height: 22px; color: var(--accent-ink); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Final CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #16403a, #1d5b4f); color: #fff; border-radius: 28px; padding: 60px 56px; }
.cta-band::before {
  content: ""; position: absolute; top: -140px; right: -100px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(111,191,174,0.35), transparent 65%); filter: blur(30px); pointer-events: none;
}
.cta-band .cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); margin-top: 12px; font-size: 1.08rem; max-width: 46ch; }
.cta-band .btn-white { background: #fff; color: var(--accent-cta); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4); }
.cta-band .btn-white:hover { background: #f2fbf8; transform: translateY(-2px) scale(1.02); }

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: 56px 0; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs .sep { color: var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 14px; max-width: 58ch; }

/* ---------- Service detail rows (uslugi) ---------- */
.svc-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; scroll-margin-top: 100px; }
.svc-row + .svc-row { margin-top: 64px; }
.svc-row.flip .svc-media { order: 2; }
.svc-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.svc-copy .eyebrow { margin-bottom: 16px; }
.svc-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.svc-copy > p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }
.svc-list { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.svc-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 0.98rem; }
.svc-list .tick { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.svc-list .tick svg { width: 13px; height: 13px; }
.svc-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.svc-price { font-family: var(--fh); font-weight: 600; font-size: 1.4rem; }
.svc-price small { display: block; font-family: var(--fb); font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- About story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; scroll-margin-top: 100px; }
.story.flip .story-media { order: 2; }
.story-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.story-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.story-copy .eyebrow { margin-bottom: 16px; }
.story-copy p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 16px; }
.mini-stats { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.mini-stats b { display: block; font-family: var(--fh); font-weight: 700; font-size: 2rem; color: var(--accent-ink); }
.mini-stats span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.info-item .i-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.info-item .i-ico svg { width: 22px; height: 22px; }
.info-item h3 { font-family: var(--fb); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; }
.info-item .i-val { font-size: 1.05rem; font-weight: 600; margin-top: 4px; color: var(--ink); }
.info-item .i-val a:hover { color: var(--accent-ink); }
.info-item .i-sub { font-size: 0.88rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Form ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 32px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.6rem; }
.form-card > p { color: var(--ink-soft); margin-top: 10px; font-size: 0.98rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--fb); font-size: 0.98rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { transition: color 0.2s var(--ease); }
.field input:hover, .field textarea:hover, .field .select-trigger:hover {
  border-color: var(--accent-bright);
}
.field input:focus, .field textarea:focus, .field select:focus,
.field .select-fancy.open .select-trigger, .field .select-trigger:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,155,142,0.16), var(--shadow-sm);
}
.field:focus-within label, .field .select-fancy.open ~ .field-label { color: var(--accent-ink); }
.field.has-focus label { color: var(--accent-ink); }
.field.is-error input, .field.is-error textarea, .field.is-error select,
.field.is-error .select-trigger { border-color: #d1495b; box-shadow: 0 0 0 3px rgba(209,73,91,0.12); }
.field.is-error label { color: #d1495b; }

/* ---------- Кастомный select (услуга) ---------- */
.select-fancy { position: relative; }
.select-fancy__native {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; cursor: pointer; text-align: left;
  font-family: var(--fb); font-size: 0.98rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 1.15rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.select-trigger .st-chev {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-ink);
  transition: transform 0.28s var(--ease);
}
.select-fancy.open .select-trigger .st-chev { transform: rotate(180deg); }
.select-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; margin: 0; list-style: none;
  max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top;
  pointer-events: none; visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.select-fancy.open .select-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.select-panel::-webkit-scrollbar { width: 8px; }
.select-panel::-webkit-scrollbar-track { background: transparent; }
.select-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--surface); }
.select-panel::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }
.select-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0.62rem 0.8rem; border-radius: 9px; font-size: 0.96rem; color: var(--ink);
  cursor: pointer; transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.select-option .so-tick { width: 16px; height: 16px; color: var(--accent-ink); opacity: 0; transition: opacity 0.15s var(--ease); }
.select-option:hover, .select-option.active { background: var(--accent-soft); color: var(--accent-ink); }
.select-option[aria-selected="true"] { color: var(--accent-ink); font-weight: 600; }
.select-option[aria-selected="true"] .so-tick { opacity: 1; }
.field .err-msg { font-size: 0.82rem; color: #d1495b; min-height: 0; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.2s var(--ease); }
.field.is-error .err-msg { opacity: 1; max-height: 40px; }
.form-consent { font-size: 0.82rem; color: var(--ink-soft); margin-top: 16px; }
.form-consent a { color: var(--accent-ink); text-decoration: underline; }
.form-actions { margin-top: 22px; }
.form-actions .btn { width: 100%; }

/* ---------- Map ---------- */
.map-wrap { margin-top: 26px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(0.15); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: rgba(255,255,255,0.72); padding: 60px 0 30px; margin-top: 0; }
footer.site .f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
footer.site .logo { color: #fff; margin-bottom: 16px; }
footer.site .f-about { font-size: 0.92rem; line-height: 1.7; max-width: 34ch; }
footer.site h4 { font-family: var(--fb); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); font-weight: 700; margin-bottom: 16px; }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
footer.site ul a { font-size: 0.94rem; color: rgba(255,255,255,0.72); transition: color 0.2s var(--ease); }
footer.site ul a:hover { color: var(--accent-bright); }
footer.site .f-contact { font-size: 0.94rem; display: flex; flex-direction: column; gap: 11px; }
footer.site .f-contact a:hover { color: var(--accent-bright); }
footer.site .f-contact strong { color: #fff; }
footer.site .f-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 0.85rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; }
footer.site .f-bottom a:hover { color: var(--accent-bright); }

/* ---------- Toast ---------- */
.toast-host { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 0.94rem; font-weight: 500;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(14px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--accent-bright); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.loader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader__mark {
  width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 18px 40px -14px rgba(79,155,142,0.6);
  animation: loaderPulse 1.4s var(--ease) infinite;
}
.loader__mark svg { width: 38px; height: 38px; }
.loader__bar { width: 132px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.loader__bar::after {
  content: ""; display: block; width: 40%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  animation: loaderSlide 1.1s var(--ease) infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 18px 40px -14px rgba(79,155,142,0.55); }
  50% { transform: scale(1.08); box-shadow: 0 22px 50px -12px rgba(79,155,142,0.75); }
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(330%); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding: 48px 0 60px; }
  .hero-visual { max-width: 460px; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .cards { grid-template-columns: 1fr; }
  .doctors { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .svc-row, .story, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-row.flip .svc-media, .story.flip .story-media { order: 0; }
  nav.main, .nav-cta .phone, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .cta-band { padding: 44px 32px; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .features, .doctors { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  footer.site .f-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .float-card.top { left: 0; }
  .float-card.bot { right: 0; }
  .topbar .item.hide-sm { display: none; }
  footer.site .f-top { grid-template-columns: 1fr; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .trust-item { opacity: 1; transform: none; }
  .loader__mark, .loader__bar::after { animation: none; }
}
