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

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

:root {
    /* Палитра */
    --bg:            #FFFFFF;
    --ink:           #000000;
    --ink-soft:      #7B7471;
    --line:          #E8E5E3;
    --line-strong:   #C9C3BE;
    --surface:       #F1EFEE;
    --gold:          #D7A569;
    --gold-deep:     #8F6B34;
    --graphite:      #17150F;
    --graphite-soft: #2A261F;
    --on-dark:       #FFFFFF;
    --on-dark-soft:  #B9B2A8;

    /* Шрифты */
    --font-sans: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
    --font-slab: "Manrope","Golos Text","Arial",sans-serif;

    /* Сетка */
    --wrap:        1248px;
    --wrap-narrow: 920px;
    --pad:         20px;

    /* Ритм */
    --sec-y:       64px;
    --sec-gap:     40px;
    --grid-gap:    24px;

    /* Прочее */
    --radius: 2px;
    --ease:   cubic-bezier(.4, 0, .2, 1);
}

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

/* Критично: атрибут hidden должен побеждать любые классовые правила */
[hidden] { display: none !important; }

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    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, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; border: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

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

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

h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: normal;
}

.h1,
h1 {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 400;
}

.sec-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .01em;
    text-align: center;
}

/* Золотая черта 40×2 под заголовком секции */
.sec-rule {
    display: block;
    width: 40px;
    height: 2px;
    margin: 16px auto 0;
    background: var(--gold);
}

.h2-long,
.longread h2 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

h3, .h3 {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: 17px;
    line-height: 1.6;
}

.meta {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-soft);
}

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

strong, b { font-weight: 600; }

.slab {
    font-family: var(--font-slab);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
   КОНТЕЙНЕР
   ------------------------------------------------------------------ */

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--pad) * 2);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.wrap-narrow {
    width: 100%;
    max-width: calc(var(--wrap-narrow) + var(--pad) * 2);
    margin-inline: auto;
    padding-inline: var(--pad);
}

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

.section--line { border-top: 1px solid var(--line); }
.section--surface { background: var(--surface); }

.section__head { margin-bottom: var(--sec-gap); }

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

/* ------------------------------------------------------------------
   ССЫЛКИ И CTA
   ------------------------------------------------------------------ */

.cta-link {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}

.cta-link__chev {
    margin-left: 10px;
    flex: 0 0 auto;
}

.cta-link:hover,
.cta-link:focus-visible { border-bottom-color: currentColor; }

.cta-link--light { color: var(--on-dark); }

.text-link {
    border-bottom: 1px solid var(--line-strong);
}
.text-link:hover { border-bottom-color: var(--ink); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 34px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), transform .1s var(--ease);
}

.btn .ico { margin-right: 10px; flex: 0 0 auto; }

.btn--primary {
    background: var(--ink);
    color: var(--on-dark);
    border-color: var(--ink);
}
.btn--primary:hover {
    background: var(--graphite-soft);
    border-color: var(--graphite-soft);
}

.btn--secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--secondary:hover {
    background: var(--ink);
    color: var(--on-dark);
}

/* На тёмных полосах кнопки инвертируются */
.btn--on-dark {
    background: var(--on-dark);
    color: var(--ink);
    border-color: var(--on-dark);
}
.btn--on-dark:hover {
    background: var(--on-dark-soft);
    border-color: var(--on-dark-soft);
    color: var(--graphite);
}

.btn--on-dark-outline {
    background: transparent;
    color: var(--on-dark);
    border-color: var(--on-dark);
}
.btn--on-dark-outline:hover {
    background: var(--on-dark);
    color: var(--graphite);
}

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

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Пилюля телефона — единственный элемент с radius 999px */
.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s var(--ease);
}
.phone-pill:hover { background: var(--line); }
.phone-pill .ico { flex: 0 0 auto; }

/* ------------------------------------------------------------------
   ФОРМЫ (поля используются в фильтрах и поиске по галерее)
   ------------------------------------------------------------------ */

label { display: block; font-size: 15px; margin-bottom: 8px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease);
}

input::placeholder,
textarea::placeholder { color: var(--ink-soft); }

input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ink);
}

textarea { min-height: 140px; resize: vertical; }

