@import url("./typography.css?v=1");
/* ===================== TOKENS ===================== */
:root {
    /* SIMGO — премиум-коричневая палитра (шоколад / эспрессо / карамель / молоко) */
    --blue:        #5A3E2B;   /* основной коричневый акцент (ссылки, детали) */
    --blue-dark:   #2B1F1A;   /* нажатие / самый тёмный */
    --blue-soft:   #F1E7D9;   /* светлая карамельная подложка */
    --accent-grad: linear-gradient(135deg, #4A342B 0%, #2B1F1A 100%);

    /* Тёмный шоколадный слой для контрастных секций (о компании, CTA) */
    --navy:        #2B1F1A;
    --navy-2:      #3A2A24;
    --navy-grad:   linear-gradient(135deg, #3A2A24 0%, #241B18 100%);

    --bg:          #F6F1E9;   /* молочный фон */
    --white:       #FFFFFF;
    --black:       #1A1A1A;   /* тёмный текст */
    --gray:        #7A6A5E;   /* тёплый серо-коричневый вторичный текст */
    --line:        #EBE1D3;   /* тёплые разделители */
    --chip:        #F1EAE0;

    /* Именованные бренд-цвета */
    --choc:        #2B1F1A;
    --espresso:    #4A342B;
    --caramel:     #7B5A45;
    --milk:        #F6F1E9;

    --card-radius: 24px;
    --btn-radius:  14px;
    --panel-radius:28px;

    /* Тёплые мягкие тени */
    --shadow-card: 0 12px 30px rgba(43, 31, 26, 0.10), 0 2px 6px rgba(43, 31, 26, 0.05);
    --shadow-chip: 0 4px 14px rgba(43, 31, 26, 0.10);
    --shadow-blue: 0 12px 26px rgba(43, 31, 26, 0.22);

    --container:   1180px;
    --font:        'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Тёплый молочный фон с мягкими карамельными бликами */
body { background:
    radial-gradient(1200px 600px at 85% -10%, rgba(123,90,69,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 5%, rgba(123,90,69,0.06), transparent 55%),
    var(--bg);
    background-attachment: fixed;
}

/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--black);
    font-weight: 400;
    font-size: var(--text-body);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HEADER ===================== */
.site-header { padding: 24px 0; }

.header-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--navy-grad);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 13px 22px;
}

.logo {
    display: flex;
    align-items: center;
    height: 46px;
    flex-shrink: 0;
}
.logo img {
    height: 30px;
    width: auto;
    display: block;
}

/* ---- Тёмная шапка: светлые элементы поверх шоколадной панели ---- */
.header-bar .main-nav a { color: rgba(255,255,255,.82); }
.header-bar .main-nav a:hover,
.header-bar .main-nav a.active { color: #EBCB94; }

.header-bar .icon-btn { color: rgba(255,255,255,.9); }
.header-bar .icon-btn:hover { color: #EBCB94; }
/* иконка корзины (растровый PNG) — осветляем до белого силуэта */
.header-bar .cart-link img { filter: brightness(0) invert(1); opacity: .9; }
.header-bar .cart-link:hover img { opacity: 1; }

.header-bar .hamburger span { background: #fff; }
.hamburger.open span { background: var(--choc); }

/* Логотип-словомарка SIMGO */
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-mark .logo-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--accent-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.logo-mark .logo-word {
    font-size: var(--text-section); font-weight: 800;
    letter-spacing: .04em; color: var(--choc);
}

/* Кнопка «Войти» */
.btn-login {
    background: var(--accent-grad);
    color: #fff;
    border-radius: 12px;
    padding: 11px 22px;
    font-size: var(--text-body);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-blue);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-login:hover { transform: translateY(-1px); filter: brightness(1.08); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}
.main-nav a {
    font-size: var(--text-body);
    font-weight: 400;
    transition: color .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.btn-call {
    background: var(--accent-grad);
    color: var(--white);
    border-radius: 40px;
    padding: 15px 32px;
    font-size: var(--text-body);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-blue);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-call:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 30px rgba(46,107,230,.38); }

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: color .2s, transform .15s;
}
.icon-btn:hover { color: var(--blue); transform: translateY(-1px); }

/* ===================== HERO ===================== */
.hero { padding: 8px 0 28px; }

.hero-slider {
    position: relative;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(46,107,230,0.10), transparent 60%),
        var(--white);
    border: 1px solid rgba(46,107,230,0.10);
    border-radius: var(--panel-radius);
    min-height: 396px;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
/* тонкая технологичная «искра» в углу героя */
.hero-slider::after {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: var(--accent-grad);
    filter: blur(80px);
    opacity: .18;
    border-radius: 50%;
    pointer-events: none;
}

.hero-slide { display: none; }
.hero-slide.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-title {
    font-size: var(--text-page);
    font-weight: 800;
    line-height: 1.05;
    color: var(--blue);
    letter-spacing: -1px;
}
.hero-text {
    margin-top: 20px;
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--gray);
    max-width: 480px;
}
.hero-cta {
    display: inline-block;
    margin-top: 32px;
    background: var(--accent-grad);
    color: var(--white);
    border-radius: 40px;
    padding: 15px 40px;
    font-size: var(--text-body);
    font-weight: 500;
    box-shadow: var(--shadow-blue);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.hero-cta:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 30px rgba(46,107,230,.38); }

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C3D2EC;
    transition: background .2s, transform .2s;
}
.hero-dot.active { background: var(--blue); transform: scale(1.15); }

/* ===================== SECTION ===================== */
.section { padding: 32px 0; }
.section-title {
    text-align: center;
    font-size: var(--text-section);
    font-weight: 700;
    margin-bottom: 32px;
}

/* ===================== PAGE HEAD + FILTERS ===================== */
.page-head { padding: 16px 0 8px; }
.page-title {
    text-align: center;
    font-size: var(--text-page) !important;
    font-weight: 700;
    margin-bottom: 28px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}
.filter { position: relative; }

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 40px;
    padding: 12px 22px;
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--black);
    box-shadow: var(--shadow-chip);
    transition: background .2s, box-shadow .2s;
}
.filter-pill:hover { background: #ECECEE; }
.filter-pill svg { transition: transform .2s; }
.filter.open .filter-pill {
    background: #DEDEE1;
    box-shadow: none;
}
.filter.open .filter-pill svg { transform: rotate(180deg); }

/* Подсветка выбранного фильтра */
.filter.is-selected .filter-pill {
    background: var(--blue-soft);
    color: var(--espresso);
    font-weight: 600;
    box-shadow: inset 0 0 0 1.5px var(--caramel);
}
.filter.is-selected .filter-pill:hover { background: #ECDCC6; }
.filter.is-selected .filter-pill svg { color: var(--caramel); }

/* Кнопка сброса фильтров (видна{
    display: none;
    align-items: center;
    gap: 7px;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--gray);
    background: transparent;
    transition: color .2s, background .2s;
}
 когда выбран хотя бы один фильтр) */
.filter-reset {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--gray);
    background: transparent;
    transition: color .2s, background .2s;
}
.filter-reset.is-visible { display: inline-flex; }
.filter-reset:hover { color: var(--espresso); background: var(--chip); }
.filter-reset svg { flex-shrink: 0; }

/* Выпадающее меню фильтра */
.filter-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 8px 16px;
    display: none;
    z-index: 60;
}
.filter.open .filter-menu { display: block; animation: pop .18s ease; }

.filter-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 4px;
    font-size: var(--text-body);
    color: var(--black);
    border-bottom: 1px solid #ECECEC;
    transition: color .15s;
}
.filter-option:last-child { border-bottom: none; }
.filter-option:hover { color: var(--blue); }
.filter-option.active { color: var(--blue); font-weight: 500; }

