@charset "UTF-8";
/* ==========================================================================
   «Зелёная точка» — основные стили
   1. Переменные и сброс      5. Секции и карточки тарифов
   2. Кнопки                  6. Акции, оборудование, преимущества
   3. Шапка и меню            7. Шаги, FAQ, города, футер
   4. Первый экран            8. Модальные окна и формы
   9. Внутренние страницы     10. Адаптивность
   ========================================================================== */

/* --- Шрифт ----------------------------------------------------------------
   Montserrat (как в проекте «Мегафон») — вариативный, один файл на подмножество.
   Лежит локально в assets/fonts: внешних запросов нет, вес 100–900.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 1. Переменные и сброс ------------------------------------------------ */
:root {
    --green: #70c046;
    --green-text: #3f8a24;
    --green-dark: #145723;
    --green-deep: #0d3617;
    --green-light: #e9f5eb;
    --green-mint: #f3faf4;
    --lime: #a6d96a;
    --ink: #16221a;
    --ink-soft: #4a5c50;
    --muted: #63736a;
    --line: #dfe8e1;
    --line-soft: #edf3ee;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-soft: #f6faf7;
    --accent: #f4a322;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(16, 54, 27, .06);
    --shadow: 0 12px 32px rgba(16, 54, 27, .10);
    --shadow-lg: 0 24px 60px rgba(13, 54, 23, .16);
    --container: 1180px;
    --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Мобильное меню спрятано за правым краем экрана — не даём документу
       растягиваться по горизонтали. overflow на html наследуется вьюпортом,
       поэтому липкая шапка продолжает работать */
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* Страховка от горизонтального скролла на телефонах: мобильное меню стоит
       за правым краем экрана и без обрезки документ «уезжает» вправо.
       overflow-x: clip (в отличие от hidden) не создаёт скролл-контейнер,
       поэтому липкая шапка внутри body продолжает работать. */
    overflow-x: clip;
}

img,
svg { max-width: 100%; }

img { height: auto; display: block; }

a {
    color: var(--green-text);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    text-wrap: balance;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.main { display: block; }

/* Скрыто визуально, но остаётся для поиска и скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid rgba(112, 192, 70, .45);
    outline-offset: 2px;
}

::selection {
    background: rgba(112, 192, 70, .35);
    color: var(--green-deep);
}

/* --- 2. Кнопки ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--green-deep);
    box-shadow: 0 8px 20px rgba(112, 192, 70, .22);
}

.btn--primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(112, 192, 70, .3);
}

.btn--ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--green-dark);
}

.btn--ghost:hover {
    border-color: var(--green);
    background: var(--green-mint);
    color: var(--green-dark);
}

.btn--outline {
    background: transparent;
    border-color: var(--green);
    color: var(--green-text);
}

.btn--outline:hover {
    background: var(--green);
    color: var(--green-deep);
}

.btn--white {
    background: #fff;
    border-color: #fff;
    color: var(--green-dark);
}

.btn--white:hover {
    background: var(--green-light);
    color: var(--green-deep);
}

.btn--block { width: 100%; }

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--sm {
    padding: 9px 16px;
    font-size: 13px;
}

.btn:disabled,
.btn[aria-busy="true"] {
    opacity: .65;
    cursor: progress;
}

.link-like {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--green-text);
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    cursor: pointer;
}

.link-like:hover { color: var(--green-dark); }


/* --- 3. Шапка и меню ------------------------------------------------------ */
.topbar {
    background: var(--green-deep);
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__label {
    font-size: 15px;
    color: rgba(255, 255, 255, .68);
}

.topbar__city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px dashed rgba(255, 255, 255, .5);
    cursor: pointer;
}

.topbar__city:hover { color: var(--lime); }

.topbar__link {
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
}

.topbar__link:hover { color: #fff; }

.topbar__time { color: rgba(255, 255, 255, .55); }

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--line-soft);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 80px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--ink);
}

.logo:hover { color: var(--ink); }

.logo__img {
    width: clamp(160px, 15vw, 226px);
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__link {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--green-dark);
    background: var(--green-mint);
}

.nav__link.is-active {
    color: var(--green-dark);
    background: var(--green-light);
}

.nav__link--city {
    margin-left: 6px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    border-radius: 0;
    color: var(--green);
}

.nav__link--city:hover { background: none; }

/* Телефоны и кнопка заявки внутри меню: нужны только в мобильной «шторке»,
   на компьютере номер и кнопка «Подключить» стоят в шапке. */
.nav__extra { display: none; }

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header__phone {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
}

.header__phone-link {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    transition: color .2s ease;
}

.header__phone-link:hover { color: var(--green-dark); }

.header__phone-note {
    font-size: 11px;
    color: var(--muted);
}

/* Иконка трубки в шапке: видна только на мобиле (там номер из шапки скрыт),
   открывает окно «Позвонить» с отделом подключений и техподдержкой. */