/* ------------------------------------------------------------------
   СЛУЖЕБНОЕ
   ------------------------------------------------------------------ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: var(--on-dark);
    padding: 12px 20px;
    font-size: 14px;
}
.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;
}

.ico { flex: 0 0 auto; }

/* ==================================================================
   2. ШАПКА, НАВИГАЦИЯ, БУРГЕР, МОБИЛЬНОЕ МЕНЮ, ФУТЕР
   ================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

/* Ряд 1 — словомарка */
.header-row--brand { height: 56px; }

.header-brand-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wordmark {
    flex: 0 0 auto;
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink);
    white-space: nowrap;
}

/* Бургер */
.burger {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

/* Ряд 2 — меню (на мобильном скрыт) */
.header-row--nav { display: none; }

.header-nav-wrap {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--ink);
    white-space: nowrap;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    background: transparent;
    transition: background-color .2s var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after { background: var(--ink); }

.nav__link.is-active::after { background: var(--gold); }

.nav__toggle {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    transition: transform .2s var(--ease);
}

.nav__item--has-sub[data-open="true"] .nav__toggle { transform: rotate(180deg); }

/* Выпадающее подменю */
.subnav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 60;
}

.subnav__link {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink);
}

.subnav__link:hover,
.subnav__link:focus-visible {
    background: var(--surface);
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   МОБИЛЬНОЕ МЕНЮ
   ------------------------------------------------------------------ */

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav__head {
    flex: 0 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--pad);
    border-bottom: 1px solid var(--line);
}

.mobile-nav__title {
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mobile-nav__close {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav__body { padding: 8px var(--pad) 40px; }

.mobile-nav__item { border-bottom: 1px solid var(--line); }

.mobile-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mobile-nav__link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink);
}

.mobile-nav__link.is-active { color: var(--gold-deep); }

.mobile-nav__acc {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s var(--ease);
}
.mobile-nav__acc[aria-expanded="true"] { transform: rotate(180deg); }

.mobile-nav__sub { padding: 0 0 14px 16px; }

.mobile-nav__sub a {
    display: block;
    padding: 9px 0;
    font-size: 16px;
    color: var(--ink-soft);
}
.mobile-nav__sub a:hover { color: var(--ink); }

.phone-pill--mobile { margin-top: 28px; }

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

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 48px 40px;
}

.footer-wordmark {
    display: block;
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-tagline {
    margin: 14px 0 0;
    max-width: 30ch;
    font-size: 15px;
    color: var(--ink-soft);
}

.footer-phone {
    display: inline-block;
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
}
.footer-phone:hover { text-decoration: underline; }

.footer-messengers {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--ink-soft);
}
.footer-messengers a { color: var(--ink); }
.footer-messengers a:hover { text-decoration: underline; }
.footer-messengers span { margin-inline: 6px; }

.footer-col__title {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-list a {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.3;
    color: var(--ink);
}
.footer-list a:hover { text-decoration: underline; }

.footer-chev { margin-left: 8px; flex: 0 0 auto; }

.footer-hours {
    margin: 0;
    padding: 28px var(--pad);
    text-align: center;
    font-size: 14px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}

/* Тёмный бар */
.footer-bar {
    background: var(--graphite);
    color: var(--on-dark-soft);
    padding-block: 22px;
}

.footer-bar__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-bar__legal,
.footer-bar__cities {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.footer-bar a { color: var(--on-dark-soft); }
.footer-bar a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-bar__dot { margin-inline: 7px; }

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

/* ------------------------------------------------------------------
   MEDIA-HERO — полноширинная фотополоса со скримом
   ------------------------------------------------------------------ */

.media-hero { padding-block: 0 0; }

.media-hero__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    background: var(--surface);
}

.media-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 8%,
        rgba(0,0,0,.28) 42%,
        rgba(0,0,0,.66) 70%,
        rgba(0,0,0,.86) 100%);
    pointer-events: none;
}

.media-hero__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 24px 32px;
    text-align: center;
    color: var(--on-dark);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
    /* Локальная подложка под самим текстом: общего скрима на светлых кадрах
       (марина, перрон, посадочный талон) не хватает, особенно на мобильном
       кадрировании 4/5, где подпись поднимается выше по фотографии. */
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.55) 42%,
        rgba(0,0,0,.72) 100%);
}

.media-hero__kicker {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 14px;
}

.media-hero__lead {
    max-width: 62ch;
    margin: 0 auto 22px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255,255,255,.9);
}

/* ------------------------------------------------------------------
   PRICE-STRIP / SERVICE-FACTS — полоса позиций с разделителями
   ------------------------------------------------------------------ */

