/* ==========================================================================
   Lumen Dental — Site styles (Russian marketing site)
   Editorial, warm serif, high-key photography.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-travertine);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* Russian likes slightly wider tracking in caps */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.page-max { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ---------- THEME VARS (controlled by Tweaks) ---------- */
:root {
  --accent: #3F7D74;          /* teal default */
  --accent-50: #EAF2F0;
  --accent-100: #D2E3DF;
  --accent-700: #2E5A54;
  --hero-variant: 'editorial';
  --card-cols: 3;
}

body.accent-amber {
  --accent: #C2864A;
  --accent-50: #F8EEDE;
  --accent-100: #F0DFBF;
  --accent-700: #8E5F31;
}
body.accent-ink {
  --accent: #1C1A17;
  --accent-50: #EAE5DC;
  --accent-100: #D8D0C1;
  --accent-700: #1C1A17;
}

/* ---------- NAV ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 247, 242, 0.78);
  border-bottom: 1px solid var(--border-1);
}
.nav {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  height: 72px;
}
.brand-mark {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--ink-1);
}
.brand-mark .bm-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-mark .bm-eyebrow {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);       /* was --ink-3 #8C857A — не проходил AA на светлом. */
  font-weight: 500;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 2px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}
.nav-links a:hover { color: var(--ink-1); }
.nav-links a.active {
  color: var(--ink-1);
  font-weight: 500;
}
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone {
  font-size: 13px; color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-phone:hover { color: var(--ink-1); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink-1); color: var(--surface-travertine); border-color: var(--ink-1); }
.btn-primary:hover { background: #2A2723; border-color: #2A2723; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-700); border-color: var(--accent-700); }
.btn-ghost { background: transparent; color: var(--ink-1); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: rgba(28,26,23,0.04); }
.btn-link { color: var(--accent-700); padding: 12px 2px; }  /* AA: --accent amber слишком светлый для текста */
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

.btn .arr {
  display: inline-block; width: 14px; height: 14px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .arr { transform: translateX(3px); }

/* ---------- EYEBROW WITH RULE ---------- */
.eyebrow-rule {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);  /* AA fix: --ink-3 #8C857A давал contrast < 4.5:1 на светлом */
}
.eyebrow-rule::before {
  content: ''; width: 28px; height: 1px;
  background: var(--accent);
}

/* ---------- SECTION ---------- */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--border-1);
}
.section.tight { padding: 80px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 32px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 16px 0 0;
  max-width: 18ch;
  color: var(--ink-1);
}
.section-head .lead {
  font-size: 16px; color: var(--ink-2); max-width: 36ch;
  margin: 0; line-height: 1.6;
}
.section-head h2 em,
.why-left h2 em,
.hero-editorial h1 em,
.sd-hero h1 em,
.about-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-700);
}

/* ---------- HERO ---------- */
.hero {
  padding: 40px 0 100px;
  position: relative;
}
.hero-bg {
  position: absolute; inset: 0 0 auto 0; height: 720px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #F8EFE1 0%, var(--surface-travertine) 70%);
  z-index: -1;
}
.hero-editorial {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
  min-height: 620px;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 0;
}
.hero-kicker { margin-bottom: 32px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 6.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--ink-1);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-700);
}
.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 0 40px;
}
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border-1);
  padding-top: 28px;
}
.hero-meta .m-k {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-1);
}
.hero-meta .m-l {
  font-size: 12px; color: var(--ink-2); margin-top: 8px;
  letter-spacing: 0.02em; line-height: 1.4;
}
.hero-right {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ECE4D6;
  min-height: 620px;
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 18px 20px;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px;
  align-items: center;
}
.hero-badge .hb-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-50);
  color: var(--accent-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
}
.hero-badge .hb-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink-1); }
.hero-badge .hb-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.hero-badge .hb-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink-1); color: var(--surface-travertine);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* ---------- CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--card-cols), 1fr);
  gap: 20px;
}
.svc-card {
  background: var(--surface-paper);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.svc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.svc-card .svc-img {
  aspect-ratio: 4/3;
  background: #ECE4D6;
  overflow: hidden;
  position: relative;
}
.svc-card .svc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-card .svc-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 500;
}
.svc-card-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-card .svc-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink-1);
  margin: 0;
}
.svc-card .svc-body {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.svc-card .svc-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; margin-top: 8px;
  border-top: 1px solid var(--border-1);
  font-size: 13px; color: var(--ink-2);
}
.svc-card .svc-price { color: var(--ink-1); font-weight: 500; }