.header__call {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--green-deep);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.header__call:hover {
    background: var(--green-mint);
    color: var(--green-dark);
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--green-deep);
    transition: transform .2s ease, opacity .2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 4. Первый экран ------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    background:
        radial-gradient(1200px 520px at 82% -10%, rgba(166, 217, 106, .28), transparent 60%),
        linear-gradient(160deg, #f2faf3 0%, #ffffff 62%);
    border-bottom: 1px solid var(--line-soft);
}

.hero::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -220px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 192, 70, .10), transparent 68%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 48px;
    align-items: center;
}

.hero__title {
    margin-bottom: 16px;
    font-size: clamp(26px, 3.6vw, 40px);
    line-height: 1.1;
    letter-spacing: -.025em;
    text-wrap: balance;
    color: var(--green-deep);
}

.hero__lead {
    max-width: 34em;
    margin-bottom: 22px;
    color: var(--ink-soft);
    font-size: 17px;
}

.hero__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.hero__check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--green);
    color: var(--green-deep);
    font-size: 12px;
    line-height: 1;
}

/* Кнопка-переход к тарифам под списком преимуществ */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
}

/* Кнопка не растягивается: обычный размер, левый край — вровень с галочками списка. */
.hero__actions .btn {
    width: auto;
}

/* --- Форма заявки в первом экране ----------------------------------------- */
/* Форма компактная: имя, телефон, адрес и согласие должны влезать в карточку
   без её заметного роста (отступы меньше, чем в модальных окнах). */
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.hero-form .field { gap: 4px; }

.hero-form .field__label { font-size: 12px; }

.hero-form .field__input { padding: 10px 12px; }

.hero-form .check { gap: 8px; font-size: 11.5px; line-height: 1.45; }

.hero-form .btn { margin-top: 2px; }

.hero__aside { display: flex; flex-direction: column; gap: 12px; }

.hero-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-card__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--green-text);
}

.hero-card__name {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--green-deep);
}

.hero-card__lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* --- Баннер под первым экраном --------------------------------------------
   Картинка — фон всего блока. Правая половина promo-banner.jpg пустая,
   поэтому текст ставим туда (на мобиле — по центру, под картинкой).
   -------------------------------------------------------------------------- */
.promo-banner { padding: 10px 0 0; }

.promo-banner__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    aspect-ratio: 1000 / 506;
    border-radius: 24px;
    overflow: hidden;
    background: #eceeef url("../img/promo-banner.jpg") center / 100% 100% no-repeat;
}

.promo-banner__content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 24px 32px;
    text-align: center;
}

.promo-banner__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: clamp(19px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--green-deep);
}

.promo-banner__line { display: block; }

.promo-banner__price {
    margin-top: 10px;
    font-size: clamp(27px, 3.5vw, 46px);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--green-text);
    white-space: nowrap;
}

.promo-banner__note {
    margin: -8px 0 0;
    max-width: 36em;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

/* --- Услуги --------------------------------------------------------------- */
.section--services { background: #fff; }

.section--services .section__head { max-width: none; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.service-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--ink);
}

.service-card__media {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--green-mint);
}

.service-card__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: transform .3s ease;
}

.service-card:hover .service-card__media img { transform: scale(1.03); }

.service-card__title {
    padding: 2px 4px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--green-deep);
}

.service-card--static { cursor: default; }