.strip { border-top: 1px solid var(--line); }

.strip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Дорожка под подпись фиксирована, чтобы числа в соседних ячейках
   стояли на одной линии независимо от числа строк подписи. */
.strip__cell {
    display: grid;
    grid-template-rows: minmax(4.1em, auto) auto auto;
    align-content: start;
    row-gap: 10px;
    min-width: 0;
    overflow-wrap: break-word;
    padding: 28px 16px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.strip__cell:nth-child(odd) { border-right: 1px solid var(--line); }
.strip__grid > .strip__cell:nth-last-child(-n+2) { border-bottom: 0; }

.strip__name {
    display: block;
    align-self: start;
    font-size: 15px;
    line-height: 1.35;
}

.strip__value {
    display: block;
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.strip__note {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   PAGE-HERO — титульная полоса внутренних страниц
   ------------------------------------------------------------------ */

.page-hero {
    border-bottom: 1px solid var(--line);
    padding-block: 48px 44px;
    text-align: center;
}

.page-hero__title {
    font-size: 34px;
    line-height: 1.08;
    font-weight: 400;
    margin: 0;
}

.page-hero__lead {
    max-width: 68ch;
    margin: 20px auto 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   КАРТОЧКИ — базовая (фото + подпись)
   ------------------------------------------------------------------ */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    transition: border-color .3s var(--ease);
}

.card__media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface);
}

.card--article .card__media { aspect-ratio: 3 / 2; }

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.card__title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 500;
    margin: 0;
}

.card__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0;
}

.card__meta {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
}

.card__price {
    margin-top: auto;
    padding-top: 4px;
    font-size: 15px;
    color: var(--ink-soft);
}
.card__price b {
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.card:hover { border-color: var(--line-strong); }
.card:hover .card__img { transform: scale(1.03); }
.card:hover .card__title { text-decoration: underline; }

.card__link { display: contents; }

a.card { color: inherit; }

/* Карточка города — компактнее */
.card--city .card__body { padding: 18px 20px 20px; }

/* ------------------------------------------------------------------
   ORDER-STEPS
   ------------------------------------------------------------------ */

.steps-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    margin-bottom: var(--sec-gap);
}

.steps-icons__item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.steps-icons__ico { color: var(--ink); }

.steps-icons__label {
    font-size: 14px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.steps-list {
    display: flex;
    flex-direction: column;
}

.step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 16px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__mark {
    grid-row: span 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--gold-deep);
}

.step__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 4px 0 10px;
}

.step__text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.step__list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step__list li {
    position: relative;
    padding-left: 18px;
    font-size: 16px;
    line-height: 1.55;
}
.step__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 6px;
    height: 1px;
    background: var(--gold);
}

/* ------------------------------------------------------------------
   SEO-TEXT (лонгрид)
   ------------------------------------------------------------------ */

.longread > * + * { margin-top: 22px; }

.longread h2 {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
}
.longread > h2:first-child { margin-top: 0; }
/* h2 задаёт нижний отступ сам — универсальное правило его не удваивает */
.longread > h2 + * { margin-top: 0; }

.longread p {
    font-size: 17px;
    line-height: 1.7;
}

.longread ul,
.longread ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.longread ul li {
    position: relative;
    padding-left: 22px;
    font-size: 17px;
    line-height: 1.6;
}
.longread ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 10px;
    height: 1px;
    background: var(--gold);
}

.longread ol {
    counter-reset: lr;
}
.longread ol li {
    position: relative;
    padding-left: 32px;
    font-size: 17px;
    line-height: 1.6;
    counter-increment: lr;
}
.longread ol li::before {
    content: counter(lr) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 15px;
    color: var(--gold-deep);
    font-variant-numeric: tabular-nums;
}

.longread blockquote {
    padding: 4px 0 4px 22px;
    border-left: 2px solid var(--gold);
    font-size: 18px;
    line-height: 1.6;
}

.longread figure { margin-block: 28px; }
.longread figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--surface);
}
.longread figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   ADVANTAGES — две колонки без рамок
   ------------------------------------------------------------------ */

.adv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.adv__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
}