/* ---------- WHY/STATS BLOCK ---------- */
.why-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why-left .lead {
  font-size: 18px; color: var(--ink-2); line-height: 1.55;
  max-width: 40ch;
}
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border-1); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-1); }
.why-stat {
  background: var(--surface-paper);
  padding: 32px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
  justify-content: space-between;
}
.why-stat .ws-val {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}
.why-stat .ws-val sup {
  font-size: 0.45em;
  color: var(--accent-700);
  margin-left: 4px;
  vertical-align: top;
}
.why-stat .ws-label {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 22ch;
}

/* ---------- BIG IMAGE STRIP ---------- */
.strip-img {
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin: 0 0 16px;
}
.strip-img img { width: 100%; height: 100%; object-fit: cover; }
.strip-caption {
  font-size: 13px; color: var(--ink-3);
  display: flex; justify-content: space-between;
  letter-spacing: 0.05em;
}

/* ---------- JOURNEY / STEPS ---------- */
.journey {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border-1);
}
.journey-row {
  display: grid;
  grid-template-columns: 80px 200px 1fr 48px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.journey-row:hover { background: rgba(28,26,23,0.02); }
.journey-row.open { background: var(--surface-linen); }
.jr-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.journey-row.open .jr-num { color: var(--accent-700); }
.jr-label {
  display: flex; align-items: center; gap: 16px;
}
.jr-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-50);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.jr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jr-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--ink-1); }
.jr-body {
  grid-column: 3 / 4;
  color: var(--ink-2); font-size: 15px; line-height: 1.55;
}
.jr-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-1);
  transition: all var(--dur-base) var(--ease-out);
}
.journey-row.open .jr-toggle { background: var(--ink-1); color: var(--surface-travertine); border-color: var(--ink-1); transform: rotate(45deg); }
.journey-detail {
  grid-column: 3 / 4;
  padding: 16px 0 12px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 56ch;
}
.journey-detail .btn { margin-top: 16px; }
/* FOUC guard: до инициализации JS скрываем detail у свёрнутых rows.
   JS (journey.js) ставит inline max-height/transition — после init inline
   перекрывает эти правила. Open row использует дефолтное состояние. */
.journey-row:not(.open) .journey-detail {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- REVIEWS ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 80px;
  gap: 24px;
  align-items: stretch;
  --reviews-visible: 3;
  --reviews-gap: 24px;
}
.reviews-viewport {
  overflow: hidden;
  min-width: 0;
  align-self: stretch;
}
.reviews-track {
  display: flex;
  gap: var(--reviews-gap);
  transition: transform 420ms cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
  height: 100%;
}
.reviews-track > .review-card {
  flex: 0 0 calc((100% - (var(--reviews-visible) - 1) * var(--reviews-gap)) / var(--reviews-visible));
  min-width: 0;
}
.reviews-score {
  background: var(--surface-paper);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.reviews-score .rs-val {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-1);
}
.reviews-score .rs-val small { font-size: 0.5em; color: var(--ink-3); }
.reviews-score .rs-label {
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
  margin-top: 8px;
}
.review-card {
  background: var(--surface-paper);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
/* HTML `hidden` attribute must win over .review-card { display: flex }.
   Без этого reviews.js (card.hidden=true) не скрывает карточки,
   и grid с 5-колоночным шаблоном получает 7 grid-items вместо 5. */
.review-card[hidden] { display: none; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden;
  background: var(--accent-50);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 500; font-size: 14px; }
.review-meta { font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; }
.review-stars { display: flex; gap: 2px; color: var(--accent); font-size: 13px; }
.review-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-1);
  margin: 0;
}
.review-nav {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.review-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--ink-1);
  display: flex; align-items: center; justify-content: center;
}
.review-nav button:hover { background: var(--ink-1); color: var(--surface-travertine); border-color: var(--ink-1); }
.review-nav button:disabled,
.review-nav button[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--ink-1);
  border-color: var(--border-2);
}

