/* Layout: молочная основа, крупный портрет справа, растворяющийся в фоне;
   тонкие золотые дуги как сквозной мотив; тёмно-коричневая полоса записи. */
:root {
  --milk: #fbf7f2;
  --milk-2: #f6efe6;
  --ivory: #f2e9dd;
  --sand: #e7d8c3;
  --line: #e6d8c5;
  --white: #ffffff;
  --gold: #b88a4f;
  --gold-light: #d9b98a;
  --gold-deep: #8b6233;
  --cocoa: #3a281b;
  --text: #5b4637;
  --muted: #86715f;
  --band-1: #8f6c49;
  --band-2: #5b402b;
  --ok: #3f6f45;
  --err: #a2452f;

  --f-display: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Типографическая шкала (мобильный → десктоп) */
  --fs-xs: .8125rem;                                   /* 13px — подписи, бейджи */
  --fs-sm: .9375rem;                                   /* 15px — вторичный текст */
  --step-0: clamp(1rem, .97rem + .12vw, 1.0625rem);    /* 16→17px — основной текст */
  --step-1: clamp(1.0625rem, 1.01rem + .22vw, 1.1875rem); /* 17→19px — лид */
  --step-2: clamp(1.125rem, 1.07rem + .24vw, 1.3125rem);  /* 18→21px — заголовки карточек */
  --step-3: clamp(1.625rem, 1.36rem + 1.05vw, 2.375rem);  /* 26→38px — заголовки разделов */
  --step-4: clamp(2rem, 1.56rem + 1.75vw, 3rem);          /* 32→48px — заголовки внутренних страниц */
  --step-5: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);       /* 36→56px — главный заголовок */

  /* Отступы */
  --gap: 16px;
  --gap-lg: 24px;
  --section-y: clamp(56px, 6.5vw, 96px);
  --head-mb: clamp(28px, 3vw, 40px);

  /* Скругления */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(58, 40, 27, .04), 0 18px 40px -24px rgba(58, 40, 27, .35);
  --shadow-soft: 0 14px 34px -22px rgba(58, 40, 27, .4);
  --btn-grad: linear-gradient(135deg, #c9a067 0%, #a87842 55%, #8b6233 100%);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--milk);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--milk); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cocoa); color: var(--milk); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--cocoa); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -.012em; }
h2 { font-size: var(--step-3); line-height: 1.14; letter-spacing: -.008em; }
h3 { font-size: var(--step-2); line-height: 1.25; }
p, li, dd, figcaption, label { text-wrap: pretty; }
p { margin: 0; }

.container {
  --pad: 24px;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) { .container { --pad: 20px; } }
@media (max-width: 359px) { .container { --pad: 16px; } }

.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--ivory { background: var(--milk-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); flex: none; }
.eyebrow--plain::before { display: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: var(--head-mb); }
.section-head > div { display: grid; gap: 12px; max-width: 720px; }
.section-head .lead { margin-top: 2px; }
.section-head .lead { color: var(--muted); }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--cocoa); background: none; border: 0; padding: 0; cursor: pointer; }
.link-arrow span { border-bottom: 1px solid var(--gold-light); padding-bottom: 2px; transition: border-color .25s; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s; }
.link-arrow:hover span { border-color: var(--gold-deep); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Buttons */
.btn {
  --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; line-height: 1.2; letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--btn-grad); color: var(--white); box-shadow: 0 10px 22px -14px rgba(139, 98, 51, .8), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -16px rgba(139, 98, 51, .9), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--ghost { background: rgba(255,255,255,.6); border-color: var(--gold-light); color: var(--cocoa); }
.btn--ghost:hover { background: var(--white); border-color: var(--gold); }
.btn--sm { min-height: 44px; --pad-x: 20px; font-size: .875rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 247, 242, .82);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(251, 247, 242, .94); border-color: var(--line); box-shadow: 0 8px 24px -22px rgba(58,40,27,.6); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cocoa); flex: none; min-height: 44px; }
.logo .icon { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.3; }
.logo-text { display: grid; line-height: 1.12; padding-left: 14px; border-left: 1px solid var(--gold-light); font-weight: 600; letter-spacing: .08em; font-size: .8125rem; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 12px 13px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--text); position: relative; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.main-nav a:hover { color: var(--cocoa); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--cocoa); font-weight: 600; }

.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--cocoa); white-space: nowrap; min-height: 44px; }
.header-phone .icon { width: 19px; height: 19px; color: var(--gold-deep); }

.round-btn { display: none; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--white); align-items: center; justify-content: center; cursor: pointer; color: var(--cocoa); text-decoration: none; }
.round-btn .icon { width: 20px; height: 20px; }
.round-btn--gold { background: var(--btn-grad); border-color: transparent; color: var(--white); }