.adv__text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   ТАБЛИЦЫ
   ------------------------------------------------------------------ */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.price-table {
    min-width: 100%;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.price-table th:first-child,
.price-table td:first-child { white-space: normal; min-width: 220px; }

.price-table thead th {
    background: var(--gold);
    color: var(--graphite);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 0;
}

.price-table tbody tr:nth-child(even) { background: var(--surface); }
.price-table tbody tr:last-child td { border-bottom: 0; }

.price-table .cell-price {
    text-align: right;
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
}

.price-table .cell-price--text {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15px;
    color: var(--ink-soft);
}

.table-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   FAQ — строки-аккордеоны
   ------------------------------------------------------------------ */

.faq-list { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__btn {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    text-align: left;
    font-size: 18px;
    line-height: 1.4;
    color: var(--ink);
}

.faq__btn:hover { color: var(--gold-deep); }

.faq__sign {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--ink-soft);
    transition: color .2s var(--ease);
}
.faq__btn:hover .faq__sign { color: var(--gold-deep); }

.faq__sign-minus { display: none; }
.faq__btn[aria-expanded="true"] .faq__sign-minus { display: block; }
.faq__btn[aria-expanded="true"] .faq__sign-plus { display: none; }

.faq__answer { padding: 0 0 24px; }
.faq__answer p {
    max-width: 78ch;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0;
}

/* ------------------------------------------------------------------
   ROW-LIST — строки статей / отзывов
   ------------------------------------------------------------------ */

.row-list { border-top: 1px solid var(--line); }

.row-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.row-item__title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}

.row-item__meta {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--ink-soft);
}

.row-item__text {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.65;
    max-width: 78ch;
}

a.row-item__title:hover { text-decoration: underline; }

.reviews-count {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 22px;
}

.reviews-note {
    border-top: 1px solid var(--line);
    padding-top: 32px;
    margin-top: 32px;
}
.reviews-note h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 14px;
}
.reviews-note p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 72ch;
}

/* ------------------------------------------------------------------
   ROUTES-LINKS — блок перелинковки
   ------------------------------------------------------------------ */

.routes-links { background: var(--surface); }

.routes-links__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 40px;
}

.routes-links__item { border-bottom: 1px solid var(--line-strong); }

.routes-links__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    font-size: 16px;
    line-height: 1.4;
}

.routes-links__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.routes-links__label svg { flex: 0 0 auto; color: var(--gold-deep); }

.routes-links__price {
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.routes-links__link:hover .routes-links__label { text-decoration: underline; }

/* ------------------------------------------------------------------
   CTA-BAND — тёмная полоса
   ------------------------------------------------------------------ */

.cta-band {
    background: var(--graphite);
    color: var(--on-dark);
    text-align: center;
    padding-block: 56px;
}

.cta-band__title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
}

.cta-band__phone {
    display: inline-block;
    margin: 20px 0 4px;
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cta-band__phone:hover { text-decoration: underline; }

.cta-band__note {
    margin: 0 auto 28px;
    max-width: 56ch;
    font-size: 15px;
    color: var(--on-dark-soft);
}

.cta-band .btn-row { justify-content: center; }

/* ------------------------------------------------------------------
   ГАЛЕРЕЯ И ЛАЙТБОКС
   ------------------------------------------------------------------ */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

.gallery-item { text-align: left; width: 100%; display: block; }

.gallery-item__frame {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    transition: border-color .3s var(--ease);
}

.gallery-item__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.gallery-item__cap {
    display: block;
    margin-top: 12px;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-soft);
}

.gallery-item:hover .gallery-item__frame { border-color: var(--line-strong); }
.gallery-item:hover .gallery-item__img { transform: scale(1.03); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(23, 21, 15, .92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 40px;
}

.lightbox__img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: var(--graphite);
}

.lightbox__cap {
    margin-top: 16px;
    max-width: 60ch;
    text-align: center;
    font-size: 15px;
    color: var(--on-dark-soft);
}

.lightbox__btn {
    position: absolute;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--on-dark);
    background: rgba(255,255,255,.08);
    border-radius: var(--radius);
    transition: background-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.2); }

.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev  { left: 12px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 12px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------
   СТАТЬЯ
   ------------------------------------------------------------------ */

.article-head { text-align: center; padding-block: 48px 0; }

.article-head__title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 400;
    margin: 0;
}

.article-head__meta {
    margin: 18px 0 0;
    font-size: 15px;
    color: var(--ink-soft);
}

.article-head__cover {
    margin-top: 32px;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--surface);
}

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

/* ------------------------------------------------------------------
   КОНТАКТЫ И КАРТА
   ------------------------------------------------------------------ */