/* ---------- BOOKING STRIP ---------- */
.booking {
  background: var(--surface-ink);
  color: var(--ink-inv);
  border-radius: 24px;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.booking h2 { color: var(--ink-inv); margin: 16px 0 20px; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.015em; }
.booking .eyebrow { color: var(--ink-4); }
.booking .lead { color: #BDB6AB; max-width: 40ch; font-size: 16px; }
.booking-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 28px;
}
.bf-row { margin-bottom: 20px; }
.bf-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #BDB6AB; margin-bottom: 10px; display: block;
}
.bf-select, .bf-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--ink-inv);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 6px;
}
/* Native <option> inherits transparent bg из .bf-select — в открытом dropdown
   получается светлый текст на белом фоне ОС. Задаём явные цвета для читабельности. */
.bf-select option {
  background: var(--surface-ink);
  color: var(--ink-inv);
}
.bf-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-slot {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--ink-inv);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font-body);
  transition: all var(--dur-fast) var(--ease-out);
}
.bf-slot:hover { border-color: rgba(255,255,255,0.45); }
.bf-slot.sel { background: var(--surface-travertine); color: var(--ink-1); border-color: var(--surface-travertine); }
.bf-submit {
  width: 100%;
  margin-top: 4px;
  padding: 16px; border-radius: 8px;
  background: var(--surface-travertine);
  color: var(--ink-1);
  border: none;
  font-weight: 500;
  font-size: 15px;
  transition: background var(--dur-fast) var(--ease-out);
}
.bf-submit:hover { background: #fff; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--surface-ink);
  color: var(--ink-inv);
  margin-top: 0;
  border-top: 1px solid var(--accent-700);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 40px 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
}
.footer-brand .bm-word { color: var(--ink-inv); font-family: var(--font-display); font-size: 32px; font-weight: 500; display: block; margin-bottom: 6px; }
.footer-brand .bm-eyebrow { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: #8C857A; }
.footer-brand p {
  font-size: 14px; line-height: 1.7; color: #BDB6AB;
  margin: 28px 0 0;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.foot-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #8C857A; margin-bottom: 18px;
}
.footer-cols a {
  display: block; font-size: 14px;
  color: var(--ink-inv); text-decoration: none;
  padding: 5px 0;
  opacity: 0.85;
}
.footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  max-width: 1280px; margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px; color: #8C857A;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- SERVICES PAGE ---------- */
.svc-hero {
  padding: 80px 0 60px;
}
.svc-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 24px 0 32px;
  max-width: 18ch;
}
.svc-hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-700); }
.svc-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 48ch; margin: 0; }

.svc-filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 48px;
}
.svc-filter-btn {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.svc-filter-btn:hover { color: var(--ink-1); border-color: var(--ink-1); }
.svc-filter-btn.on { background: var(--ink-1); color: var(--surface-travertine); border-color: var(--ink-1); }

/* ---------- SERVICE DETAIL PAGE ---------- */
.sd-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 40px 0 80px;
  align-items: center;
}
.sd-hero-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #ECE4D6;
}
.sd-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-crumbs {
  font-size: 12px; color: var(--ink-2);   /* AA fix */
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.sd-crumbs a { color: var(--ink-2); text-decoration: none; cursor: pointer; }  /* AA fix */
.sd-crumbs a:hover { color: var(--ink-1); }
.sd-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.sd-hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-700); }
.sd-hero .lead {
  font-size: 18px; color: var(--ink-2); max-width: 40ch;
  margin: 0 0 32px;
  line-height: 1.55;
}
.sd-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 28px;
  border-top: 1px solid var(--border-1);
}
.sd-specs .s-k {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 500; line-height: 1;
  margin-bottom: 6px;
}
.sd-specs .s-l {
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
}

