/* ==========================================================================
   Foodg Catering — style.css
   1. Токены и сброс
   2. Типографика, контейнер
   3. Кнопки, чипы, формы
   4. Шапка, навигация, бургер, мобильное меню, футер
   5. Секции
   6. Медиазапросы, доступность, печать
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ТОКЕНЫ
   -------------------------------------------------------------------------- */

/* Атрибут hidden обязан скрывать: правило класса с display перебивает
   браузерное [hidden]{display:none}, и скрытый блок остаётся видимым. */
[hidden] { display: none !important; }

:root {
    /* Фоны */
    --cream: #FFFAF4;
    --greige: #F3F0EB;
    --paper: #F9F9F9;

    /* Текст */
    --ink: #522B1A;
    --ink-2: #362B24;
    --muted: #7A5C48;

    /* Акценты */
    --clay: #CD8F52;
    --clay-dark: #B87A3E;
    /* Затемнённая охра для текста и кнопок: ≥4.5:1 с белым и со светлыми фонами */
    --clay-text: #96601F;
    --clay-btn: #A2662F;
    --clay-btn-dark: #8A5525;
    --brand: #B83037;
    --olive: #6B6733;
    --forest: #2C5530;
    --blue: #459AC2;
    --blue-dark: #3A87AC;
    /* Затемнённый синий для текста и кнопок: ≥4.5:1 с белым */
    --blue-deep: #2E7CA0;
    --blue-deeper: #256884;
    --periwinkle: #4C74BE;
    --sand: #EEE9DB;
    --gold: #ECC15C;
    --butter: #F7F5CF;

    /* Служебные */
    --line: rgba(82, 43, 26, .16);
    --line-light: rgba(255, 255, 255, .18);
    --shadow-float: 0 18px 40px rgba(60, 35, 20, .10);
    --shadow-card: 0 2px 10px rgba(60, 35, 20, .06);
    --photo-fade: linear-gradient(to top, rgba(40, 26, 16, .92) 0%, rgba(40, 26, 16, .72) 45%, rgba(40, 26, 16, .28) 75%, transparent 100%);

    /* Шрифты */
    --font-display: 'Prata', 'Lora', Georgia, 'Times New Roman', serif;
    --font-text: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Сетка */
    --container: 1280px;
    --container-narrow: 760px;
    --pad: 24px;
    --radius: 16px;
    --radius-sm: 14px;
    --radius-lg: 24px;

    /* Ритм */
    --section-pad: 48px;
    --gap: 24px;

    --header-h: 64px;
}

/* --------------------------------------------------------------------------
   1.1 СБРОС
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.62;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

img {
    height: auto;
    filter: saturate(.94) contrast(1.03) brightness(1.01);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; border: 0; background: none; }

table { border-collapse: collapse; width: 100%; }

address { font-style: normal; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--forest);
    color: var(--cream);
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   2. ТИПОГРАФИКА
   -------------------------------------------------------------------------- */

h1, .h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.06;
    letter-spacing: -.01em;
    color: var(--ink);
}

h2, .h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.12;
    letter-spacing: -.005em;
    color: var(--ink);
}

/* Ударный заголовок на цветной полосе — гротеск 800 */
.h2--strong {
    font-family: var(--font-text);
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.12;
    letter-spacing: -.015em;
}

h3, .h3 {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.3;
    color: var(--ink);
}

h4, .h4 {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.35;
}

p + p { margin-top: 16px; }

.kicker {
    display: block;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--clay-text);
    margin-bottom: 16px;
}

.kicker--light { color: #FFFFFF; }
.kicker--dim { color: rgba(255, 255, 255, .55); }

.lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
}

.muted { color: var(--muted); }

.micro-label {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .82;
}