.contact-block {
    padding-block: 32px;
    border-bottom: 1px solid var(--line);
}
.contact-block:first-child { padding-top: 0; }
.contact-block:last-child { border-bottom: 0; }

.contact-block__title {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 0 16px;
}

.contact-block__body {
    font-size: 17px;
    line-height: 1.7;
}
.contact-block__body a { border-bottom: 1px solid var(--line-strong); }
.contact-block__body a:hover { border-bottom-color: var(--ink); }
/* абзац под списком контактов: свой отступ и выравнивание по тексту пунктов,
   иначе читается как оборванный пункт без иконки */
.contact-block__body > * + * { margin-top: 16px; }
.contact-block__body > p { padding-left: 32px; }

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 17px;
    line-height: 1.6;
}
.contact-list .ico { margin-top: 3px; color: var(--gold-deep); }

.map-frame {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface);
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------------------------------------
   404 И КАРТА САЙТА
   ------------------------------------------------------------------ */

.error-block {
    text-align: center;
    padding-block: 64px;
}

.error-block__num {
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    color: var(--gold-deep);
    font-variant-numeric: tabular-nums;
}

.error-block__title {
    margin: 20px 0 0;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
}

.error-block__text {
    margin: 18px auto 32px;
    max-width: 56ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.error-block .btn-row { justify-content: center; }

.sitemap-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.sitemap-col__title {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 0 8px;
}

.sitemap-list { border-top: 1px solid var(--line); }

.sitemap-list li { border-bottom: 1px solid var(--line); }

.sitemap-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 0;
    font-size: 16px;
    line-height: 1.4;
}
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-list svg { flex: 0 0 auto; color: var(--ink-soft); }

/* ------------------------------------------------------------------
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ------------------------------------------------------------------ */

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

/* ==================================================================
   4. МЕДИАЗАПРОСЫ, ДОСТУПНОСТЬ, ПЕЧАТЬ
   ================================================================== */

/* ---------- ≥ 560px: две колонки карточек ---------- */
@media (min-width: 560px) {
    .card-grid,
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .strip__cell { border-bottom: 0; }
    .strip__cell:nth-child(odd) { border-right: 0; }
    .strip__cell + .strip__cell { border-left: 1px solid var(--line); }

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

    .steps-icons { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- ≥ 768px: поля 40px, крупнее типографика ---------- */
@media (min-width: 768px) {
    :root {
        --pad: 40px;
        --sec-y: 88px;
        --sec-gap: 48px;
        --grid-gap: 32px;
    }

    body { font-size: 17px; }

    h1, .h1 { font-size: 46px; }

    .sec-title { font-size: 24px; }

    .page-hero {
        padding-block: 72px 60px;
    }
    .page-hero__title { font-size: 46px; }

    .article-head { padding-block: 72px 0; }
    .article-head__title { font-size: 46px; }
    .article-head__cover { margin-top: 40px; }
    .article-body { padding-block: 48px 0; }

    .media-hero__frame { aspect-ratio: 16 / 9; }
    .media-hero__body { padding: 64px 40px 44px; }
    .media-hero__kicker { font-size: 22px; margin-bottom: 16px; }
    .media-hero__lead { font-size: 17px; margin-bottom: 26px; }

    .strip__cell { padding: 34px 20px; }
    .strip__value { font-size: 32px; }

    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 44px 64px;
    }

    .steps-icons { gap: 32px 24px; }

    .step {
        grid-template-columns: 40px 1fr;
        gap: 0 24px;
        padding: 32px 0;
    }
    .step__mark { width: 40px; height: 40px; }
    .step__title { font-size: 19px; }

    .longread h2 { font-size: 28px; margin-top: 48px; }

    .error-block { padding-block: 96px; }
    .error-block__num { font-size: 96px; }
    .error-block__title { font-size: 46px; }

    .sitemap-cols { grid-template-columns: repeat(2, 1fr); gap: 56px; }

    .cta-band { padding-block: 80px; }
    .cta-band__title { font-size: 24px; }
    .cta-band__phone { font-size: 32px; margin-top: 24px; }

    .contact-block { padding-block: 40px; }
    .contact-block__title { font-size: 24px; }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
        padding-block: 72px 56px;
    }

    .footer-bar__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 24px;
    }

    .lightbox { padding: 72px 80px 56px; }
    .lightbox__close { top: 20px; right: 20px; }
    .lightbox__prev  { left: 20px; }
    .lightbox__next  { right: 20px; }
}