/* Меню «Цена» */
.filter-menu--price { padding: 18px 16px; }
.price-field { margin-bottom: 14px; }
.price-field:last-child { margin-bottom: 0; }
.price-field > span {
    display: block;
    font-size: var(--text-small);
    color: var(--black);
    margin-bottom: 7px;
}
.price-field input {
    width: 100%;
    height: 46px;
    border: none;
    background: #EDEDED;
    border-radius: 12px;
    padding: 0 16px;
    font: 400 var(--text-small) var(--font);
    color: var(--black);
    outline: none;
    transition: box-shadow .2s;
}
.price-field input::placeholder { color: #9A9A9A; }
.price-field input:focus { box-shadow: inset 0 0 0 2px var(--blue); }

.filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.filter-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* На мобильном выпадашка фильтра — нижний лист во всю ширину (не вылезает за экран). */
@media (max-width: 640px) {
    .filter.open .filter-menu {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        top: auto;
        min-width: 0;
        width: auto;
        max-height: 72vh;
        overflow-y: auto;
        padding: 12px 16px;
        border-radius: 22px;
        box-shadow: 0 -10px 40px rgba(43, 31, 26, .28);
        animation: sheet-up .22s ease;
    }
    .filter-menu--price { padding: 16px; }
    @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* В CTA-карточке кнопки должны оставаться вертикальными и в узком окне планшета. */
@media (max-width: 800px) {
    .cta-band .cta-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        flex: 0 0 100%;
        gap: 12px;
    }
    .cta-band .cta-actions > .btn-white,
    .cta-band .cta-actions > .btn-ghost {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 11px 14px;
        border-radius: 14px;
        box-sizing: border-box;
        white-space: nowrap;
        text-align: center;
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray);
    font-size: var(--text-body);
    padding: 48px 0;
}

/* ===================== CAROUSEL ===================== */
.carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: transform .2s, box-shadow .2s;
}
.carousel-arrow:hover { transform: scale(1.06); }

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 12px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}
.carousel::-webkit-scrollbar { display: none; }

/* ===================== PRODUCT CARD ===================== */
.product-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
    min-height: 450px;
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: transform .2s;
}
.product-card:hover { transform: translateY(-4px); }

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: #F4F6FB;
    object-fit: contain;
}
.product-name {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    min-height: 40px;
}
.product-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.product-price {
    font-size: var(--text-section);
    font-weight: 900;
}