.num {
    font-family: var(--font-display);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 14px;
    color: var(--clay-text);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--light { color: var(--cream); }
.link-arrow--blue { color: var(--blue-deep); }

.underline-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.underline-link:hover { color: var(--clay); }

/* --------------------------------------------------------------------------
   2.1 КОНТЕЙНЕР И РИТМ
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-pad); }

.section--cream { background: var(--cream); }
.section--greige { background: var(--greige); color: var(--ink-2); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--butter { background: var(--butter); }

.section__head { margin-bottom: 32px; }
.section__head .lead { margin-top: 16px; max-width: 62ch; }
.section__head--center { text-align: center; margin-inline: auto; max-width: 720px; }

.section__body { margin-top: 32px; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: 1fr; }

/* Полосы во всю ширину */
.band { width: 100%; padding-block: var(--section-pad); position: relative; overflow: hidden; }
.band--red { background: var(--brand); color: var(--cream); }
.band--butter { background: var(--butter); color: var(--ink); }
.band--forest { background: var(--forest); color: var(--cream); }
.band > .container { position: relative; z-index: 1; }

/* Гигантское призрачное слово-водяной знак */
.band__ghost {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200%;
    font-family: var(--font-text);
    font-weight: 800;
    font-size: clamp(56px, 11vw, 110px);
    line-height: 1;
    letter-spacing: -.02em;
    text-transform: lowercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.band--red .band__ghost { color: rgba(255, 255, 255, .07); }
.band--butter .band__ghost { color: rgba(82, 43, 26, .06); }
.band--forest .band__ghost { color: rgba(255, 255, 255, .06); }

/* --------------------------------------------------------------------------
   3. КНОПКИ
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding-inline: 28px;
    /* Радиус = половине высоты: та же «таблетка» с референса, но без дежурного 999px. */
    border-radius: 24px;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    text-align: center;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--clay-btn); color: #FFFFFF; }
.btn--primary:hover { background: var(--clay-btn-dark); color: #FFFFFF; }

.btn--secondary { background: var(--blue-deep); color: #FFFFFF; }
.btn--secondary:hover { background: var(--blue-deeper); color: #FFFFFF; }

.btn--ghost {
    background: transparent;
    border: 1.5px solid rgba(82, 43, 26, .35);
    color: var(--ink);
}
.btn--ghost:hover { border-color: var(--clay); background: rgba(205, 143, 82, .08); }

.btn--ghost-light {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .45);
    color: var(--cream);
}
.btn--ghost-light:hover { border-color: var(--gold); background: rgba(255, 255, 255, .10); color: var(--cream); }

.btn--white { background: #FFFFFF; color: var(--blue-deep); }
.btn--white:hover { background: var(--butter); color: var(--blue-deeper); }

.btn--olive { background: var(--olive); color: #FFFFFF; }
.btn--olive:hover { background: #575430; color: #FFFFFF; }

.btn--block { width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Круглые кнопки-шевроны */
.round-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--periwinkle);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .18s ease, transform .18s ease;
}
.round-btn svg { width: 16px; height: 16px; }
.round-btn:hover { background: #6689CB; }
.round-btn:disabled { opacity: .4; cursor: default; }
.round-btn--on-red { background: rgba(255, 255, 255, .22); }
.round-btn--on-red:hover { background: rgba(255, 255, 255, .34); }

/* Круглые соцсети */
.soc {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.soc:hover { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.soc--dark { border-color: var(--line); color: var(--ink); }
.soc--dark:hover { background: var(--clay); color: #FFFFFF; border-color: var(--clay); }

/* --------------------------------------------------------------------------
   3.1 ЧИПЫ
   -------------------------------------------------------------------------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding-inline: 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--cream);
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--clay); }
.chip.is-active,
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.chip--light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: var(--cream); }
.chip--light:hover { border-color: var(--gold); }

.chip--tag {
    height: 26px;
    padding-inline: 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--sand);
    border-color: transparent;
    color: var(--olive);
}

.chip--pill-gold {
    height: 30px;
    padding-inline: 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   3.2 ФОРМЫ
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 14px; }

.form__row { display: grid; gap: 14px; }

.field { display: grid; gap: 7px; }

.field__label {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.field__req { color: var(--brand); }

.input,
.select,
.textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input::placeholder,
.textarea::placeholder { color: rgba(122, 92, 72, .62); }

.input:hover,
.select:hover,
.textarea:hover { border-color: rgba(82, 43, 26, .3); }

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(205, 143, 82, .18);
}

.textarea { min-height: 118px; resize: vertical; }

.select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5C48' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.4 9.6 5.6 5.4 5.6-5.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px 18px;
}

.check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    align-items: start;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
    cursor: pointer;
}

.check input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--cream);
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.check input[type="checkbox"]::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(-45deg) scale(0);
    transition: transform .15s ease;
}
.check input[type="checkbox"]:checked { background: var(--clay); border-color: var(--clay); }
.check input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.check a { text-decoration: underline; text-underline-offset: 3px; }

.form__note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.form__note.is-ok {
    color: var(--forest);
    font-weight: 700;
    background: rgba(107, 103, 51, .10);
    border-radius: 10px;
    padding: 12px 14px;
}

/* Оценка звёздами (radio-группа) */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label {
    color: rgba(82, 43, 26, .22);
    cursor: pointer;
    transition: color .15s ease;
}
.rating-input label svg { width: 26px; height: 26px; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--gold); }

/* Звёзды-вывод */
.stars { display: inline-flex; gap: 2px; line-height: 0; }
.stars__i--on { color: var(--gold); }
.stars__i--off { color: rgba(82, 43, 26, .2); }
.band--red .stars__i--off { color: rgba(255, 255, 255, .3); }

/* --------------------------------------------------------------------------
   4. ШАПКА
   -------------------------------------------------------------------------- */

/* 4.1 Топбар */
.topbar {
    display: none;
    background: var(--forest);
    color: var(--cream);
    height: 40px;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 13px;
}

.topbar__inner {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar__dirs {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}
.topbar__dirs a {
    color: rgba(255, 255, 255, .84);
    white-space: nowrap;
}
.topbar__dirs a:hover { color: var(--gold); }

.topbar__meta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.topbar__geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .78);
    white-space: nowrap;
}
.topbar__geo svg { color: var(--gold); }

.topbar__phone { color: var(--cream); font-weight: 700; white-space: nowrap; }
.topbar__phone:hover { color: var(--gold); }

/* 4.2 Основная шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--cream);
    transition: box-shadow .2s ease, background-color .2s ease;
}

.header.is-scrolled {
    box-shadow: 0 1px 0 var(--line);
    /* Плотный кремовый, без размытия: шапка на референсе непрозрачная. */
    background: var(--cream);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Логотип */
.logo {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}

.logo__mark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    color: var(--ink);
    line-height: 1.05;
}

.logo__dot { color: var(--clay); }

.logo__sub {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--muted);
}

/* Навигация */
.nav { display: none; flex: 0 1 auto; min-width: 0; margin-inline: auto; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.nav__link {
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    white-space: nowrap;
    padding-block: 6px;
    text-decoration-color: transparent;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
    transition: text-decoration-color .18s ease, color .18s ease;
}
.nav__link:hover { text-decoration-color: var(--clay); }
.nav__link.is-active { text-decoration-color: var(--clay); font-weight: 700; }

/* Правый блок */
.header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.header__phone { display: none; flex-direction: column; line-height: 1.15; }
.header__phone-num { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.header__phone-note { font-family: var(--font-text); font-size: 12px; color: var(--muted); }
.header__phone:hover .header__phone-num { color: var(--clay); }

.header__cta { display: none; }

/* 4.3 Бургер */
.burger {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.burger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clay);
    border-radius: 2px;
    transition: transform .24s ease, opacity .18s ease;
}

.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 4.4 Мобильное меню */
.mnav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 26, 16, .45);
    z-index: 70;
    opacity: 0;
    transition: opacity .28s ease;
}
.mnav__overlay.is-visible { opacity: 1; }

.mnav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    z-index: 80;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -14px 0 40px rgba(60, 35, 20, .16);
}
.mnav.is-open { transform: translateX(0); }

.mnav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.mnav__title { font-family: var(--font-display); font-size: 24px; color: var(--ink); }

.mnav__close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ink);
}
.mnav__close:hover { background: var(--sand); }

.mnav__nav { padding: 6px 20px 0; }

.mnav__list li + li { border-top: 1px solid var(--line); }

.mnav__link {
    display: block;
    padding: 14px 0;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 20px;
    color: var(--ink);
}
.mnav__link:hover { color: var(--clay-text); }
.mnav__link.is-active { font-weight: 700; color: var(--clay-text); }

.mnav__foot {
    margin-top: auto;
    padding: 22px 20px 28px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    justify-items: start;
}

.mnav__phone { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.mnav__phone:hover { color: var(--clay); }

.mnav__hours,
.mnav__geo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}
.mnav__hours svg,
.mnav__geo svg { color: var(--clay); }

.mnav__cta { width: 100%; margin-top: 4px; }

.mnav__soc { display: flex; gap: 10px; margin-top: 4px; }
.mnav__soc .soc { border-color: var(--line); color: var(--ink); }
.mnav__soc .soc:hover { background: var(--clay); color: #FFFFFF; border-color: var(--clay); }

/* --------------------------------------------------------------------------
   4.5 ФУТЕР
   -------------------------------------------------------------------------- */

.footer {
    background: var(--forest);
    color: var(--cream);
    padding-block: 40px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer__logo-mark {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--cream);
    line-height: 1;
}

.footer__tagline {
    margin-top: 10px;
    max-width: 30ch;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .72);
}

.footer__phone {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--cream);
}
.footer__phone:hover { color: var(--gold); }