.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--milk); display: flex; flex-direction: column; overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(20px, env(safe-area-inset-left, 0px));
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .3s; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mobile-menu-top .round-btn { display: inline-flex; }
.mobile-menu nav { margin-top: 18px; flex: 1; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.375rem; color: var(--cocoa); text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--gold-deep); }
.mobile-menu nav a .icon { width: 20px; height: 20px; color: var(--gold); }
.mobile-menu-foot { display: grid; gap: 12px; padding-top: 24px; }
.mobile-menu-foot .btn { width: 100%; }
.messengers { display: flex; gap: 12px; flex-wrap: wrap; }
.messengers .btn { flex: 1 1 140px; }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .main-nav, .header-cta { display: none; }
  .header-actions { margin-left: auto; display: flex; gap: 10px; }
  .round-btn { display: inline-flex; }
  .logo .icon { width: 30px; height: 30px; }
  .logo-text { font-size: .75rem; padding-left: 12px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 80% at 8% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(45% 60% at 92% 10%, rgba(232, 214, 190, .55), rgba(232, 214, 190, 0) 70%),
    linear-gradient(180deg, #f8f2ea 0%, var(--milk) 100%);
}
.hero-arc { position: absolute; left: -38%; top: -55%; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--gold-light); z-index: -1; pointer-events: none; opacity: .75; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: clamp(560px, 44vw, 660px); padding-block: 48px 112px; }
.hero-copy { display: grid; gap: 24px; min-width: 0; max-width: 520px; position: relative; z-index: 2; }
.hero-copy > .eyebrow { line-height: 1.7; }
.hero-copy h1 { font-size: var(--step-5); line-height: 1.04; letter-spacing: -.015em; margin-top: -4px; }
.hero-copy h1 span { display: block; }
.hero-name { margin: 12px 0 0; font-family: var(--f-display); font-size: var(--step-3, 1.75rem); line-height: 1.15; color: var(--gold-deep); letter-spacing: .01em; }
.hero-copy .btn-row { margin-top: 8px; }
.specs { list-style: none; margin: 0; padding: 2px 0 2px 20px; border-left: 1.5px solid var(--gold); display: grid; gap: 6px; }
.specs li { font-size: var(--step-0); color: var(--cocoa); line-height: 1.45; }

