/* wax•co — визуальная система «Табличка + арка».
   Чёрный первый экран, тёплая светлая основа, розовый только как сигнал.
   Mobile-first, без зависимостей. */

/* Шрифты: неизменённые файлы Fontsource (@fontsource/playfair-display 5.3.0, @fontsource/onest 5.3.1),
   диапазоны unicode-range — как в их CSS. latin-ext у Onest нужен ради знака ₽ (U+20BD). */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-cyrillic-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* Цвет: из логотипа + производные */
  --ink: #1a1a18;          /* чёрный логотипа, чернила рисунков */
  --pink: #ffd2cc;         /* плашка логотипа — сигнал (запись, статус, активное) и мазки */
  --base: #f6f1ed;         /* тёплая светлая основа */
  --white: #ffffff;
  --ink-2: #5b5955;        /* вторичный текст на светлом, AA */
  --on-dark-2: #bdbbb6;    /* вторичный текст на чёрном, AA */

  /* Радиусы: только эти три */
  --r-pill: 999px;         /* кнопки, переключатели, статус */
  --r-card: 32px;          /* фото и карта */
  --r-inner: 20px;         /* вложенное в r-card с отступом 12px */

  --display: "Playfair Display", Georgia, serif;
  --text: "Onest", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --maxw: 1360px;
  --header-h: 64px;
  --sec: 72px;             /* вертикальный ритм между разделами */
  --ease: cubic-bezier(.2, .7, .3, 1);
}
@media (min-width: 900px) {
  :root { --gutter: 48px; --header-h: 76px; --sec: 120px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.muted { color: var(--ink-2); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--pink); color: var(--ink);
  padding: 12px 18px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500;
}
.skip:focus-visible { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Сердечко логотипа: только в логотипе, кнопках и строке адреса */
.h { display: inline-block; flex: none; width: .52em; height: .48em; fill: currentColor; vertical-align: baseline; }

/* Ручная графика: залитые контуры, цвет = currentColor */
.hand { display: block; fill: currentColor; overflow: visible; pointer-events: none; }

/* ---------- Типографика ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -.02em;
  line-height: .92;
  margin: 0;
  padding-top: .04em;   /* запас под Й/Ё в Safari */
}
.display .h { width: .3em; height: .28em; margin: 0 .03em; vertical-align: .1em; }
.formula .w { display: block; white-space: nowrap; }
.d-1 { font-size: clamp(54px, 15.5vw, 132px); }
.d-2 { font-size: clamp(44px, 11.5vw, 92px); }
.d-3 { font-size: clamp(34px, 8vw, 56px); }

/* ---------- Кнопки ---------- */
.btn {
  --fill: var(--white);
  --fill-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--r-pill);
  font: 500 16px/1.1 var(--text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%);
  width: var(--d, 260px); height: var(--d, 260px);
  margin: calc(var(--d, 260px) / -2) 0 0 calc(var(--d, 260px) / -2);
  border-radius: 50%; background: var(--fill);
  transform: scale(0); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scale(1); }