.footer__hours {
    margin-top: 6px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .8);
}

.footer__kicker {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 16px;
}

.footer__list { display: grid; gap: 11px; }

.footer__list a,
.footer__list li {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, .82);
}
.footer__list a:hover { color: var(--gold); }

.footer__list--contacts li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    line-height: 1.5;
}

.footer__ico { color: var(--gold); display: block; margin-top: 1px; }

.footer__soc { display: flex; gap: 10px; margin-top: 20px; }

.footer__bottom {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal-links a { color: rgba(255, 255, 255, .8); }
.footer__legal-links a:hover { color: var(--gold); }

/* ==========================================================================
   5. СЕКЦИИ
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1 Хлебные крошки
   -------------------------------------------------------------------------- */

.crumbs { background: var(--cream); padding-block: 18px 6px; }

.crumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    color: var(--muted);
}
.crumbs__list li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__list li + li::before { content: "/"; color: rgba(122, 92, 72, .5); }
.crumbs__list a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.crumbs__current { color: var(--ink); }

/* --------------------------------------------------------------------------
   5.2 Шапка внутренней страницы
   -------------------------------------------------------------------------- */

.page-hero {
    background: var(--greige);
    color: var(--ink-2);
    padding-block: 48px;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 16px; max-width: 60ch; }
.page-hero .chips { margin-top: 26px; }

/* --------------------------------------------------------------------------
   5.3 Герой главной
   -------------------------------------------------------------------------- */

.hero {
    background: var(--cream);
    padding-block: 40px 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.hero__text .lead { margin-top: 18px; max-width: 52ch; }
.hero__chips { margin-top: 26px; }
.hero__btns { margin-top: 28px; }

.hero__price {
    margin-top: 24px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}
.hero__price b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: 0 0 auto;
}

.hero__photos {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
}
.hero__photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.hero__photos img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--big { grid-row: span 2; aspect-ratio: 3 / 4; }
.hero__photo--small { aspect-ratio: 4 / 3; }
.hero__photo--big::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(122, 68, 32, .14);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   5.4 Выбор формата — сигнатурные тарифные карточки
   -------------------------------------------------------------------------- */

.formats {
    background: var(--cream);
    padding-block: 40px var(--section-pad);
}

.formats__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

.plan {
    position: relative;
    border-radius: var(--radius);
    padding: 28px 24px 26px;
    display: flex;
    flex-direction: column;
}

.plan--red {
    background: var(--brand);
    color: #FFFFFF;
    border: 2px solid var(--gold);
}
.plan--sand { background: var(--sand); color: var(--olive); }

.plan__badge { position: absolute; top: 16px; right: 16px; }