.hero-photo {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(54%, 820px); z-index: 1; margin: 0; overflow: hidden;
  /* фон продолжает студийный фон исходного фото, чтобы портрет был виден целиком */
  background: linear-gradient(180deg, #c4c1c4 0%, #d6d1d4 45%, #ddd8da 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 16%);
  mask-composite: intersect;
}
.hero-photo picture { position: absolute; inset: 0; display: flex; justify-content: center; padding-left: 12%; }
.hero-photo img {
  height: 100%; width: auto; max-width: none; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.nameplate {
  position: absolute; right: 8%; bottom: 120px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f6e8d0, #d6b07a); color: var(--cocoa);
  box-shadow: 0 14px 28px -16px rgba(58,40,27,.75), inset 0 1px 0 rgba(255,255,255,.6);
}
.nameplate .icon { width: 22px; height: 22px; color: var(--gold-deep); flex: none; }
.nameplate b { display: block; font-size: .8125rem; line-height: 1.25; font-weight: 700; }
.nameplate small { display: block; margin-top: 2px; font-size: .75rem; line-height: 1.3; color: var(--text); }

/* Perks — полоса, наезжающая на низ первого экрана */
.perks-wrap { position: relative; z-index: 3; margin-top: -60px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); backdrop-filter: blur(8px); }
.perk { display: flex; align-items: center; gap: 14px; padding: 22px 24px; min-width: 0; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk .icon { width: 34px; height: 34px; color: var(--gold); flex: none; stroke-width: 1.3; }
.perk span { font-size: var(--fs-sm); line-height: 1.4; color: var(--cocoa); font-weight: 500; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-lg) 20px; }
.service-card {
  position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: stretch;
  padding: 10px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 10px 24px -22px rgba(58,40,27,.5);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.service-art {
  border-radius: var(--radius-sm); display: grid; place-items: center; position: relative; overflow: hidden; min-height: 128px;
  background: radial-gradient(120% 100% at 25% 15%, #fffaf3 0%, #f1e3cd 50%, #dfc49c 100%);
}
.service-art::after { content: ""; position: absolute; inset: 8px; border-radius: 8px; border: 1px solid rgba(184, 138, 79, .35); pointer-events: none; }
.service-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-art .icon { width: 54px; height: 54px; color: var(--gold-deep); stroke-width: 1.1; position: relative; z-index: 1; transition: transform .5s ease; }
.service-card:hover .service-art .icon { transform: scale(1.08); }
.service-body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 8px 10px 8px 0; }
.service-body h3 { font-size: 1.1875rem; line-height: 1.22; }
.service-body p { font-size: .875rem; color: var(--muted); line-height: 1.45; }
.service-body .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .8125rem; font-weight: 600; color: var(--gold-deep); }
.service-body .more .icon { width: 15px; height: 15px; transition: transform .25s; }
.service-card:hover .more .icon { transform: translateX(3px); }
.go { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-light); color: var(--gold-deep); background: var(--milk); transition: background .3s, color .3s, border-color .3s; }
.go .icon { width: 18px; height: 18px; }
.service-card:hover .go { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ---------- About band ---------- */
.about-band { position: relative; overflow: hidden; background: linear-gradient(100deg, #efe6db 0%, #f7f0e7 38%, #f4ebdf 100%); }
.about-grid { position: relative; display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr) minmax(0, 24%); align-items: stretch; min-height: 420px; }
.about-photo { position: relative; margin: 0; }
.about-photo picture, .about-photo img { width: 100%; height: 100%; }
.about-photo img { object-fit: cover; object-position: 50% 14%;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 26%); mask-image: linear-gradient(270deg, transparent 0%, #000 26%); }
.about-copy { display: grid; gap: 20px; align-content: center; justify-items: start; padding-block: 56px; padding-inline: clamp(24px, 3.5vw, 48px) clamp(8px, 2vw, 24px); min-width: 0; }
.about-copy h2 span { display: block; }
.about-copy .lead { max-width: 52ch; }
.facts { display: grid; gap: 10px; }
.fact { display: flex; gap: 12px; align-items: center; font-size: var(--fs-sm); line-height: 1.4; color: var(--cocoa); font-weight: 500; }
.fact .icon { color: var(--gold); width: 22px; height: 22px; flex: none; }
.about-copy .btn { margin-top: 4px; }
.about-deco { position: relative; display: grid; place-items: center; }
.about-deco::before { content: ""; position: absolute; left: 0; top: -20%; bottom: -20%; width: 200%; border-radius: 50%; border: 1.5px solid var(--gold-light); }
.about-deco .ring { position: relative; width: min(80%, 200px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fffaf3 0%, #f0e2cb 60%, #e4cda9 100%); box-shadow: inset 0 0 0 10px rgba(255,255,255,.45); }
.about-deco .ring .icon { width: 42%; height: 42%; color: var(--gold-deep); stroke-width: 1; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 35% 30%, #fff7ea, #f0dcbd); color: var(--gold-deep); font-family: var(--f-display); font-size: 1.0625rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.step h3 { font-size: var(--step-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -13px; width: 9px; height: 9px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }

/* Компактный вариант, как в макете: круг + номер + заголовок */
.steps--compact .step { background: none; border: 0; padding: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.steps--compact .step-num { width: 52px; height: 52px; font-size: 1.125rem; }
.steps--compact .step h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.steps--compact .step:not(:last-child)::after { top: 50%; right: 4px; margin-top: -5px; }
.steps--compact .step { padding-right: 26px; }

/* ---------- Booking band ---------- */
.booking { padding-block: clamp(40px, 5vw, 72px); }
.booking-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: var(--milk);
  background: linear-gradient(115deg, var(--band-1) 0%, #7a5939 45%, var(--band-2) 100%);
  padding: clamp(24px, 3.6vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  box-shadow: 0 30px 60px -36px rgba(58, 40, 27, .8);
}
.booking-card::before { content: ""; position: absolute; left: -140px; bottom: -260px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(217, 185, 138, .45); pointer-events: none; }
.booking-card h2 { color: var(--milk); }
.booking-intro { position: relative; display: grid; gap: 12px; }
.booking-intro h2 { font-size: clamp(1.625rem, 1.4rem + .8vw, 2.125rem); }
.booking-intro p { color: rgba(251, 247, 242, .82); font-size: var(--fs-sm); line-height: 1.6; max-width: 40ch; }

/* ---------- Forms ---------- */
.form { position: relative; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid > .field:nth-child(3) { grid-column: 1 / -1; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 4px; }
.form-foot .check { flex: 1 1 320px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: .8125rem; font-weight: 600; line-height: 1.3; color: var(--cocoa); }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gold); pointer-events: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 18px 12px 48px; font-size: 1rem; line-height: 1.4;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--cocoa);
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { padding: 14px 18px; min-height: 112px; resize: vertical; border-radius: var(--radius); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%); background-position: calc(100% - 26px) 52%, calc(100% - 20px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 46px; text-overflow: ellipsis; }
.field input::placeholder, .field textarea::placeholder { color: #a9968a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 138, 79, .18); }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.field-error { font-size: var(--fs-xs); color: var(--err); }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-xs); line-height: 1.5; color: var(--text); cursor: pointer; min-height: 44px; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gold-deep); }
.check > span { padding-top: 1px; }
.check.has-error { color: var(--err); }
.check .field-error { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--fs-sm); border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.5; }
.form-status.is-ok { background: rgba(63, 111, 69, .1); color: var(--ok); }
.form-status.is-err { background: rgba(162, 69, 47, .08); color: var(--err); }
.form-status a { font-weight: 600; }

.form--dark .field label { color: rgba(251, 247, 242, .86); }
.form--dark .field input, .form--dark .field select { background: rgba(251, 247, 242, .97); border-color: transparent; }
.form--dark .check { color: rgba(251, 247, 242, .86); }
.form--dark .check a { color: var(--gold-light); }
.form--dark .field-error, .form--dark .check.has-error { color: #ffd6c8; }
.form--dark .form-status.is-ok { background: rgba(251, 247, 242, .14); color: var(--milk); }
.form--dark .form-status.is-err { background: rgba(255, 214, 200, .14); color: #ffe1d6; }
.form--dark .btn--primary { background: linear-gradient(135deg, #ecc995, #c7975a); color: var(--cocoa); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.page-hero::after { content: ""; position: absolute; right: -180px; top: -220px; width: 460px; height: 460px; border-radius: 50%; border: 1.5px solid var(--gold-light); opacity: .55; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; }
.page-hero .container > .breadcrumbs { margin-bottom: 8px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .btn-row { margin-top: 8px; }
.breadcrumbs { font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--gold-light); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--cocoa); }

/* Services list page */
.service-rows { display: grid; gap: var(--gap); }
.service-row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 32px); align-items: center;
  padding: 12px 28px 12px 12px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: box-shadow .35s, border-color .35s, transform .35s;
}
.service-row:hover { box-shadow: var(--shadow); border-color: var(--gold-light); transform: translateY(-2px); }
.service-row .service-art { aspect-ratio: 4 / 3; }
.service-row .service-art .icon { width: 56px; height: 56px; }
.service-row-body { display: grid; gap: 8px; min-width: 0; padding-block: 8px; }
.service-row-body h2 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.2; }
.service-row-body .muted { font-size: var(--fs-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.tags li { font-size: .75rem; line-height: 1.4; padding: 4px 11px; border-radius: 999px; background: var(--ivory); color: var(--text); }

/* Service detail */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.detail-hero .service-art { width: 100%; max-width: 300px; aspect-ratio: 1; justify-self: end; border-radius: var(--radius-lg); }
.detail-hero .service-art .icon { width: 42%; height: 42%; }
.detail-copy { display: grid; gap: 16px; min-width: 0; justify-items: start; }
.detail-copy > .breadcrumbs { margin-bottom: 8px; }
.detail-copy .btn-row { margin-top: 8px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.detail-main { display: grid; gap: clamp(40px, 5vw, 56px); min-width: 0; }
.detail-block { display: grid; gap: 20px; min-width: 0; }
.detail-main .detail-block > h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.detail-block > p { max-width: 68ch; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.5; min-width: 0; }
.bullets li .icon { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 19.5px; top: 48px; bottom: 8px; width: 1px; background: var(--gold-light); opacity: .7; }
.timeline .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-light); background: var(--white); font-family: var(--f-display); font-size: 1.0625rem; line-height: 1; color: var(--gold-deep); font-variant-numeric: lining-nums; }
.timeline li > div { padding-top: 8px; min-width: 0; }
.timeline h3 { font-size: 1.125rem; line-height: 1.3; }
.timeline p { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; max-width: 62ch; }

.note-card { padding: 24px; border-radius: var(--radius); background: var(--milk-2); border: 1px solid var(--line); display: grid; gap: 12px; }
.note-card h3 { font-size: var(--step-2); }
.note-card ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--fs-sm); }
.note-card li::marker { color: var(--gold); }

.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); display: grid; gap: 16px; }
.aside-card h3 { font-size: 1.3125rem; }
.aside-card > .muted { font-size: var(--fs-sm); }
.aside-card > .eyebrow { margin-top: 8px; }
.aside-card .btn { width: 100%; }
.aside-nav { display: grid; list-style: none; padding: 0; margin: 0; }
.aside-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .875rem; line-height: 1.35; }
.aside-nav a:hover { color: var(--gold-deep); }
.aside-nav a .icon { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* About page */
.about-hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 5.5vw, 88px); align-items: center; }
.portrait-frame { position: relative; margin: 0; }
.portrait-frame .frame { aspect-ratio: 4 / 5; border-radius: 240px 240px var(--radius-lg) var(--radius-lg); overflow: hidden; background: #e2dfdc; box-shadow: 0 40px 70px -42px rgba(58,40,27,.6); }
.portrait-frame .frame picture, .portrait-frame .frame img { width: 100%; height: 100%; }
.portrait-frame .frame img { object-fit: cover; object-position: 50% 14%; }
.portrait-frame::before { content: ""; position: absolute; inset: -14px -14px 48px -14px; border: 1px solid var(--gold-light); border-radius: 260px 260px 30px 30px; pointer-events: none; }
.portrait-frame .nameplate { left: -16px; right: auto; bottom: 32px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.panel { padding: clamp(22px, 2.6vw, 28px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.panel h3 { display: flex; align-items: center; gap: 12px; font-size: var(--step-2); }
.panel h3 .icon { width: 28px; height: 28px; color: var(--gold); flex: none; }
.panel p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.panel .link-arrow { margin-top: auto; padding-top: 4px; }

.micro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.micro-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 18px; }
.micro-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.icon-wrap { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--gold-light); color: var(--gold-deep); flex: none; }
.icon-wrap .icon { width: 20px; height: 20px; }
.micro-list li > span:last-child { padding-top: 1px; }
.micro-list b { display: block; color: var(--cocoa); font-weight: 600; line-height: 1.4; }
.micro-list span span { display: block; margin-top: 2px; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.micro-visual { position: relative; aspect-ratio: 1; max-width: 320px; justify-self: center; width: 100%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, #fffaf3 0%, #f0e2cb 48%, #e3c9a2 70%, transparent 71%); }
.micro-visual::before, .micro-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid var(--gold-light); }
.micro-visual::before { inset: 0; }
.micro-visual::after { inset: 24%; border-style: dashed; opacity: .7; animation: spin 70s linear infinite; }
.micro-visual .icon { width: 34%; height: 34%; color: var(--gold-deep); stroke-width: .9; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .micro-visual::after { animation: none; } }

.qual-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qual-list { gap: 0; }
.qual-list li { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qual-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.qual-list .t { font-size: var(--fs-sm); }
.qual-list .y { font-family: var(--f-display); color: var(--gold-deep); font-size: 1.0625rem; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qual-list .t { display: grid; gap: 4px; }
.qual-list .t b { color: var(--cocoa); font-weight: 600; }
.qual-list .t b { line-height: 1.45; }
.qual-list .t span { color: var(--muted, inherit); line-height: 1.5; }

/* ---------- Cases ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--text); transition: background .25s, color .25s, border-color .25s; scroll-snap-align: start; }
.chip:hover { border-color: var(--gold-light); }
.chip[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--milk); }
.chip .count { font-size: .76rem; opacity: .7; font-variant-numeric: tabular-nums; }

.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card { position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; align-items: stretch; padding: 10px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); min-width: 0; box-shadow: 0 10px 24px -22px rgba(58,40,27,.5); }
.case-media { position: relative; border-radius: 14px; overflow: hidden; background: var(--ivory); aspect-ratio: 1 / 1; }
.case-pair { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 100%; }
.case-pair button { position: relative; padding: 0; border: 0; background: var(--ivory); cursor: zoom-in; display: block; height: 100%; min-width: 0; border-radius: 10px; overflow: hidden; }
.case-pair img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-pair button:hover img { transform: scale(1.04); }
.badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(255, 255, 255, .94); color: var(--cocoa); pointer-events: none; }
.case-info { display: grid; align-content: center; gap: 6px; padding: 2px 54px 8px 6px; min-width: 0; }

.case-info .cat { font-size: .6875rem; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.case-info h3 { font-size: 1.15rem; line-height: 1.25; }
.case-info p { font-size: .86rem; color: var(--muted); }
.case-info .stage-note { font-size: .78rem; color: var(--muted); }
.case-card .go { cursor: pointer; }
.case-card .go:hover { background: var(--gold); color: var(--white); }

/* слайдер «до/после» — только для подтверждённых случаев */
.ba { position: relative; height: 100%; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,.25); }
.ba .ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6233' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .badge--after { left: auto; right: 8px; }

.cases-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(36px, 6vw, 64px) 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.cases-empty .icon { width: 46px; height: 46px; color: var(--gold); stroke-width: 1.1; }
.cases-empty h3 { font-size: var(--step-2); }
.cases-empty p { max-width: 52ch; color: var(--muted); font-size: var(--fs-sm); }

.section-head > .carousel-nav { display: none; grid-auto-flow: column; gap: 10px; }
.carousel-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-light); background: var(--white); color: var(--gold-deep); display: grid; place-items: center; cursor: pointer; }
.carousel-nav button .icon { width: 20px; height: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(28, 19, 12, .95); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: var(--milk);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 14px) max(12px, env(safe-area-inset-left, 0px)); }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.lightbox-top p { font-size: .95rem; opacity: .9; min-width: 0; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.lightbox-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lightbox-bottom { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(251,247,242,.3); background: rgba(251,247,242,.06); color: var(--milk); display: grid; place-items: center; cursor: pointer; flex: none; }
.lb-btn:hover { background: rgba(251,247,242,.16); }
.lb-btn .icon { width: 22px; height: 22px; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-side { display: grid; gap: 20px; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .25s, box-shadow .25s; }
a.contact-item:hover { border-color: var(--gold-light); box-shadow: var(--shadow-soft); }
.contact-item .icon-wrap { width: 44px; height: 44px; background: var(--milk-2); border: 0; }
.contact-item small { display: block; font-size: .6875rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-item .val { display: block; font-size: 1rem; line-height: 1.4; color: var(--cocoa); font-weight: 600; word-break: break-word; }
.form-card { padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 24px; }
.form-card h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.form-card .field input, .form-card .field select { background: var(--milk); }
.how-book { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.how-book li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; font-size: var(--fs-sm); line-height: 1.55; }
.how-book li > span:last-child { padding-top: 6px; }
.how-book .step-num { width: 36px; height: 36px; font-size: .9375rem; }

/* Prose (документы) */
.prose { display: grid; gap: 14px; max-width: 76ch; }
.prose h2 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); margin-top: 20px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.requisites { padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: 6px; font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--milk); padding-block: 36px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .875rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { display: inline-block; padding: 10px 0; text-decoration: none; }
.footer-nav a:hover { color: var(--cocoa); text-decoration: underline; }
.footer-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--cocoa); min-height: 44px; }
.footer-contacts .icon { width: 19px; height: 19px; color: var(--gold-deep); }
.footer-contacts .circle-link { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.circle-link .icon { width: 20px; height: 20px; }
.footer-contacts .pill-link { gap: 8px; padding: 0 16px; min-height: 42px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; box-shadow: var(--shadow-soft); transition: border-color .2s, color .2s; }
.footer-contacts .pill-link:hover { border-color: var(--gold); }
.footer-contacts .pill-link .icon { width: 17px; height: 17px; }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; }
.footer-bottom a { color: inherit; }
.footer-legal { display: grid; gap: 4px; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.reveal-ready { opacity: 0; transform: translateY(16px); }
.reveal-ready.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .reveal-ready { opacity: 1; transform: none; } }
.hero-anim > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; }
.hero-anim > *:nth-child(5) { animation-delay: .32s; }
.hero-photo img { animation: fade 1.2s ease both; }
@keyframes rise { from { opacity: .001; transform: translateY(16px); } }
@keyframes fade { from { opacity: .001; } }
@media (prefers-reduced-motion: reduce) { .hero-anim > *, .hero-photo img { animation: none; } }

/* ================= Адаптив ================= */
@media (max-width: 1100px) {
  .booking-card { grid-template-columns: minmax(0, 1fr); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .about-deco { display: none; }
  .perk { padding: 20px; }
  .booking-intro p { max-width: 60ch; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 520px; }
  .services-grid { gap: 16px; }
  .hero-photo { width: 56%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::after { display: none; }
  .steps--compact { gap: 22px 18px; }
  .booking-card { grid-template-columns: minmax(0, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-hero { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .micro { grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Первый экран: на планшетах и телефонах — заголовок, фото, специализации, кнопки */
@media (max-width: 860px) {
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-block: 20px 76px; gap: 20px; }
  .hero-arc { left: -70%; top: -18%; width: 150%; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { display: none; }
  .hero-copy .hero-title { order: 1; }
  .hero-copy h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3rem); margin-top: 0; }
  .hero-name { margin-top: 6px; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.5rem); }
  .hero-photo { order: 2; position: relative; inset: auto; width: 100%; max-width: 440px; align-self: center; aspect-ratio: 1 / 1.05; border-radius: var(--radius-lg); overflow: hidden; -webkit-mask-image: none; mask-image: none; box-shadow: 0 30px 50px -36px rgba(58,40,27,.7); }
  .hero-photo picture { padding: 0; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; -webkit-mask-image: none; mask-image: none; }
  .nameplate { display: none; }
  .hero-copy .specs { order: 3; margin-top: 4px; }
  .specs { padding-left: 16px; }
  .specs li { font-size: .9375rem; }
  .hero-copy .btn-row { order: 4; margin-top: 4px; }
  .hero-copy .btn-row .btn { flex: 1 1 0; --pad-x: 16px; }

}

/* Телефоны и планшеты в портрете */
@media (max-width: 760px) {
  .section-head { margin-bottom: 24px; }
  .section-head .link-arrow { min-height: 32px; }
  .perks-wrap { margin-top: -44px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
  .perk .icon { width: 30px; height: 30px; }
  .perk span { font-size: .875rem; }

  .service-card { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .service-art { min-height: 104px; }
  .service-art .icon { width: 44px; height: 44px; }
  .service-body { padding-right: 6px; gap: 4px; }
  .service-body h3 { font-size: 1.0625rem; }
  .service-body p { font-size: .8125rem; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }

  .about-grid { grid-template-columns: 1fr; min-height: 0; }
  .about-photo { height: min(100vw, 400px); margin-inline: calc(-1 * max(var(--pad), env(safe-area-inset-left, 0px))); }
  .about-photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 28%); mask-image: linear-gradient(0deg, transparent 0%, #000 28%); object-position: 50% 12%; }
  .about-copy { padding: 0 0 56px; margin-top: -28px; gap: 16px; }

  /* карусель кейсов */
  .cases-grid.is-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px;
    margin-inline: calc(-1 * max(var(--pad), env(safe-area-inset-left, 0px))); padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)); scroll-padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)); scrollbar-width: none; }
  .cases-grid.is-carousel::-webkit-scrollbar { display: none; }
  .cases-grid.is-carousel .case-card { flex: 0 0 min(86%, 360px); scroll-snap-align: start; }
  .section-head > .carousel-nav { display: grid; }
  .cases-grid { grid-template-columns: 1fr; }

  .steps--compact { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .steps--compact .step { grid-template-columns: 1fr; gap: 10px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
  .steps--compact .step-num { width: 44px; height: 44px; font-size: 1rem; }
  .steps--compact .step h3 { font-size: .95rem; }
  .steps:not(.steps--compact) { grid-template-columns: 1fr; }

  .form-grid, .form-grid--2 { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-foot .check { flex: 0 0 auto; }
  .form .btn { width: 100%; }

  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero { gap: 18px; }
  .detail-hero .service-art { max-width: none; width: 100%; aspect-ratio: 16 / 10; justify-self: stretch; order: -1; border-radius: var(--radius-lg); box-shadow: 0 24px 40px -30px rgba(58,40,27,.6); }
  .detail-hero .service-art img { object-position: 50% 45%; }
  .bullets { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px 16px; padding: 10px 14px 10px 10px; }
  .service-row .service-art { aspect-ratio: 1; }
  .service-row .service-art .icon { width: 44px; height: 44px; }
  .service-row > .btn { grid-column: 1 / -1; justify-self: stretch; }
  .service-row-body { padding-block: 2px; gap: 6px; }
  .service-row-body .eyebrow { font-size: .6875rem; letter-spacing: .12em; }
  .service-row-body h2 { font-size: 1.1875rem; }
  .service-row-body .muted { display: none; }
  .service-row .tags li:nth-child(n+3) { display: none; }

  .about-hero { grid-template-columns: 1fr; }
  .portrait-frame { width: min(84%, 360px); justify-self: center; margin-top: 16px; }
  .portrait-frame .nameplate { display: none; }
  .micro { grid-template-columns: 1fr; }
  .micro-visual { display: none; }
  .cards-3 { grid-template-columns: 1fr; gap: 12px; }
  .timeline li { gap: 14px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-nav ul { gap: 0 20px; }
  .footer-nav a { padding: 6px 0; }
  .footer-contacts { gap: 10px; }

  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(251, 247, 242, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s ease;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta.is-visible.is-suppressed { transform: translateY(110%); }
  .mobile-cta .btn { flex: 1; min-height: 48px; }
  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 400px) {
  .hero-copy .btn-row { flex-direction: column; }
  .hero-copy .btn-row .btn { flex: 1 1 auto; width: 100%; }
  .logo-text { font-size: .76rem; }
  .logo { gap: 10px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .service-card { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .service-art { min-height: 96px; }
  .steps--compact { grid-template-columns: 1fr; }
  .steps--compact .step { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
}
@media (max-width: 340px) {
  .logo-text { display: none; }
  .perks { grid-template-columns: 1fr; }
  .perk { flex-direction: row; align-items: center; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- О докторе: текст ---------- */
.bio-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.bio-text { display: grid; gap: 16px; font-size: var(--step-0); line-height: 1.7; color: var(--text); max-width: 64ch; }
.bio-text p:first-child { font-size: var(--step-1); color: var(--cocoa); line-height: 1.6; }
.bio-text p { margin: 0; }
.bio-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bio-facts li { display: grid; gap: 4px; padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.bio-facts b { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; color: var(--gold-deep); line-height: 1.2; }
.bio-facts span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 760px) { .bio-grid { grid-template-columns: 1fr; } }

/* ---------- Примеры работ: все фото сразу ---------- */
.case-list { display: grid; gap: 20px; }
.case-row { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(14px, 2vw, 24px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 24px -22px rgba(58,40,27,.5); }
.case-row .case-info { padding: 0 0 0 clamp(0px, 1vw, 8px); align-content: center; gap: 10px; }
.case-row .case-info h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.22; }
.case-row .case-info p { font-size: var(--fs-sm); line-height: 1.6; }
.case-photos { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.case-photos.is-single { max-width: 520px; }
.case-photo { margin: 0; display: grid; gap: 10px; min-width: 0; }
.case-photo button { width: 100%; padding: 0; border: 0; background: var(--ivory); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: var(--ratio, 3 / 4); display: block; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-photo button:hover img { transform: scale(1.04); }
.case-photo figcaption { text-align: center; font-size: .75rem; line-height: 1.4; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
@media (max-width: 860px) {
  .case-row { grid-template-columns: 1fr; }
  .case-photos { gap: 6px; }
  .case-photo button { border-radius: 10px; }
  .case-photo figcaption { font-size: .6875rem; letter-spacing: .06em; }
}
.service-art.has-img::after { display: none; }
.cases-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: var(--fs-xs); line-height: 1.5; }
.cases-more { margin-top: 18px; }
.cases-note .icon { width: 18px; height: 18px; flex: none; color: var(--gold); }
@media (max-width: 760px) { .perk span br { display: none; } .perk span { max-width: 100%; } }
@media (max-width: 860px) { .perks-wrap { margin-top: -44px; } }
@media (min-width: 561px) and (max-width: 860px) {
  .hero-photo { max-width: none; aspect-ratio: 4 / 3; }
  .hero-photo img { object-position: 50% 20%; }
}
@media (max-width: 1100px) and (min-width: 981px) { .perk { gap: 12px; padding: 18px 16px; } .perk .icon { width: 30px; height: 30px; } }
@media (max-width: 860px) { .portrait-frame::before { inset: -12px; border-radius: 250px 250px 30px 30px; } }
@media (max-width: 359px) { .specs li { font-size: .875rem; } }

/* ---------- Дипломы и сертификаты ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.doc-card { display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: zoom-in; min-width: 0; box-shadow: 0 10px 24px -22px rgba(58,40,27,.5); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.doc-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; border-radius: 12px; background: var(--ivory); overflow: hidden; }
.doc-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 6px 16px -8px rgba(58,40,27,.45); transition: transform .5s ease; }
.doc-card:hover .doc-media img { transform: scale(1.03); }
.doc-pages { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(58,40,27,.72); color: var(--milk); font-size: .72rem; font-weight: 600; }
.doc-info { display: grid; gap: 4px; padding: 0 6px 6px; align-content: start; }
.doc-info b { font-weight: 600; line-height: 1.35; color: var(--cocoa); }
.doc-info span { font-size: .84rem; line-height: 1.45; color: var(--muted); }
.lightbox-stage img[src*="/docs/"] { background: #fff; }
.lightbox-stage img { position: absolute; inset: 0; margin: auto; }
@media (max-width: 560px) {
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .doc-card { padding: 6px; gap: 8px; }
  .doc-media { padding: 6px; border-radius: 10px; }
  .doc-info { padding: 0 4px 4px; }
  .doc-info b { font-size: .86rem; }
  .doc-info span { font-size: .75rem; }
}
.doc-media img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 20px); max-height: calc(100% - 20px); }
@media (max-width: 560px) { .doc-media img { max-width: calc(100% - 12px); max-height: calc(100% - 12px); } }

/* SEO: город в заголовке услуги и блок частых вопросов */
.h1-city { display: block; font-size: .5em; line-height: 1.3; margin-top: .35em; color: var(--gold-deep); font-style: italic; }
.faq { gap: 0; }
.faq h2 { margin-bottom: 12px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative; font-weight: 600; color: var(--cocoa); line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--gold-deep); border-bottom: 1.5px solid var(--gold-deep); transform: rotate(45deg); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { margin: 0 0 16px; color: var(--text); line-height: 1.65; }