.sd-two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.sd-two-col h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
}
.sd-two-col h2 em { font-style: italic; font-weight: 400; color: var(--accent-700); }
.sd-two-col .r-body {
  font-size: 16.5px; color: var(--ink-2); line-height: 1.65;
  max-width: 60ch;
}
.sd-two-col .r-body p { margin: 0 0 18px; }
.sd-list { list-style: none; padding: 0; margin: 0; }
.sd-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border-1);
  display: grid; grid-template-columns: 24px 1fr;
  gap: 14px; align-items: start;
  font-size: 15.5px; color: var(--ink-1); line-height: 1.5;
}
.sd-list li:last-child { border-bottom: 1px solid var(--border-1); }
.sd-list .tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface-paper);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.step-n {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 500; line-height: 1;
  color: var(--accent);
}
.step-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--ink-1); margin: 0; }
.step-body { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; flex: 1; }
.step-dur { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); padding-top: 12px; border-top: 1px solid var(--border-1); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 12px;
}
.gallery-img {
  border-radius: 12px;
  overflow: hidden;
  background: #ECE4D6;
  position: relative;
}
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-img:nth-child(1) { grid-row: 1 / 3; }
.gallery-cap {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 500;
}

/* FAQ */
.faq-list { border-top: 1px solid var(--border-1); }
.faq-item {
  border-bottom: 1px solid var(--border-1);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: grid; grid-template-columns: 1fr 32px;
  gap: 16px; align-items: center;
}
.faq-q h3, .faq-q h4 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.3; margin: 0; color: var(--ink-1); }
.faq-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-1);
  transition: all var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { background: var(--ink-1); color: var(--surface-travertine); border-color: var(--ink-1); transform: rotate(45deg); }
.faq-a {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
  padding-top: 14px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* Pricing */
.price-table {
  background: var(--surface-paper);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
}
.price-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-1);
  align-items: center;
}
.price-row:last-child { border-bottom: none; }
.price-row.head {
  background: var(--surface-linen);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.price-row .p-name { font-family: var(--font-display); font-size: 19px; color: var(--ink-1); }
.price-row .p-name small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0; text-transform: none; }
.price-row .p-val { font-family: var(--font-display); font-size: 22px; color: var(--ink-1); font-weight: 500; }
.price-row .p-val small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

/* Related cards (smaller) */
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  padding: 60px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 14ch;
}
.about-hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-700); }
.about-hero .about-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--ink-2);
  max-width: 32ch;
}
.about-big-img {
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}
.about-big-img img { width: 100%; height: 100%; object-fit: cover; }
.about-big-img .tag {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.story-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.story-cols .story-body p {
  font-size: 17px;
  color: var(--ink-1);
  line-height: 1.7;
  margin: 0 0 20px;
}
.story-cols .story-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  float: left;
  line-height: 0.9;
  margin: 4px 12px 0 0;
  color: var(--accent-700);
  font-weight: 400;
}
.story-cols .story-body p.lead-q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  line-height: 1.4;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  display: flex; flex-direction: column; gap: 20px;
}
.team-photo {
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #F8EFE1, #ECE4D6);
  position: relative;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.08) saturate(0.95) brightness(1.02) contrast(0.96); mix-blend-mode: multiply; }
.team-photo::before { content:''; position:absolute; inset:0; background: linear-gradient(160deg, rgba(248,239,225,0.22), rgba(236,228,214,0.18)); pointer-events:none; z-index:1; }
.team-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.1; margin: 0; }
.team-role { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.team-bio { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.team-credentials {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.team-credentials span {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border-1);
  border-radius: 999px;
  color: var(--ink-2);
}

/* Clinic space grid */
.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.clinic-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-paper);
  border: 1px solid var(--border-1);
  display: flex; flex-direction: column;
}
.clinic-card .cc-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ECE4D6;
}
.clinic-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.clinic-card .cc-body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.clinic-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.2; margin: 0; }
.clinic-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }

.equipment-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.equipment-list li {
  padding: 20px 24px;
  border-top: 1px solid var(--border-1);
  list-style: none;
  font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.equipment-list li strong { font-weight: 500; }
.equipment-list li span { color: var(--ink-3); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.equipment-list { border-bottom: 1px solid var(--border-1); }

/* ---------- CONTACTS PAGE ---------- */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 60px 0;
}
.contacts-layout h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 20px 0 20px;
  max-width: 12ch;
}
.contacts-layout h1 em { font-style: italic; font-weight: 400; color: var(--accent-700); }
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.contact-block h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 500;
}
.contact-block p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink-1);
  margin: 0;
  font-weight: 400;
}
.contact-block a { color: var(--ink-1); text-decoration: none; }
.contact-block a:hover { color: var(--accent-700); text-decoration: underline; text-underline-offset: 3px; }
.contact-block small {
  display: block; font-size: 13px; color: var(--ink-2);
  font-family: var(--font-body);
  margin-top: 6px; line-height: 1.5;
}

