/* Ключ к Телу — палитра из ТЗ: молочный, песочный, карамель, шалфей, шоколад */

/* Шрифты Cormorant Garamond и Manrope (OFL) — локально, без Google Fonts */
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --milk: #f4efe7;
  --paper: #fbf8f3;
  --sand: #dccbb6;
  --sand-light: #ebe1d3;
  --caramel: #a6886e;
  --caramel-text: #7a5f49;   /* карамель, затемнённая для читаемого текста */
  --sage: #5c6253;
  --choco: #332a25;
  --text: #332a25;
  --muted: #6b5f56;
  --line: #e3d8c9;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 44px rgba(51, 42, 37, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5.6vw, 72px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--caramel-text);
  margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--choco);
  background: var(--choco);
  color: var(--paper);
  font: 600 15.5px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-align: center;
}
.btn:hover { background: #4a3d35; border-color: #4a3d35; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--choco); }
.btn--ghost:hover { background: var(--choco); color: var(--paper); }
.btn--sage { background: var(--sage); border-color: var(--sage); }
.btn--sage:hover { background: #4b5043; border-color: #4b5043; }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--choco); }
.btn--light:hover { background: var(--milk); border-color: var(--milk); }
.btn--small { padding: 12px 20px; font-size: 14.5px; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--caramel-text); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* Размытие — на отдельном слое: backdrop-filter на самой шапке делает её контейнером
   для position: fixed, и мобильное меню получает нулевую высоту. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 239, 231, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.logo__name { display: block; font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1; color: var(--choco); }
.logo__sub { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--caramel-text); margin-top: 4px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--choco); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 6px; }
.header__phone { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.burger { display: none; }

/* ---------- Hero (главная) ---------- */
.hero { padding: 40px 0 90px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); margin-bottom: 22px; }
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); color: var(--caramel-text); margin-bottom: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li {
  font-size: 14px; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 260px 260px var(--radius) var(--radius);
}
.hero__note {
  position: absolute; left: -28px; bottom: 36px;
  background: var(--paper); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.35; color: var(--muted); max-width: 230px;
}
.hero__note strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--choco); }

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero { padding: 28px 0 70px; }
.page-hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.page-hero__inner--text { grid-template-columns: 1fr; max-width: 820px; }
.page-hero img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.page-hero .hero__actions { margin-bottom: 0; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--caramel-text); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand-light); }
.section--sage { background: var(--sage); color: var(--milk); }
.section--sage .eyebrow { color: var(--sand); }
.section--sage p, .section--sage .muted { color: #e1ddd3; }
.section--choco { background: var(--choco); color: var(--milk); }
.section--choco .eyebrow { color: var(--sand); }
.section--choco p { color: #d9cfc3; }

/* ---------- Formats (4 направления) ---------- */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.format {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.format:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.format img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.format__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.format__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel-text); font-weight: 600; margin-bottom: 6px; }
.format h3 { font-size: 26px; margin-bottom: 8px; }
.format p { color: var(--muted); font-size: 15px; flex: 1; }

/* ---------- Program cards ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.program img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.program__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.program__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel-text); font-weight: 600; margin-bottom: 6px; }
.program h3 { margin-bottom: 10px; }
.program__lead { color: var(--muted); font-size: 15.5px; }
.program__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; align-content: start; font-size: 15px; flex: 1; }
.program__list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.program__list li span:last-child { color: var(--muted); white-space: nowrap; }
.program__meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.program__meta strong { font-family: var(--serif); font-size: 24px; color: var(--choco); font-weight: 600; }
.program--featured { border-color: var(--caramel); box-shadow: var(--shadow); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px; background: var(--sand-light); color: var(--caramel-text); margin-bottom: 12px;
}

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; margin-top: 48px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare thead th { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--choco); background: var(--sand-light); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--sage); font-weight: 600; }
.compare .no { color: #b8aa9a; }

/* ---------- Advantages ---------- */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; counter-reset: adv; }
.advantage { border-top: 1px solid rgba(244, 239, 231, .25); padding-top: 18px; }
.section:not(.section--sage):not(.section--choco) .advantage { border-color: var(--line); }
.advantage::before { counter-increment: adv; content: counter(adv, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 30px; color: var(--sand); margin-bottom: 6px; }
.section:not(.section--sage):not(.section--choco) .advantage::before { color: var(--caramel); }
.advantage p { margin: 0; font-size: 15.5px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.gallery img:first-child { grid-row: span 2; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 26px; counter-reset: step; }
.steps li { position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--caramel); color: var(--caramel-text);
  font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 16px; background: var(--paper);
}
.steps h3 { font-size: 23px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Split block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.split__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split__media--duo img { aspect-ratio: 3 / 4; }
.split__media--duo img:last-child { margin-top: 48px; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Partner cards (ресторан, отель) ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.partner img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.partner__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.partner__body p { color: var(--muted); font-size: 15.5px; flex: 1; }

/* ---------- Service list (индивидуальный массаж) ---------- */
.services { display: grid; gap: 16px; }
.service {
  display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center;
  background: var(--paper); border-radius: var(--radius); padding: 28px 32px; border: 1px solid var(--line);
}
.service h3 { margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); font-size: 15.5px; }
.service__for { margin-top: 10px !important; font-size: 14.5px !important; }
.service__for b { color: var(--text); font-weight: 600; }
.service__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chip { font-size: 14px; color: var(--caramel-text); font-weight: 600; white-space: nowrap; }

/* ---------- Notice ---------- */
.notice {
  background: var(--sand-light); border-radius: var(--radius-sm); padding: 20px 24px;
  font-size: 15px; color: var(--muted); border-left: 3px solid var(--caramel);
}
.notice b { color: var(--text); }

/* ---------- Certificates ---------- */
.cert-types { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cert-type { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--line); }
.cert-type img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.cert-type__body { padding: 28px; display: flex; flex-direction: column; }
.cert-type__body p { color: var(--muted); font-size: 15.5px; flex: 1; }
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; list-style: none; padding: 0; margin: 0; }
.terms li { border-top: 1px solid var(--line); padding-top: 14px; }
.terms b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.terms span { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 17.5px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .9; color: var(--caramel); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 720px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: stretch; }
.contacts__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; }
.contacts__list span { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--caramel-text); font-weight: 600; margin-bottom: 2px; }
.contacts__list a { text-decoration: none; border-bottom: 1px solid var(--sand); }
.section--choco .contacts__list span { color: var(--sand); }
.section--choco .contacts__list a { border-color: rgba(220, 203, 182, .4); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--sand-light); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; }
.cta-band .actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--choco); color: #cfc4b7; font-size: 14.5px; padding: 64px 0 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .logo__name { color: var(--paper); }
.footer__brand .logo__sub { color: var(--sand); }
.footer__brand p { margin-top: 18px; max-width: 300px; }
.footer h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(220, 203, 182, .18); font-size: 13px; color: #a99d90; }

