/* Гарнитура эталона. Переменный файл TildaSans лежит локально и закрывает
   начертания 300/400/600 одним ресурсом — внешний CDN сайту не нужен. */
@font-face {
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 250 1000;
    font-display: swap;
    src: url('/assets/fonts/TildaSans-VF.woff2') format('woff2');
}

:root {
    --black: #0d0d0d;
    --ink: #191919;
    --paper: #e5e5e5;
    --pale: #ececec;
    --line: #333;
    --max: 1200px;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'TildaSans', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.45; }
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; }

.sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link { background: #fff; color: var(--black); left: 1rem; padding: .75rem 1rem; position: fixed; top: -4rem; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Шапка эталона: полоса во всю ширину с полями 40px, ряд логотипа высотой 15vh
   и строка меню под разделительной линией. */
.site-header { background: var(--paper); color: var(--black); position: relative; z-index: 30; }
.header-desktop { padding: 0 40px; }
.header-top { align-items: center; display: flex; height: 15vh; justify-content: space-between; min-height: 118px; }
/* Знак стоит на 3px выше середины ряда — как в оригинале; нижний отступ и даёт этот сдвиг. */
.brand { display: block; margin-bottom: 6px; width: 150px; }
.brand img { display: block; height: auto; width: 100%; }
.header-meta { align-items: center; display: flex; gap: 10px; }
.header-social { display: flex; gap: 14px; margin-right: 25px; }
.social-icon { display: block; height: 30px; transition: opacity .2s ease; width: 30px; }
.social-icon svg { display: block; height: 30px; width: 30px; }
.social-icon:hover { opacity: .7; }
/* Бокс телефона в эталоне 166.7px, но текст в нём прижат влево — отступ только справа. */
.header-phone { color: #000; font-size: 16px; padding-right: 30px; text-decoration: none; }
.header-btn { align-items: center; background: none; border: 1px solid transparent; display: inline-flex; font-size: 14px; font-weight: 600; height: 45px; justify-content: center; padding: 0 30px; text-decoration: none; transition: background-color .2s ease-in-out, border-color .2s ease-in-out, color .2s ease-in-out; white-space: nowrap; }
button.header-btn { cursor: pointer; font-family: inherit; }
.header-btn--outline { border-color: var(--black); border-radius: 20px; color: var(--black); }
.header-btn--outline:hover { background: var(--black); color: #ebe9e4; }
.header-btn--solid { background: var(--black); border-radius: 100px; color: #ebe9e4; }
.header-btn--solid:hover { background: var(--paper); border-color: var(--black); color: var(--black); }
.desktop-nav { align-items: center; border-top: 1px solid var(--black); display: flex; height: 60px; }
.desktop-nav a { font-size: 18px; line-height: 21px; padding: 0 35px; text-decoration: none; }
.desktop-nav a:first-child { padding-left: 0; }
.desktop-nav a:last-child { padding-right: 0; }
.desktop-nav a:hover, .desktop-nav .is-active { opacity: .7; }

.mobile-nav { display: none; }

/* Первый экран эталона — холст 1200x550, вписанный в 100vh и растянутый по ширине
   окна: --zu стоит ровно один пункт холста (1.2px на 1440). Отступ 15px сверху и
   45px под шапкой — собственные поля записей оригинала. */
.desktop-intro { background: var(--pale); overflow: hidden; padding-top: 15px; }
.desktop-intro__stage { --zu: calc(100vw / 1200); height: 100vh; min-height: 550px; position: relative; }
.intro-logo, .intro-tagline, .intro-greeting { left: 50%; position: absolute; transform: translateX(-50%); }
.intro-logo { height: calc(140.83 * var(--zu)); left: calc(50% - 5.4 * var(--zu)); top: calc(50% - 90.83 * var(--zu)); width: calc(493.6 * var(--zu)); }
/* Вордмарк набран восемью узлами по одному PNG — так же, как в эталоне, где
   каждая буква отдельная и тянется под курсором сама по себе. Границы срезов
   выбраны в пустых колонках между чернилами и попадают в промежуток сразу трёх
   файлов, поэтому таблица одна на все ступени: со ступенью меняются только сам
   файл (--wm) и ширина коробки. --s растягивает фон до ширины всего вордмарка,
   --p ставит его так, чтобы в срезе оказалась своя буква. */
.intro-logo { --wm: url('/assets/site/wordmark-sobolev.png'); }
.intro-logo > span { background-image: var(--wm); background-position: var(--p) 66.94%; background-repeat: no-repeat; background-size: var(--s) 70%; bottom: -14.17%; left: var(--a); position: absolute; top: -28.69%; width: var(--w); }
.intro-logo > :nth-child(1) { --a: 0%; --w: 9.5%; --s: 1052.63%; --p: 0%; }
.intro-logo > :nth-child(2) { --a: 9.5%; --w: 15.1%; --s: 662.25%; --p: 11.19%; }
.intro-logo > :nth-child(3) { --a: 24.6%; --w: 10.4%; --s: 961.54%; --p: 27.46%; }
.intro-logo > :nth-child(4) { --a: 35%; --w: 14.6%; --s: 684.93%; --p: 40.98%; }
.intro-logo > :nth-child(5) { --a: 49.6%; --w: 10.9%; --s: 917.43%; --p: 55.67%; }
.intro-logo > :nth-child(6) { --a: 60.5%; --w: 10.3%; --s: 970.87%; --p: 67.45%; }
.intro-logo > :nth-child(7) { --a: 70.8%; --w: 15.2%; --s: 657.89%; --p: 83.49%; }
.intro-logo > :nth-child(8) { --a: 86%; --w: 14%; --s: 714.29%; --p: 100%; }
/* Коробка буквы — не чернила, а строка эталона: 48.2px над чернилами и 23.8px
   под ними на 168px чернил (замер 1440), то есть -28.69% и -14.17% высоты
   вордмарка. Оба числа — прямой замер, а не подгонка: недостающий множитель
   зума эталона стоит там, где он у него и работает, — в сдвиге скрипта.
   В такой коробке опора «bottom» и делитель 26 — те же числа, что у оригинала,
   без пересчёта. Фон занимает внутри неё ровно полосу чернил: её высота
   1/(1 + 0.2869 + 0.1417) = 70% коробки, поставленные на 0.2869/0.4286 = 66.94%,
   поэтому в покое вордмарк ровно той же высоты, что и до нарезки. */
.intro-logo__letter { cursor: default; transform-origin: 50% 100%; transition: transform .2s linear; }
.intro-tagline { height: auto; top: calc(50% + 79 * var(--zu)); width: calc(239 * var(--zu)); }
.intro-greeting { color: #000; font-size: calc(10 * var(--zu)); font-weight: 300; line-height: 1.55; margin: 0; top: calc(50% + 182 * var(--zu)); white-space: nowrap; }
.round-cta { align-items: center; background: var(--ink); border: 1px solid var(--ink); border-radius: 50%; color: #fff; display: flex; font-size: 10px; font-weight: 600; height: 85px; justify-content: center; letter-spacing: .01em; line-height: 1.55; position: relative; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, transform .2s ease; width: 83px; }
.round-cta:hover { background: #e1e1e1; color: var(--ink); transform: scale(1.08); }
/* Кольцо круглой кнопки. У эталона оно одно на все три варианта — hero главной,
   мобильная кнопка и кнопка внутренних страниц: отдельный контур 1px solid
   rgb(25,25,25) с полным радиусом, чей бокс совпадает с боксом самой кнопки
   (замер: 99.6x102 на 1440, 88.6x90.7 на 1024, 101x98 у мобильной кнопки на
   375, 104x107 и 83x85 у кнопки «Цен» на 1440 и 375), а раздувает
   его обёртка 2s linear infinite по кадрам scale(1) → scale(1.16) → scale(1.5).
   Затухания нет: opacity держится 1 на всех замеренных кадрах. Отрицательный
   inset в толщину рамки кнопки ставит контур ровно на её внешнюю кромку —
   вложенный абсолют считается от padding-бокса, который на рамку уже. */
.round-cta::before { animation: cta-ring 2s linear infinite; border: 1px solid var(--ink); border-radius: 50%; content: ''; inset: -1px; position: absolute; }

@keyframes cta-ring {
    0% { transform: scale(1); }
    50% { transform: scale(1.16); }
    100% { transform: scale(1.5); }
}

.intro-cta { font-size: calc(10 * var(--zu)); height: calc(85 * var(--zu)); left: calc(50% + 439 * var(--zu)); position: absolute; top: calc(50% + 114 * var(--zu)); width: calc(83 * var(--zu)); }

.mobile-hero { display: none; }

/* Портрет под 70-процентной вуалью — тот же кадр 1568x1536, что отдаёт эталон, и на
   всех ширинах: ровный серый в полностраничных снимках эталона даёт его параллакс,
   а не отсутствие фотографии (снимок самой записи показывает лицо и на 1440). */
/* Раскладка текстовой группы снята с DOM эталона. Каждая из трёх записей начинается
   пустой строкой (в разметке эталона это ведущий <br>) и несёт собственные поля:
   надзаголовок 30/60, заголовок 24/38, подпись 0/30. Пустая строка воспроизведена
   верхним полем в одну строку: 30+16, 24+46.8, 0+36 — тогда высоты боксов совпадают
   с эталоном (1440: 122 / 249.2 / 174). Обёртка эталона добавляет 42 сверху и 42+18
   снизу, сама запись — ещё по 60: вместе это 222, поэтому собственный минимум записи
   равен эталонным 767 (замер 1440: vh 600 и 700 → 767, vh 900 → 900, vh 1200 → 1200),
   а сдвиг обёртки на 18 вниз держат поля 102/120 — центрированная группа встаёт на
   эталонные y (1440 x 900: 1128.4 / 1250.4 / 1499.6; 1440 x 600: 821.9 / 943.9 / 1193.1). */
.desktop-photo-intro { align-items: center; background: #000 url('/assets/site/friends-portrait.png') center center / cover no-repeat; color: #333; display: flex; justify-content: center; min-height: 100vh; overflow: hidden; padding: 102px 20px 120px; position: relative; text-align: center; }
.desktop-photo-intro__shade { background: linear-gradient(to bottom, rgba(233, 233, 233, .7), rgba(231, 231, 231, .7)); inset: 0; position: absolute; }
.desktop-photo-intro__content { max-width: 1160px; position: relative; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2.5px; line-height: 16px; margin: 0; padding: 46px 0 60px; text-transform: uppercase; }
.desktop-photo-intro h1 { font-size: 40px; font-weight: 600; letter-spacing: .45px; line-height: 46.8px; margin: 0 auto; max-width: 1160px; padding: 70.8px 0 38px; }
.desktop-photo-intro__content > p:not(.eyebrow) { font-size: 24px; font-weight: 300; line-height: 36px; margin: 0 auto; max-width: 700px; padding: 36px 0 30px; }
.scroll-arrow { bottom: 47px; height: 19px; left: 50%; position: absolute; transform: translateX(-50%); width: 38px; }
.scroll-arrow svg { animation: arrow-bob 1.5s ease-in-out infinite; display: block; fill: #fff; height: 100%; width: 100%; }

.welcome-section { margin: 0 auto; max-width: 600px; padding: 150px 20px; text-align: center; }
.welcome-image { border-radius: 50%; display: block; height: 260px; margin: 0 auto 50px; width: 260px; }
.welcome-copy { color: #000; }
.welcome-copy h2 { font-size: 36px; font-weight: 600; line-height: 1.23; margin: 0 auto 20px; max-width: 560px; }
.welcome-copy p { font-size: 18px; font-weight: 300; line-height: 1.55; margin: 0 auto; max-width: 560px; }

.site-footer { background: #191919; border-top: 1px solid #333; color: #fff; }
.footer-inner { align-items: center; display: flex; height: 70px; justify-content: space-between; margin: 0 auto; max-width: 960px; }
.footer-inner p { font-size: 14px; font-weight: 300; line-height: 1.55; margin: 0; }
.footer-inner u { text-underline-offset: 3px; }
.footer-inner a { color: inherit; text-decoration: none; }
.social-links { display: flex; gap: 8px; }

/* Внутренние страницы повторяют отдельные записи оригинала. Числа сняты с DOM
   эталона: обложка «Обо мне» стоит на y=165, первая плитка «Салона» — на y=275
   (на ≤480 — на y=95), мозаика идёт колонками 440/236/162.5 с зазором 20/10. */
.about-spacer { background: var(--paper); height: 120px; }
.about-cover { align-items: flex-end; background: #c6c6c6 url('/assets/site/about-pavel-cover.png') center / cover no-repeat; display: flex; min-height: 700px; overflow: hidden; position: relative; }
.about-cover__veil { background: rgba(255, 255, 255, .5); inset: 0; position: absolute; }
.about-cover__content { margin: 0 auto; max-width: var(--max); padding: 0 20px; position: relative; width: 100%; }
.about-cover h1 { color: #333; font-size: 24px; font-weight: 500; letter-spacing: .5px; line-height: 1.25; margin: 0; max-width: 650px; padding: 24px 0 40px; }
/* Запись эталона прижата к низу обложки: под адресом стоит её собственное поле 90px. */
.about-cover__email { color: #333; display: inline-block; font-size: 24px; font-weight: 300; letter-spacing: 1px; line-height: 1.46; margin-top: 28px; padding-bottom: 90px; text-decoration: none; }
.about-cover__email:hover { text-decoration: underline; }
.about-welcome { background: var(--paper); color: #000; padding: 180px 20px; text-align: center; }
.about-welcome__copy { font-size: 30px; font-weight: 300; line-height: 1.45; margin: 0 auto; max-width: 1160px; }
.about-welcome h2 { font: inherit; font-weight: 700; margin: 0 0 1.45em; }
.about-welcome p { margin: 0; }
p.about-welcome__hours { font-size: 15px; font-weight: 300; line-height: 1.55; margin: 75px auto 0; max-width: 1160px; }

/* Запись галереи лежит на белом фоне оригинала, а не на общей светло-серой бумаге,
   и не ограничена по ширине: замер эталона на 1600 даёт плитки 493.3/1006.7 в полосе
   40…1560, на 1920 — 600/1220 в полосе 40…1880, то есть колонки тянутся за --max. */
.salon-gallery { background: #fff; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 211px 40px 20px; }
.salon-gallery__tile { aspect-ratio: 1; display: block; min-width: 0; overflow: hidden; }
.salon-gallery__tile img { display: block; height: 100%; object-fit: cover; transition: transform .45s ease; width: 100%; }
.salon-gallery__tile:hover img { transform: scale(1.035); }
.salon-gallery__tile--01 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.salon-gallery__tile--02 { grid-column: 3; grid-row: 1; }
.salon-gallery__tile--03 { grid-column: 3; grid-row: 2; }
.salon-gallery__tile--04 { grid-column: 1; grid-row: 3; }
.salon-gallery__tile--05 { grid-column: 1; grid-row: 4; }
.salon-gallery__tile--06 { grid-column: 2 / span 2; grid-row: 3 / span 2; }
.salon-gallery__tile--07 { grid-column: 1 / span 2; grid-row: 5 / span 2; }
.salon-gallery__tile--08 { grid-column: 3; grid-row: 5; }
.salon-gallery__tile--09 { grid-column: 3; grid-row: 6; }
/* Нижний кадр эталона — 1360x884, то есть 20/13; на узком экране он квадратный. */
.salon-gallery__tile--10 { aspect-ratio: 20 / 13; grid-column: 1 / span 3; grid-row: 7; }
/* Price list page: lavender ground, two-column list and the hair length record of the source. */
.price-page { background: #d5dae8; color: #000; padding-top: 191px; }
.price-page > * { margin-left: auto; margin-right: auto; max-width: var(--max); padding-left: 20px; padding-right: 20px; }
.price-hero h1 { font-size: 42px; font-weight: 600; line-height: 1.23; margin: 0 0 40px; text-align: center; }
.price-hero__descr { font-size: 24px; font-weight: 300; line-height: 1.5; margin: 0 auto 105px; max-width: 560px; text-align: center; }
/* Строки прайса стоят на одной высоте в обеих колонках: сетка общая, а не две
   независимые стопки, поэтому подпись под ценой слева не сдвигает правую строку.
   Поток идёт по столбцам, поэтому в первой колонке остаются первые три пункта;
   пунктов в колонке ровно три — добавишь четвёртый, поправь и это число. */
.price-columns { display: grid; column-gap: 40px; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); row-gap: 30px; }
.price-col { display: contents; }
.price-item__row { align-items: baseline; border-bottom: 1px solid rgba(0, 0, 0, .1); display: flex; font-size: 18px; font-weight: 600; gap: 20px; justify-content: space-between; line-height: 1.35; padding-bottom: 10px; }
.price-item__title { text-transform: uppercase; }
.price-item__price { text-align: right; white-space: nowrap; }
.price-item__descr { font-size: 16px; font-weight: 300; line-height: 1.55; margin: 0; padding-top: 8px; }
.price-note { font-size: 24px; font-weight: 300; line-height: 1.5; margin: 75px auto 105px; max-width: 600px; text-align: center; }
.hair-length { align-items: start; column-gap: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hair-length h2 { font-size: 40px; font-weight: 600; line-height: 1.55; margin: 0 0 31px; }
.hair-length p { font-size: 20px; font-weight: 300; line-height: 1.55; margin: 0; padding-bottom: 6px; }
.hair-length__chart { display: block; height: auto; margin: 4px 0 10px; width: 100%; }
.price-cta { padding-bottom: 112px; padding-top: 12px; text-align: center; }
.round-cta--lg { font-size: 14px; height: 107px; margin: 0 auto; width: 104px; }

/* Directions page: white ground, centred address record and the full-bleed map band. */
.contacts-page { background: #fff; color: #000; padding-bottom: 75px; padding-top: 191px; }
.contacts-intro { margin: 0 auto; max-width: var(--max); padding: 0 20px 60px; text-align: center; }
.contacts-intro h1 { font-size: 36px; font-weight: 600; line-height: 1.23; margin: 0 auto 15px; max-width: 960px; }
.contacts-intro__address { font-size: 20px; font-weight: 300; line-height: 1.55; margin: 8px auto 0; max-width: 960px; padding-bottom: 6px; }
.contacts-map { height: 550px; }
/* Эталон рисует карту схемой `bw_dark` конструктора Яндекса — чёрно-белой и почти
   чёрной. Сохранённая карта требует аккаунта, поэтому монохром делается на нашей
   стороне фильтром. Замер снимка блока на 1440 (эталон → наш): насыщенность
   0.17 → 0.00 (цветных пикселей 0.09% → 0%), мода яркости 3 → 2, медиана 6 → 4,
   p99 255 → 243. Множители сняты с этих же величин: земля 50 → 3, подпись 200 → 255,
   отсюда contrast 1.65 при brightness 1.03. Крутить contrast выше 1.65 нельзя —
   на 1.8 в ноль схлопываются 553 тыс. пикселей и пропадает рисунок кварталов. */
.contacts-map iframe { border: 0; display: block; filter: grayscale(1) brightness(1.03) contrast(1.65); height: 100%; width: 100%; }

/* Реквизиты исполнителя под картой: обязательные сведения о продавце. Чернила
   не объявляются — страница красит их сама, включая ссылки. */
.contacts-legal { margin: 0 auto; max-width: var(--max); padding: 60px 20px 0; }
.contacts-legal h2 { font-size: 24px; font-weight: 600; line-height: 1.35; margin: 0 0 20px; }
.contacts-legal__list { list-style: none; margin: 0; padding: 0; }
.contacts-legal__list li { border-bottom: 1px solid rgba(0, 0, 0, .1); display: flex; flex-wrap: wrap; font-size: 16px; font-weight: 300; gap: 8px 30px; justify-content: space-between; line-height: 1.55; padding: 11px 0; text-align: left; }
.contacts-legal__list li > span:first-child { font-weight: 600; }
.contacts-legal__list li > span:last-child { text-align: right; }
.contacts-legal__docs { font-size: 16px; font-weight: 300; line-height: 1.55; margin: 20px 0 0; }
.contacts-legal a { color: #000; text-underline-offset: 3px; }

/* Правовые страницы — политика, согласие и правила записи. Вёрстка у трёх одна,
   разный только текст, поэтому и запись одна. Отступ сверху идёт по той же
   ступени, что /price и /contacts. */
.legal-page { background: #fff; padding-bottom: 90px; padding-top: 191px; }
.legal-doc { margin: 0 auto; max-width: 860px; padding: 0 20px; }
.legal-doc h1 { font-size: 36px; font-weight: 600; line-height: 1.23; margin: 0 0 15px; }
.legal-doc__meta { font-size: 16px; font-weight: 300; line-height: 1.55; margin: 0 0 45px; opacity: .7; }
.legal-doc h2 { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 40px 0 14px; }
.legal-doc p { font-size: 17px; font-weight: 300; line-height: 1.65; margin: 0 0 14px; }
.legal-doc ul:not(.legal-facts) { margin: 0 0 14px; padding-left: 22px; }
.legal-doc ul:not(.legal-facts) li { font-size: 17px; font-weight: 300; line-height: 1.65; margin-bottom: 8px; }
.legal-doc a { color: inherit; text-underline-offset: 3px; }
.legal-facts { list-style: none; margin: 0 0 14px; padding: 0; }
.legal-facts li { border-bottom: 1px solid rgba(0, 0, 0, .1); display: flex; flex-wrap: wrap; font-size: 16px; font-weight: 300; gap: 8px 30px; justify-content: space-between; line-height: 1.55; padding: 11px 0; }
.legal-facts li > span:first-child { font-weight: 600; }
.legal-facts li > span:last-child { text-align: right; }
.legal-nowrap { white-space: nowrap; }

/* Онлайн-запись. У оригинала здесь чужой виджет Dikidi, поэтому эталон формы —
   визуальный язык остальных страниц: светло-серая подложка, белые карточки,
   типографика прайса и кнопки шапки. */
.booking-page { background: var(--paper); padding-bottom: 120px; padding-top: 191px; }
.booking-hero { margin: 0 auto; max-width: 900px; padding: 0 20px; }
.booking-hero h1 { font-size: 42px; font-weight: 600; line-height: 1.23; margin: 0 0 40px; text-align: center; }
.booking-form { margin: 0; }
/* min-width: 0 — иначе fieldset считает себе ширину по содержимому, и лента дней
   растягивает всю страницу вбок вместо того, чтобы прокручиваться внутри себя. */
.booking-step { background: #fff; border: 0; margin: 0 0 20px; min-width: 0; padding: 40px; }
/* <legend> нельзя увести под padding фиэлдсета обычным display: block — он всё
   равно рисуется на верхней кромке. Обтекание ставит его в поток; цена приёма —
   правило ниже, которое сбрасывает обтекание для всех остальных детей записи. */
.booking-step legend { float: left; margin-bottom: 15px; width: 100%; font-size: 14px; font-weight: 600; letter-spacing: 2.5px; line-height: 1.2; padding: 0; text-transform: uppercase; }
.booking-step > *:not(legend) { clear: both; }
.booking-category { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 35px 0 15px; text-transform: uppercase; }
.booking-options { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.booking-option { cursor: pointer; display: block; position: relative; }
.booking-option input, .booking-hour input, .booking-consent input { height: 100%; left: 0; margin: 0; opacity: 0; position: absolute; top: 0; width: 100%; }
.booking-option__body { border: 1px solid rgba(0, 0, 0, .15); display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 20px; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.booking-option__name { font-size: 16px; font-weight: 600; line-height: 1.35; }
.booking-option__meta { font-size: 14px; font-weight: 300; line-height: 1.45; }
.booking-option:hover .booking-option__body { border-color: var(--black); }
.booking-option input:checked ~ .booking-option__body { background: var(--ink); border-color: var(--ink); color: #fff; }
.booking-option input:focus-visible ~ .booking-option__body { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Разделы услуг — якоря к заголовкам: услуг немного, фильтровать нечего. */

/* Шаг «Когда»: лента ближайших дней — основной путь, месяц открывается кнопкой
   справа. Часы дня — только свободные; занятых в разметке нет вовсе. */
.booking-when__head { align-items: baseline; display: flex; gap: 15px; justify-content: space-between; margin-top: 25px; }
.booking-when__label { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; margin: 0; text-transform: uppercase; }
.booking-when__switch { align-items: center; background: none; border: 1px solid rgba(0, 0, 0, .15); border-radius: 100px; color: inherit; cursor: pointer; display: flex; flex: none; height: 44px; justify-content: center; padding: 0; transition: border-color .2s ease; width: 44px; }
.booking-when__switch:hover { border-color: var(--black); }
.booking-when__switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Прокрутка пальцем и колесом; без скрипта это обычный overflow-x. */
.booking-strip { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.booking-strip__day { align-items: center; background: none; border: 1px solid rgba(0, 0, 0, .15); color: inherit; display: flex; flex: none; flex-direction: column; font: inherit; gap: 2px; justify-content: center; min-width: 68px; padding: 12px 10px; scroll-snap-align: start; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
button.booking-strip__day { cursor: pointer; }
button.booking-strip__day:hover { border-color: var(--black); }
.booking-strip__day:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.booking-strip__day--off { border-color: rgba(0, 0, 0, .08); color: rgba(0, 0, 0, .38); }
.booking-strip__day--current { background: var(--ink); border-color: var(--ink); color: #fff; }
.booking-strip__weekday { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.booking-strip__number { font-size: 22px; font-weight: 600; line-height: 1.2; }
.booking-strip__month { font-size: 12px; font-weight: 300; }

/* День без свободного времени говорит это словами и ведёт к ближайшему. */
.booking-empty { margin-top: 30px; }
.booking-empty__title { font-size: 16px; font-weight: 300; line-height: 1.55; margin: 0 0 15px; }

.booking-calendar { margin: 25px 0 0; max-width: 420px; }
.booking-calendar__head { align-items: center; display: flex; gap: 15px; justify-content: space-between; margin-bottom: 20px; }
.booking-calendar__month { font-size: 20px; font-weight: 600; line-height: 1.2; text-align: center; }
.booking-calendar__arrow { align-items: center; background: none; border: 1px solid rgba(0, 0, 0, .15); color: inherit; display: inline-flex; flex: none; font: inherit; font-size: 18px; height: 45px; justify-content: center; padding: 0; text-decoration: none; transition: border-color .2s ease; width: 45px; }
button.booking-calendar__arrow { cursor: pointer; }
button.booking-calendar__arrow:hover { border-color: var(--black); }
.booking-calendar__arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.booking-calendar__arrow--off { border-color: rgba(0, 0, 0, .08); color: rgba(0, 0, 0, .62); }
.booking-calendar__grid { border-collapse: collapse; table-layout: fixed; width: 100%; }
.booking-calendar__grid th { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; padding-bottom: 10px; text-transform: uppercase; }
.booking-calendar__grid td { padding: 2px; text-align: center; }
.booking-day { align-items: center; background: none; border: 1px solid transparent; color: inherit; display: inline-flex; font: inherit; font-size: 16px; height: 42px; justify-content: center; padding: 0; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; width: 42px; }
button.booking-day { cursor: pointer; }
button.booking-day:hover { border-color: var(--black); }
.booking-day:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.booking-day--off { color: rgba(0, 0, 0, .62); }
.booking-day--current { background: var(--ink); border-color: var(--ink); color: #fff; }
.booking-hours__title { font-size: 16px; font-weight: 600; letter-spacing: .5px; margin: 30px 0 0; text-transform: uppercase; }

/* auto-fill сам даёт одну колонку во всю ширину на телефоне и пять на десктопе —
   без второй медиаграницы под этот блок. */
.booking-hours { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 15px; }
.booking-hour { cursor: pointer; display: block; position: relative; }
.booking-hour span { align-items: center; border: 1px solid rgba(0, 0, 0, .15); border-radius: 100px; display: flex; font-size: 16px; font-weight: 600; height: 52px; justify-content: center; padding: 0 22px; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
label.booking-hour:hover span { border-color: var(--black); }
.booking-hour input:checked ~ span { background: var(--ink); border-color: var(--ink); color: #fff; }
.booking-hour input:focus-visible ~ span { outline: 2px solid var(--ink); outline-offset: 2px; }

.booking-fields { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 25px; }
.booking-field { display: block; }
.booking-field__label { display: block; font-size: 14px; font-weight: 600; letter-spacing: .5px; margin-bottom: 8px; text-transform: uppercase; }
.booking-field input, .booking-field textarea { background: #fff; border: 1px solid rgba(0, 0, 0, .25); color: inherit; font: inherit; height: 45px; padding: 0 16px; width: 100%; }
.booking-field textarea { height: auto; line-height: 1.5; padding: 12px 16px; resize: vertical; }
.booking-field input:focus-visible, .booking-field textarea:focus-visible { border-color: var(--ink); outline: 1px solid var(--ink); }
.booking-field__optional { font-weight: 300; letter-spacing: 0; text-transform: none; }
.booking-field__required { color: #c0392b; }
.booking-required-note { font-size: 14px; font-weight: 300; margin: 20px 0 0; }
/* Ловушка для ботов: на экране её нет, поэтому и заполнить её может только робот. */
.booking-trap { display: none; }
.booking-step > .booking-field { margin-top: 25px; max-width: 320px; }
/* Комментарий — тоже прямой ребёнок записи, но во всю её ширину: правило-исключение
   стоит после общего, иначе при равной силе выигрывает колонка 320px. */
.booking-step > .booking-field--comment { display: block; max-width: none; }
.booking-field--comment textarea { min-height: 150px; }

/* Запас под липкой панелью: без него согласие остаётся под ней и не дочитывается.
   Промежуток отдан полю страницы, а не белой карточке — иначе карточка кончается
   пустотой в треть экрана. */
.booking-step:last-of-type { margin-bottom: 150px; }
.booking-consent { font-size: 15px; font-weight: 300; line-height: 1.55; margin-top: 25px; }
.booking-consent__box { cursor: pointer; display: block; padding-left: 32px; position: relative; }
.booking-consent__docs { font-size: 14px; margin: 8px 0 0; padding-left: 32px; }
.booking-consent__docs a { color: inherit; text-underline-offset: 3px; }
.booking-consent__box span::before { border: 1px solid rgba(0, 0, 0, .35); content: ''; height: 18px; left: 0; position: absolute; top: 3px; width: 18px; }
.booking-consent input:checked ~ span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 8 3.5 3.5L13 5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--ink); }
.booking-consent input:focus-visible ~ span::before { outline: 2px solid var(--ink); outline-offset: 2px; }


/* Липкая панель: сводка выбора и кнопка записи не уезжают в конец простыни.
   sticky, а не fixed, — панель встаёт на место, когда форма прокручена до конца,
   и не накрывает собой подвал. */
.booking-bar { align-items: center; background: #fff; border-top: 1px solid rgba(0, 0, 0, .12); bottom: 0; display: flex; flex-wrap: wrap; gap: 15px 25px; justify-content: space-between; padding: 18px 40px; position: sticky; z-index: 5; }
.booking-bar__summary { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; line-height: 1.4; margin: 0; }
.booking-bar__service { font-weight: 600; }
.booking-bar__when { font-weight: 600; }
.booking-bar__meta { font-weight: 300; }
.booking-bar__submit { flex: none; }
.booking-bar__actions { align-items: center; display: flex; flex: none; gap: 12px; }
/* Кнопка «показать свободное время» прячется скриптом атрибутом hidden, а он у
   класса с собственным display не выигрывает — приходится сказать это явно. */
.booking-hint { font-size: 16px; font-weight: 300; line-height: 1.55; margin: 25px 0 0; }
.booking-error { color: #8b1c1c; display: block; font-size: 15px; font-weight: 300; line-height: 1.55; margin: 12px 0 0; }
/* Плашка шага: ответ на нажатие кнопки, поэтому её видно, а не приходится искать. */
.booking-error--notice { align-items: center; background: #fce8e8; border-radius: 6px; color: #c0392b; display: flex; font-size: 16px; font-weight: 400; gap: 14px; margin: 0 0 30px; padding: 18px 22px; }
.booking-error--notice svg { flex: none; }
.booking-error--form { background: #fff; margin-bottom: 20px; padding: 16px 20px; }

.booking-summary { background: #fff; margin: 0; padding: 40px; }
.booking-summary__row { align-items: baseline; border-bottom: 1px solid rgba(0, 0, 0, .1); display: flex; gap: 20px; justify-content: space-between; padding-bottom: 10px; }
.booking-summary__row + .booking-summary__row { margin-top: 20px; }
.booking-summary dt { font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.booking-summary dd { font-size: 18px; font-weight: 300; margin: 0; text-align: right; }
.booking-done__calendar { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin: 30px 0 0; }
.booking-done__mail { font-size: 16px; font-weight: 300; line-height: 1.55; margin: 30px 0 0; text-align: center; }

.not-found { margin: auto; max-width: var(--max); min-height: 100vh; padding: 18vh 42px; }
.not-found h1 { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 400; letter-spacing: -.07em; line-height: .94; margin: 0; }

/* Шапка оригинала лежит поверх первого экрана: в потоке от её записи остаётся
   только 45px, а сама полоса непрозрачно накрывает верх страницы. Внутренние
   страницы возвращают себе прежнее место собственными отступами записей. */
@media (min-width: 981px) {
    body { padding-top: 45px; }
    .site-header { left: 0; position: absolute; right: 0; top: 0; }
    /* Заголовок эталона на 255: 45px шапки в потоке плюс 210 записи. Запись
       онлайн-записи своего эталона не имеет и идёт по этой же ступени —
       контракт P5 держит её отступ вместе с /price и /contacts. */
    .price-page, .contacts-page, .booking-page, .legal-page { padding-top: 210px; }
    /* В потоке остаётся 45px шапки, до первой плитки эталона — ещё 230px. */
    .salon-gallery { padding-top: 230px; }
}

/* Обе фотозаписи эталона на широком экране параллаксят и ломаются на одной и той
   же ширине. Запись «Друзья»: computed background-attachment на 1440, 1200, 1100,
   1040 и 1033 — fixed, на 1032, 1030, 1026, 1024, 981 и 960 — scroll. Обложка
   «Обо мне» (`.t-cover__carrier`): 1440, 1200, 1199, 1100, 1060, 1040, 1033 —
   fixed; 1032, 1025, 1024, 981, 980, 900, 768, 641, 640, 481, 375 — scroll.
   Перелом ровно на 1033 у обеих, поэтому развилка одна и второго приёма нет:
   ниже 1033 (весь телефонный и планшетный диапазон) обе идут scroll, как эталон. */
@media (min-width: 1033px) {
    .desktop-photo-intro, .about-cover { background-attachment: fixed; }
}

@keyframes arrow-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* Первая ступень колонок эталона. Замер /about: на 1440 колонка 1160, текст 30px
   и часы 15px; на 1200, 1100 и 1024 — колонка 940, текст 26px и часы 14px
   (docH 1603 против 1635 на 1440). Значит граница лежит на 1200, а не на 960.
   Заголовок эталона стоит на 130 (1200), 80 (1100), 42 (1024) — это колонка 980
   с полем 20px; адрес в этой же полосе уходит на 10px правее (140 / 90 / 52),
   а на 1440 и на ≤960 оба столбца сходятся. */
@media (max-width: 1200px) {
    /* Контейнер эталона здесь 960 с полем 10px, а не колонка 980 с полем 20px:
       на 1200 и 1024 обе арифметики дают один и тот же левый край (130 и 42), и
       расходятся они только на 961, где контейнер упирается в окно, — эталон
       ставит заголовок на 10.5, а колонка 980 уводила его на 20. */
    .about-cover__content { max-width: 960px; padding: 0 10px; }
    .about-cover__email { margin-left: 10px; }
    .about-cover h1 { max-width: 620px; }
    .about-welcome__copy { font-size: 26px; max-width: 940px; }
    p.about-welcome__hours { font-size: 14px; max-width: 940px; }
    .hair-length h2 { margin-bottom: 27.9px; }
    /* Кнопки шапки эталон сжимает ровно здесь: бисекция 1201/1200 при поле 40
       у полосы даёт 1201 — «Цены» 96.3 и «Как добраться» 154.6 (поле 30),
       1200 — 86.3 и 144.6 (поле 25); зазор между ними 10 на обеих ступенях. */
    .header-desktop .header-btn { padding: 0 25px; }
    /* Подвал ломается на той же 1200: 1201 — кегль 14, запись 448.4 на колонке
       960; 1200 — кегль 12, запись 384.4 на колонке 780 (замер x подписи 210
       на 1200 и 122 на 1024). */
    .footer-inner { max-width: 780px; }
    .footer-inner p { font-size: 12px; }
    /* Контейнер эталона здесь 960 с полями 10px, а колонка внутри — 940:
       на 970 она стоит на x=15, на 1024 — на x=42, на 1200 — на x=130. */
    .desktop-photo-intro { padding-left: 10px; padding-right: 10px; }
    .desktop-photo-intro__content { max-width: 940px; }
    /* Та же граница 1200 у подписи «Друзей» и у завершающего блока: на 1201 эталон
       держит подпись 24/36, заголовок «Жду вас» 36/44.28 и запись 757.9, на 1200 —
       22/33, 32/39.36 и 743.8 (docH 2689 против 2675). */
    .desktop-photo-intro__content > p:not(.eyebrow) { font-size: 22px; line-height: 33px; padding: 33px 0 30px; }
    .welcome-copy h2 { font-size: 32px; }
    .welcome-copy p { font-size: 16px; }
    /* /price и /contacts переключают у эталона кегли и колонку на одной и той же
       границе 1200, а не на 959. Бисекция: 1201 -> заголовок 42px шириной 1160,
       описание 24px, подпись услуги 16px шириной 560, запись «Длина волос» 20px
       шириной 560, заголовок «Как добраться» 36px и адрес 20px шириной 960;
       1200 -> 38px/940, 22px, 14px/460, 18px/460, 32px и 18px/780. Те же числа
       держатся до 641, а на 960 колонка эталона идёт в один столбец 600.
       Колонка 460 — это контейнер 940 с зазором 20 пополам. */
    .price-page > * { max-width: 960px; padding-left: 10px; padding-right: 10px; }
    .price-columns { column-gap: 20px; }
    .hair-length { column-gap: 20px; }
    .price-hero h1 { font-size: 38px; }
    .price-hero__descr { font-size: 22px; }
    .price-item__row { font-size: 16px; }
    .price-item__descr { font-size: 14px; }
    .price-note { font-size: 22px; max-width: 580px; }
    .hair-length p { font-size: 18px; }
    .contacts-intro h1 { font-size: 32px; max-width: 780px; }
    .contacts-intro__address { font-size: 18px; max-width: 780px; }
}

/* Между 960 и 1199 эталон рисует первый экран отдельным холстом 960 (Tilda держит
   раскладки 320/480/640/960/1200 и тянет ближайшую снизу): знак там на пятую часть
   крупнее, чем дало бы масштабирование холста 1200. Числа сняты с DOM эталона на
   960px, где масштаб равен единице. */
@media (max-width: 1199px) and (min-width: 960px) {
    .desktop-intro__stage { --zu: calc(100vw / 960); }
    .intro-logo { --wm: url('/assets/site/wordmark-sobolev-960.png'); height: calc(140.5 * var(--zu)); left: calc(50% - 6.5 * var(--zu)); top: calc(50% - 196.5 * var(--zu)); width: calc(472 * var(--zu)); }
    .intro-tagline { top: calc(50% + 26 * var(--zu)); }
    .intro-greeting { top: calc(50% + 129 * var(--zu)); }
    .intro-cta { left: calc(50% + 307 * var(--zu)); top: calc(50% + 55 * var(--zu)); }
}

/* Оригинал уходит в мобильную шапку уже на 980px: чёрная полоса и бургер. */
@media (max-width: 980px) {
    .site-header { background: var(--black); color: #fff; height: 64px; position: sticky; top: 0; }
    /* Чёрная полоса занимает 64px потока, у оригинала под шапкой остаётся 45px:
       первый экран поднимается на разницу и уходит под полосу, как в эталоне. */
    .desktop-intro, .mobile-hero { margin-top: -19px; }
    .header-desktop { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav summary { cursor: pointer; display: block; height: 64px; list-style: none; position: relative; width: 100%; z-index: 2; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav summary span:not(.sr-only) { background: #fff; display: block; height: 3px; position: absolute; right: 20px; transform-origin: center; transition: transform .25s ease, opacity .25s ease, width .25s ease; width: 28px; }
    .mobile-nav summary span:nth-child(2) { top: 22px; }
    .mobile-nav summary span:nth-child(3), .mobile-nav summary span:nth-child(4) { top: 30px; }
    .mobile-nav summary span:nth-child(5) { top: 38px; width: 20px; }
    .mobile-nav[open] summary span:nth-child(2) { opacity: 0; transform: translateX(10px); }
    .mobile-nav[open] summary span:nth-child(3) { transform: rotate(45deg); }
    .mobile-nav[open] summary span:nth-child(4) { transform: rotate(-45deg); }
    .mobile-nav[open] summary span:nth-child(5) { opacity: 0; transform: translateX(10px); }
    /* Раскрытая панель повторяет мобильное меню оригинала: центрированная
       колонка со знаком, четырьмя пунктами, значками, телефоном и кнопками. */
    .mobile-panel { display: none; }
    .mobile-nav[open] .mobile-panel { align-items: center; background: var(--paper); color: var(--black); display: flex; flex-direction: column; inset: 64px 0 auto; max-height: calc(100svh - 64px); overflow-y: auto; padding: 40px 20px 50px; position: fixed; }
    .mobile-brand { display: block; margin: 0 0 75px; width: 111px; }
    .mobile-brand img { display: block; height: auto; width: 100%; }
    .mobile-panel nav { align-items: center; display: flex; flex-direction: column; gap: 20px; }
    .mobile-panel nav a { font-size: 18px; line-height: 21px; text-decoration: none; }
    .mobile-panel nav a[aria-current] { opacity: .7; }
    .mobile-extra { align-items: center; display: flex; flex-direction: column; }
    .mobile-extra .header-social { margin: 40px 0 0; }
    .mobile-extra .header-phone { margin-top: 30px; }
    .mobile-extra .header-btn { margin-top: 30px; }
    .mobile-extra .header-btn + .header-btn { margin-top: 20px; }
    /* Чёрная полоса занимает 64px, обложка эталона начинается на y=165. */
    .about-spacer { height: 101px; }
}

/* Вторая ступень колонок эталона — 600px. Замеры на 960: колонка обложки «Обо мне»
   стоит на x=180 шириной 600, колонка блока «Друзья» — 640 с текстом 600, мозаика
   «Салона» переходит на поля 20px и зазор 10px (плитки 300/610). */
@media (max-width: 960px) {
    .about-cover__content { max-width: 640px; padding: 0 20px; }
    .about-cover__email { margin-left: 0; }
    .about-welcome__copy { max-width: 600px; }
    p.about-welcome__hours { max-width: 600px; }
    .desktop-photo-intro__content { max-width: 600px; }
    .salon-gallery { gap: 10px; padding-left: 20px; padding-right: 20px; }
    .price-page > * { max-width: 640px; padding-left: 20px; padding-right: 20px; }
    /* Поля записей прайса эталон ломает на той же 960: замер 961 — 40/105/105,
       960 — 20/45/45. */
    .price-hero h1 { margin-bottom: 20px; }
    .price-hero__descr { margin-bottom: 45px; }
    /* Одна колонка: поток снова построчный, иначе пункты уедут вбок тремя рядами. */
    .price-columns { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 30px; }
    .hair-length { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
    /* От примечания до записи «Длина волос» у эталона 75px на всех ширинах
       ≤960 (замер 960, 768, 640, 600, 481, 480, 375) и 105 на ≥961. */
    .price-note { margin-bottom: 75px; max-width: 600px; }
    /* Кнопка здесь ещё 104x107, а полоса эталона уже 252: 32 + 107 + 113. */
    .price-cta { padding-top: 32px; }
    .contacts-intro { max-width: 640px; padding-left: 20px; padding-right: 20px; }
    .footer-inner { max-width: 600px; }
}

/* Планшетная полоса. Верхняя граница 959 — переход холста первого экрана: на 960
   эталон держит холст 960 (масштаб 1), ниже — холст 640. Запись «Друзья» ломается
   не здесь, а на 899 — у неё своя ступень ниже.
   Нижняя граница 641 — переход на телефонные записи оригинала (см. блок ≤640). */
@media (max-width: 959px) and (min-width: 641px) {
    /* Кнопка 83x85, полоса эталона те же 252: 43 + 85 + 124. */
    .price-cta { padding-bottom: 123px; padding-top: 43px; }
    .round-cta--lg { height: 85px; width: 83px; }
    .desktop-intro__stage { --zu: calc(100vw / 640); }
    .intro-logo { --wm: url('/assets/site/wordmark-sobolev-640.png'); left: calc(50% - 7.08 * var(--zu)); top: calc(50% - 158.33 * var(--zu)); width: calc(436.15 * var(--zu)); }
    .intro-tagline { top: calc(50% + 35.83 * var(--zu)); }
    .intro-greeting { top: calc(50% + 139 * var(--zu)); }
    .intro-cta { left: calc(50% + 176.67 * var(--zu)); top: calc(50% + 56.67 * var(--zu)); }
}

/* Своя ступень записи «Друзья»: эталон переключает её ровно на 899. Замеры кегля
   заголовка: 960 → 40px, 900 → 40px, 899, 896, 893, 891, 800, 768, 700, 641 → 68px.
   Высота записи здесь 1400, а не 1559: 1559 — залипшая догрузочная метрика,
   в ней группа съезжает вниз на половину разницы 159 и стоит на 231.5 / 369.5
   вместо эталонных 152 / 290. Мерить только после принудительного пересчёта по
   resize (769 -> 768): document.fonts.ready недостаточен, Tilda меряет запись
   один раз до подмены шрифта и не пересчитывает. Заголовок эталона здесь 777.9px
   на восьми видимых строках — это те же 24/38 полей плюс девятая, пустая строка
   (24 + 9 x 79.56 + 38). Кадр «Друзей» остаётся базовым: запись эталона на 768 —
   768x1559 с background-attachment: scroll, position 50% 50%, size cover. */
@media (max-width: 899px) and (min-width: 641px) {
    .desktop-photo-intro { min-height: 1400px; }
    .desktop-photo-intro h1 { font-size: 68px; line-height: 79.56px; padding: 103.56px 0 38px; }
}

/* Телефонные записи оригинала. Граница 640 общая: на 641 эталон показывает первый
   экран, блок «Друзья» (1559px) и обложку «Обо мне» 700px, на 640 — мобильный
   первый экран, без «Друзей», с обложкой 900px, и мозаика идёт в две колонки. */
@media (max-width: 640px) {
    /* Запись складывается на телефоне по уже существующей ступени 640:
       собственного эталона у формы нет, новую границу лесенки не заводим. */
    .booking-options, .booking-fields { grid-template-columns: minmax(0, 1fr); }
    .booking-step, .booking-summary { padding: 30px 20px; }
    .booking-hero h1 { font-size: 32px; }
    .booking-summary__row { flex-direction: column; gap: 4px; }
    .booking-done__calendar { flex-direction: column; }
    .booking-summary dd { text-align: left; }
    .desktop-intro, .desktop-photo-intro { display: none; }
    /* Общее у трёх телефонных артбордов эталона; размеры каждого — своей ступенью ниже. */
    .mobile-hero { background: #fff url('/assets/site/hero-mobile.jpg') 0 0 / cover no-repeat; display: block; overflow: hidden; position: relative; }
    .mobile-hero-shade { background: rgba(255, 255, 255, .7); inset: 0; position: absolute; }
    .mobile-hero-content { display: flex; flex-direction: column; position: relative; }
    .mobile-hero-signature { height: auto; max-width: none; }
    .mobile-hero h1 { font-weight: 400; }
    .mobile-hero p { opacity: .7; }
    .welcome-image { display: none; }
    .welcome-copy h2 { font-size: 28px; }
    .welcome-copy p { font-size: 14px; line-height: 1.45; }
    /* Мобильная запись обложки: 900px, текст по центру и разряжен на 2px. */
    .about-cover { align-items: center; min-height: 100svh; }
    .about-cover__veil { background: rgba(255, 255, 255, .7); }
    .about-cover__content { padding: 0 30px; }
    .about-cover h1 { font-size: 24px; letter-spacing: 2px; line-height: 1.25; }
    /* Эталон убирает только переносы внутри предложений, оставляя на их месте
       пробел; переносы между предложениями он сохраняет. */
    .about-cover h1 br.br-soft { display: none; }
    .about-cover__email { display: none; }
    /* Колонка эталона здесь равна ширине окна минус 40: замер даёт 600 на 640,
       441 на 481, 440 на 480 и 335 на 375 — то есть своего предела у неё нет. */
    .about-welcome__copy { font-size: 22px; max-width: none; }
    p.about-welcome__hours { font-size: 12px; line-height: 1.45; max-width: none; }
    .salon-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .salon-gallery__tile--01 { grid-column: 1 / span 2; grid-row: 1; }
    .salon-gallery__tile--02 { grid-column: 1; grid-row: 2; }
    .salon-gallery__tile--03 { grid-column: 2; grid-row: 2; }
    .salon-gallery__tile--04 { grid-column: 1; grid-row: 3; }
    .salon-gallery__tile--05 { grid-column: 2; grid-row: 3; }
    .salon-gallery__tile--06 { grid-column: 1 / span 2; grid-row: 4; }
    .salon-gallery__tile--07 { grid-column: 1 / span 2; grid-row: 5; }
    .salon-gallery__tile--08 { grid-column: 1; grid-row: 6; }
    .salon-gallery__tile--09 { grid-column: 2; grid-row: 6; }
    .salon-gallery__tile--10 { aspect-ratio: 1; grid-column: 1 / span 2; grid-row: 7; }
    /* Строка заголовка эталона здесь 58 (40px x 1.45), пустая строка 23.2. */
    .hair-length h2 { line-height: 1.45; margin-bottom: 23.2px; }
    .price-hero h1 { font-size: 30px; margin-bottom: 20px; }
    .price-hero__descr { font-size: 20px; line-height: 1.4; margin-bottom: 45px; }
    .price-item__row { font-size: 14px; }
    .price-item__descr { font-size: 12px; line-height: 1.45; }
    .price-note { font-size: 20px; line-height: 1.4; margin-bottom: 75px; }
    .hair-length p { font-size: 16px; line-height: 1.45; }
    .price-cta { padding-bottom: 123px; padding-top: 43px; }
    .round-cta--lg { height: 85px; width: 83px; }
    /* Бисекция «Как добраться»: 641 — заголовок 32px и адрес 18px, 640, 480, 375
       и 320 — 28px и 16px. Заголовок держался на 26px и не совпадал с эталоном. */
    .contacts-intro h1 { font-size: 28px; }
    .contacts-intro__address { font-size: 16px; line-height: 1.45; }
    .not-found { padding-left: 20px; padding-right: 20px; }
    /* Ниже 640 эталон отдаёт подвалу окно с полями 20: на 640 запись 600 на
       x=20, на 600 — 560 на x=20, а у нас колонка 600 упиралась в край. */
    .footer-inner { max-width: 640px; padding: 0 20px; }
}

/* Телефонный первый экран эталона — три артборда, а не один растянутый. Замеры
   высоты записи: 375 и 479 → 910, 480, 481, 560, 600, 620 и 639 → 984, 640 → 949.
   Каждая ширина попадает ровно в одну ступень: полосы не перекрываются и высоту
   друг у друга не отменяют. Зазоры внутри записи эталон держит одинаковыми на
   480–639 (заголовок в 40px под знаком, текст в 15px, кнопка в 51px) и сдвигает
   их на 640 (40 / 20 / 50). */
@media (max-width: 479px) {
    .mobile-hero, .mobile-hero-content { min-height: 910px; }
    .mobile-hero-content { padding: 100px 47px 76px; }
    .mobile-hero-signature { margin-left: -4px; width: min(289px, 88vw); }
    .mobile-hero h1 { font-size: 32px; line-height: 1.25; margin: 74px 0 0; max-width: 280px; }
    .mobile-hero p { font-size: 18px; line-height: 28px; margin: 15px 0 0; max-width: 280px; }
    .mobile-hero .round-cta { align-self: center; font-size: 14px; height: 98px; margin-top: auto; width: 101px; }
}

@media (min-width: 480px) and (max-width: 639px) {
    .mobile-hero, .mobile-hero-content { min-height: 984px; }
    .mobile-hero-content { padding: 200px 20px 0; }
    .mobile-hero-signature { margin-left: 0; width: 100%; }
    .mobile-hero h1 { font-size: 42px; line-height: 53px; margin: 40px 0 0; }
    .mobile-hero p { font-size: 20px; line-height: 31px; margin: 15px 0 0; }
    .mobile-hero .round-cta { align-self: flex-start; font-size: 10px; height: 85px; margin: 51px 0 0 10px; width: 83px; }
}

@media (min-width: 640px) and (max-width: 640px) {
    .mobile-hero, .mobile-hero-content { min-height: 949px; }
    .mobile-hero-content { padding: 145px 40px 0; }
    .mobile-hero-signature { margin-left: 0; width: 100%; }
    .mobile-hero h1 { font-size: 48px; line-height: 60px; margin: 40px 0 0; }
    .mobile-hero p { font-size: 22px; line-height: 34px; margin: 20px 0 0; }
    .mobile-hero .round-cta { align-self: flex-start; font-size: 10px; height: 85px; margin: 50px 0 0 10px; width: 83px; }
}

/* Подвал эталона ломается в колонку ровно между 575 и 574: бисекция по три
   прогона на ширину даёт 600 → 71px, 575 → 71px, 574 → 119px. Полоса ниже этой
   ступени у нас теперь та же: 574, 561, 481 и 480 → 119px, 375 → 134.19px. */
@media (max-width: 574px) {
    /* Собственная запись подвала эталона здесь не ниже 70px, а её поля 24px: на
       574, 561, 481 и 480 подпись в одну строку записи не наполняет и подвал
       остаётся 119px, на 400, 375 и 320 подпись идёт в две строки и подвал
       вырастает до 134.19px. Ряд значков там 34px — сами значки 30px плюс 4px
       свободного места под базовой линией. */
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; height: auto; max-width: none; min-height: 118px; padding: 24px 20px; }
    .social-links { height: 34px; }
}

/* На 480 и уже эталон снимает пустую запись над обложкой (её видно на 481 и нет
   на 480), поджимает завершающий блок до 120px и верх галереи до 30px. */
@media (max-width: 480px) {
    .about-spacer { display: none; }
    /* Полоса мобильного меню высотой 64px, а в потоке эталона от шапки остаётся
       45px, поэтому обложка поднимается под неё на измеренные 19px. */
    .about-cover { margin-top: -19px; }
    /* Круглый знак эталон снимает уже на 640, а поля завершающего блока держит 150
       до 481 и роняет до 90 на 480: запись 415.3 на 481–640, 295.3 на 480. */
    .welcome-section { padding: 90px 20px; }
    .about-welcome { padding: 120px 20px; }
    /* Ступень эталона ровно на 480: 481 — заголовок внутренних страниц на 255,
       480 и 375 — на 165, то есть 64px мобильной шапки плюс запись 101.
       Полоса кнопки записи здесь 222: 43 + 85 + 94. */
    .price-page, .contacts-page, .booking-page, .legal-page { padding-top: 101px; }
    .price-cta { padding-bottom: 93px; }
    .salon-gallery { padding-top: 31px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