.btn:hover { color: var(--fill-fg); }
.btn .h { width: 10px; height: 9px; transition: transform .3s var(--ease); }
.btn:hover .h { transform: translateX(3px); }
.tel-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn--book { background: var(--pink); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); --fill: var(--ink); --fill-fg: var(--white); }
.on-dark .btn--line { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); --fill: var(--white); --fill-fg: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.arr { width: 22px; height: 15px; flex: none; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; color: inherit; text-decoration: none; padding: 6px 0; }
/* Название «wax♥company»: Playfair Display 900 строчными, сердечко из логотипа */
.wordmark { font: 900 21px/1 var(--display); letter-spacing: -.01em; text-transform: lowercase; white-space: nowrap; display: inline-flex; align-items: center; }
.wordmark .wm-h { width: .46em; height: .42em; margin: .08em .06em 0; fill: currentColor; flex: none; }
@media (max-width: 374px) { .wordmark { font-size: 19px; } }
@media (min-width: 1040px) { .wordmark { font-size: 27px; } }
.footer-main .wordmark { font-size: 30px; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-size: 15px; color: var(--on-dark-2); transition: color .2s var(--ease); }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--pink); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-tel { display: none; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-tel:hover { text-decoration: underline; }
@media (min-width: 1040px) {
  .nav { display: block; }
  .header-tel { display: inline; }
}

/* ---------- Тёмный первый экран ---------- */
.dark { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.dark .hand { color: var(--base); }   /* на чёрном чернила рисунков светлые */
.dark a:not(.btn) { text-decoration-color: rgba(255, 255, 255, .45); }
.hero { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 64px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 16px 0 14px; border-radius: var(--r-pill);
  background: var(--pink); color: var(--ink); font-size: 15px; font-weight: 500;
  margin-bottom: 28px;
}
.status .h { width: 10px; height: 9px; }
.status[data-open="0"] { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.hero-sub { margin-top: 22px; font-size: 20px; font-weight: 500; color: var(--pink); }
@media (min-width: 900px) { .hero-sub { font-size: 24px; } }
.where { margin-top: 14px; font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.where .h { width: 9px; height: 8px; }
@media (max-width: 559px) { .where { display: grid; gap: 2px; } .where .h { display: none; } }
.lead { margin-top: 20px; font-size: 19px; max-width: 32ch; color: var(--white); }
.hero-price { margin: 26px 0 0; font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
/* обводка цены рисованным овалом */
.circled { position: relative; display: inline-block; padding: 6px 14px; margin-left: 10px; color: inherit; text-decoration: none; }
.hand-oval { position: absolute; left: -9%; top: -22%; width: 118%; height: 146%; }
/* мазок под ценой: лежит ниже базовой линии, текст остаётся читаемым */
.smeared { position: relative; display: inline-block; z-index: 0; text-decoration: none; }
.hand-smear { position: absolute; z-index: -1; left: -8%; width: 116%; top: 58%; height: 62%; color: var(--pink); }
.dark .hand-smear { color: var(--pink); }

.hero-actions { display: grid; gap: 10px; margin-top: 32px; }
.hero-actions .btn { width: 100%; }
@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
  .hero .d-1 { font-size: clamp(76px, 7.6vw, 116px); }
}

/* Арка: фото с полукруглым верхом + рисованный контур вокруг */
.arch { position: relative; margin: 0; padding: 6% 7% 3%; }
.arch-img { -webkit-clip-path: inset(0 round var(--r-pill) var(--r-pill) 0 0); clip-path: inset(0 round var(--r-pill) var(--r-pill) 0 0); }
.arch-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hand-arch { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .arch-img {
    -webkit-clip-path: inset(16% 20% 0 20% round var(--r-pill) var(--r-pill) 0 0);
    clip-path: inset(16% 20% 0 20% round var(--r-pill) var(--r-pill) 0 0);
    transition: clip-path .5s var(--ease), -webkit-clip-path .5s var(--ease);
  }
  .js .arch.is-in .arch-img {
    -webkit-clip-path: inset(0 round var(--r-pill) var(--r-pill) 0 0);
    clip-path: inset(0 round var(--r-pill) var(--r-pill) 0 0);
  }
}
.hero-photo { max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 1000px) { .hero-photo { justify-self: end; } }

/* Страница услуги */
.crumbs { font-size: 14px; color: var(--on-dark-2); padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero { padding-top: 20px; }
.page-hero .hero-photo { max-width: 400px; }

/* ---------- Светлая часть ---------- */
.light { padding-bottom: var(--sec); }
.sec { padding-top: var(--sec); }
.sec > .display { margin-bottom: 32px; }

/* Разделитель разделов: рисованная линия — сердечко логотипа — рисованная линия, на всю текстовую колонку.
   Отступ сверху и снизу одинаковый (--div-gap). */
:root { --div-gap: 56px; }
@media (min-width: 900px) { :root { --div-gap: 88px; } }
.divider { padding-top: var(--div-gap); }
.divider + .sec { padding-top: var(--div-gap); }
.rule-row { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.rule-half { flex: 1 1 0; min-width: 0; display: flex; overflow: hidden; }
.rule-half--l { justify-content: flex-end; }
.rule-half--r { justify-content: flex-start; }
/* линия рисовалась шириной ~1600 px: сжимаем не сильнее чем в 4 раза, лишнее обрезается с внешнего края */
.rule { flex: none; width: max(100%, 400px); }
.rule-heart { flex: none; width: 11px; height: 10px; fill: currentColor; }

/* ---------- Список услуг: название, цена «от», рисованная стрелка ---------- */
.svc { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name arrow" "from arrow"; align-items: center; column-gap: 20px; padding: 14px 0; text-decoration: none; }
.svc .name { grid-area: name; font-size: clamp(48px, 13vw, 96px); }
.svc .from { grid-area: from; font-size: 18px; font-weight: 500; margin-top: 6px; }
.hand-arrow { grid-area: arrow; width: 64px; height: 20px; transition: transform .3s var(--ease); }
.svc:hover .hand-arrow { transform: translateX(8px); }
.svc:hover .name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
@media (min-width: 900px) {
  .svc { grid-template-columns: auto 1fr auto; grid-template-areas: "name from arrow"; column-gap: 32px; padding: 10px 0; }
  .svc .from { margin-top: 0; font-size: 20px; }
  .hand-arrow { width: 96px; height: 28px; }
}
.svc-list--small .svc .name { font-size: clamp(40px, 10vw, 64px); }

/* ---------- Как у нас: галерея под любое количество фото ----------
   Телефон: горизонтальная прокрутка с затуханием у края. Десктоп: сетка, первое фото крупно в арке. */
.gallery {
  display: flex; gap: 12px; align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  scroll-padding-inline: var(--gutter);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: none; scroll-snap-align: start; }
.g-main { width: 58vw; max-width: 340px; }
.g-main .arch { padding: 6% 8% 2%; }
.g-item img { width: 70vw; max-width: 420px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-card); }
.gallery.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }
.gallery.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 72px), transparent); }
.gallery.can-left:not(.can-right) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.light .hand-arch { color: var(--ink); }
@media (min-width: 900px) {
  .gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense;
    gap: 24px; overflow: visible; margin: 0; padding: 0; align-items: stretch;
  }
  .gallery.can-right, .gallery.can-left { -webkit-mask-image: none; mask-image: none; }
  .g-main { width: auto; max-width: none; grid-column: 1 / span 2; grid-row: 1 / span var(--g-rows, 2); }
  .g-main .arch { height: 100%; display: flex; flex-direction: column; padding: 24px 30px 8px; }
  .g-main .arch-img { flex: 1; min-height: 0; }
  .g-main .arch-img picture, .g-main .arch-img img { height: 100%; }
  .g-main .arch-img img { aspect-ratio: auto; }
  .g-item img { width: 100%; max-width: none; aspect-ratio: 4 / 3; }
  .g-item { grid-column: span 1; }
  .g-item--wide { grid-column: 3 / span 2; }
  .g-item--wide img { aspect-ratio: 8 / 3; }
}

/* ---------- Запись ---------- */
.book { display: grid; gap: 22px; }
.book .smeared--big .hand-smear { left: -7%; width: 114%; top: 28%; height: 90%; }
.book-line { font-size: 19px; max-width: 40ch; }
.book-actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .book-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .book { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; }
  .book .display { grid-row: 1 / span 3; }
  .book .msgs { grid-column: 2; }
}

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 28px; }
.three { display: grid; gap: 6px; font-size: 22px; line-height: 1.35; }
.three a { text-decoration-thickness: 1px; }
.landmark { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.entrance { margin-top: 14px; max-width: 420px; }
.entrance img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.msgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.msg-ico { width: 18px; height: 18px; flex: none; }
.book .msgs { margin-top: 0; }
@media (max-width: 559px) { .three .dot { display: none; } .three .mail { display: table; margin-top: 6px; } }
@media (min-width: 900px) { .three { font-size: 26px; } }
.map { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; max-width: 650px; text-decoration: none; background: var(--white); }
.map img { width: 100%; aspect-ratio: 650 / 450; object-fit: cover; }
.map-cta {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); font-weight: 500; font-size: 15px;
}
.map:hover .map-cta { background: var(--pink); color: var(--ink); }
@media (min-width: 900px) {
  .contacts { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .map { justify-self: end; width: 100%; }
}

/* ---------- Прайс ---------- */
.prices { display: grid; gap: 16px; }
.prices > * { min-width: 0; }
.prices-head .muted { margin-top: 10px; font-size: 18px; }
.jump-wrap { position: sticky; top: var(--header-h); z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 10px 0; background: var(--base); }
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.jump::-webkit-scrollbar { display: none; }
/* затухание у края — подсказка, что переключатели листаются */
.jump-wrap.can-right .jump { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.jump-wrap.can-left .jump { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px); mask-image: linear-gradient(90deg, transparent, #000 64px); }
.jump-wrap.can-left.can-right .jump { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.jump a {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.jump a .h { width: 8px; height: 7px; display: none; }
.jump a:hover { background: var(--white); }
.jump a.is-active { background: var(--pink); box-shadow: inset 0 0 0 1.5px var(--pink); }
.jump a.is-active .h { display: inline-block; }
.grp { padding-top: 28px; scroll-margin-top: calc(var(--header-h) + 72px); }
.grp h3 { font: 900 28px/1 var(--display); letter-spacing: -.01em; margin: 0 0 8px; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 8px 0; }
.rows .p { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.rows.cx li { grid-template-columns: auto 1fr auto; column-gap: 14px; }
.rows.cx .no { font-weight: 500; white-space: nowrap; }
@media (max-width: 559px) {
  .rows.cx li { grid-template-columns: 1fr auto; }
  .rows.cx li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); font-size: 15px; }
}
@media (min-width: 900px) {
  .prices { grid-template-columns: 4fr 8fr; gap: 56px; }
  .prices-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .jump-wrap { margin: 0; padding: 14px 0; }
  .jump { padding: 0; }
  .jump-wrap.can-right .jump, .jump-wrap.can-left .jump, .jump-wrap.can-left.can-right .jump { -webkit-mask-image: none; mask-image: none; }
  .groups { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .grp.wide { grid-column: 1 / -1; }
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: var(--white); border-radius: var(--r-card) var(--r-card) 0 0; padding: 48px 0 28px; }
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.footer-main { display: grid; gap: 20px; }
.footer-main .three { font-size: 19px; color: var(--white); }
@media (min-width: 900px) { .footer-main .three { font-size: 20px; } }
.footer-legal { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--on-dark-2); }
.credit { font-size: 13px; letter-spacing: .04em; }
.credit a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s var(--ease); }
.credit a:hover { border-color: var(--pink); }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1fr 2fr; align-items: start; } }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 46rem; }
.prose h2 { font: 500 20px/1.3 var(--text); margin: 32px 0 10px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p + p { margin-top: 1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
}