.service-card--static:hover {
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

.service-card--static:hover .service-card__media img { transform: none; }

/* Второй блок тарифов — на белом фоне, чтобы группы не сливались */
.section--tariffs-alt { background: #fff; }

/* Отступ при переходе по якорям под липкую шапку */
section[id] { scroll-margin-top: 96px; }

/* --- 5. Секции и карточки тарифов ----------------------------------------- */
.section { padding: 64px 0; }

.section--tariffs { background: var(--bg-soft); }

.section--promos { background: #fff; }

.section--equipment { background: var(--green-mint); }

.section--steps { background: #fff; }

.section--advantages { background: var(--bg-soft); }

.section--cities { background: linear-gradient(180deg, #fff 0%, var(--green-mint) 100%); }

.section--faq { background: var(--bg-soft); }

.section--seo { background: #fff; padding-top: 48px; }

.section--table { background: #fff; }

.section--promo-terms { background: #fff; }

.section--tariff-detail { background: var(--bg-soft); padding-top: 40px; }

.section--legal { background: #fff; }

.section--404 { background: var(--green-mint); padding: 80px 0; }

.section--thanks { width: 100%; padding: 0; background: none; }

.section__head {
    max-width: 780px;
    margin-bottom: 34px;
}

.section__title {
    margin-bottom: 12px;
    font-size: clamp(21px, 2.6vw, 30px);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--green-deep);
}

.section__lead {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.section__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding: 22px 26px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.section__foot-text {
    margin: 0;
    max-width: 46em;
    color: var(--ink-soft);
    font-size: 15px;
}

.section__foot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section__foot-link {
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
}

.section__foot-link a { font-weight: 700; }

/* Заголовок внутренней страницы */
.page-head {
    padding: 34px 0 8px;
    background: linear-gradient(180deg, var(--green-mint) 0%, #ffffff 100%);
}

.breadcrumbs { font-size: 13px; color: var(--muted); }

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li + li::before {
    content: "›";
    color: var(--line);
}

.breadcrumbs a { color: var(--muted); }

.breadcrumbs a:hover { color: var(--green-dark); }

.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.page-head__title {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--green-deep);
}

.page-head__lead {
    max-width: 60em;
    margin: 0 0 26px;
    color: var(--ink-soft);
    font-size: 16px;
}

/* Сетка и карточка тарифа.
   auto-fill (а не auto-fit): пустые дорожки не схлопываются, поэтому один тариф
   не растягивается на всю строку, а сохраняет ширину карточки из блока с тремя. */
.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Блок из двух тарифов: карточки той же ширины, что и в блоке из трёх,
   прижаты к левому краю — незаполненный ряд не «уезжает» вправо */
.tariff-grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(66.6667% - 8px);
    margin: 0;
}

.tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tariff-card:hover {
    transform: translateY(-4px);
    border-color: rgba(112, 192, 70, .35);
    box-shadow: var(--shadow);
}

.tariff-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
}

.tariff-card__badge--hit {
    background: var(--accent);
    color: #3a2500;
}

.tariff-card__name {
    margin: 0 0 10px;
    padding-right: 80px;
    font-size: 19px;
    font-weight: 800;
    color: var(--green-deep);
}

.tariff-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.tariff-card__value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.tariff-card__period { font-size: 14px; color: var(--muted); }

/* Цена после акции («900 ₽/мес с 7-го месяца») — мелким шрифтом под ценой.
   Отрицательный верхний отступ поджимает строку к цене (у .tariff-card__price
   снизу 14px), иначе между ними получается двойной интервал. */
.tariff-card__after {
    margin: -8px 0 14px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}

/* Строка акции с подарком («Скидка 50% на 6 мес.») — прямо над ценой */
.tariff-card__promo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.tariff-card__promo-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--green-text);
}

.tariff-card__promo-text {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--green-text);
}

.tariff-card__specs {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line-soft);
    list-style: none;
}

.tariff-card__spec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    font-size: 15px;
    color: var(--ink-soft);
}

.tariff-card__spec-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    color: var(--green);
}

.tariff-card__spec-text b { color: var(--ink); }

.tariff-card__gifts {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--green-mint);
    list-style: none;
    font-size: 13px;
    color: var(--green-dark);
}

.tariff-card__gifts li { padding: 3px 0; }

/* Подключение и оборудование в рассрочку + подсказка «?» */
.tariff-card__extras {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tariff-card__extra {
    position: relative;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}

.tariff-card__extra-line { display: block; }

.tariff-card__extra-hint {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.tariff-card__tip {
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 4px;
}

.tariff-card__tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1.5px solid var(--muted);
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.tariff-card__tip-btn:hover {
    color: var(--green-text);
    border-color: var(--green-text);
    transform: scale(1.08);
}

.tariff-card__tip-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: min(280px, 100%);
    padding: 28px 14px 12px;
    border-radius: 10px;
    background: #2b2b2b;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.tariff-card__tip-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.tariff-card__tip-close:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.tariff-card__tip-text {
    display: block;
    padding-right: 12px;
}

.tariff-card__tip-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    right: var(--tip-arrow-right, 18px);
    border: 7px solid transparent;
    border-top-color: #2b2b2b;
}

@media (hover: hover) and (pointer: fine) {
    .tariff-card__tip:hover:not(.is-tip-suppressed) .tariff-card__tip-popup,
    .tariff-card__tip:focus-within:not(.is-tip-suppressed) .tariff-card__tip-popup {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.tariff-card__tip.is-open .tariff-card__tip-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Низ карточки (акция → цена → кнопка) прижат к подножию: у карточек разной
   высоты кнопки «Подключить» стоят на одной линии */
.tariff-card__foot {
    margin-top: auto;
    padding-top: 4px;
}

.tariff-card__actions { margin-top: 0; }

.tariff-card__link {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

/* --- 6. Акции, оборудование, преимущества --------------------------------- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* В городе одна акция (Елец): карточка не растягивается на всю ширину блока */
.promo-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
}

.promo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.promo-card__media {
    position: relative;
    aspect-ratio: 2 / 1;
    background: var(--green-light);
}

.promo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--green);
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(13, 54, 23, .25);
}

.promo-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.promo-card__title {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.25;
    color: var(--green-deep);
}

.promo-card__text {
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 15px;
}

.promo-card__body .btn { margin-top: auto; }

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.equipment-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}

.equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.equipment-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

.equipment-card__media img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

.equipment-card__name {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--green-deep);
}

.equipment-card__specs {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--ink-soft);
    text-align: left;
}

.equipment-card__specs li {
    position: relative;
    padding: 4px 0 4px 20px;
}

.equipment-card__specs li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.equipment-card__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Цена и строки рассрочки стоят по левому краю — в один ряд с текстом
       характеристик, а не по центру карточки. */
    padding-left: 20px;
    margin: auto 0 0;
    text-align: left;
}

.equipment-card__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