.plan__name {
    font-family: var(--font-text);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.plan--red .plan__name { color: #FFFFFF; }
.plan--sand .plan__name { color: var(--olive); }

.plan__sub { margin-top: 6px; font-size: 14.5px; opacity: .84; }

.plan__price {
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.plan__price-from {
    font-size: 16px;
    opacity: .8;
}
.plan__price-now {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 44px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: 0 0 auto;
}
.plan__price-unit { font-size: 14px; opacity: .8; }

.plan__desc { margin-top: 16px; font-size: 15px; line-height: 1.6; opacity: .9; }

.plan__specs { margin-top: 22px; display: grid; gap: 12px; }
.plan__spec { display: grid; gap: 3px; }
.plan__spec dt {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .82;
}
.plan__spec dd { margin: 0; font-size: 15px; line-height: 1.45; }

.plan__btn { margin-top: 24px; }

.plan-wide {
    margin-top: 20px;
    background: var(--greige);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
}
.plan-wide:hover { border-color: var(--clay); background: var(--sand); }
.plan-wide__title { display: block; font-family: var(--font-display); font-size: 24px; }
.plan-wide__meta { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.plan-wide__price { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   5.5 Немного о компании
   -------------------------------------------------------------------------- */

.about-co { background: var(--greige); color: var(--ink-2); padding-block: var(--section-pad); }

.about-co__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.about-co__text { display: grid; gap: 16px; }
.about-co__text p { font-size: 16.5px; line-height: 1.66; color: var(--muted); }

.about-co__photo { border-radius: var(--radius); overflow: hidden; }
.about-co__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 22px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.fact__value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 42px;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.fact__label { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 22ch; }

/* --------------------------------------------------------------------------
   5.6 Сплит-панели «фото ↔ цвет»
   -------------------------------------------------------------------------- */

.splits { background: var(--cream); padding-block: var(--section-pad) 0; }
.splits__head { padding-inline: var(--pad); max-width: var(--container); margin-inline: auto; margin-bottom: 32px; }

.split {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.split__media { position: relative; min-height: 260px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.split__panel {
    padding: 40px var(--pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split__panel h3,
.split__panel h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.14;
    /* Иначе базовое `h3 { color: var(--ink) }` кладёт тёмную охру на цветную панель */
    color: inherit;
}
.split__panel p { margin-top: 14px; font-size: 16px; line-height: 1.62; max-width: 46ch; }
.split__panel .link-arrow { margin-top: 22px; }

.split--periwinkle .split__panel { background: var(--periwinkle); color: #FFFFFF; }
.split--red .split__panel { background: var(--brand); color: var(--cream); }
.split--olive .split__panel { background: var(--olive); color: #FFFFFF; }
.split--forest .split__panel { background: var(--forest); color: var(--cream); }
.split--sand .split__panel { background: var(--sand); color: var(--olive); }

.split__panel .link-arrow { color: inherit; }
.split--sand .split__panel .link-arrow { color: var(--olive); }

/* Список крупных ссылок в цветной панели */
.big-links { margin-top: 26px; display: grid; gap: 12px; }
.big-links a {
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    color: inherit;
    text-decoration-color: transparent;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transition: text-decoration-color .18s ease;
}
.big-links a:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   5.7 Лента фотографий
   -------------------------------------------------------------------------- */

.gallery { background: var(--cream); padding-block: var(--section-pad); }

.gallery__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.gallery__nav { display: flex; gap: 10px; flex: 0 0 auto; }

.gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 380px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.gallery__track > * { scroll-snap-align: start; }
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.gallery__item figure { margin: 0; }
.gallery__item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
}
.gallery__item figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   5.8 Фото-карточки направлений (семейство A)
   -------------------------------------------------------------------------- */

.dirs { background: var(--cream); padding-block: var(--section-pad); }

.dirs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dir-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    color: #FFFFFF;
    isolation: isolate;
}
.dir-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .48s ease;
}
.dir-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--photo-fade);
    pointer-events: none;
}
.dir-card:hover img { transform: scale(1.04); }

.dir-card__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: block;
    padding: 0 24px 28px;
}
.dir-card__title { display: block; font-family: var(--font-text); font-weight: 700; font-size: 22px; line-height: 1.2; }
.dir-card__desc { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.dir-card__more {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .24s ease, transform .24s ease;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.dir-card:hover .dir-card__more,
.dir-card:focus-visible .dir-card__more { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   5.9 Панели-карточки (семейство B)
   -------------------------------------------------------------------------- */

.panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.panel {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
}
.panel h3 { margin-bottom: 10px; }
.panel p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.section--cream .panel { background: var(--sand); border-color: transparent; }
.section--cream .panel p { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   5.10 Карточка формата (семейство C)
   -------------------------------------------------------------------------- */

.fcards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.fcard {
    background: var(--cream);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.fcard__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.fcard__body { padding: 22px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.fcard__title { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.2; }
.fcard__desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.fcard__price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.fcard__price b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: 0 0 auto;
}
.fcard__price span { font-size: 13.5px; color: var(--muted); }
.fcard__btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   5.11 Карточка человека (семейство D)
   -------------------------------------------------------------------------- */

.people {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.person {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream);
}
/* Фото + плашка живут в общей системе координат: аватар садится на их стык
   независимо от того, есть ли под карточкой абзац с описанием. */
.person__head { position: relative; }
.person__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.person__plate {
    min-height: 84px;
    background: var(--olive);
    color: #FFFFFF;
    padding: 16px 110px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.person__name { font-family: var(--font-text); font-weight: 700; font-size: 18px; line-height: 1.2; }
.person__role { margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .82); }

.person__avatar {
    position: absolute;
    right: 24px;
    bottom: 56px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--cream);
    object-fit: cover;
    z-index: 2;
}

.person__text { padding: 18px 20px 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* --------------------------------------------------------------------------
   5.12 Шаги заказа
   -------------------------------------------------------------------------- */

.steps { background: var(--cream); padding-block: var(--section-pad); }

.steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 20px;
    margin-top: 52px;
}

.step {
    position: relative;
    background: var(--sand);
    border-radius: var(--radius);
    padding: 40px 22px 24px;
}
.step__num {
    position: absolute;
    top: -22px;
    left: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15.5px; line-height: 1.58; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   5.13 Ориентир по бюджету / список-таблица
   -------------------------------------------------------------------------- */

.pricelist { margin-top: 32px; }

.pricelist__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-block: 18px;
    border-top: 1px solid var(--line);
}
.pricelist__row:last-child { border-bottom: 1px solid var(--line); }

.pricelist__title { font-family: var(--font-text); font-weight: 700; font-size: 17px; }
.pricelist__note { display: block; margin-top: 3px; font-weight: 400; font-size: 14px; color: var(--muted); }

.pricelist__value {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pricelist__value small { font-family: var(--font-text); font-size: 13px; color: var(--muted); }

.pricelist__note-under {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 68ch;
}

/* --------------------------------------------------------------------------
   5.14 Полоса отзывов
   -------------------------------------------------------------------------- */

.reviews-band__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.reviews-band__head h2 { color: var(--butter); }
.reviews-band__nav { display: flex; gap: 10px; flex: 0 0 auto; }

.reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 400px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}
.reviews-track > * { scroll-snap-align: start; }
.reviews-track::-webkit-scrollbar { height: 6px; }
.reviews-track::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); border-radius: 999px; }

.rcard {
    background: var(--cream);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rcard__name { font-family: var(--font-text); font-weight: 700; font-size: 17px; }
.rcard__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.rcard__text { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* --------------------------------------------------------------------------
   5.15 FAQ
   -------------------------------------------------------------------------- */

.faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

.faq__title { font-family: var(--font-text); font-weight: 800; font-size: clamp(30px, 5vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
.faq__intro { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 34ch; }

.faq__group + .faq__group { margin-top: 34px; }
.faq__group-title {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--clay-text);
    margin-bottom: 6px;
}

.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }

.acc__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 22px;
    text-align: left;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    color: var(--ink);
}
.acc__btn:hover { color: var(--clay); }
.acc__btn .round-btn { transition: transform .24s ease, background-color .18s ease; }
.acc__btn[aria-expanded="true"] .round-btn { transform: rotate(180deg); }

.acc__panel {
    overflow: hidden;
    height: 0;
    transition: height .28s ease;
}
.acc__panel-inner {
    padding-bottom: 22px;
    padding-right: 56px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
}
.band--butter .acc__panel-inner { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   5.16 Тизеры статей
   -------------------------------------------------------------------------- */

.teasers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.teaser { display: flex; flex-direction: column; }
.teaser__media { border-radius: var(--radius-sm); overflow: hidden; }
.teaser__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .4s ease;
}
.teaser:hover .teaser__media img { transform: scale(1.03); }
.teaser__chip { margin-top: 14px; }
.teaser__title {
    margin-top: 10px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 21px;
    line-height: 1.22;
}
.teaser:hover .teaser__title { color: var(--clay); }
.teaser__lead { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.teaser__meta { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }

.section__more { margin-top: 32px; }

/* --------------------------------------------------------------------------
   5.17 Полоса заявки
   -------------------------------------------------------------------------- */

.cta__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

.cta__text h2 { color: var(--cream); }
.cta__text p { margin-top: 16px; font-size: 16.5px; line-height: 1.62; color: rgba(255, 255, 255, .9); max-width: 46ch; }
.cta__phone {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--cream);
}
.cta__phone:hover { color: var(--gold); }
.cta__hours { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .82); }

.cta__card {
    background: var(--cream);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-float);
}

/* --------------------------------------------------------------------------
   5.18 Смотрите также
   -------------------------------------------------------------------------- */

.see-also { background: var(--greige); color: var(--ink-2); padding-block: 40px; }
.see-also__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.see-also__links a {
    font-size: 16px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.see-also__links a:hover { color: var(--clay); }

/* --------------------------------------------------------------------------
   5.19 Герой направления
   -------------------------------------------------------------------------- */

.dir-hero {
    background: var(--forest);
    color: var(--cream);
    padding-block: 48px;
}
.dir-hero h1 { color: var(--cream); }
.dir-hero .kicker { color: var(--gold); }
.dir-hero .lead { color: rgba(255, 255, 255, .82); max-width: 48ch; margin-top: 18px; }
.dir-hero__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.dir-hero__chips { margin-top: 24px; }
.dir-hero__btns { margin-top: 26px; }
.dir-hero__price { margin-top: 26px; display: flex; align-items: baseline; gap: 10px; }
.dir-hero__price b { font-family: var(--font-display); font-size: 38px; font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; }
.dir-hero__price span { font-size: 14px; color: rgba(255, 255, 255, .7); }

.dir-hero__photos {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
}
.dir-hero__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.dir-hero__photos figure { margin: 0; }
.dir-hero__photos figure:first-child { grid-row: span 2; }

/* --------------------------------------------------------------------------
   5.20 Сценарная панель
   -------------------------------------------------------------------------- */

.scenario {
    background: var(--cream);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
.scenario p { color: var(--muted); font-size: 16px; line-height: 1.62; }
.scenario__chips { margin-bottom: 22px; }

.callout {
    border-left: 3px solid var(--olive);
    padding: 4px 0 4px 18px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-2);
}
.callout--clay { border-left-color: var(--clay); }

.note-card {
    background: var(--sand);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    align-items: start;
}
.note-card__ico { color: var(--olive); }
.note-card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.note-card h3 { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   5.21 Таблицы
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin-top: 32px; -webkit-overflow-scrolling: touch; }

.table { min-width: 720px; font-size: 15px; }
.table thead th {
    background: var(--sand);
    text-align: left;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--olive);
    padding: 14px 16px;
}
.table thead th:first-child { border-radius: 10px 0 0 10px; }
.table thead th:last-child { border-radius: 0 10px 10px 0; }
.table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.table td:first-child { font-weight: 700; }
.table td:last-child {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Нормы персонала — список без рамок */
.norms { margin-top: 32px; }
.norms__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-block: 17px;
    border-top: 1px solid var(--line);
}
.norms__row:last-child { border-bottom: 1px solid var(--line); }
.norms__format { font-size: 16.5px; }
.norms__value {
    font-family: var(--font-display);
    font-size: 21px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5.22 Доп. услуга
   -------------------------------------------------------------------------- */

.addon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}
.addon p { color: var(--muted); font-size: 16px; line-height: 1.62; margin-top: 16px; max-width: 46ch; }

.addon__card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.addon__price { font-family: var(--font-display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.addon__unit { margin-top: 8px; font-size: 14px; color: var(--muted); }
.addon__card .btn { margin-top: 22px; }
.addon__card .link-arrow { margin-top: 16px; }

/* --------------------------------------------------------------------------
   5.23 SEO-текст и типографика статьи
   -------------------------------------------------------------------------- */

.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin-top: 40px; margin-bottom: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; margin-bottom: 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
    content: "";
    position: absolute;
    left: 4px; top: 11px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--clay);
}
.prose ol { counter-reset: prose-num; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: prose-num; }
.prose ol li::before {
    content: counter(prose-num);
    position: absolute;
    left: 0; top: 0;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 14px;
    color: var(--clay);
}
.prose blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--clay);
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.45;
    color: var(--ink);
}
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); font-style: italic; }
.prose a { color: var(--clay-text); text-decoration: underline; text-underline-offset: 3px; }
.prose table { font-size: 15px; margin-bottom: 24px; }
.prose table th { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.prose table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   5.24 Страница «О компании»
   -------------------------------------------------------------------------- */

.about-hero { background: var(--greige); padding-block: 40px; }
.about-hero__card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--cream);
    overflow: hidden;
}
.about-hero__text { padding: 32px 24px; }
.about-hero__rule { display: block; width: 64px; height: 3px; background: var(--clay); margin: 20px 0 22px; }
.about-hero__text p { color: var(--muted); font-size: 16.5px; line-height: 1.66; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.pull-quote {
    text-align: center;
    padding-block: 44px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(20px, 2.6vw, 26px);
    line-height: 1.45;
    color: var(--ink);
}
.pull-quote p { max-width: 34ch; margin-inline: auto; }

.two-cols { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.two-cols p { color: var(--muted); font-size: 16.5px; line-height: 1.66; }

.micro-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--muted);
}
.micro-facts b { color: var(--ink); font-weight: 700; }

