/* ==========================================================================
   Каталог красивых номеров
   Палитра: ночной синий (ink) + казахстанская лазурь (sky) + золото поиска.
   Номер — главный объект страницы, всё остальное спокойное.
   ========================================================================== */

:root {
    --ink: #0E1B2C;
    --paper: #F2F5F8;
    --card: #FFFFFF;
    --line: #DCE3EA;
    --line-strong: #AFBFCE;
    --muted: #5B6B7C;
    --sky: #0A7FA6;
    --sky-dark: #086A8B;
    --sky-tint: #E1F2F8;
    --gold: #E8B931;
    --gold-light: #F3CB52;
    --gold-tint: #FFE58F;
    --sale: #B42318;
    --sale-tint: #FEECEB;
    --heart: #E5484D;
    --ok: #136C35;

    --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --bs-body-font-family: var(--font);
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
}

/* ---------- База ---------- */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body > .container {
    flex: 1 0 auto;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--sky);
}

a:hover {
    color: var(--sky-dark);
}

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

.page {
    padding: 24px 0 56px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ic {
    flex: none;
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Шапка ---------- */

.site-header {
    background: var(--ink);
    color: #fff;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gold);
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hdr-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hdr-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hdr-form {
    margin: 0;
}

.fav-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--heart);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

/* ---------- Поиск по цифрам ---------- */

.hero {
    padding: 18px 0 30px;
    background: var(--ink);
    color: #fff;
}

.hero-title {
    max-width: 16ch;
    margin: 0 0 10px;
    font-size: clamp(27px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero-lead {
    max-width: 46ch;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.45;
}

.dial {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 660px;
    padding: 6px 6px 6px 16px;
    border-radius: 18px;
    background: #fff;
    transition: box-shadow 0.15s ease;
}

.dial:focus-within {
    box-shadow: 0 0 0 4px rgba(232, 185, 49, 0.6);
}

.dial-icon {
    width: 24px;
    height: 24px;
    color: #8A99A8;
}

.dial-input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: 700 clamp(24px, 6vw, 34px) / 1 var(--font);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    caret-color: var(--sky);
}

.dial-input:focus-visible {
    outline: 0;
}

.dial-input::placeholder {
    color: #A3B0BD;
    font-weight: 500;
    letter-spacing: 0;
}

.dial-go {
    flex: none;
    height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 13px;
    background: var(--gold);
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.dial-go .ic {
    display: none;
}

.dial-go:hover {
    background: var(--gold-light);
}

.hints {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.hints-label {
    margin-right: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.hint {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.hint:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ---------- Фильтры ---------- */

.filters {
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}

.filter-row + .filter-row {
    margin-top: 6px;
}

.filter-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.chips {
    display: flex;
    gap: 8px;
    margin: 0 -12px;
    padding: 4px 12px 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    position: relative;
    flex: none;
    margin: 0;
}

.chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.chip > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chip > span:hover {
    border-color: var(--line-strong);
}

.chip input:checked + span {
    border-color: var(--sky);
    background: var(--sky-tint);
    color: #064E66;
}

.chip input:focus-visible + span {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

.chip .ic {
    width: 18px;
    height: 18px;
}

.chip-fav input:checked + span .ic {
    color: var(--heart);
    fill: currentColor;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--op, #94A3B8);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Цвета операторов — только маленькая точка рядом с названием */
.op-tele2 { --op: #1F2937; }
.op-kcell { --op: #7B2CBF; }
.op-beeline { --op: #F2C200; }
.op-altel { --op: #E0157A; }
.op-activ { --op: #F0642E; }

/* ---------- Результаты ---------- */

.results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.results-count {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.results-reset {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.sort-select {
    width: auto;
    margin-left: auto;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    border-color: var(--line);
    border-radius: 10px;
    background-color: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Карточка номера: срезанный угол как у сим-карты */
.num {
    --edge: var(--line);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 14px;
    border: 1px solid var(--edge);
    border-radius: 16px 0 16px 16px;
    background: var(--card);
    transition: border-color 0.15s ease;
}

.num::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    background: linear-gradient(225deg, var(--paper) calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) 50%, transparent 50%);
    pointer-events: none;
}

.num:hover {
    --edge: var(--line-strong);
}

.num-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 8px;
}

.num-meta .op {
    margin-left: auto;
}

.op {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.op::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--op, #94A3B8);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.fav {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -10px -12px -10px 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #9AA8B6;
}

.fav:hover,
.fav[aria-pressed="true"] {
    color: var(--heart);
}

.fav[aria-pressed="true"] .ic {
    fill: currentColor;
}

.num-open {
    all: unset;
    display: block;
    color: var(--ink);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
}

/* Вся карточка кликабельна, но сердечко остаётся отдельной кнопкой */
.num-open::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px 0 16px 16px;
}

.num-open:focus-visible {
    outline: 0;
}

.num-open:focus-visible::after {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

.num-cc {
    color: var(--muted);
    font-weight: 500;
}

.num-code {
    font-weight: 600;
}

.num-sub {
    font-weight: 800;
}

mark {
    padding: 0 0.04em;
    border-radius: 4px;
    background: var(--gold-tint);
    color: inherit;
}

.num-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.price {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.price-old {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.tag {
    align-self: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: #EDF1F5;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.tag-sale {
    background: var(--sale-tint);
    color: var(--sale);
}

/* ---------- Пустые состояния и призыв написать ---------- */

.empty {
    padding: 28px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: var(--card);
}

.empty-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.empty p {
    max-width: 56ch;
    margin: 0 0 18px;
    color: var(--muted);
}

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

.ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    margin-top: 40px;
    padding: 28px;
    border-radius: 20px;
    background: var(--ink);
    color: #fff;
}

.ask-title {
    margin: 0 0 6px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ask p {
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- Кнопки ---------- */

.btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--sky);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-wa:hover {
    background: var(--sky-dark);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-ghost:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

/* ---------- Карточка номера (шторка снизу на телефоне) ---------- */

.sheet .modal-content {
    padding: 18px 20px 22px;
    border: 0;
    border-radius: 22px;
    color: var(--ink);
}

.sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -8px -10px -8px 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
}

.sheet-close:hover {
    background: #EEF2F6;
    color: var(--ink);
}

.sheet-number {
    margin: 8px 0 10px;
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sheet-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 14px;
}

.sheet-price .price {
    font-size: 26px;
}

.sheet-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--ok);
    font-weight: 600;
}

.sheet .btn-wa {
    width: 100%;
}

.sheet-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sheet-actions .btn-ghost {
    flex: 1;
}

.sheet-fav[aria-pressed="true"] .ic {
    color: var(--heart);
    fill: currentColor;
}

.sheet-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* ---------- Подвал ---------- */

.site-footer {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-size: 14px;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
}

.brand-small,
.brand-small:hover {
    color: var(--ink);
    font-size: 17px;
}

.brand-small .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1;
}

.footer-contacts {
    display: flex;
    align-items: center;
}

.footer-contacts a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

/* ---------- Админка: те же цвета вместо стандартных бутстраповских ---------- */

.btn-primary {
    border-color: var(--sky);
    background-color: var(--sky);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--sky-dark);
    background-color: var(--sky-dark);
    color: #fff;
}

.btn-primary:focus,
.btn-check:focus + .btn-primary {
    box-shadow: 0 0 0 0.25rem rgba(10, 127, 166, 0.35);
}

.btn-primary:active,
.btn-primary.active {
    border-color: #075A76;
    background-color: #075A76;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 0.2rem rgba(10, 127, 166, 0.2);
}

.form-check-input:checked {
    border-color: var(--sky);
    background-color: var(--sky);
}

/* ---------- Адаптив ---------- */

@media (max-width: 575.98px) {
    .hdr-text {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .hdr-link {
        padding: 0 10px;
    }

    .dial {
        padding-left: 12px;
    }

    .dial-icon {
        display: none;
    }

    .dial-go {
        padding: 0 18px;
    }

    .results-reset {
        order: 3;
        flex-basis: 100%;
    }

    .sort-select {
        font-size: 14px;
    }

    .ask {
        padding: 22px;
    }

    .ask .btn-wa {
        width: 100%;
    }

    .footer-contacts {
        text-align: left;
    }

    /* Карточка номера выезжает снизу */
    .sheet .modal-dialog {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        min-height: 0;
        max-width: none;
        margin: 0;
    }

    .sheet.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.25s ease-out;
    }

    .sheet.show .modal-dialog {
        transform: none;
    }

    .sheet .modal-content {
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }
}

/* На узких телефонах кнопка поиска — только иконка, чтобы поле не обрезало текст */
@media (max-width: 399.98px) {
    .dial-go {
        display: grid;
        place-items: center;
        width: 56px;
        padding: 0;
    }

    .dial-go .ic {
        display: block;
        width: 24px;
        height: 24px;
    }

    .dial-go-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .num-open {
        font-size: 21px;
    }
}

@media (max-width: 767.98px) {
    .filter-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 30px 0 38px;
    }

    .hero-title {
        max-width: 22ch;
    }

    .filters {
        padding: 16px 0;
    }

    .filter-row {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .filter-row + .filter-row {
        margin-top: 10px;
    }

    .filter-label {
        flex: 0 0 84px;
    }

    .chips {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        overflow: visible;
    }
}

/* На широком экране «Цена» и «Только» встают в одну строку */
@media (min-width: 1200px) {
    .filters .container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 40px;
    }

    .filter-row:first-child {
        flex-basis: 100%;
    }

    .filter-row + .filter-row {
        margin-top: 0;
    }

    .filter-row-only .filter-label {
        flex-basis: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sheet.fade .modal-dialog,
    .dial,
    .chip > span,
    .num {
        transition: none;
    }
}

/* ---------- Общие элементы: главная кнопка, продавец в карточке, всплывающее сообщение ---------- */

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: var(--sky);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-main:hover {
    background: var(--sky-dark);
    color: #fff;
}

.hero-sell {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

.hero-sell a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

.hero-sell a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.sheet-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-weight: 600;
}

.toast-note {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1090;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(14, 27, 44, 0.3);
}

/* ==========================================================================
   Живой каталог: карточка с подсказкой «чем красив», быстрые фильтры,
   шторка фильтров и нижнее меню на телефоне
   ========================================================================== */

/* ---------- Карточка номера ---------- */

.num {
    gap: 8px;
    padding: 14px 16px 14px 20px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Полоска цвета оператора слева */
.num::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--op, #94A3B8);
}

.num:hover {
    box-shadow: 0 12px 28px rgba(14, 27, 44, 0.09);
    transform: translateY(-2px);
}

.num:active {
    transform: scale(0.985);
}

.num-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
    padding-right: 6px;
}

.beauty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: #FFF3C4;
    color: #6E4E00;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.beauty .ic,
.sheet-beauty .ic {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: none;
}

.num-open {
    font-size: 25px;
    letter-spacing: 0.015em;
}

.num-cc {
    margin-right: 0.15em;
}

.num-digits {
    font-weight: 800;
}

/* То, чем номер красив, — как выделенное маркером */
.num-digits b {
    background: linear-gradient(transparent 58%, var(--gold-tint) 58%, var(--gold-tint) 92%, transparent 92%);
    color: inherit;
    font-weight: 800;
}

.num-meta .op {
    margin-left: auto;
}

.price {
    font-size: 19px;
}

/* Первое появление карточек и возвращение после фильтра */
@keyframes num-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.js-reveal .num {
    animation: num-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 35ms);
}

.num.pop-in {
    animation: num-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Сердечко подпрыгивает, когда номер сохранили */
@keyframes heart-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.4); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.fav.is-popping .ic,
.sheet-fav.is-popping .ic {
    animation: heart-pop 0.45s ease;
}

@keyframes count-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.results-count {
    transform-origin: left center;
}

.results-count.bump {
    animation: count-bump 0.3s ease;
}

/* ---------- Быстрые фильтры над списком ---------- */

.quickbar-sentinel {
    height: 1px;
    margin-top: -1px;
}

.quickbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -12px -12px 10px;
    padding: 10px 12px;
    background: rgba(242, 245, 248, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
    transition: box-shadow 0.2s ease;
}

.quickbar::-webkit-scrollbar {
    display: none;
}

.quickbar.is-stuck {
    box-shadow: 0 8px 20px -12px rgba(14, 27, 44, 0.35);
}

.quick-filters,
.kind {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.quick-filters:active,
.kind:active {
    transform: scale(0.95);
}

.quick-filters {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.quick-filters .ic {
    width: 18px;
    height: 18px;
}

.quick-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.kinds {
    display: flex;
    flex: none;
    gap: 8px;
}

.kind b {
    color: var(--muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.kind:hover {
    border-color: var(--line-strong);
}

.kind.is-on {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ink);
}

.kind.is-on b {
    color: var(--ink);
}

/* ---------- Шторка с фильтрами (только телефон) ---------- */

.filters-head,
.filters-foot,
.filters-backdrop {
    display: none;
}

.filters-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ---------- Карточка номера в окне ---------- */

.sheet-handle {
    display: none;
}

.sheet-number .num-cc {
    color: var(--muted);
    font-weight: 500;
}

.sheet-beauty {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    padding: 6px 12px 6px 10px;
    border-radius: 12px;
    background: #FFF3C4;
    color: #6E4E00;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.btn-wa,
.btn-main,
.btn-ghost {
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-wa:active,
.btn-main:active,
.btn-ghost:active {
    transform: scale(0.97);
}

.toast-note.is-on {
    animation: toast-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ---------- Нижнее меню (только телефон) ---------- */

.tabbar {
    display: none;
}

@media (min-width: 768px) {
    .quickbar {
        margin: -12px 0 12px;
        padding: 10px 0;
    }
}

@media (max-width: 767.98px) {
    /* Шапка: на телефоне ссылки уезжают в нижнее меню */
    .has-tabbar .site-nav {
        display: contents;
    }

    .has-tabbar .site-nav .hdr-link {
        display: none;
    }

    .site-header-inner {
        min-height: 56px;
    }

    .hero {
        padding: 10px 0 24px;
    }

    .hero-title {
        max-width: 14ch;
        font-size: 30px;
        line-height: 1.05;
    }

    .hero-lead {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .hints {
        flex-wrap: nowrap;
        margin-right: -12px;
        padding-right: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hints::-webkit-scrollbar {
        display: none;
    }

    .hint {
        flex: none;
        padding: 7px 14px;
    }

    .hints-label {
        flex: none;
    }

    .page {
        padding-top: 12px;
    }

    .num-open {
        font-size: 24px;
    }

    .results-head {
        margin-bottom: 10px;
    }

    .results-count {
        font-size: 17px;
    }

    .ask {
        margin-top: 28px;
    }

    /* Нижнее меню */
    .has-tabbar {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    .tabbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        display: flex;
        align-items: flex-end;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .tab {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        min-width: 0;
        padding: 4px 0 2px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease;
    }

    .tab:active {
        transform: scale(0.92);
    }

    .tab:hover {
        color: var(--ink);
    }

    .tab .ic {
        width: 24px;
        height: 24px;
    }

    .tab.is-active {
        color: var(--ink);
    }

    .tab.is-active .ic {
        color: var(--sky);
    }

    .tab-icon {
        position: relative;
        display: inline-flex;
    }

    .tab-icon .fav-count {
        position: absolute;
        top: -6px;
        right: -12px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 11px;
        line-height: 18px;
    }

    .tab-sell {
        color: var(--ink);
    }

    .tab-plus {
        display: grid;
        place-items: center;
        width: 48px;
        height: 32px;
        margin-top: -4px;
        border-radius: 12px;
        background: var(--gold);
        color: var(--ink);
        box-shadow: 0 6px 14px -6px rgba(166, 124, 0, 0.7);
    }

    .tab-plus .ic {
        width: 22px;
        height: 22px;
        stroke-width: 2.5;
    }

    .toast-note {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* Окно номера: ручка сверху, его можно смахнуть */
    .sheet-handle {
        display: block;
        width: 40px;
        height: 5px;
        margin: -6px auto 10px;
        border-radius: 3px;
        background: #D3DBE3;
    }

    .sheet .modal-dialog {
        transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .site-footer {
        padding: 22px 0 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .num,
    .js-reveal .num,
    .num.pop-in,
    .fav.is-popping .ic,
    .sheet-fav.is-popping .ic,
    .results-count.bump,
    .toast-note.is-on,
    .filters,
    .filters-backdrop,
    .tab,
    .kind,
    .quick-filters {
        animation: none;
        transition: none;
    }
}

.toast-note {
    text-align: center;
}

.toast-note:not([hidden]) {
    width: max-content;
}

/* ==========================================================================
   Список номеров строками: значок оператора · номер · цена.
   Номер набран спокойным полужирным, без «тяжёлых» цифр — его легко читать
   и сравнивать, глаз бежит по столбику цен справа.
   ========================================================================== */

.grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 10px;
}

.num {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 36px;
    align-items: center;
    gap: 0 12px;
    min-height: 76px;
    padding: 12px 6px 12px 14px;
    border-radius: 18px;
}

.num::before,
.num::after {
    display: none;
}

.num-open::after {
    border-radius: 18px;
}

/* Цветной кружок оператора */
.num-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--op, #94A3B8);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.op-beeline .num-mark {
    color: var(--ink);
}

.op-tele2 .num-mark {
    background: #111827;
}

.num-main {
    min-width: 0;
}

.num-open {
    display: block;
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.num-cc {
    margin-right: 0.1em;
    color: var(--muted);
    font-weight: 500;
}

.num-digits,
.num-digits b {
    font-weight: 600;
}

.num-digits b {
    padding: 0 1px;
    border-radius: 3px;
    background: linear-gradient(transparent 55%, var(--gold-tint) 55%, var(--gold-tint) 95%, transparent 95%);
}

.num-digits mark {
    font-weight: 700;
}

.num-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.num-sub .beauty {
    padding: 0;
    background: none;
    color: #8A6300;
    font-size: 13px;
    font-weight: 600;
}

.num-flag {
    color: var(--ok);
    font-weight: 600;
}

.num-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.num-side .price {
    font-size: 17px;
    font-weight: 700;
}

.num-was {
    color: var(--sale);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.num-was s {
    color: var(--muted);
    font-weight: 500;
}

.num .fav {
    width: 36px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
}

.num:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(14, 27, 44, 0.08);
}

.num:active {
    background: #F7F9FB;
    transform: scale(0.99);
}

.sheet-number {
    font-weight: 600;
}

.sheet-number .num-digits b {
    font-weight: 600;
}

@media (max-width: 767.98px) {
    /* Шапка и поиск компактнее: к номерам — за один взгляд */
    .hero {
        padding: 4px 0 18px;
    }

    .hero-title {
        max-width: none;
        margin-bottom: 6px;
        font-size: 24px;
    }

    .hero-lead {
        margin-bottom: 14px;
        font-size: 14px;
    }

    .dial-input {
        height: 50px;
        font-size: 24px;
    }

    .dial-go {
        height: 50px;
    }

    .hero-sell {
        display: none;
    }

    /* Фильтры всегда на виду: подпись и ряд крупных кнопок, листается вбок */
    .filters {
        padding: 6px 0 12px;
    }

    .filter-row + .filter-row {
        margin-top: 4px;
    }

    .filters .filter-label {
        position: static;
        display: block;
        width: auto;
        height: auto;
        margin: 10px 0 2px;
        overflow: visible;
        clip: auto;
        color: var(--ink);
        font-size: 14px;
        font-weight: 700;
        white-space: normal;
    }

    .filters .chip > span {
        height: 42px;
    }

    .quickbar {
        margin-top: -12px;
    }

    .num {
        grid-template-columns: 40px minmax(0, 1fr) auto 32px;
        gap: 0 10px;
        min-height: 72px;
        padding: 10px 4px 10px 12px;
    }

    .num-mark {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .num-open {
        font-size: 18px;
    }

    .num-side .price {
        font-size: 15px;
    }

    .num .fav {
        width: 32px;
    }
}

@media (max-width: 374.98px) {
    .num-open {
        font-size: 16px;
    }

    .num-mark {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .num {
        grid-template-columns: 34px minmax(0, 1fr) auto 30px;
    }
}

/* Подпись под номером — всегда одной строкой */
.num-sub {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
}

.num-sub > * {
    flex: none;
}

.num-sub .beauty {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.num-flag {
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .filters .filter-label {
        margin: 8px 0 0;
        font-size: 13px;
        color: var(--muted);
    }

    .filters .chip > span {
        height: 40px;
        padding: 0 15px;
    }
}

/* Номер одним цветом и одной жирностью; маркер — только у цифр из поиска */
.num-cc,
.sheet-number .num-cc {
    margin-right: 0.15em;
    color: inherit;
    font-weight: 600;
}

.quickbar {
    display: none;
}

.num-side .price {
    font-weight: 600;
}

.num {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ---------- Фильтры на телефоне: свёрнуты под кнопкой «Фильтры» ---------- */

.filters-toggle {
    display: none;
}

@media (max-width: 767.98px) {
    .filters {
        padding: 10px 0;
    }

    .filters-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        color: var(--ink);
        font-size: 16px;
        font-weight: 600;
        -webkit-tap-highlight-color: transparent;
        transition: border-color 0.15s ease, transform 0.15s ease;
    }

    .filters-toggle:active {
        transform: scale(0.98);
    }

    .filters-toggle .ic {
        width: 20px;
        height: 20px;
    }

    .filters-toggle-text {
        flex: 1;
        text-align: left;
    }

    .filters-count {
        display: inline-grid;
        place-items: center;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 11px;
        background: var(--gold);
        color: var(--ink);
        font-size: 13px;
        font-weight: 800;
    }

    .filters-chevron {
        color: var(--muted);
        transform: rotate(90deg);
        transition: transform 0.25s ease;
    }

    .filters.is-open .filters-chevron {
        transform: rotate(-90deg);
    }

    .filters.is-open .filters-toggle,
    .filters.has-active .filters-toggle {
        border-color: var(--line-strong);
    }

    /* Плавное раскрытие на любую высоту */
    .filters-panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .filters.is-open .filters-panel {
        grid-template-rows: 1fr;
    }

    .filters-inner {
        min-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .filters.is-open .filters-inner {
        padding-top: 4px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .filters-panel,
    .filters-inner,
    .filters-chevron {
        transition: none;
    }
}

/* ---------- Логотипы операторов (если файлы лежат в wwwroot/img/operators) ---------- */

.num-mark-logo {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.num-mark-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chip-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
}

/* ---------- Поиск компактнее ---------- */

.dial {
    max-width: 560px;
    padding: 4px 4px 4px 14px;
    border-radius: 14px;
}

.dial-input {
    height: 46px;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.dial-input::placeholder {
    font-size: 18px;
}

.dial-go {
    height: 46px;
    padding: 0 20px;
    border-radius: 11px;
    font-size: 16px;
}

.dial-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 767.98px) {
    .dial-input {
        height: 42px;
        font-size: 19px;
    }

    .dial-input::placeholder {
        font-size: 16px;
    }

    .dial-go {
        height: 42px;
    }

    .hint {
        padding: 5px 12px;
        font-size: 14px;
    }
}

@media (max-width: 399.98px) {
    .dial-go {
        width: 46px;
    }

    .dial-go .ic {
        width: 20px;
        height: 20px;
    }
}

/* ---------- Компактная шапка каталога: номера видны сразу ---------- */

.hero {
    padding: 6px 0 18px;
}

.hero-title {
    max-width: none;
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-lead {
    display: none;
}

.hero-sell {
    margin-top: 10px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .hero {
        padding: 10px 0 22px;
    }

    .hero .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 20px;
    }

    .hero-title {
        flex-basis: 100%;
        margin: 0;
    }

    .dial {
        flex: 0 1 460px;
    }

    .hints {
        margin-top: 0;
    }

    .hero-sell {
        flex-basis: 100%;
        margin: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .hints {
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    /* На телефоне сразу поиск — без заголовка */
    .hero {
        padding: 2px 0 14px;
    }

    .hero-title {
        display: none;
    }

    .hints {
        gap: 6px;
        margin-top: 10px;
    }

    .hints-label {
        font-size: 13px;
    }

    .hint {
        padding: 4px 11px;
        font-size: 13px;
    }

    .filters {
        padding: 8px 0;
    }

    .filters-toggle {
        height: 42px;
        font-size: 15px;
    }

    .page {
        padding-top: 10px;
    }

    .results-head {
        margin-bottom: 8px;
    }

    .results-count {
        font-size: 15px;
    }

    .sort-select {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        font-size: 14px;
    }
}

/* ---------- Кнопки WhatsApp — фирменный зелёный ---------- */

.btn-wa {
    background: #25D366;
    color: #fff;
}

.btn-wa:hover,
.btn-wa:focus-visible {
    background: #1DA851;
    color: #fff;
}

.btn-wa:active {
    background: #178F45;
}

/* ---------- Шапка каталога ещё ниже; подвал всегда внизу экрана ---------- */

.hero-sell {
    display: none;
}

.hdr-sell {
    color: var(--gold);
}

.hdr-sell:hover {
    color: var(--gold-light);
}

@media (min-width: 768px) {
    .hero {
        padding: 4px 0 18px;
    }

    .hero .container {
        flex-wrap: nowrap;
    }

    .hero-title {
        flex: none;
        flex-basis: auto;
        font-size: 20px;
        white-space: nowrap;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .hero .container {
        flex-wrap: wrap;
    }

    .hero-title {
        flex-basis: 100%;
    }
}

body {
    min-height: 100vh;
    min-height: 100dvh;
}

body > .container {
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 32px;
}

.catalog {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.catalog .grid,
.catalog .empty {
    margin-bottom: 28px;
}

.catalog .ask,
.ask {
    margin-top: auto;
}

.site-footer {
    display: none !important;
}

@media (min-width: 768px) {
    .hero .dial {
        flex: 1 1 300px;
        max-width: 460px;
    }

    .hero .hints {
        flex: none;
        flex-wrap: nowrap;
    }
}

@media (min-width: 768px) {
    .hero .hints {
        flex: 0 1 auto;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hero .hints::-webkit-scrollbar {
        display: none;
    }

    .hero .hint {
        flex: none;
    }
}

@media (min-width: 768px) and (max-width: 1399.98px) {
    .hero .hints-label {
        display: none;
    }
}

/* ==========================================================================
   Светлая палитра: белая шапка, мягкий серо-голубой фон, один акцент —
   индиго для кнопок и выбранных фильтров, золото остаётся в логотипе и поиске.
   Админка (body.admin) сохраняет тёмную шапку.
   ========================================================================== */

:root {
    --ink: #1C2333;
    --paper: #F5F6FA;
    --card: #FFFFFF;
    --line: #E4E7EE;
    --line-strong: #C9CFDA;
    --muted: #6B7385;
    --sky: #4F46E5;
    --sky-dark: #4338CA;
    --sky-tint: #EEF0FF;
    --gold: #4F46E5;
    --gold-light: #4338CA;
    --gold-tint: #EEF0FF;

    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
}

body:not(.admin) .site-header,
.hero {
    background: #fff;
    color: var(--ink);
}

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

body:not(.admin) .brand,
body:not(.admin) .brand:hover {
    color: var(--ink);
}

body:not(.admin) .hdr-link {
    color: var(--muted);
}

body:not(.admin) .hdr-link:hover {
    background: #F1F3F7;
    color: var(--ink);
}

body:not(.admin) .hdr-sell,
body:not(.admin) .hdr-sell:hover {
    color: var(--sky);
}

.hero-title {
    color: var(--ink);
}

.dial {
    border: 1px solid transparent;
    background: #F1F3F7;
}

.dial:focus-within {
    border-color: var(--sky);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.dial-input {
    caret-color: var(--sky);
}

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

.hint {
    background: #F1F3F7;
    color: var(--ink);
}

.hint:hover {
    background: #E6E9F0;
    color: var(--ink);
}

.filters {
    border-bottom-color: var(--line);
}

.chip input:checked + span {
    border-color: var(--sky);
    background: var(--sky-tint);
    color: #3730A3;
}

.ask {
    display: none !important;
}

.num {
    border-color: var(--line);
}

.results-reset {
    color: var(--sky);
}

:focus-visible {
    outline-color: var(--sky);
}

.hints-label {
    white-space: nowrap;
}

/* ==========================================================================
   Поиск в шапке: логотип · поиск · меню в одну строку.
   На телефоне — иконка лупы справа, по нажатию строка поиска выезжает под логотипом.
   ========================================================================== */

.site-header-inner {
    gap: 16px;
}

.hdr-search {
    flex: 0 1 340px;
    width: 320px;
    max-width: 380px;
    margin: 0 4px;
    padding: 3px 3px 3px 14px;
    border-radius: 12px;
}

.hdr-search .dial-input {
    height: 38px;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.hdr-search .dial-input::placeholder {
    font-size: 14px;
    letter-spacing: 0;
}

.hdr-search .dial-icon {
    display: none;
}

.hdr-search .dial-go {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: transparent !important;
    color: var(--muted) !important;
    border: 0;
    font-size: 15px;
    flex: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hdr-search .dial-go:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--ink) !important;
}

.hdr-search .dial-go .ic {
    display: block;
    width: 18px;
    height: 18px;
}

.hdr-search-btn {
    display: none;
}

.hdr-link-icon {
    width: 40px;
    padding: 0;
    justify-content: center;
}

.hdr-link-fav {
    min-width: 40px;
    padding: 0 8px;
    justify-content: center;
    gap: 6px;
}

body:not(.admin) .site-nav {
    flex: none;
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .site-header-inner {
        flex-wrap: wrap;
        gap: 0 8px;
        min-height: 56px;
    }

    .hdr-search-btn {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        border: 0;
        border-radius: 12px;
        background: #F1F3F7;
        color: var(--ink);
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.15s ease, transform 0.15s ease;
    }

    .hdr-search-btn:active {
        transform: scale(0.92);
    }

    .hdr-search-btn .ic {
        width: 22px;
        height: 22px;
    }

    .search-open .hdr-search-btn {
        background: var(--sky-tint);
        color: var(--sky);
    }

    .hdr-search {
        display: none;
        order: 3;
        flex-basis: 100%;
        width: 100%;
        max-width: none;
        margin: 0 0 12px;
    }

    .search-open .hdr-search {
        display: flex;
        animation: search-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .hdr-search .dial-go {
        width: 42px;
        height: 38px;
        padding: 0;
    }

    .hdr-search .dial-go .ic {
        display: block;
    }

    .hdr-search .dial-go-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .hdr-search .dial-icon {
        display: none;
    }
}

@keyframes search-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-open .hdr-search {
        animation: none;
    }
}

body:not(.admin) .site-header {
    border-bottom: 1px solid var(--line);
}

/* Стилизация кнопки поиска и бейджа VIP без ядовитого жёлтого */
.brand-mark {
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

/* Фильтры операторов: аккуратные логотипы вместо текста */
.chip-op > span {
    padding: 0 14px;
    min-width: 74px;
    justify-content: center;
}

.chip-op .chip-logo {
    display: block;
    width: auto;
    height: 18px;
    max-width: 76px;
    border-radius: 0;
    object-fit: contain;
}

.chip-op input:checked + span {
    border-color: var(--sky);
    background: var(--sky-tint);
}

.chip-op input:checked + span .chip-logo {
    filter: drop-shadow(0 1px 2px rgba(79, 70, 229, 0.15));
}

/* Логотипы операторов в карточках номеров */
.num-mark-logo,
.num.op-tele2 .num-mark-logo,
.op-tele2 .num-mark-logo {
    display: grid;
    place-items: center;
    padding: 4px;
    background: #FFFFFF !important;
    border: 1px solid var(--line);
}

.num-mark-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Логотип оператора в модальном окне */
.sheet-op {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.sheet-op-logo {
    display: block;
    height: 22px;
    max-height: 24px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
}

/* Скрытие дублирующего футера на мобильных устройствах (используется таббар) */
@media (max-width: 767.98px) {
    .site-footer {
        display: none !important;
    }
}



/* ---------- Текст для поиска Google внизу каталога ---------- */

.seo-text {
    max-width: 760px;
    margin: 36px 0 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.seo-text h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.seo-text p {
    margin: 0 0 12px;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.seo-links a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.seo-links a:hover {
    color: var(--sky);
    text-decoration: underline;
}

/* Переключатель языка Рус / Қаз в шапке */
.hdr-lang {
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