.equipment-card__rent {
    font-size: 13px;
    color: var(--muted);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.advantage-card {
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.advantage-card:hover {
    border-color: rgba(112, 192, 70, .3);
    box-shadow: var(--shadow-sm);
}

.advantage-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--green-light);
    color: var(--green);
}

.advantage-card__title {
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--green-deep);
}

.advantage-card__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

/* --- 7. Шаги, FAQ, города, футер ------------------------------------------ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps__item {
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.steps__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--green);
    color: var(--green-deep);
    font-size: 18px;
    font-weight: 800;
}

.steps__title {
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--green-deep);
}

.steps__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.steps__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 30px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
}

.steps__cta-text h3 {
    margin-bottom: 6px;
    font-size: 20px;
    color: #fff;
}

.steps__cta-text p {
    margin: 0;
    max-width: 48em;
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq__item[open] {
    border-color: rgba(112, 192, 70, .3);
    box-shadow: var(--shadow-sm);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question:hover { color: var(--green-dark); }

.faq__marker {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green-light);
}

.faq__marker::before,
.faq__marker::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.faq__marker::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item[open] .faq__marker::after { transform: translate(-50%, -50%) rotate(0); }

.faq__answer {
    padding: 0 22px 20px;
    color: var(--ink-soft);
    font-size: 15px;
}

.faq__answer p { margin: 0; }

.city-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.city-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.city-card:hover {
    transform: translateY(-2px);
    border-color: var(--green);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.city-card.is-active {
    border-color: var(--green);
    background: var(--green-light);
}

.city-card__name {
    font-size: 16px;
    font-weight: 800;
    color: var(--green-deep);
}

.city-card__region {
    font-size: 12px;
    color: var(--muted);
}

.city-card__price {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green-text);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.city-grid__item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
}

.city-grid__item:hover,
.city-grid__item.is-active {
    border-color: var(--green);
    background: var(--green-mint);
    color: var(--ink);
}

.city-grid__name { font-weight: 700; font-size: 15px; }

/* Вторая строка карточки: цена слева, плашка «выбранный город» справа.
   Плашка стоит здесь, а не рядом с названием: название остаётся в одну строку,
   и все карточки в сетке получаются одной высоты (иначе у выбранного города
   карточка была выше соседей и ломала ряд). */
.city-grid__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.city-grid__meta { font-size: 12px; color: var(--muted); }

/* Пометка «выбранный город» у текущего города в окне выбора города */
.city-grid__badge {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: lowercase;
    white-space: nowrap;
}

/* Полоса призыва + подвал */
.cta-band {
    padding: 44px 0;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(166, 217, 106, .22), transparent 65%),
        linear-gradient(120deg, var(--green-deep) 0%, var(--green-dark) 55%, var(--green) 100%);
    color: #fff;
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.cta-band__text { max-width: 620px; }

.cta-band__title {
    margin-bottom: 8px;
    font-size: clamp(21px, 2.6vw, 28px);
    color: #fff;
}