.timeline { margin-top: 32px; }
.timeline__row {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 20px;
    padding-block: 20px;
    border-top: 1px solid var(--line);
}
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__year {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--clay-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.timeline__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

.dark-promo {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: var(--radius);
}
.dark-promo__panel {
    background: var(--forest);
    color: var(--cream);
    padding: 36px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dark-promo__panel h2 { color: var(--cream); }
.dark-promo__panel p { margin-top: 14px; font-size: 16px; line-height: 1.62; color: rgba(255, 255, 255, .8); max-width: 42ch; }
.dark-promo__panel .btn { margin-top: 26px; align-self: flex-start; }
.dark-promo__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Плавающая карточка поверх фото */
.float-band { position: relative; }
.float-band__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.float-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-float);
    margin-top: -48px;
    position: relative;
    z-index: 2;
}
.float-card__grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 26px; }
.float-card__item { display: grid; gap: 10px; }
.float-card__item .icon { color: var(--periwinkle); width: 26px; height: 26px; }
.float-card__item p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* --------------------------------------------------------------------------
   5.25 Отзывы — страница
   -------------------------------------------------------------------------- */

.rating-sum {
    background: var(--sand);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}
.rating-sum__score { font-family: var(--font-display); font-size: 60px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rating-sum__stars { margin-top: 12px; }
.rating-sum__count { margin-top: 8px; font-size: 14px; color: var(--muted); }

.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 118px 1fr 42px; gap: 12px; align-items: center; font-size: 14px; }
.bar__track { height: 8px; border-radius: 999px; background: rgba(82, 43, 26, .12); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--clay); }
.bar__val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.platforms { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
.platform {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.platform__ico { display: block; color: var(--clay-text); margin-bottom: 14px; }
.platform__score { font-family: var(--font-display); font-size: 30px; font-variant-numeric: tabular-nums; }
.platform__count { margin-top: 4px; font-size: 14px; color: var(--muted); }
.platform .link-arrow { margin-top: 16px; }

.review-list { margin-top: 32px; display: grid; gap: 0; }
.review {
    padding-block: 28px;
    border-top: 1px solid var(--line);
}
.review:last-child { border-bottom: 1px solid var(--line); }
.review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.review__name { font-family: var(--font-text); font-weight: 700; font-size: 17px; }
.review__date { font-size: 13.5px; color: var(--muted); }
.review__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review__text { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.review__answer {
    margin-top: 18px;
    background: var(--olive);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    padding: 20px;
}
.review__answer-label {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .82;
    margin-bottom: 8px;
}
.review__answer p { font-size: 15px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   5.26 Статьи — листинг
   -------------------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filters__count { font-size: 14px; color: var(--muted); margin-right: 6px; }

.featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 32px;
}
.featured__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.featured__body { padding: 4px 24px 28px; }
.featured__title { margin-top: 12px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.18; }
.featured__lead { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.author { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.author b { display: block; color: var(--ink); font-size: 14px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 40px; }
.page-pill {
    min-width: 44px;
    height: 44px;
    padding-inline: 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}
.page-pill:hover { border-color: var(--clay); }
.page-pill.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.page-pill[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* --------------------------------------------------------------------------
   5.27 Статья
   -------------------------------------------------------------------------- */

.article-head { padding-block: 32px 0; }
.article-head h1 { margin-top: 14px; font-size: clamp(28px, 4.4vw, 46px); }
.article-head .lead { margin-top: 16px; }
.article-head .author { margin-top: 22px; }

.article-cover { margin-top: 28px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.article-cover figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); font-style: italic; }

.article-body { margin-top: 32px; }

.article-share {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.article-share__row { display: flex; align-items: center; gap: 12px; }
.article-share__label { font-family: var(--font-text); font-weight: 700; font-size: 14px; }

/* --------------------------------------------------------------------------
   5.28 Контакты
   -------------------------------------------------------------------------- */

.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }

.map-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--sand);
}
/* Абсолютное позиционирование: iframe получает от скрипта размер в пикселях,
   и в потоке он бы раздувал грид-ячейку, а та — снова iframe. */
.map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-flex; margin-top: 14px; }

.contact-list { display: grid; gap: 18px; margin-top: 22px; }
.contact-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.contact-item__ico { color: var(--clay); margin-top: 2px; }
.contact-item__label {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    margin-bottom: 3px;
}
.contact-item__value { font-size: 16px; line-height: 1.5; }
.contact-item__value--big { font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.contact-item a:hover { color: var(--clay); }

.requisites { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.requisites dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; font-size: 15px; }
.requisites div { display: flex; gap: 10px; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-variant-numeric: tabular-nums; }

.zones { display: grid; grid-template-columns: 1fr; gap: 12px 32px; margin-top: 28px; }
.zones li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
}
.zones b { font-family: var(--font-display); font-weight: 400; font-size: 17px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   5.29 404 и карта сайта
   -------------------------------------------------------------------------- */

.error-block { text-align: center; padding-block: 56px; position: relative; }
.error-block__num {
    font-family: var(--font-display);
    font-size: clamp(88px, 20vw, 160px);
    line-height: .9;
    color: var(--sand);
    letter-spacing: -.02em;
}
.error-block__body { margin-top: -24px; position: relative; }
.error-block__body p { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 46ch; margin-inline: auto; }
.error-block .btn-row { justify-content: center; margin-top: 28px; }
.error-block__links { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 15px; }
.error-block__links a { text-decoration: underline; text-underline-offset: 5px; }
.error-block__links a:hover { color: var(--clay); }

.sitemap-cols { display: grid; grid-template-columns: 1fr; gap: 36px; }
.sitemap-col__title {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--clay-text);
    margin-bottom: 8px;
}
.sitemap-col li { border-top: 1px solid var(--line); padding-block: 14px; }
.sitemap-col li:last-child { border-bottom: 1px solid var(--line); }
.sitemap-col a { font-family: var(--font-text); font-weight: 700; font-size: 16.5px; }
.sitemap-col a:hover { color: var(--clay); }
.sitemap-col span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   5.30 Появление при скролле
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   5.31 Модальное окно
   -------------------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(40, 26, 16, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__dialog {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    width: min(520px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-float);
    transform: translateY(10px);
    transition: transform .22s ease;
}
.modal.is-open .modal__dialog { transform: none; }

.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal__close {
    width: 40px; height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}
.modal__close:hover { background: var(--sand); }
.modal__title { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.modal__note { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   5.32 Табы
   -------------------------------------------------------------------------- */

.tabs__list { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs__panel[hidden] { display: none; }
.tabs__panel { margin-top: 28px; }

/* ==========================================================================
   6. МЕДИАЗАПРОСЫ (mobile-first: 480 / 700 / 900 / 1100 / 1280)
   ========================================================================== */

/* -------------------------------- ≥480px -------------------------------- */
@media (min-width: 480px) {
    .dirs__grid,
    .fcards,
    .teasers { grid-template-columns: repeat(2, 1fr); }

    .plan { padding: 32px 28px 28px; }

    .error-block__num { line-height: .85; }
}

/* -------------------------------- ≥700px -------------------------------- */
@media (min-width: 700px) {
    :root {
        --section-pad: 64px;
        --gap: 24px;
    }

    .grid { gap: 20px; }

    .panels,
    .people,
    .platforms,
    .sitemap-cols { grid-template-columns: repeat(2, 1fr); }

    .fcards { grid-template-columns: repeat(2, 1fr); }

    .two-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .zones { grid-template-columns: repeat(2, 1fr); }
    .requisites dl { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }

    .about-co__grid { grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
    .about-co__photo img { aspect-ratio: 5 / 4; }

    .formats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .rating-sum { grid-template-columns: 0.8fr 1.4fr; gap: 40px; padding: 32px; }
    .rating-sum__score { font-size: 64px; }

    .float-card { padding: 40px 32px; margin-top: -64px; }
    .float-card__grid { grid-template-columns: repeat(3, 1fr); }

    .featured { grid-template-columns: 1fr 1fr; gap: 0; }
    .featured__media img { aspect-ratio: 4 / 3; height: 100%; }
    .featured__body { padding: 28px; }

    .about-hero__card { grid-template-columns: 1.1fr 1fr; }
    .about-hero__text { padding: 40px 36px; }
    .about-hero__media img { aspect-ratio: auto; min-height: 100%; }

    .dark-promo { grid-template-columns: 1fr 1fr; }
    .dark-promo__panel { padding: 44px 36px; }
    .dark-promo__media img { aspect-ratio: auto; height: 100%; }

    .scenario { grid-template-columns: 1fr 1fr; gap: 36px; padding: 40px 36px; }
    .addon { grid-template-columns: 1.2fr 1fr; gap: 40px; }
    .contacts-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

    .cta__card { padding: 32px 30px; }
    .cta__grid { grid-template-columns: 1fr 1fr; gap: 40px; }

    .form__row--2 { grid-template-columns: repeat(2, 1fr); }

    .steps__grid { grid-template-columns: repeat(2, 1fr); }

    .hero__grid { grid-template-columns: 1fr 1.15fr; gap: 40px; }
    .dir-hero__grid { grid-template-columns: 1fr 1.15fr; gap: 40px; }

    .split { grid-template-columns: 1fr 1fr; min-height: 460px; }
    .split__media img { aspect-ratio: auto; height: 100%; min-height: 100%; }
    .split__panel { padding: 48px 40px; }
    .split--reverse .split__media { order: 2; }

    .timeline__row { grid-template-columns: 110px 1fr; gap: 32px; }
    .timeline__year { font-size: 28px; }

    .footer__top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }

    .btn { height: 52px; padding-inline: 32px; }

    .article-head { padding-block: 40px 0; }
}

/* -------------------------------- ≥900px -------------------------------- */
@media (min-width: 900px) {
    :root {
        --pad: 40px;
        --section-pad: 96px;
        --header-h: 76px;
    }

    .topbar { display: block; }

    .header__cta { display: inline-flex; }
    .header__inner { gap: 28px; }
    .logo__mark { font-size: 26px; }

    .dirs__grid,
    .fcards { grid-template-columns: repeat(3, 1fr); }

    .panels { grid-template-columns: repeat(3, 1fr); }
    .people { grid-template-columns: repeat(3, 1fr); }
    .platforms { grid-template-columns: repeat(3, 1fr); }
    .teasers { grid-template-columns: repeat(4, 1fr); }
    .sitemap-cols { grid-template-columns: repeat(3, 1fr); gap: 44px; }

    .steps__grid { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }

    .formats__grid { gap: 28px; margin-top: -180px; position: relative; z-index: 2; }
    .plan { padding: 40px 36px 36px; }
    .plan__name { font-size: 34px; }
    .plan__price-now { font-size: 48px; }
    .plan__specs { grid-template-columns: repeat(2, 1fr); display: grid; gap: 18px 24px; }

    /* Тарифные карточки наезжают на нижний край геройской зоны на 180px —
       поэтому герой получает запас снизу, иначе они лягут на фото и кнопки. */
    .hero { padding-block: 56px 200px; }
    .hero__photos { gap: 16px; }

    .faq__grid { grid-template-columns: 0.9fr 1.6fr; gap: 48px; }
    .faq__title-wrap { position: sticky; top: 110px; }

    .about-hero__text { padding: 56px 48px; }
    .pull-quote { padding-block: 64px; }

    .scenario { padding: 48px; }
    .float-card { padding: 48px; margin-top: -110px; }
    .cta__card { padding: 40px 36px; }

    .section__head { margin-bottom: 48px; }
    .section__body { margin-top: 48px; }

    .split { min-height: 560px; }
    .split__panel { padding: 64px 56px; }
    .big-links a { font-size: 24px; }

    .footer { padding-block: 72px; }
    .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }

    .page-hero { padding-block: 72px; }
    .dir-hero { padding-block: 80px; }
    .about-hero { padding-block: 56px; }

    .table { min-width: 100%; }

    .prose { font-size: 17px; }
    .article-head { padding-block: 48px 0; }
}

/* ------------------------------- ≥1100px -------------------------------- */
@media (min-width: 1100px) {
    /* Центральная навигация появляется только когда для неё реально есть
       место: логотип + 6 пунктов + кнопка укладываются в строку без переносов. */
    .nav { display: block; }
    .burger { display: none; }
    .mnav,
    .mnav__overlay { display: none !important; }

    .header__inner { gap: 32px; }

    .dirs__grid { grid-template-columns: repeat(5, 1fr); }
    .fcards { grid-template-columns: repeat(5, 1fr); }
    /* Бригада на странице «О компании» — четыре человека в ряд */
    .people--4 { grid-template-columns: repeat(4, 1fr); }

    .gallery__track { grid-auto-columns: 400px; }
    .reviews-track { grid-auto-columns: 400px; }

    .nav__list { gap: 22px; }
}

/* ------------------------------- ≥1280px -------------------------------- */
@media (min-width: 1280px) {
    :root { --pad: 48px; }

    .header__phone { display: flex; }
    .nav__list { gap: 26px; }

    .hero__photos { gap: 18px; }
}

/* ==========================================================================
   6.1 ДОСТУПНОСТЬ
   ========================================================================== */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid rgba(69, 154, 194, .55);
    outline-offset: 2px;
    border-radius: inherit;
}

.footer :where(a, button):focus-visible,
.band--red :where(a, button):focus-visible,
.dir-hero :where(a, button):focus-visible,
.cta :where(a):focus-visible {
    outline: 3px solid rgba(236, 193, 92, .6);
}

.dir-card:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal { opacity: 1; transform: none; }
    .mnav { transition: none; }
    .gallery__track,
    .reviews-track { scroll-behavior: auto; }
    .dir-card:hover img,
    .teaser:hover .teaser__media img { transform: none; }
}

@media (prefers-contrast: more) {
    :root { --line: rgba(82, 43, 26, .38); --muted: #63432F; }
}

/* ==========================================================================
   6.2 ПЕЧАТЬ
   ========================================================================== */

@media print {
    .topbar,
    .header,
    .mnav,
    .mnav__overlay,
    .burger,
    .cta,
    .band--red,
    .see-also,
    .footer__soc,
    .gallery__nav,
    .reviews-band__nav,
    .modal,
    .skip-link { display: none !important; }

    body {
        background: #FFFFFF;
        color: #000000;
        font-size: 12pt;
        line-height: 1.5;
    }

    .container { max-width: 100%; padding-inline: 0; }

    .section,
    .band { padding-block: 12pt; }

    img { filter: none; max-height: 220pt; object-fit: cover; }

    a { color: #000000; text-decoration: underline; }
    .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }

    .acc__panel { height: auto !important; }
    .acc__panel-inner { padding-right: 0; }

    .panel,
    .fcard,
    .float-card,
    .scenario { box-shadow: none; border: 1pt solid #ccc; break-inside: avoid; }

    h1, h2, h3 { break-after: avoid; }
    p, li { orphans: 3; widows: 3; }

    .footer { background: none; color: #000000; border-top: 1pt solid #999; }
    .footer__list a, .footer__list li, .footer__tagline, .footer__hours { color: #000000; }
}

/* ==========================================================================
   Партнёрский блок и текстовые карточки бригады (batch11)
   ========================================================================== */

.topbar__geo--link:hover { color: var(--gold); }
.mnav__geo--link { color: var(--muted); }
.mnav__geo--link:hover { color: var(--clay); }

.person__head--text .person__plate { padding-right: 20px; }

.partner-band { padding-block: 0 var(--section-pad); }
.partner-band__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 22px 26px;
    background: var(--sand);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.partner-band__media { flex: 0 0 156px; max-width: 156px; display: block; }
.partner-band__media img { width: 100%; height: auto; }
.partner-band__text { flex: 1 1 280px; }
.partner-band__text h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.16;
}
.partner-band__text p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 62ch; }
.partner-band__text a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
    .partner-band__media { flex-basis: 112px; max-width: 112px; }
}