/* ---------- Mobile booking bar ---------- */
.mobile-cta { display: none; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 560px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 13.5px; color: var(--muted);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--caramel-text); }

/* ---------- Text pages ---------- */
.prose h2 { font-size: 32px; margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
.nav__extra { display: none; }
@media (max-width: 1240px) {
  :root { --header-h: 66px; }
  .header__cta { display: none; }
  .burger { display: grid; gap: 5px; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
  .burger span { width: 24px; height: 2px; background: var(--choco); transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--milk); padding: 12px max(20px, calc((100vw - 1200px) / 2)) 100px; overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 22px; font-family: var(--serif); font-weight: 600; color: var(--choco); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__extra { display: block; }
}
@media (max-width: 1080px) {
  .formats { grid-template-columns: repeat(2, 1fr); }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cert-types { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .logo img { height: 42px; }
  .logo__name { font-size: 24px; }

  .hero { padding: 16px 0 70px; }
  .hero__inner, .page-hero__inner, .split, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .hero__note { left: 12px; bottom: 12px; }
  .split--reverse .split__media { order: 0; }
  .programs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }

  .mobile-cta {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 239, 231, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-cta .btn { flex: 1; padding: 14px 10px; }
  .mobile-cta .btn--ghost { flex: 0 0 auto; padding-inline: 18px; }
  body { padding-bottom: 76px; }
  .cookie { bottom: 84px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .formats, .advantages, .partners, .footer__grid, .terms { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .hero__actions .btn, .page-hero .hero__actions .btn { flex: 1 1 100%; }
  .service { grid-template-columns: 1fr; padding: 24px; }
  .service__side { align-items: stretch; }
  .cert-type { grid-template-columns: 1fr; }
  .cert-type img { min-height: 0; aspect-ratio: 16 / 10; }
  .compare th, .compare td { padding: 12px 14px; }
  .cookie { padding: 12px 14px; gap: 12px; font-size: 12.5px; line-height: 1.45; }
  .cookie .btn { padding: 10px 14px; }
  .hero__note { display: none; }
}

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--outline-light { background: transparent; color: var(--milk); border-color: var(--milk); }
.btn--outline-light:hover { background: var(--milk); color: var(--choco); }
.terms--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .terms--3 { grid-template-columns: 1fr; } }

/* ---------- Reviews (виджет Яндекс Карт) ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.reviews__widget { height: 620px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.reviews__widget iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 980px) {
  .reviews { grid-template-columns: 1fr; gap: 28px; }
  .reviews__widget { height: 560px; }
}

/* ---------- Price list ---------- */
.pricelist-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.pricelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.pricelist li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pricelist a { text-decoration: none; font-size: 16.5px; }
.pricelist a:hover { color: var(--caramel-text); }
.pricelist__dots { flex: 1; border-bottom: 1px dotted var(--sand); transform: translateY(-4px); min-width: 16px; }
.pricelist b { font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.service__side strong { font-family: var(--serif); font-size: 26px; font-weight: 600; white-space: nowrap; }
.trust a { text-decoration: none; color: inherit; }
@media (max-width: 980px) { .pricelist-wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) {
  .pricelist li { flex-wrap: wrap; gap: 4px 10px; }
  .pricelist__dots { display: none; }
  .pricelist a { flex: 1 1 100%; }
}
.nowrap { white-space: nowrap; }

/* Gift certificates: accessible disclosure and occasion pages */
.gift-menu { position:relative; }
.gift-menu summary { cursor:pointer; color:var(--muted); font-size:14.5px; white-space:nowrap; }
.gift-menu summary:focus-visible { outline:2px solid var(--caramel); outline-offset:5px; }
.gift-menu__links { position:absolute; top:calc(100% + 16px); right:0; min-width:280px; padding:12px 20px; background:var(--milk); border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 35px #35251a22; }
.gift-menu__links a { display:block; padding:9px 0; }
.gift-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.gift-card { padding:30px; border:1px solid var(--line); border-radius:20px; background:var(--milk); display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
.gift-card h2 { font-size:30px; margin:0; }
.gift-card .btn { margin-top:auto; }
.gift-price { font-size:27px; font-weight:600; color:var(--choco); }
.gift-conditions { margin-top:28px; color:var(--muted); }
.gift-occasion-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.gift-occasion-links a { padding:12px 18px; border:1px solid var(--line); border-radius:24px; }
.gift-other-title { margin-top:48px; }
@media(min-width:1241px) { .nav { gap:14px; } }
@media(max-width:1240px) {
 .gift-menu summary { font-size:22px; font-family:var(--serif); font-weight:600; color:var(--choco); padding:12px 0; border-bottom:1px solid var(--line); white-space:normal; }
 .gift-menu__links { position:static; min-width:0; box-shadow:none; padding:4px 0 12px 18px; border:0; }
 .gift-menu__links a { font-size:18px; white-space:normal; }
}
@media(max-width:980px) { .gift-grid { grid-template-columns:1fr; } }

/* Navigation weight, disclosure without marker, and current location. */
.nav a, .nav .gift-menu summary { font-weight:700; }
.gift-menu summary { list-style:none; }
.gift-menu summary::-webkit-details-marker { display:none; }
.gift-menu summary::marker { content:""; }
.nav a[aria-current="page"], .gift-menu.is-active > summary {
 color:var(--choco); text-decoration:underline; text-decoration-color:var(--caramel);
 text-decoration-thickness:2px; text-underline-offset:6px;
}

/* Clip the visible photo, without object-fit letterboxing. */
.gift-photo { width:100%; border-radius:var(--radius); overflow:hidden; }
.page-hero .gift-photo img { display:block; width:100%; height:auto; aspect-ratio:auto; border-radius:inherit; }
.cert-type img { border-radius:var(--radius); }
.checkout { max-width:900px; }
.checkout form { display:grid; gap:22px; margin-top:32px; }
.checkout select,.checkout input:not([type=radio]):not([type=checkbox]),.checkout textarea { display:block; width:100%; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--milk); color:var(--choco); font:inherit; }
.checkout label { display:block; margin-bottom:8px; }
.checkout fieldset { border:1px solid var(--line); border-radius:12px; padding:20px; }
.checkout fieldset label { display:inline-flex; gap:8px; margin-right:22px; }
.checkout-summary { background:var(--paper); padding:24px; border-radius:var(--radius); }
.checkout-summary h2 { font-size:30px; }
.checkout-names { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.checkout small { color:var(--muted); }
.checkout [hidden] { display:none; }
#gift-result { margin-top:36px; }
.gift-contact-actions { display:grid; gap:10px; margin-top:auto; width:100%; }
.gift-contact-actions .btn { margin:0; white-space:normal; text-align:center; }
@media(max-width:640px) { .checkout-names { grid-template-columns:1fr; } }

.gift-bottom-actions { display:flex; flex-wrap:wrap; gap:16px; margin-top:24px; }
@media(max-width:640px) { .gift-bottom-actions { flex-direction:column; align-items:stretch; } }
.checkout input[type=checkbox] { width:20px; height:20px; flex-shrink:0; }
.checkout .consent-label { display:flex; gap:12px; align-items:flex-start; }

.gift-share { margin-top:32px; text-align:center; }
.gift-share-status { margin:12px 0 0; color:var(--muted); }
.gift-share-status:empty { display:none; }
.gift-share-link { width:100%; max-width:640px; margin:12px auto 0; padding:12px; border:1px solid var(--line); border-radius:10px; font:inherit; }
.gift-share-link[hidden] { display:none; }