.cta-band__desc {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cta-band__phone {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.cta-band__phone:hover { color: var(--lime); }

.footer {
    padding: 52px 0 26px;
    background: #0b2413;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.footer__inner {
    display: grid;
    /* Три колонки: бренд с телефонами, города и разделы. Отдельной колонки
       «Контакты» нет — телефоны отдела подключений и техподдержки стоят
       в блоке бренда, дублировать их не нужно. Колонка городов самая широкая:
       список идёт в две колонки, чтобы подвал не разрастался в высоту. */
    grid-template-columns: 1.05fr 1.5fr 0.95fr;
    gap: 32px;
    padding-bottom: 34px;
}

.footer__col--brand { max-width: 340px; }

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.footer__logo:hover { color: #fff; }

.footer__logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.footer__about {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    line-height: 1.6;
}

.footer__phone {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.footer__phone:hover { color: var(--lime); }

.footer__phone--small {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .66);
}

.footer__title {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.footer__list li { margin-bottom: 9px; }

.footer__list a {
    color: rgba(255, 255, 255, .78);
}

.footer__list a:hover { color: var(--lime); }

/* Города в подвале — в две колонки: 13 ссылок в один столбец растягивали
   подвал по высоте. */
.footer__list--cities {
    columns: 2;
    column-gap: 28px;
}

/* Строка города не должна переноситься из колонки в колонку */
.footer__list--cities li {
    break-inside: avoid;
    page-break-inside: avoid;
}

.footer__bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__legal {
    margin: 0 0 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

.footer__disclaimer {
    margin: 0;
    max-width: 90em;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .4);
}

/* Правовые документы в подвале: политика, соглашение, cookie */
.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0 0 10px;
    font-size: 13px;
}

.footer__legal-links a {
    color: rgba(255, 255, 255, .72);
}

.footer__legal-links a:hover { color: var(--lime); }

/* --- 8. Модальные окна и формы -------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 32, 16, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .2s ease;
}

.modal.is-open .modal__overlay { opacity: 1; }

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* auto-отступы вместо жёсткого центрирования: окно стоит по центру, но если
       оно выше экрана — не обрезается сверху, а прокручивается вместе с .modal */
    margin: auto;
    padding: 24px 24px 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(14px) scale(.98);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.modal.is-open .modal__dialog {
    transform: none;
    opacity: 1;
}

.modal__dialog--form { max-width: 520px; }

.modal__dialog--center { text-align: center; }

.modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.modal__close:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.modal__head { margin-bottom: 14px; padding-right: 30px; }

.modal__title {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--green-deep);
}

.modal__subtitle {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.modal__dialog--center .modal__subtitle {
    max-width: 32em;
    margin: 0 auto 18px;
}

.modal__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.modal__footnote {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* Окно «Позвонить»: два крупных номера-кнопки (как в проекте beeline-v2) */
.modal__dialog--phones { max-width: 400px; }

/* Окно выбора города: список А→Я в две колонки, у текущего города — плашка */
.modal__dialog--city { max-width: 520px; }

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-list__item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
    transition: border-color .2s ease, background-color .2s ease;
}

.phone-list__item:hover {
    border-color: var(--green);
    background: var(--green-mint);
}

.phone-list__label {
    font-size: 12px;
    color: var(--muted);
}

.phone-list__value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ink);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.lead-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form__status {
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.lead-form__status.is-error {
    display: block;
    background: #fdecec;
    color: #a3231f;
}

.lead-form__status.is-success {
    display: block;
    background: var(--green-light);
    color: var(--green-dark);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Поле, скрытое скриптом (например адрес в окне «Заказать консультацию»). */
.field[hidden] { display: none; }

.field__label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
}

.field__hint {
    font-weight: 400;
    color: var(--muted);
}

.field__input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field__input::placeholder { color: #a9b6ad; }

.field__input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(112, 192, 70, .12);
    outline: none;
}

.field__select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234a5c50' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.field__error {
    display: none;
    font-size: 12px;
    color: #c0392b;
}

.field__error.is-visible { display: block; }

.field__error--check {
    margin: -6px 0 0;
    padding-left: 30px;
    font-weight: 600;
}

.field__input.is-invalid {
    border-color: #e08b84;
    background: #fffafa;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--ink-soft);
    cursor: pointer;
}

.check__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.check__box {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease;
}

.check__input:checked + .check__box {
    border-color: var(--green);
    background: var(--green);
}

.check__input:checked + .check__box::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--green-deep);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check__input:focus-visible + .check__box {
    outline: 3px solid rgba(112, 192, 70, .35);
    outline-offset: 2px;
}

/* Согласие не отмечено. Формы отправляются с novalidate, поэтому системного
   сообщения браузера нет: класс is-invalid на <label class="check"> вешает
   setFieldError() (assets/js/main.js), а подсказка «Поставьте галочку — нужно
   согласие…» выводится в span под чекбоксом (.field__error--check).
   Акцент как в проекте ProviderPro: красная обводка квадратика, короткое
   «дрожание» и красный текст подписи — видно, куда нажать. */
.check.is-invalid {
    color: #c0392b;
}

.check.is-invalid .check__box {
    border-color: #c0392b;
    outline: 2px solid #c0392b;
    outline-offset: 2px;
    background: #fff5f4;
    animation: checkErrorIn .32s ease;
}

@keyframes checkErrorIn {
    0%,
    100% { transform: translateX(0); }
    30% { transform: translateX(-3px); }
    70% { transform: translateX(3px); }
}

/* --- 9. Внутренние страницы ----------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.tariff-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14px;
}

.tariff-table th,
.tariff-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
}

.tariff-table thead th {
    background: var(--green-mint);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tariff-table tbody tr:hover { background: #fbfdfb; }

.tariff-table tbody tr:last-child td { border-bottom: 0; }

.tariff-table s {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.tariff-table td:last-child { white-space: nowrap; }

/* Детальная страница тарифа */
.tariff-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.tariff-detail__main {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.tariff-detail__subtitle {
    margin-bottom: 18px;
    font-size: 20px;
    color: var(--green-deep);
}

.tariff-detail__specs {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.tariff-detail__specs li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
}

.tariff-detail__key { color: var(--muted); }

.tariff-detail__value {
    font-weight: 700;
    color: var(--ink);
    text-align: right;
}

.tariff-detail__value s {
    margin-left: 8px;
    font-weight: 400;
    color: var(--muted);
}

.tariff-detail__note {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    background: #fffaf0;
    font-size: 14px;
    color: #6b4b12;
}

.tariff-detail__gifts,
.tariff-detail__equipment {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.tariff-detail__gifts h3,
.tariff-detail__equipment h3 {
    margin-bottom: 12px;
    font-size: 17px;
    color: var(--green-deep);
}

.tariff-detail__gifts ul,
.tariff-detail__equipment ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--ink-soft);
}

.tariff-detail__gifts li,
.tariff-detail__equipment li {
    position: relative;
    padding: 6px 0 6px 26px;
}

.tariff-detail__gifts li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.tariff-detail__equipment li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--green);
}