.map-card {
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--surface-linen);
}
.map-card img { width: 100%; height: 100%; object-fit: cover; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map-pin .pin-dot {
  width: 18px; height: 18px;
  background: var(--ink-1);
  border: 3px solid var(--surface-travertine);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.map-pin .pin-tail {
  width: 1px; height: 32px; background: var(--ink-1);
}
.map-pin-card {
  position: absolute;
  top: 28px; left: 28px;
  background: var(--surface-paper);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-md);
  width: 260px;
}
.map-pin-card h4 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 0 0 6px; line-height: 1.2; }
.map-pin-card p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }

.contact-form {
  background: var(--surface-paper);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  align-items: start;
}
.contact-form > .cf-head { grid-column: 1 / -1; }
.contact-form > .cf-row { grid-column: 1 / -1; }
.contact-form > .cf-field.full { grid-column: 1 / -1; }
.contact-form > .cf-submit { grid-column: 1 / -1; justify-self: start; min-width: 240px; padding: 16px 28px; }
.contact-form > small { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form > .cf-submit { justify-self: stretch; }
}
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.cf-field input, .cf-field textarea, .cf-field select {
  width: 100%;
  background: var(--surface-travertine);
  border: 1px solid var(--border-1);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-1);
  font: inherit;
}
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: transparent;
}
.cf-field textarea { min-height: 120px; resize: vertical; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-submit {
  background: var(--ink-1);
  color: var(--surface-travertine);
  border: none;
  padding: 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.cf-submit:hover { background: #2A2723; }

.hours-table {
  list-style: none; padding: 0; margin: 20px 0 0;
}
.hours-table li {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-1);
  font-size: 14px;
}
.hours-table li:first-child { border-top: 1px solid var(--border-1); }
.hours-table li span:first-child { color: var(--ink-2); }
.hours-table li span:last-child { color: var(--ink-1); font-weight: 500; }

/* ---------- MOBILE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-editorial, .why-block, .sd-hero, .sd-two-col,
  .booking, .about-hero, .story-cols, .contacts-layout, .cards-grid,
  .team-grid, .clinic-grid, .steps-grid, .related-grid, .hero-meta,
  .sd-specs, .why-stats, .gallery-grid, .footer-inner, .footer-cols,
  .equipment-list { grid-template-columns: 1fr !important; gap: 28px; }
  .page-max { padding: 0 20px; }
  .section { padding: 72px 0; }
  .booking { padding: 40px 28px; }
  .reviews-grid { grid-template-columns: 1fr; --reviews-visible: 1; }
  .journey-row { grid-template-columns: 1fr; gap: 12px; }
  .jr-body { grid-column: 1; }
  .journey-detail { grid-column: 1; }
  .price-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- MOBILE NAV ---------- */

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-1);
  transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out);
}

@media (max-width: 960px) {
  .nav-burger {
    display: inline-flex;
  }
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
  z-index: 80;
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 420px;
  height: 100vh;
  background: var(--surface-travertine);
  padding: 72px 28px 32px;
  box-shadow: -24px 0 48px rgba(28, 26, 23, 0.15);
  transform: translateX(100%);
  transition: transform 320ms var(--ease-out);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-1);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-mobile-links a {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.5;
  padding: 8px 0;
  color: var(--ink-1);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.nav-mobile-links a:hover {
  color: var(--accent);
}

.nav-mobile-contacts {
  margin-top: auto;
  border-top: 1px solid var(--border-1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-mobile-phone {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-1);
  text-decoration: none;
}

.nav-mobile-contacts small {
  color: var(--ink-2);
  font-size: 13px;
}

/* lock body scroll когда меню открыто */
html.nav-locked,
html.nav-locked body {
  overflow: hidden;
}