/* ===================== ACTION ROW (button + heart) ===================== */
.action-row {
    display: flex;
    gap: 10px;
}
.btn-primary {
    flex: 1;
    background: var(--accent-grad);
    color: var(--white);
    border-radius: var(--btn-radius);
    height: 50px;
    font-size: var(--text-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(46,107,230,.22);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 22px rgba(46,107,230,.30); }

/* ── Степпер количества на карточке (появляется после добавления) ── */
.cart-control { flex: 1; display: flex; }
.cart-control .add-to-cart-btn { flex: 1; }
.cart-control .qty-stepper { display: none; }
.cart-control.in-cart .add-to-cart-btn { display: none; }
.cart-control.in-cart .qty-stepper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 50px;
    padding: 0 8px 0 16px;
    border-radius: var(--btn-radius);
    background: linear-gradient(135deg, #34C56F 0%, #1EA95A 100%);
    box-shadow: 0 10px 22px rgba(30, 169, 90, .32);
}
.qty-in-cart { font-size: var(--text-body); font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: .01em; }
.qty-controls { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.qty-num { min-width: 22px; text-align: center; font-size: var(--text-body); font-weight: 800; color: #fff; }
.qty-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .20);
    color: #fff;
    font-size: var(--text-section);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.qty-btn:hover { background: rgba(255, 255, 255, .34); }
.cart-control.is-busy { opacity: .6; pointer-events: none; }

.btn-heart {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--btn-radius);
    background: var(--chip);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: background .2s, color .2s;
}
.btn-heart:hover { background: #e0e0e0; }
.btn-heart.active { background: #ffe0e0; color: #e05252; }

/* ===================== TARIFFS / PRODUCTS GRID ===================== */
.tariffs-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* в сетке карточка товара занимает всю колонку (flex-basis из карусели не нужен) */
.products-grid .product-card { flex: 1 1 auto; width: 100%; }

.tariff-card {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    padding: 21px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: transform .2s;
}
.tariff-card:hover { transform: translateY(-4px); }

.provider-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--white);
    box-shadow: var(--shadow-chip);
    border-radius: var(--btn-radius);
    padding: 13px 18px;
}
.provider-chip .label {
    font-size: var(--text-small);
    font-weight: 400;
}
.provider-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.provider-logo .brand { display: block; border-radius: 6px; flex-shrink: 0; }
.brand-t2 {
    font-size: var(--text-section);
    font-weight: 900;
    color: #000;
    line-height: 1;
    letter-spacing: -1.5px;
}
.brand-name {
    font-size: var(--text-small);
    font-weight: 400;
    color: var(--gray);
}

.tariff-name {
    font-size: var(--text-section);
    font-weight: 700;
}
.tariff-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tariff-features > span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-body);
    font-weight: 400;
}
.feat-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--blue); /* по умолчанию; перекрывается цветом оператора ниже */
}
/* Иконки характеристик в фирменный цвет оператора */
.tariff-card[data-operator="MTS"]     .feat-icon { color: #E30611; }
.tariff-card[data-operator="T2"]      .feat-icon { color: #16181D; }
.tariff-card[data-operator="Beeline"] .feat-icon { color: #B8860B; }
.tariff-card[data-operator="Мегафон"] .feat-icon { color: #009E4A; }
.tariff-card[data-operator="YOTA"]    .feat-icon { color: #0090C4; }
.tariff-desc {
    font-size: var(--text-small);
    font-weight: 400;
    line-height: 1.3;
    color: var(--gray);
}
.tariff-price {
    font-size: var(--text-section);
    font-weight: 900;
}
.tariff-price small {
    font-size: var(--text-small);
    font-weight: 400;
}
.tariff-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===================== ORDER PAGE ===================== */
.order { padding: 8px 0 64px; }
.order-narrow { max-width: 760px; }

.order-head {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.round-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: transform .15s, box-shadow .2s;
}
.round-btn:hover { transform: translateY(-50%) scale(1.05); }

.order-form { display: flex; flex-direction: column; gap: 26px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 12px; }
.field > label { font-size: var(--text-body); font-weight: 700; }

.field input{
    width: 100%;
    height: 64px;
    background: var(--white);
    border: none;
    border-radius: 18px;
    padding: 0 24px;
    font: 400 var(--text-body) var(--font);
    color: var(--black);
    outline: none;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow .2s;
}

.order-form select {
    width: 100%;
    height: 64px;
    background: var(--white);
    border: none;
    border-radius: 18px;
    padding: 0 24px;
    font: 400 var(--text-body) var(--font);
    color: var(--black);
    outline: none;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow .2s;
}
.field input::placeholder { color: #9A9A9A; }
.field input:focus,
.order-form select:focus { box-shadow: 0 0 0 2px var(--blue); }

.select-wrap { position: relative; }
.order-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: #9A9A9A;
}
.order-form select.filled { color: var(--black); }
.select-wrap svg {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.link-underline {
    align-self: flex-start;
    font-size: var(--text-small);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-underline:hover { color: var(--blue); }

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: var(--text-small);
    color: var(--black);
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.order-form.need-consent .checkbox { color: #e05252; }
.order-form.need-consent .checkbox input { outline: 2px solid #e05252; outline-offset: 2px; }

.btn-submit {
    width: 100%;
    height: 64px;
    margin-top: 10px;
    background: var(--blue);
    color: #fff;
    border-radius: 18px;
    font-size: var(--text-body);
    font-weight: 400;
    transition: background .2s;
}
.btn-submit:hover { background: var(--blue-dark); }

.order-done {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 60px 0;
}
.order-done p { font-size: var(--text-body); font-weight: 500; }

/* ===================== MODAL ===================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1102;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-box {
    position: relative;
    width: 100%;
    max-width: 810px;
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 40px 60px;
    animation: pop .25s ease;
}
#callForm {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--chip);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray);
}
.modal-box h2 { font-size: var(--text-section); font-weight: 700; text-align: center; }
.modal-box p  { font-size: var(--text-small); color: var(--gray); text-align: center; margin-top: 55px; margin-bottom: 85px; }
.form-group {
  margin-bottom: 25px;
  display: flex;
  gap: 25px;
  flex-direction: column;
}
.form-label {font-size: var(--text-body);}
.modal-box input {
    width: 100%;
    height: 52px;
    border: 2px solid var(--chip);
    border-radius: var(--btn-radius);
    padding: 0 18px;
    font: 400 var(--text-body) var(--font);
    outline: none;
    transition: border-color .2s;
    background: #EBEBEB;;
}
.modal-box input:focus { border-color: var(--blue); }
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
}
.form-checkbox-group label {
    font-size: var(--text-small);
    color: rgba(0, 0, 0, 0.50);
    cursor: pointer;
}
.modal-box .btn-primary { width: 100%; margin-top: 14px; }
.modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 12px 0;
}

.modal-success p { color: var(--black); font-size: var(--text-body); font-weight: 500; margin: 0; }

.order-section {
    padding: 60px 40px;
    max-width: 680px;
    margin: 0 auto;
}

.order-section h2 {
    font-size: var(--text-page);
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0 0 50px 0;
}

.form-input{
    width: 100%;
    height: 64px;
    background-color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0 24px;
    font-size: var(--text-body);
    color: #000000;
    box-sizing: border-box;
    outline: none;
}

.form-select {
    width: 100%;
    height: 64px;
    background-color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0 24px;
    font-size: var(--text-body);
    color: #000000;
    box-sizing: border-box;
    outline: none;
}

.form-input::placeholder {
    color: #b0b0b0;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 50px;
}

.form-select:invalid {
    color: #b0b0b0;
}

.link-group {
    margin-top: 27px;
    margin-bottom: 40px;
}

.exact-time-link {
    font-size: var(--text-small);
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
}

.exact-time-link:hover {
    text-decoration: none;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 50px;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    cursor: pointer;
}

.checkbox-label {
    font-size: var(--text-small);
    color: #828282;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.order-section-btn {
    width: 100%;
}

/* ── Поле с подсказками адреса (DaData) ── */
.dadata-field { position: relative; }

.dadata-suggestions {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    max-height: 280px;
    overflow-y: auto;
}

.dadata-suggestions li {
    padding: 11px 16px;
    font-size: var(--text-body);
    color: var(--black);
    border-radius: 12px;
    cursor: pointer;
    transition: background .12s;
}

.dadata-suggestions li:hover,
.dadata-suggestions li.is-active {
    background: var(--blue-soft);
}

.dadata-suggestions li .dadata-hl { color: var(--blue); font-weight: 600; }

/* ── Поле даты с иконкой ── */
.date-field { position: relative; }

.date-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--caramel);
    pointer-events: none;
}

.form-input.has-icon { padding-left: 54px; }

/* ── Сетка слотов времени ── */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.time-slot {
    height: 60px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 18px;
    font: 500 var(--text-body) var(--font);
    color: var(--black);
    cursor: pointer;
    transition: border-color .15s, color .15s, box-shadow .15s;
}

.time-slot:hover { border-color: var(--blue-soft); }

.time-slot.is-selected {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: var(--shadow-chip);
}

/* ── Итог «К оплате» ── */
/* ── Список позиций заказа ── */
.order-items {
    margin: 40px 0 10px;
    background: var(--white);
    border-radius: 18px;
    padding: 8px 22px;
    box-shadow: var(--shadow-chip);
}
.order-items-title {
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 14px 0 10px;
    border-bottom: 1px solid var(--line);
}
.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.order-item:last-child { border-bottom: none; }
.order-item-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.order-item-name { font-size: var(--text-body); font-weight: 500; color: var(--black); }
.order-item-qty { font-size: var(--text-small); color: var(--gray); white-space: nowrap; }
.order-item-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.order-item-price { font-size: var(--text-body); font-weight: 700; color: var(--black); white-space: nowrap; }
.order-item-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.order-item-remove {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: var(--text-section); line-height: 1; color: var(--gray);
    background: var(--chip);
    transition: background .15s, color .15s;
}
.order-item-remove:hover { background: #ffe1e1; color: #e23b3b; }
.order-empty { margin: 40px 0 10px; text-align: center; color: var(--gray); }
.order-empty a { color: var(--blue); text-decoration: underline; }

.order-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 22px;
}

.order-total-label { font-size: var(--text-section); font-weight: 700; color: var(--black); }
.order-total-value { font-size: var(--text-section); font-weight: 700; color: var(--black); }
.order-total-value .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

/* ── Успешное оформление ── */
.order-success:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-top: 28px;
}
.order-success p { font-size: var(--text-body); font-weight: 500; color: var(--black); margin: 0; }

@media (max-width: 560px) {
    .time-grid { grid-template-columns: repeat(2, 1fr); }
    .order-section { padding: 40px 18px; }
}

/* ── Ссылка на политику в чекбоксе согласия ── */
.checkbox-label a { color: var(--blue); text-decoration: underline; }
.checkbox-label a:hover { text-decoration: none; }

/* ===================== ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ ===================== */
.legal { padding: 60px 0 80px; }

.legal-inner {
    max-width: 900px;
    background: #fff;
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow-card);
    padding: 56px clamp(20px, 5vw, 64px);
}

.legal-title {
    font-size: var(--text-page);
    font-weight: 800;
    color: var(--black);
    margin: 0 0 10px;
    line-height: 1.2;
}

.legal-updated { color: var(--gray); font-size: var(--text-small); margin: 0 0 36px; }

.legal h2 {
    font-size: var(--text-section);
    font-weight: 700;
    color: var(--black);
    margin: 34px 0 14px;
}

.legal p { font-size: var(--text-body); line-height: 1.7; color: #2a3850; margin: 0 0 14px; }

.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { font-size: var(--text-body); line-height: 1.7; color: #2a3850; margin-bottom: 8px; }
.legal b { color: var(--black); }

.legal-requisites {
    list-style: none;
    padding: 22px 26px;
    margin: 6px 0 0;
    background: var(--blue-soft);
    border-radius: 18px;
}
.legal-requisites li { margin-bottom: 6px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .tariffs-grid,
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title   { font-size: var(--text-page); }
}
/* ===================== MOBILE MENU ===================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
    position: relative;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.mobile-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    transition: color .2s;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--blue); }

.mobile-menu .btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(320px, calc(100vw - 48px));
    min-height: 44px;
    border-radius: 14px;
    font-size: 1.25rem;
    padding: 11px 14px;
}

@media (max-width: 1100px) {
    .main-nav { display: none; }
    .header-actions .btn-call { display: none; }
    .header-actions .btn-login { display: none; }
    .hamburger { display: flex; }
    .header-actions { margin-left: auto; gap: 12px; }
    .hamburger { margin-left: 0; }
}
@media (max-width: 640px) {
    .header-bar { padding: 14px 18px; gap: 16px; }
    .hero-slider { padding: 36px 28px; min-height: 300px; }
    .hero-title { font-size: var(--text-page); }
    .tariffs-grid,
    .products-grid { grid-template-columns: 1fr; }
    .carousel-arrow { display: none; }
}

/* ═══════════ WooCommerce: корзина и ссылки товаров ═══════════ */
.cart-link { position: relative; display: inline-flex; }

.telecom-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--blue, #2f6bff);
    color: #fff;
    font-size: var(--text-small);
    font-weight: 700;
    line-height: 1;
    border-radius: 9px;
    box-sizing: border-box;
}
.telecom-cart-count.is-visible { display: inline-flex; }

/* ── Бейдж избранного (как у корзины) ── */
.fav-link { position: relative; display: inline-flex; }
.telecom-fav-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--blue, #2f6bff);
    color: #fff;
    font-size: var(--text-small);
    font-weight: 700;
    line-height: 1;
    border-radius: 9px;
    box-sizing: border-box;
}
.telecom-fav-count.is-visible { display: inline-flex; }

/* ── Страница «Избранное» ── */
.fav-group { margin-bottom: 48px; }
.fav-subtitle {
    font-size: var(--text-section);
    font-weight: 700;
    color: var(--black);
    margin: 0 0 22px;
}
.fav-empty {
    text-align: center;
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--gray);
    padding: 70px 20px;
}
.fav-empty-heart { color: var(--blue); font-size: var(--text-section); }

.product-img-link { display: block; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; }

/* AJAX-кнопка WooCommerce внутри карточек ведёт себя как .btn-primary */
.action-row .add_to_cart_button.added { opacity: .6; }
.action-row .added_to_cart {
    display: none; /* скрываем дублирующую ссылку «Просмотр корзины» от WC */
}

/* ════════════════════════════════════════════════════════════
   PREMIUM-РЕФАЙН + НОВЫЕ СЕКЦИИ (эволюция текущего дизайна)
   ════════════════════════════════════════════════════════════ */

/* Хайрлайн-границы и более выразительный hover у карточек */
.tariff-card, .product-card { border: 1px solid var(--line); }
.tariff-card:hover, .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(14,31,61,.12), 0 4px 10px rgba(14,31,61,.06);
    border-color: rgba(46,107,230,.25);
}

.header-bar { box-shadow: var(--shadow-card); }

/* Заголовок секции с акцентной чертой */
.section-title { letter-spacing: -.5px; }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.section-eyebrow {
    display: inline-block;
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 7px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}
.section-head h2 {
    font-size: var(--text-section);
    font-weight: 700;
    letter-spacing: -.6px;
}
.section-head p {
    margin-top: 14px;
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--gray);
    line-height: 1.55;
}

/* ───────────── ПАРТНЁРЫ / ДОВЕРИЕ ───────────── */
.partners { padding: 8px 0 16px; }
.partners-band {
    background: var(--navy-grad);
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow-card);
    padding: 22px 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}
.partners-lead {
    font-size: var(--text-section);
    font-weight: 800;
    color: #fff;
    line-height: 1.28;
    white-space: nowrap;
}
.partners-note {
    font-size: var(--text-small);
    color: #C7B39E;
    line-height: 1.45;
    max-width: 188px;
    text-align: right;
}
.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(100%, 640px);
    justify-self: center;
    flex-wrap: wrap;
}
.partners-logos > .store {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 144px);
    height: 56px;
    min-height: 56px;
    justify-self: center;
    box-sizing: border-box;
    padding: 5px 8px;
    border-radius: 8px;
    background: transparent;
}
/* Фирменные логотипы сетей прямо на тёмном бэнде (как на референсе). */
.store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: var(--text-section);
    letter-spacing: .5px;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s;
}
.store:hover { transform: translateY(-2px) scale(1.03); }
.store small {
    display: block;
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: .16em;
    color: rgba(255,255,255,.55);
    margin-top: 4px;
    text-transform: uppercase;
}
.store-ico { flex-shrink: 0; }
.store--spar { color: #35A94A; }
.store--victoria { flex-direction: column; align-items: flex-start; gap: 0; color: #F5C518; }
.store--butyl { flex-direction: column; align-items: flex-start; gap: 0; color: #4C93E0; }
.partners-logos > .store--spar { order: 1; }
.partners-logos > .store--victoria { order: 2; }
.partners-logos > .store--kant { order: 3; }
.partners-logos > .store--butyl { order: 4; }
.store--kant {
    background: #F0561D;
    color: #fff;
    padding: 9px 15px;
    border-radius: 9px;
    font-size: var(--text-section);
    letter-spacing: 1px;
}
.store--kant .store-brace { opacity: .7; margin-right: 1px; }
/* Загруженный логотип магазина — переопределяет стилизованный текст (тоже на тёмном). */
.store-logo-img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.partners-logos .store-logo-img { transform: scale(1.1); transform-origin: center; }
.store--kant .store-logo-img { width: 128px; max-width: none; max-height: 72px; }
.store-name-fallback { font-size: var(--text-section); font-weight: 900; color: #fff; white-space: nowrap; line-height: 1; }

/* Блок партнёров: стек по центру на узких экранах и ноутбуках
   (в 3 колонки средней колонке не хватало места — логотипы переносились 3+1). */
@media (max-width: 960px) {
    .store--kant .store-logo-img { width: 112px; max-height: 64px; }
    .partners-band {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
    }
    .partners-lead {
        display: block;
        width: 100%;
        max-width: none;
        font-size: var(--text-section);
        line-height: 1.25;
        text-align: center;
        text-wrap: balance;
        white-space: normal;
    }
    .partners-lead br { display: none; }
    .partners-logos {
        width: min(100%, 560px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        align-items: center;
        column-gap: clamp(12px, 4vw, 32px);
        row-gap: 22px;
    }
    .partners-logos > .store { justify-self: center; }
    .partners-note { max-width: none; text-align: center; }
}

/* ───────────── ПРЕИМУЩЕСТВА / УСЛУГИ ───────────── */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.advantage {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    padding: 28px 24px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.advantage:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(14,31,61,.12);
    border-color: rgba(46,107,230,.25);
}
.advantage-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: var(--blue-soft);
    color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.advantage h3 { font-size: var(--text-body); font-weight: 700; margin-bottom: 9px; line-height: 1.25; }
.advantage p { font-size: var(--text-small); color: var(--gray); line-height: 1.5; }

/* ───────────── О КОМПАНИИ (premium navy) ───────────── */
.about {
    position: relative;
    background: var(--navy-grad);
    border-radius: var(--panel-radius);
    overflow: hidden;
    color: #EAF0FB;
    padding: 56px 56px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}
.about::before {
    content: "";
    position: absolute;
    top: -140px; right: -100px;
    width: 380px; height: 380px;
    background: var(--accent-grad);
    filter: blur(90px);
    opacity: .35;
    border-radius: 50%;
}
.about-text { position: relative; }
.about .eyebrow {
    display: inline-block;
    font-size: var(--text-small); font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: #8FB6FF;
    margin-bottom: 14px;
}
.about-text h2 { font-size: var(--text-section); font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.about-text p { margin-top: 18px; font-size: var(--text-body); line-height: 1.65; color: #C4D2EA; }
.about-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.about-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    padding: 22px 20px;
    backdrop-filter: blur(4px);
}
.about-stat .num { font-size: var(--text-page); font-weight: 800; color: #fff; line-height: 1; }
.about-stat .lbl { margin-top: 10px; font-size: var(--text-small); color: #AFC2E0; line-height: 1.4; }

/* ───────────── ЭТАПЫ РАБОТЫ ───────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    counter-reset: step;
}
.step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    padding: 26px 20px 22px;
    transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(14,31,61,.12); }
.step-num {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: var(--accent-grad);
    color: #fff;
    font-size: var(--text-body); font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-blue);
    margin-bottom: 16px;
}
.step h3 { font-size: var(--text-body); font-weight: 700; margin-bottom: 8px; }
.step p { font-size: var(--text-small); color: var(--gray); line-height: 1.45; }
/* соединительная линия между шагами */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px; right: -10px;
    width: 20px; height: 2px;
    background: linear-gradient(90deg, var(--blue), transparent);
    z-index: 1;
}

/* ───────────── НИЖНИЙ CTA ───────────── */
.cta-band {
    position: relative;
    background: var(--accent-grad);
    border-radius: var(--panel-radius);
    overflow: hidden;
    color: #fff;
    padding: 46px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-band h2 { font-size: var(--text-section); font-weight: 700; letter-spacing: -.4px; line-height: 1.25; max-width: 620px; }
.cta-band p { margin-top: 10px; font-size: var(--text-body); color: rgba(255,255,255,.85); }
.cta-band .btn-white {
    background: #fff;
    color: var(--blue);
    border-radius: 40px;
    padding: 16px 40px;
    font-size: var(--text-body);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
    transition: transform .2s, box-shadow .2s;
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0,0,0,.24); }

/* ════════════════════════════════════════════════════════════
   СРАВНЕНИЕ ТАРИФОВ + ФИЛЬТРЫ ПО ТИПУ
   ════════════════════════════════════════════════════════════ */

/* Чекбокс «Сравнить» в карточке тарифа */
.compare-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    user-select: none;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 40px;
    transition: color .2s, border-color .2s, background .2s;
}
.compare-check:hover { color: var(--blue); border-color: rgba(46,107,230,.35); }
.compare-check input {
    width: 17px; height: 17px;
    accent-color: var(--blue);
    cursor: pointer;
    margin: 0;
}
.tariff-card.is-comparing {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(46,107,230,.18), var(--shadow-card);
}
.tariff-card.is-comparing .compare-check { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }

/* Плавающая панель сравнения */
.compare-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 140%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--navy);
    color: #fff;
    border-radius: 50px;
    padding: 12px 14px 12px 26px;
    box-shadow: 0 20px 50px rgba(14,31,61,.45);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    max-width: calc(100vw - 32px);
}
.compare-bar.is-visible { transform: translate(-50%, 0); }
.compare-bar .cb-count { font-size: var(--text-small); font-weight: 500; white-space: nowrap; }
.compare-bar .cb-count b { font-weight: 800; }
.compare-bar .cb-open {
    background: var(--accent-grad);
    color: #fff;
    border-radius: 40px;
    padding: 12px 26px;
    font-size: var(--text-small);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-blue);
    transition: filter .2s, transform .2s;
}
.compare-bar .cb-open:hover { filter: brightness(1.06); transform: translateY(-1px); }
.compare-bar .cb-open:disabled { opacity: .45; filter: grayscale(.4); cursor: not-allowed; box-shadow: none; }
.compare-bar .cb-clear {
    background: none;
    color: rgba(255,255,255,.65);
    font-size: var(--text-small);
    white-space: nowrap;
    transition: color .2s;
}
.compare-bar .cb-clear:hover { color: #fff; }

/* Модалка сравнения */
.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 1110;
    background: rgba(14,31,61,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.compare-modal.open { opacity: 1; pointer-events: all; }
.compare-modal-box {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: 86vh;
    overflow: auto;
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 36px;
    animation: pop .25s ease;
}
.compare-modal-box h2 { font-size: var(--text-section); font-weight: 700; text-align: center; margin-bottom: 26px; }
.compare-modal .modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--chip);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray);
    z-index: 2;
}

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
    padding: 16px 14px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.compare-table thead th {
    position: sticky; top: 0;
    background: var(--white);
    border-bottom: 2px solid var(--line);
}
.compare-table tbody th {
    text-align: left;
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
}
.ct-op { font-size: var(--text-small); color: var(--gray); font-weight: 500; }
.ct-name { font-size: var(--text-body); font-weight: 700; margin-top: 4px; }
.ct-price { font-size: var(--text-section); font-weight: 900; color: var(--blue); }
.ct-price small { font-size: var(--text-small); font-weight: 400; color: var(--gray); }
.compare-table td.ct-best {
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 700;
}
.ct-remove {
    display: inline-flex; margin-top: 10px;
    font-size: var(--text-small); color: var(--gray);
    text-decoration: underline; text-underline-offset: 3px;
}
.ct-remove:hover { color: #e05252; }

/* Цветной акцент-бар оператора над колонкой в окне сравнения */
.ct-bar {
    display: block;
    width: 54px; height: 4px;
    border-radius: 3px;
    margin: 0 auto 12px;
}

/* ───────────── КНОПКИ В ФИРМЕННЫЙ ЦВЕТ ОПЕРАТОРА ─────────────
   Карточки несут data-operator, поэтому красим .btn-primary без правки разметки.
   Перекрываем синий градиент сплошным брендовым цветом. */
.tariff-card[data-operator="MTS"] .btn-primary {
    background: #E30611;
    box-shadow: 0 8px 18px rgba(227, 6, 17, .25);
}
.tariff-card[data-operator="MTS"] .btn-primary:hover { box-shadow: 0 12px 22px rgba(227, 6, 17, .34); }

.tariff-card[data-operator="T2"] .btn-primary {
    background: #16181D;
    box-shadow: 0 8px 18px rgba(22, 24, 29, .32);
}
.tariff-card[data-operator="T2"] .btn-primary:hover { box-shadow: 0 12px 22px rgba(22, 24, 29, .42); }

.tariff-card[data-operator="Beeline"] .btn-primary {
    background: #FFD400;
    color: #0E1A2B;
    box-shadow: 0 8px 18px rgba(255, 212, 0, .38);
}
.tariff-card[data-operator="Beeline"] .btn-primary:hover { box-shadow: 0 12px 22px rgba(255, 212, 0, .48); }

.tariff-card[data-operator="Мегафон"] .btn-primary {
    background: #00B956;
    box-shadow: 0 8px 18px rgba(0, 185, 86, .28);
}
.tariff-card[data-operator="Мегафон"] .btn-primary:hover { box-shadow: 0 12px 22px rgba(0, 185, 86, .38); }

.tariff-card[data-operator="YOTA"] .btn-primary {
    background: #00A8E1;
    box-shadow: 0 8px 18px rgba(0, 168, 225, .28);
}
.tariff-card[data-operator="YOTA"] .btn-primary:hover { box-shadow: 0 12px 22px rgba(0, 168, 225, .38); }

/* Цена в фирменный цвет оператора */
.tariff-card[data-operator="MTS"]     .tariff-price { color: #E30611; }
.tariff-card[data-operator="T2"]      .tariff-price { color: #16181D; }
.tariff-card[data-operator="Beeline"] .tariff-price { color: #B8860B; }
.tariff-card[data-operator="Мегафон"] .tariff-price { color: #009E4A; }
.tariff-card[data-operator="YOTA"]    .tariff-price { color: #0090C4; }
.tariff-price small { color: var(--gray); }

/* ───────────── ПЛАШКА-БЕЙДЖ КАРТОЧКИ («хит продаж» и т.п.) ───────────── */
.tariff-card { position: relative; } /* якорь для абсолютной плашки */
.tariff-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    z-index: 3;
    background: var(--blue);
    color: #fff;
    font-size: var(--text-small);
    font-weight: 600;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 40px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(14, 31, 61, .18);
}
/* Плашка в фирменный цвет оператора */
.tariff-card[data-operator="MTS"]     .tariff-badge { background: #E30611; box-shadow: 0 8px 18px rgba(227, 6, 17, .28); }
.tariff-card[data-operator="T2"]      .tariff-badge { background: #16181D; box-shadow: 0 8px 18px rgba(22, 24, 29, .30); }
.tariff-card[data-operator="Beeline"] .tariff-badge { background: #FFD400; color: #0E1A2B; box-shadow: 0 8px 18px rgba(255, 212, 0, .38); }
.tariff-card[data-operator="Мегафон"] .tariff-badge { background: #00B956; box-shadow: 0 8px 18px rgba(0, 185, 86, .30); }
.tariff-card[data-operator="YOTA"]    .tariff-badge { background: #00A8E1; box-shadow: 0 8px 18px rgba(0, 168, 225, .30); }

@media (max-width: 1000px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .step:not(:last-child)::after { display: none; }
    .about { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
}
@media (max-width: 640px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .partners-band { padding: 26px 22px; gap: 18px; }
    .about-text h2 { font-size: var(--text-section); }
    .cta-band { padding: 32px 26px; }
    .cta-band h2 { font-size: var(--text-section); }
    .cta-band .cta-actions { width: 100%; grid-template-columns: 1fr; gap: 12px; }
    .cta-band .cta-actions .btn-white,
    .cta-band .cta-actions .btn-ghost {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 11px 14px;
        border-radius: 14px;
        text-align: center;
        white-space: normal;
        box-sizing: border-box;
    }
    .cta-band .cta-actions .btn-white { border: 1.5px solid var(--caramel); }
    .compare-modal-box { padding: 22px 16px; }
    .compare-table th{ padding: 12px 8px; font-size: var(--text-small); }
 .compare-table td { padding: 12px 8px; font-size: var(--text-small); }
}

/* ═══════════ FOOTER ═══════════ */
.site-footer { padding: 20px 0 40px; }
.footer-inner {
    background: var(--navy-grad);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--panel-radius);
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
    color: rgba(255,255,255,.75);
    padding: 48px 48px 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-brand { max-width: 380px; }
.footer-logo { display: inline-flex; margin-bottom: 18px; }
.footer-logo img { width: 170px; height: 46px; object-fit: cover; object-position: center; }
.footer-tagline { font-size: var(--text-small); line-height: 1.6; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.footer-brand .btn-call { font-size: var(--text-body); padding: 13px 28px; }
.footer-col h4 { font-size: var(--text-body); font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: var(--text-small); color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col a:hover { color: #5b93ff; }
.footer-contacts li { font-size: var(--text-small); color: rgba(255,255,255,.6); line-height: 1.5; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    font-size: var(--text-small);
    color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 860px) {
    .footer-inner { padding: 40px 32px 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
    .footer-inner { padding: 32px 22px 22px; border-radius: 28px; }
    .footer-top { grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-logo img { width: 150px; height: 42px; }
    .footer-brand .btn-call { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 11px 14px; border-radius: 14px; font-size: var(--text-body); text-align: center; box-sizing: border-box; }
}

/* ═══════════ УЗКИЕ ЭКРАНЫ (≤400px) ═══════════ */
@media (max-width: 400px) {
    /* защита от переполнения grid-детей по min-content */
    .about-text, .about-stats, .about-stat, .tariff-card, .product-card { min-width: 0; }

    /* Блок «О компании»: статистика в одну колонку, чтобы не вылезала */
    .about { padding: 30px 20px; gap: 26px; }
    .about-stats { grid-template-columns: 1fr; }
    .about-stat { padding: 18px 18px; }
    .about-stat .num { font-size: var(--text-section); }

    /* Адаптация крупных шрифтов */
    .hero-title { font-size: var(--text-page); }
    .hero-text { font-size: var(--text-body); }
    .section-title { font-size: var(--text-section); }
    .section-head h2 { font-size: var(--text-section); }
    .about-text h2 { font-size: var(--text-section); }

    /* Плавающая панель сравнения помещается на узком экране */
    .compare-bar { gap: 8px; padding: 9px 10px 9px 14px; max-width: calc(100vw - 16px); }
    .compare-bar .cb-open { padding: 9px 14px; font-size: var(--text-small); }
    .compare-bar .cb-count { font-size: var(--text-small); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .compare-bar .cb-clear { font-size: var(--text-small); }
}

/* ══════════════════════════════════════════════════════════════
   РЕДИЗАЙН SIMGO — коричневая палитра (Manrope), v2
   ══════════════════════════════════════════════════════════════ */

/* ——— Кнопки ——— */
.btn-primary { font-weight: 600; box-shadow: 0 8px 18px rgba(43,31,26,.20); }
.btn-lg {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    height: auto;
    padding: 15px 28px;
    font-size: var(--text-body);
    border-radius: var(--btn-radius);
    white-space: nowrap;
}
a.btn-primary.btn-lg { flex: 0 0 auto; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--choc);
    border: 1.5px solid var(--caramel);
    border-radius: var(--btn-radius);
    padding: 15px 26px;
    font-size: var(--text-body); font-weight: 600;
    transition: background .2s, border-color .2s, color .2s, transform .18s;
}
.btn-outline:hover { background: var(--blue-soft); border-color: var(--choc); transform: translateY(-1px); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.42);
    border-radius: var(--btn-radius);
    padding: 14px 26px;
    font-size: var(--text-body); font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ——— Герой ——— */
.hero { padding: 12px 0 20px; }
.hero-panel {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 40px;
    background:
        radial-gradient(620px 340px at 100% 0%, rgba(123,90,69,.14), transparent 60%),
        var(--white);
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    padding: 54px 56px;
    overflow: hidden;
}
.hero-title {
    font-size: var(--text-page);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.5px;
    color: var(--choc);
}
.hero-text {
    margin-top: 18px;
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--gray);
    max-width: 450px;
    line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-visual { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.hero-orbit {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    border: 2px dashed rgba(123,90,69,.28);
}
.sim-card {
    width: 320px; max-width: 94%;
    filter: drop-shadow(0 24px 36px rgba(20,12,8,.28));
    transform-origin: center;
    animation: sim-float 6s ease-in-out infinite;
}
@keyframes sim-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.sim-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 6px 14px rgba(0,0,0,.20); }
.sim-dot--mega    { background: #00AB59; top: 4%;  left: 42%; }
.sim-dot--mts     { background: #E60000; top: 20%; right: 4%; }
.sim-dot--t2      { background: #111111; bottom: 12%; left: 6%; }
.sim-dot--yota    { background: #00AEEF; bottom: 4%; right: 24%; }
.sim-dot--beeline { background: #FFC20E; top: 52%; left: 0%; }

/* ——— Ряд преимуществ под героем ——— */
.hero-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.hbenefit {
    display: flex; align-items: center; gap: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
}
.hbenefit-ico {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--caramel);
    display: flex; align-items: center; justify-content: center;
}
.hbenefit-txt { display: flex; flex-direction: column; min-width: 0; }
.hbenefit-txt b { font-size: var(--text-body); font-weight: 700; color: var(--black); line-height: 1.2; }
.hbenefit-txt span { font-size: var(--text-small); color: var(--gray); margin-top: 2px; }

/* ——— Заголовки секций (левые варианты + строка со ссылкой) ——— */
.section-head--left { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.section-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-title--left { text-align: left; margin-bottom: 0; }
.link-more {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: var(--text-body); font-weight: 600; color: var(--caramel);
    transition: gap .2s, color .2s;
}
.link-more:hover { color: var(--choc); gap: 11px; }

/* ——— Секция операторов ——— */
.operators-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.operator-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 16px 16px 18px;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.operator-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(43,31,26,.12); border-color: rgba(123,90,69,.3); }
.operator-logo {
    height: 58px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    padding: 8px 16px;
}
.operator-logo img { max-height: 38px; max-width: 84%; width: auto; object-fit: contain; display: block; }
.operator-desc { font-size: var(--text-small); color: var(--gray); line-height: 1.4; flex: 0 0 auto; min-height: 2.8em; text-align: center; }
.operator-card .btn-op { margin-top: auto; }
.btn-op { width: 100%; padding: 11px 14px; font-size: var(--text-body); }
/* Фирменная цветная полоса сверху карточки-оператора */
.operator-card { border-top: 3px solid var(--line); }
.op-mega    { border-top-color: #00AB59; }
.op-mts     { border-top-color: #E60000; }
.op-beeline { border-top-color: #FFC20E; }
.op-t2      { border-top-color: #111111; }
.op-yota    { border-top-color: #00AEEF; }

/* ——— Мелкие перекраски под тёплую гамму ——— */
.product-img { background: var(--blue-soft); }
.btn-heart:hover { background: #EFE4D6; }
.btn-heart.active { background: #F6E2D8; color: #C0562E; }
.cta-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-band .cta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 430px);
    flex: 0 1 430px;
}
.cta-band .cta-actions > .btn-white,
.cta-band .cta-actions > .btn-ghost { width: 100%; }

/* ——— Адаптив новых блоков ——— */
@media (max-width: 1000px) {
    .hero-panel { grid-template-columns: 1fr; padding: 40px 34px; gap: 30px; }
    .hero-visual { min-height: 360px; order: -1; }
    .hero-benefits { grid-template-columns: repeat(2, 1fr); }
    .operators-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .hero-visual { min-height: 340px; }
    .sim-card { width: 290px; max-width: 92%; }
    .hero-panel { padding: 30px 22px; border-radius: var(--card-radius); }
    .hero-title { font-size: var(--text-page); }
    .hero-text { font-size: var(--text-body); }
    .hero-actions { gap: 10px; }
    .hero-actions .btn-lg { flex: 1 1 auto; }
    .hero-benefits { grid-template-columns: 1fr; }
    .operators-grid { grid-template-columns: repeat(2, 1fr); }
    .section-bar { margin-bottom: 20px; }
}
@media (max-width: 420px) {
    .operators-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: var(--text-page); }
    .header-bar { padding: 12px 14px; gap: 10px; }
    .header-actions { gap: 10px; }
    .header-actions .icon-btn { width: 34px; height: 34px; }
    .logo-mark .logo-word { font-size: var(--text-section); }
    .logo-mark .logo-ico { width: 30px; height: 30px; }
}

/* Тёплые тексты в тёмной секции «О компании» (были синеватые) */
.about .eyebrow { color: #D8B892; }
.about-text p { color: #E4D6C6; }
.about-stat .lbl { color: #D6C4B2; }
.about-stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }

/* Светлый логотип на тёмном футере */
.logo-mark--light .logo-word { color: #F6F1E9; }
.logo-mark--light .logo-ico { background: var(--caramel); }

/* Оригинальный логотип (белый) на тёмной плашке в светлой шапке */
.logo-orig {
    height: auto;
    display: inline-flex;
    align-items: center;
}
.logo-orig img { width: 150px; height: 46px; object-fit: cover; object-position: center; display: block; }
@media (max-width: 420px) {
    .logo-orig img { width: 128px; height: 42px; }
}

/* ——— Внутренние страницы ——— */
.page-sub { margin: 10px auto 0; font-size: var(--text-body); color: var(--gray); max-width: 660px; line-height: 1.55; text-align: center; }

/* Кнопка регистрации на странице саморегистрации нужна только на узких экранах. */
.selfreg-register-cta { display: none; }
@media (max-width: 640px) {
    .selfreg-register-cta { display: block; }
    .selfreg-register-cta .container { padding-left: 14px; padding-right: 14px; }
    .selfreg-register-cta .selfreg-register-btn {
        display: flex;
        width: calc(100% - 12px);
        height: 52.8px;
        min-height: 52.8px;
        margin-left: auto;
        margin-right: auto;
        padding: 11px 14px;
        border-radius: 14px;
        box-sizing: border-box;
        white-space: nowrap;
        text-align: center;
    }
}

/* Список условий доставки */
.delivery-terms {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    padding: 6px 30px;
}

/* Mobile home: section headings remain smaller than the 26px hero title. */
@media (max-width: 640px) {
    .section-head h2{
        font-size: var(--text-section);
    }

    .section-title {
        font-size: var(--text-section);
    }
}

/* Единый размер основных заголовков страниц «Саморегистрация» и «Как это работает». */
.uniform-page-title{
    font-size: var(--text-page) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -.6px !important;
    font-family: var(--font) !important;
}

.uniform-section-title {
    font-size: var(--text-section) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -.6px !important;
    font-family: var(--font) !important;
}
@media (max-width: 640px) {
    .uniform-page-title{
        font-size: var(--text-page) !important;
    }

    .uniform-section-title {
        font-size: var(--text-section) !important;
    }
}
.delivery-terms li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-body);
    line-height: 1.5;
    color: var(--black);
}
.delivery-terms li:last-child { border-bottom: none; }
.delivery-terms li svg { flex-shrink: 0; color: var(--caramel); margin-top: 1px; }
.delivery-terms b { color: var(--espresso); font-weight: 700; }
@media (max-width: 520px) { .delivery-terms { padding: 4px 20px; } .delivery-terms li { font-size: var(--text-body); } }

/* Теги на карточке оператора (страница «Операторы») */
.operator-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -2px 0 4px; }
.operator-tags li { font-size: var(--text-small); font-weight: 600; color: var(--espresso); background: var(--blue-soft); border-radius: 40px; padding: 5px 10px; }

/* Страница «Помощь» */
.help-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: var(--text-body); font-weight: 700; color: var(--black);
    padding: 16px 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: var(--text-section); font-weight: 400; color: var(--caramel); line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 18px 18px; font-size: var(--text-small); color: var(--gray); line-height: 1.6; }

.help-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    padding: 28px 26px;
    position: sticky; top: 20px;
}
.help-card h3 { font-size: var(--text-body); font-weight: 800; color: var(--black); margin-bottom: 18px; }
.help-contacts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.help-contacts li { display: flex; flex-direction: column; font-size: var(--text-body); color: var(--black); }
.help-contacts li span { font-size: var(--text-small); text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: 3px; }
.help-call { width: 100%; }

@media (max-width: 860px) {
    .help-grid { grid-template-columns: 1fr; }
    .help-card { position: static; }
}

/* ═══════════ КАЛЕНДАРЬ ВЫБОРА ДАТЫ (кастомный) ═══════════ */
.date-field.has-datepicker { position: relative; }
.date-field.has-datepicker .form-input { cursor: pointer; }

.dp-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 304px;
    max-width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(43, 31, 26, .18);
    padding: 14px;
    animation: dp-pop .16s ease;
}
@keyframes dp-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font-size: var(--text-body); font-weight: 700; color: var(--choc); }
.dp-nav {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--caramel);
    background: var(--blue-soft);
    transition: background .15s, color .15s;
}
.dp-nav:hover { background: var(--caramel); color: #fff; }

.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.dp-week span { text-align: center; font-size: var(--text-small); font-weight: 600; color: var(--gray); padding: 4px 0; }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day {
    height: 36px;
    border-radius: 9px;
    font-size: var(--text-small); font-weight: 600;
    color: var(--black);
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, color .12s;
}
.dp-day:hover:not(:disabled) { background: var(--blue-soft); }
.dp-out { color: #C9BCAF; font-weight: 400; }
.dp-disabled { color: #D2C6B8; cursor: not-allowed; opacity: .7; }
.dp-today-day { box-shadow: inset 0 0 0 1.5px var(--caramel); }
.dp-sel, .dp-sel:hover { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-blue); }

.dp-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-foot button { font-size: var(--text-small); font-weight: 600; color: var(--caramel); padding: 5px 9px; border-radius: 8px; transition: background .15s, color .15s; }
.dp-foot button:hover { color: var(--choc); background: var(--blue-soft); }

/* Главный экран SimGO: фирменная тёмная шапка и единая плашка преимуществ. */
.site-header--home { padding: 12px 0 4px; }
.home-frame {
    width: calc(100% - 10px);
    max-width: 1240px;
    margin: 5px auto 18px;
    padding: 0 0 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.site-header--home .header-bar {
    background: linear-gradient(135deg, #3A2A24 0%, #241B18 100%) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-card) !important;
    padding: 13px 22px;
    gap: 26px;
}
.site-header--home .main-nav { gap: clamp(18px, 3vw, 40px); }
.site-header--home .main-nav a { color: rgba(255,255,255,.90) !important; font-size: var(--text-body); font-weight: 600; }
.site-header--home .main-nav a:hover,
.site-header--home .main-nav a.active { color: var(--caramel); }
.site-header--home .icon-btn,
.site-header--home .icon-btn:hover { color: rgba(255,255,255,.94) !important; }
.site-header--home .cart-link img { filter: brightness(0) invert(1) !important; opacity: .9; }
.site-header--home .hamburger span { background: #fff !important; }
.site-header--home .hamburger.open span { background: var(--choc) !important; }
.site-header--home .logo-orig {
    height: 40px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.site-header--home .logo-orig img { width: 126px; height: 34px; }

.hero { padding: 4px 0 22px; }
.hero-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 28px;
    padding: 24px 30px 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.hero-title { font-size: var(--text-page); line-height: 1.08; }
.hero-text { max-width: 370px; font-size: var(--text-body); }
.hero-actions { gap: 10px; margin-top: 26px; }
.hero-actions .btn-lg { min-height: 42px; padding: 10px 16px; border-radius: 9px; font-size: var(--text-body); }
.hero-visual { min-height: 390px; }
.hero-visual .hero-orbit { width: 360px; height: 360px; z-index: 0; }
.hero-visual .sim-card { position: relative; z-index: 1; width: 410px; max-width: 100%; height: auto; object-fit: contain; }
.hero-visual .sim-dot { z-index: 2; width: 16px; height: 16px; transform: translate(-50%, -50%); }
.hero-visual .sim-dot--mega { top: calc(50% - 127px); left: calc(50% - 127px); right: auto; bottom: auto; }
.hero-visual .sim-dot--mts { top: calc(50% + 45px); left: calc(50% + 174px); right: auto; bottom: auto; }
.hero-visual .sim-dot--t2 { top: 50%; left: calc(50% - 180px); right: auto; bottom: auto; }
.hero-visual .sim-dot--yota { top: calc(50% + 127px); left: calc(50% + 127px); right: auto; bottom: auto; }
.hero-visual .sim-dot--beeline { top: calc(50% + 156px); left: calc(50% + 90px); right: auto; bottom: auto; }

.hero-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.hero-benefits .hbenefit {
    min-width: 0;
    gap: 12px;
    padding: 8px 10px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.hero-benefits .hbenefit-ico {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
}
.hero-benefits .hbenefit-txt b { font-size: var(--text-body); }
.hero-benefits .hbenefit-txt span { font-size: var(--text-small); }

@media (max-width: 1000px) {
    .site-header--home .header-bar { gap: 12px; }
    .site-header--home .header-actions { margin-left: auto; gap: 12px; }
    .site-header--home .hamburger { margin-left: 0; }
    .site-header--home + .hero .hero-panel {
        grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr);
        gap: 16px;
        padding: 22px 24px 12px;
    }
    .site-header--home + .hero .hero-visual { order: 0; min-height: 340px; }
    .site-header--home + .hero .hero-visual .hero-orbit { width: 300px; height: 300px; }
    .site-header--home + .hero .hero-visual .sim-card { width: min(360px, 100%); }
    .site-header--home + .hero .hero-visual .sim-dot--mega { top: calc(50% - 106px); left: calc(50% - 106px); }
    .site-header--home + .hero .hero-visual .sim-dot--mts { top: calc(50% + 38px); left: calc(50% + 145px); }
    .site-header--home + .hero .hero-visual .sim-dot--t2 { top: 50%; left: calc(50% - 150px); }
    .site-header--home + .hero .hero-visual .sim-dot--yota { top: calc(50% + 106px); left: calc(50% + 106px); }
    .site-header--home + .hero .hero-visual .sim-dot--beeline { top: calc(50% + 130px); left: calc(50% + 75px); }
    .site-header--home + .hero .hero-title { font-size: var(--text-page); }
    .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .site-header--home { padding: 8px 0 2px; }
    .home-frame { width: calc(100% - 10px); padding-bottom: 10px; }
    .home-frame .site-header .container,
    .home-frame .hero .container { padding-left: 14px; padding-right: 14px; }
    .site-header--home .header-bar { padding: 6px 12px; gap: 8px; }
    .site-header--home .logo-orig { height: 36px; padding: 2px 5px; }
    .site-header--home .logo-orig img { width: 104px; height: 32px; }
    .site-header--home .header-actions { gap: 8px; }
    .site-header--home .header-actions .icon-btn { width: 32px; height: 32px; }
    .site-header--home .hamburger { width: 36px; height: 36px; }
    .hero { padding: 0 0 18px; }
    .site-header--home + .hero .hero-panel {
        display: block;
        padding: 14px 4px 16px;
    }
    .site-header--home + .hero .hero-visual { display: flex; min-height: 270px; margin: 16px auto 8px; }
    .site-header--home + .hero .hero-visual .hero-orbit { width: 250px; height: 250px; }
    .site-header--home + .hero .hero-visual .sim-card { width: min(290px, 100%); }
    .site-header--home + .hero .hero-visual .sim-dot--mega { top: calc(50% - 88px); left: calc(50% - 88px); }
    .site-header--home + .hero .hero-visual .sim-dot--mts { top: calc(50% + 31px); left: calc(50% + 121px); }
    .site-header--home + .hero .hero-visual .sim-dot--t2 { top: 50%; left: calc(50% - 125px); }
    .site-header--home + .hero .hero-visual .sim-dot--yota { top: calc(50% + 88px); left: calc(50% + 88px); }
    .site-header--home + .hero .hero-visual .sim-dot--beeline { top: calc(50% + 109px); left: calc(50% + 63px); }
    .site-header--home + .hero .hero-title { font-size: var(--text-page); line-height: 1.14; }
    .site-header--home + .hero .hero-text { margin-top: 12px; font-size: var(--text-body); line-height: 1.55; }
    .site-header--home + .hero .hero-actions { margin-top: 18px; }
    .site-header--home + .hero .hero-actions .btn-primary { width: 100%; justify-content: center; }
    .site-header--home + .hero .hero-actions .btn-outline { display: flex; width: 100%; justify-content: center; }
    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 8px;
        padding: 15px;
        border-radius: 16px;
    }
    .hero-benefits .hbenefit { padding: 0; }
    .hero-benefits .hbenefit-ico { width: 38px; height: 38px; border-radius: 10px; }
}

/* Единая прямоугольная геометрия основных CTA на всех ширинах. */
.site-header--home + .hero .hero-actions .btn-lg,
.cta-band .cta-actions .btn-white,
.cta-band .cta-actions .btn-ghost,
.footer-brand .btn-call {
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(209px, 100%);
    box-sizing: border-box;
}

/* Одинаковая ширина двух кнопок первого экрана. */
.site-header--home + .hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 430px);
    gap: 12px;
}
.site-header--home + .hero .hero-actions > .btn-lg { width: 100%; min-width: 0; }
@media (max-width: 640px) {
    .site-header--home + .hero .hero-actions { grid-template-columns: 1fr; width: 100%; }
    .footer-brand .btn-call { width: 100%; }
    .cta-band .cta-actions { width: 100%; flex-basis: 100%; }
}

@media (max-width: 800px) {
    .cta-band .cta-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        flex: 0 0 100%;
        gap: 12px;
    }
    .cta-band .cta-actions > .btn-white,
    .cta-band .cta-actions > .btn-ghost {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 11px 14px;
        border-radius: 14px;
        box-sizing: border-box;
        white-space: nowrap;
        text-align: center;
    }
}