/* ---------- ≥ 900px: десктопная шапка, три колонки ---------- */
@media (min-width: 900px) {
    .burger { display: none; }

    .header-row--brand { height: 64px; }

    .header-brand-wrap { justify-content: center; }

    .wordmark { font-size: 32px; }

    .header-row--nav { display: block; }

    .mobile-nav { display: none !important; }

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

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

/* ---------- 900–1100px: сжимаем gap меню ---------- */
@media (min-width: 900px) and (max-width: 1100px) {
    .nav__list { gap: 22px; }
    .header-nav-wrap { gap: 16px; }
    .nav__link { font-size: 14px; }
    .phone-pill { font-size: 14px; padding: 8px 14px; }
}

/* ---------- ≥ 1280px: поля 96px, полный ритм ---------- */
@media (min-width: 1280px) {
    :root {
        --pad: 96px;
        --sec-y: 112px;
        --sec-gap: 56px;
    }

    h1, .h1 { font-size: 60px; }
    .page-hero__title { font-size: 60px; }
    .article-head__title { font-size: 60px; }
    .error-block__title { font-size: 60px; }

    .media-hero__frame { aspect-ratio: 21 / 9; }
    .media-hero__kicker { font-size: 24px; }

    .strip__value { font-size: 36px; }

    .adv-grid { gap: 48px 80px; }

    .page-hero { padding-block: 96px 76px; }
    .article-head { padding-block: 96px 0; }

    .footer-top { gap: 64px; padding-block: 88px 64px; }
}

/* ------------------------------------------------------------------
   FOCUS-VISIBLE
   ------------------------------------------------------------------ */

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn:focus-visible,
.gallery-item:focus-visible,
.card:focus-visible,
.phone-pill:focus-visible,
.faq__btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.cta-band :focus-visible,
.footer-bar :focus-visible,
.lightbox :focus-visible,
.media-hero__body :focus-visible {
    outline-color: var(--gold);
}

/* Убираем контур при клике мышью */
:focus:not(:focus-visible) { outline: none; }

/* ------------------------------------------------------------------
   PREFERS-REDUCED-MOTION
   ------------------------------------------------------------------ */

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

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    .card:hover .card__img,
    .gallery-item:hover .gallery-item__img { transform: none; }
}

/* ------------------------------------------------------------------
   ПЕЧАТЬ
   ------------------------------------------------------------------ */

@media print {
    .site-header,
    .mobile-nav,
    .cta-band,
    .routes-links,
    .footer-bar,
    .lightbox,
    .skip-link,
    .burger,
    .media-hero { display: none !important; }

    body {
        font-size: 12pt;
        line-height: 1.45;
        color: #000;
        background: #fff;
    }

    .wrap,
    .wrap-narrow { max-width: none; padding-inline: 0; }

    .section { padding-block: 12pt; }

    a { color: #000; text-decoration: underline; }
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }
    a[href^="tel"]::after,
    a[href^="#"]::after { content: ""; }

    .card,
    .table-wrap,
    .step,
    .faq__item { break-inside: avoid; page-break-inside: avoid; }

    /* В печати ответы FAQ раскрыты — единственное осознанное исключение */
    .faq__answer[hidden] { display: block !important; }

    img { max-width: 100% !important; }

    .reveal { opacity: 1 !important; transform: none !important; }
}


/* ------------------------------------------------------------------
   ДОПОЛНЕНИЯ СЕКЦИЙ: текстовые значения в полосе фактов,
   фильтр рубрик и пагинация блога
   ------------------------------------------------------------------ */

.strip__value--text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.35;
    white-space: normal;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}

.filter-row__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-soft);
}

.filter-row__link {
    font-size: 15px;
    line-height: 1.3;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}
.filter-row__link:hover { border-bottom-color: var(--ink); }
.filter-row__link.is-active { border-bottom-color: var(--gold); font-weight: 600; }

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.pager__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.pager__num:hover { border-color: var(--ink); }
.pager__num[aria-current=page] {
    background: var(--ink);
    color: var(--on-dark);
    border-color: var(--ink);
}

.pager__info {
    margin-left: auto;
    font-size: 14px;
    color: var(--ink-soft);
}

@media (min-width: 900px) {
    .strip__value--text { font-size: 18px; }
}