.tariff-detail__aside { position: sticky; top: 96px; }

.order-card {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.order-card__label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--green-deep);
}

.order-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.order-card__value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.order-card__period { color: var(--muted); font-size: 14px; }

.order-card__old {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
}

.order-card__phone {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 16px 0 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--green-mint);
    text-align: center;
}

.order-card__phone span { font-size: 12px; color: var(--muted); }

.order-card__phone b {
    font-size: 19px;
    color: var(--green-deep);
    white-space: nowrap;
}

.order-card__phone:hover b { color: var(--green-dark); }

.order-card__list {
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line-soft);
    list-style: none;
    font-size: 13px;
    color: var(--ink-soft);
}

.order-card__list li {
    position: relative;
    padding: 3px 0 3px 22px;
}

.order-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--green-text);
    font-weight: 800;
}

/* Текстовые блоки: SEO, условия, политика */
.seo-text {
    max-width: 76em;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
}

.seo-text h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--green-deep);
}

.seo-text h3 {
    margin: 24px 0 10px;
    font-size: 19px;
    color: var(--green-deep);
}

.seo-text p:last-child { margin-bottom: 0; }

.seo-links {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    font-size: 14px;
    color: var(--muted);
}

.terms-list {
    max-width: 66em;
    margin: 0 0 8px;
    padding-left: 1.4em;
    color: var(--ink-soft);
    font-size: 15px;
}

.terms-list li { margin-bottom: 10px; }

.legal {
    max-width: 78em;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.75;
}

.legal h2 {
    margin: 30px 0 12px;
    font-size: 20px;
    color: var(--green-deep);
}

.legal h3 {
    margin: 22px 0 10px;
    font-size: 17px;
    color: var(--green-deep);
}

.legal p { margin: 0 0 12px; }

.legal a {
    color: var(--green-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal a:hover { color: var(--green-deep); }

.legal b { color: var(--ink); }

/* «Редакция от …» в начале правового документа */
.legal__updated {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--muted);
}

.legal ul { padding-left: 1.4em; }

.legal li { margin-bottom: 8px; }

.legal__date {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--muted);
}

/* 404 и страница результата заявки */
.error-404 { text-align: center; }

.error-404__code {
    display: block;
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 800;
    line-height: 1;
    color: rgba(112, 192, 70, .18);
    letter-spacing: -.04em;
}

.error-404__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3.4vw, 36px);
    color: var(--green-deep);
}

.error-404__text {
    max-width: 44em;
    margin: 0 auto 26px;
    color: var(--ink-soft);
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.error-404__subtitle {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--green-deep);
}

.error-404 .city-grid { max-width: 760px; margin: 0 auto; }

/* --- Страница «Спасибо»: простая карточка без подвала (как в «Мегафоне») --- */
.header--bare {
    position: static;
}

.header__inner--bare {
    justify-content: space-between;
    min-height: 88px;
}

/* Телефон в простой шапке остаётся и на узких экранах (общее правило скрывает его). */
.header__inner--bare .header__phone {
    display: block;
    text-align: right;
}

.main--bare {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 88px);
    padding: 40px 0;
    background: var(--bg-soft);
}

/* --- Правовые документы: отдельная страница без шапки и подвала ------------ */
/* Как в «МегаФоне»: сверху только панель с кнопками «Закрыть» и «На главную»,
   они возвращают на предыдущую страницу (раздел 7 в assets/js/main.js). */
.legal-bar {
    border-bottom: 1px solid var(--line-soft);
    background: var(--white);
}

.legal-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
}

.legal-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.legal-bar__btn:hover {
    border-color: var(--green);
    color: var(--green-text);
}

.legal-bar__btn--home {
    border-color: transparent;
    background: var(--green);
    color: var(--white);
}

.legal-bar__btn--home:hover {
    background: var(--green-dark);
    color: var(--white);
}

.main--legal {
    min-height: calc(100vh - 69px);
    background: var(--white);
}

.main--legal .section--legal { padding-top: 28px; }

.main--legal .page-head { padding-top: 28px; }

.thanks {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 44px 44px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.thanks__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
}

.thanks__icon--error {
    background: #fdecec;
    color: #c0392b;
}

.thanks__title {
    margin-bottom: 12px;
    font-size: clamp(23px, 3vw, 30px);
    color: var(--green-deep);
}

.thanks__text {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: 16px;
}

/* Пояснение под основным текстом (время звонка) */
.thanks__note {
    margin: -8px 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Таймер возврата на главную (страница /spasibo/) */
.thanks__timer {
    min-height: 21px;
    margin: -8px 0 22px;
    color: var(--ink-soft);
    font-size: 14px;
}

.thanks__errors {
    margin: 0 0 22px;
    padding: 16px 20px 16px 36px;
    border-radius: var(--radius-sm);
    background: #fdecec;
    color: #a3231f;
    font-size: 14px;
    text-align: left;
}

.thanks__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* --- 10. Адаптивность ----------------------------------------------------- */
@media (max-width: 1100px) {
    .nav__link { padding: 9px 10px; font-size: 15px; }

    .header__inner { gap: 16px; }

    .header__phone { display: none; }

    .header__phone-link { font-size: 16px; }

    .footer__inner { grid-template-columns: 1fr 1fr; }

    .footer__col--brand { grid-column: 1 / -1; max-width: none; }

    /* Города в две колонки на планшете уже не помещаются — уводим их
       в отдельную строку на всю ширину. */
    .footer__col--cities { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .hero { padding: 40px 0 48px; }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hero__aside { max-width: 460px; }

    /* На планшетах блок из двух тарифов ведёт себя как обычная сетка */
    .tariff-grid--pair { max-width: none; }

    .section { padding: 52px 0; }

    .tariff-detail { grid-template-columns: minmax(0, 1fr); }

    .tariff-detail__aside { position: static; }

    .burger { display: block; }

    /* На мобиле телефона в шапке нет — трубка рядом с бургером открывает окно
       с номерами, поэтому номер техподдержки из полосы города убираем. */
    .header__call { display: inline-flex; }

    .topbar__link { display: none; }

    .header__phone { display: none; }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: min(320px, 86vw);
        height: 100vh;
        margin: 0;
        padding: 84px 20px 28px;
        background: #fff;
        box-shadow: -14px 0 40px rgba(9, 32, 16, .18);
        transform: translateX(105%);
        transition: transform .25s ease, visibility .25s ease;
        overflow-y: auto;
        /* Закрытое меню не должно рисоваться и быть доступным:
           иначе панель за правым краем экрана видна при «оттягивании» страницы
           вбок и ловит клики. Открывается только по бургеру (класс is-open). */
        visibility: hidden;
        pointer-events: none;
    }

    .nav.is-open {
        transform: none;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__link {
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 16px;
    }

    .nav__link--city {
        margin: 10px 0 0;
        padding: 14px 16px;
        border-left: 0;
        border-radius: 12px;
        background: var(--green-mint);
    }

    .header__actions { margin-left: auto; }

    .header__cta { display: none; }

    /* Телефоны и кнопка «Подключиться» в мобильной «шторке» */
    .nav__extra {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
        padding: 16px 16px 0;
        border-top: 1px solid var(--line-soft);
    }

    .nav__extra .btn {
        margin: 0 0 4px;
    }

    .nav__phone {
        display: flex;
        flex-direction: column;
        font-size: 17px;
        font-weight: 800;
        color: var(--ink);
    }

    .nav__phone:hover { color: var(--green-dark); }

    .nav__phone span {
        font-size: 12px;
        font-weight: 500;
        color: var(--muted);
    }
}

@media (max-width: 820px) {
    .topbar__time { display: none; }

    .topbar__inner { font-size: 13px; }

    .topbar__city { font-size: 15px; }

    /* Баннер на мобиле: фото техники — фоном на весь блок, текст поверх него.
       Затемняющая подложка держит контраст на любом участке картинки. */
    .promo-banner__card {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: auto;
        min-height: clamp(360px, 62vw, 460px);
        background-size: cover;
        background-position: center 42%;
        isolation: isolate;
    }

    .promo-banner__card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(
            180deg,
            rgba(9, 32, 16, .40) 0%,
            rgba(9, 32, 16, .66) 55%,
            rgba(9, 32, 16, .82) 100%
        );
        pointer-events: none;
    }

    .promo-banner__content {
        position: relative;
        z-index: 1;
        gap: 16px;
        padding: 28px 20px;
        background: none;
    }

    .promo-banner__title {
        gap: 2px;
        font-size: clamp(21px, 4.4vw, 30px);
        color: #fff;
        text-shadow: 0 2px 14px rgba(4, 20, 9, .45);
    }

    .promo-banner__price {
        font-size: clamp(28px, 7.4vw, 42px);
        color: var(--lime);
        text-shadow: 0 2px 14px rgba(4, 20, 9, .45);
    }

    .promo-banner__note {
        margin-top: -2px;
        color: rgba(255, 255, 255, .78);
        text-shadow: 0 1px 8px rgba(4, 20, 9, .4);
    }

    .promo-banner__content .btn { min-width: 200px; }

    /* iOS не увеличивает страницу при фокусе, если шрифт в поле не меньше 16px */
    .field__input,
    .field__select,
    .hero-form .field__input { font-size: 16px; }

    .footer__inner { grid-template-columns: 1fr 1fr; }

    .footer__col--brand { grid-column: 1 / -1; }

    .cta-band__inner { flex-direction: column; align-items: flex-start; }

    .section__foot { flex-direction: column; align-items: flex-start; }

    .steps__cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }

    .container { padding: 0 16px; }

    .header__inner { min-height: 68px; gap: 12px; }

    .logo__img { width: 200px; height: auto; }

    .topbar__label { display: none; }

    .hero { padding: 32px 0 40px; }

    .hero__title { font-size: 24px; }

    .hero__lead { font-size: 15px; }

    .hero__actions { margin-top: 20px; }

    /* Форма под первым экраном на телефоне: карточка не должна быть вытянутой,
       поэтому заголовок мельче, межстрочные расстояния и отступы плотнее. */
    .hero-card { padding: 18px 16px 20px; border-radius: 18px; }

    .hero-card__label { margin-bottom: 4px; font-size: 11px; }

    .hero-card__name { margin-bottom: 6px; font-size: 18px; line-height: 1.15; }

    .hero-card__lead { font-size: 13px; line-height: 1.45; }

    .hero-form { gap: 8px; margin-top: 10px; }

    .hero-form .field { gap: 3px; }

    .hero-form .field__label { font-size: 11.5px; }

    .hero-form .field__input { padding: 9px 12px; }

    .hero-form .check { gap: 7px; font-size: 11px; line-height: 1.35; }

    .hero-form .btn { margin-top: 0; }

    .section { padding: 40px 0; }

    .section__head { margin-bottom: 24px; }

    .section__title { font-size: 20px; }

    .tariff-grid,
    .promo-grid,
    .equipment-grid,
    .advantage-grid,
    .steps,
    .city-cards { grid-template-columns: minmax(0, 1fr); }

    .tariff-card { padding: 22px 18px 20px; }

    .tariff-card__name { padding-right: 70px; }

    .tariff-card__value { font-size: 26px; }

    .tariff-card__promo-text { font-size: 13px; }

    .tariff-card__after { font-size: 12px; }

    .tariff-detail__main,
    .order-card { padding: 22px 18px; }

    /* Окна на телефоне открываются по центру экрана (как на десктопе).
       .modal__dialog имеет margin: auto, поэтому высокий попап не обрезается
       сверху — он просто прокручивается в пределах .modal. */
    .modal { padding: 10px; }

    /* Окна на телефоне: те же поля, что и в первом экране, только плотнее —
       иначе попап занимает экран целиком (сжатие как в проекте beeline-v2). */
    .modal__dialog {
        padding: 20px 16px 18px;
        max-height: none;
        border-radius: 16px;
    }

    .modal__head { margin-bottom: 10px; padding-right: 28px; }

    .modal__close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 20px; }

    .modal__title { font-size: 18px; line-height: 1.15; }

    .modal__subtitle { font-size: 13px; line-height: 1.4; }

    .modal__icon { margin-bottom: 10px; }

    .modal__icon svg { width: 44px; height: 44px; }

    .modal__dialog--center .modal__subtitle { margin-bottom: 14px; }

    /* Окно выбора города на телефоне: одна колонка без цен — все 13 городов
       видны списком на одном экране, искать город по названию проще, чем в сетке.
       Подзаголовок убираем: список из названий говорит сам за себя, а освободившиеся
       ~40 px как раз дают городам влезть без прокрутки. */
    .modal__dialog--city { padding: 18px 14px 16px; }

    .modal__dialog--city .modal__title { margin-bottom: 12px; }

    .modal__dialog--city .modal__subtitle { display: none; }

    .modal__dialog--city .city-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .modal__dialog--city .city-grid__item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 15px;
        line-height: 1.2;
    }

    .modal__dialog--city .city-grid__meta { display: none; }

    /* Плашка переезжает к правому краю строки: цена на телефоне скрыта, поэтому
       «выбранный город» встаёт напротив названия, а строка остаётся одной высоты. */
    .modal__dialog--city .city-grid__foot { margin-top: 0; }

    .modal__dialog--city .modal__footnote { margin-top: 12px; font-size: 12px; }

    .lead-form { gap: 9px; }

    .field { gap: 4px; }

    .field__label { font-size: 12px; }

    .field__input { padding: 10px 12px; }

    .check { font-size: 11px; line-height: 1.35; }

    .phone-list__item { padding: 11px 14px; }

    .phone-list__value { font-size: 17px; }

    .faq__question { padding: 16px 18px; font-size: 15px; }

    .faq__answer { padding: 0 18px 18px; }

    .footer { padding: 40px 0 22px; }

    .footer__inner { grid-template-columns: 1fr; gap: 26px; }

    .footer__list--cities { columns: 1; }

    .cta-band { padding: 32px 0; }

    .cta-band__actions { width: 100%; }

    .cta-band__actions .btn { width: 100%; }

    .section--404 { padding: 48px 0; }

    /* Страница «Спасибо»: карточка почти на всю ширину экрана */
    .main--bare { min-height: calc(100vh - 68px); padding: 24px 0; }

    .header__inner--bare { min-height: 68px; }

    .header__inner--bare .header__phone-link { font-size: 15px; }

    .header__inner--bare .header__phone-note { display: none; }

    .thanks { padding: 32px 22px 34px; border-radius: 18px; }

    .error-404__actions .btn,
    .thanks__actions .btn { width: 100%; }

    .tariff-table { min-width: 620px; font-size: 13px; }

    .tariff-table th,
    .tariff-table td { padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .topbar,
    .header,
    .cta-band,
    .footer,
    .modal,
    .btn,
    .burger { display: none !important; }

    body { color: #000; }

    .section { padding: 12px 0; }
}

body.is-locked { overflow: hidden; }
