:root {
    --black: #0A0A0A;
    --graphite: #1F1F1F;
    --blue: #0066FF;
    --blue-glow: #2EA8FF;
    --turquoise: #00E5FF;
    --gold: #D4AF37;
    --gold-glow: #FFD95A;
    --text: #E7EDFF;
    --muted: #AEBFDB;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: #0a0a0a;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(0,102,255,.25), transparent 35%),
        radial-gradient(circle at 78% 14%, rgba(0,229,255,.18), transparent 26%);
    /* Без flex-колонки: на части Android/Brave flex+100dvh давал странное поведение скролла */
    min-height: 100vh;
}

/* Футер — последний ребёнок внутри main: прижимается к низу экрана на коротких страницах */
.site-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.narrow {
    max-width: 720px;
}

.site-header {
    border-bottom: 1px solid #163044;
    background: linear-gradient(90deg, #081421 0%, #0a1a28 100%);
    position: sticky;
    top: 0;
    z-index: 20;
}

.system-banner {
    border-bottom: 1px solid #2b3344;
    background: rgba(0, 229, 255, .12);
    position: relative;
}

.banner-row {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-row {
    min-height: 0;
    height: 0;
    overflow: hidden;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 58px;
    width: auto;
    display: block;
}

.top-nav {
    display: flex;
    gap: 22px;
}

.top-nav a {
    color: #c4d4f1;
    text-decoration: none;
    font-weight: 600;
}

.top-nav a.active,
.top-nav a:hover {
    color: var(--turquoise);
}

.burger {
    display: none;
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #dce8ff;
    margin: 5px 0;
}

.hero {
    margin: 34px 0 20px;
}

.hero-layout {
    border: 1px solid #2a3142;
    border-left-color: #000;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* не hidden: иначе обрезается заголовок «Веда мобайл» при крупном шрифте и обводке */
    overflow: visible;
    background: linear-gradient(160deg, #141922, #0e1118 60%);
    position: relative;
}

.hero-layout::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: #000;
    z-index: 3;
    pointer-events: none;
}

.hero-layout::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: #000;
    z-index: 3;
    pointer-events: none;
}

.hero-quarter {
    padding: 28px 22px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel {
    grid-column: 2 / 5;
    min-height: 240px;
    min-width: 0;
    background: #000;
    display: grid;
    grid-template-rows: 2fr 1fr;
}

.brand-title-wrap,
.brand-slogan-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    min-width: 0;
}

.brand-slogan-wrap {
    align-items: flex-start;
    padding-top: 0;
}

/* Десктоп: одна строка «Веда мобайл»; мобилка — см. @media */
.brand-title-inner {
    display: inline;
}

.brand-title-line--top {
    display: inline;
}

.brand-title-char {
    display: inline;
}

.brand-title-line--bottom {
    display: inline;
}

.brand-title-line--bottom::before {
    content: '\00a0';
}

.brand-title {
    margin: 0;
    text-transform: none;
    font-size: clamp(48px, 8.2vw, 108px);
    line-height: 1.05;
    letter-spacing: 0.02em;
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 700;
    max-width: 100%;
    text-align: center;
    background: linear-gradient(180deg, #FFD95A 0%, #D4AF37 52%, #9C7515 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.5px #0A0A0A;
    text-shadow:
        0 0 4px rgba(255, 217, 90, 0.4),
        0 0 10px rgba(255, 217, 90, 0.25);
}

.brand-slogan {
    margin: 0;
    color: #00E5FF;
    font-size: clamp(17.34px, 2.16vw, 30.3px);
    text-align: center;
    font-weight: 500;
}

.logo-quarter {
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.logo-quarter img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

.quarter-title {
    margin: 0 0 10px;
    color: var(--turquoise);
    font-size: 13px;
    letter-spacing: .08em;
}

.tag {
    margin: 0 0 10px;
    color: var(--turquoise);
    font-size: 12px;
    letter-spacing: .14em;
}

h1 {
    margin: 0 0 14px;
    font-size: 41px;
    line-height: 1.12;
}

h2,
h3 {
    margin-top: 0;
}

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

.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vip-box {
    background:
        linear-gradient(170deg, rgba(0,102,255,.17), rgba(0,229,255,.08)),
        #101723;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vip-box p {
    margin: 0 0 8px;
    color: #ecdca9;
}

.vip-box h2 {
    margin: 0 0 10px;
    color: var(--gold-glow);
    font-size: 30px;
}

.vip-box span {
    color: #d8e7ff;
}

.section {
    padding: 20px 0 28px;
}

.numbers-showcase {
    padding-top: 8px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 !important;
}

.showcase-card {
    background:
        radial-gradient(circle at 82% 50%, rgba(0, 229, 255, .12), transparent 42%),
        linear-gradient(145deg, #121722, #0b0f17);
    border: 1px solid #2f394b;
    border-radius: 18px;
    padding: 22px 22px 18px;
}

.showcase-badge {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #3a4253;
    background: rgba(255, 255, 255, 0.06);
    color: #d4dbe8;
    font-weight: 600;
    font-size: 22px;
}

.showcase-main {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.showcase-number-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.showcase-number {
    margin: 0;
    font-size: clamp(24px, 2.48vw, 44px);
    line-height: 1.1;
    color: #2EA8FF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 56px;
    border-radius: 16px;
    text-decoration: none;
    color: #eafff9;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    padding: 0 14px;
    text-align: center;
    background: linear-gradient(180deg, #FFD95A 0%, #D4AF37 52%, #9C7515 100%);
    color: #0A0A0A;
    box-shadow:
        0 0 14px rgba(255, 217, 90, .28),
        inset 0 1px 0 rgba(255, 245, 196, .55);
}

button.showcase-action {
    border: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

body.request-modal-open {
    overflow: hidden;
}

.request-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.request-modal[hidden] {
    display: none !important;
}

.request-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.request-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 22px 20px 20px;
    border-radius: 18px;
    border: 1px solid #2f394b;
    background: linear-gradient(160deg, #141922, #0e1118);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.request-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #dce8ff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.request-modal__title {
    margin: 0 36px 10px 0;
    font-size: 22px;
    color: #e7f0ff;
}

.request-modal__hint {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
}

.request-modal__hint strong {
    color: #2EA8FF;
    font-weight: 700;
}

.showcase-price {
    margin: 16px 0 0;
    font-size: 25px;
    color: #ffffff;
}

.showcase-price span {
    color: #ffffff;
    font-weight: 500;
}

.showcase-more-wrap {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.showcase-more-btn {
    min-width: 560px;
    max-width: 100%;
    min-height: 64px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(25, 22, 18, 0.82);
    color: #e8dbc0;
    font-size: 34px;
    font-weight: 700;
    cursor: pointer;
}

.showcase-more-sub {
    margin: 0;
    color: #9aa4b5;
    font-size: 18px;
}

.btn {
    display: inline-block;
    border: 1px solid transparent;
    background: linear-gradient(90deg, var(--blue), #1a83ff);
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 0 18px rgba(46, 168, 255, .45);
}

.btn:hover {
    filter: brightness(1.05);
}

.btn-light {
    background: transparent;
    border-color: #426398;
    color: #d4e2ff;
    box-shadow: none;
}

.btn-small {
    padding: 8px 12px;
    font-size: 14px;
}

.cards-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tariff-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    border: 1px solid #2f394b;
    border-radius: 18px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background: linear-gradient(145deg, #121722, #0b0f17);
    padding: 18px 16px 16px;
}

.tariff-title {
    margin: 0 0 14px;
    font-size: 27px;
    line-height: 1.15;
    /* Как на главной: золотой градиент с обводкой */
    background: linear-gradient(180deg, #FFD95A 0%, #D4AF37 52%, #9C7515 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 4px rgba(255, 217, 90, 0.4),
        0 0 10px rgba(255, 217, 90, 0.25);
    font-weight: 700;
    /* Фиксируем высоту заголовка, чтобы список начинался на одном уровне. */
    min-height: 3.25em;
}

.tariff-feature-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.tariff-feature-list li {
    margin: 0 0 6px;
    color: #b7c8e6;
    font-size: 22px;
    line-height: 1.2;
}

.tariff-price-label {
    margin: auto 0 6px;
    color: #00E5FF;
    font-size: 27px;
    font-weight: 600;
}

.tariff-card--with-description .tariff-price-label {
    /* Увеличиваем расстояние над "Ежемесячная оплата" только для тарифов с description. */
    margin: 42px 0 6px;
}

.tariff-price-value {
    margin: 0;
    color: #00E5FF;
    font-size: 29px;
    font-weight: 700;
}

.card {
    background: #131821;
    border: 1px solid #2b3344;
    border-radius: 12px;
    padding: 16px;
}

.card h3 {
    margin-top: 0;
    color: #e7f0ff;
}

.inline-form,
.stack-form,
.filters {
    display: grid;
    gap: 10px;
}

.filters {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 20px;
    border: 1px solid #2a3142;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(160deg, #141922, #0e1118);
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #dbe7ff;
}

input,
select {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #2f3f61;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    background: #0f1420;
    color: #eaf2ff;
}

input::placeholder {
    color: #8ea4cb;
}

.flash-success,
.flash-error {
    border-radius: 8px;
    padding: 10px 12px;
}

.flash-success {
    background: rgba(0, 229, 255, .14);
    color: #8cf5ff;
    border: 1px solid rgba(0,229,255,.45);
}

.flash-error {
    background: rgba(212, 59, 59, .15);
    color: #ffb7b7;
    border: 1px solid rgba(255,112,112,.45);
}

.split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.tile {
    border: 1px solid #2b3344;
    border-radius: 12px;
    padding: 18px;
    background: #131821;
}

.tile p {
    margin: 0 0 12px;
}

.tile a {
    color: var(--blue-glow);
    text-decoration: none;
    font-weight: 700;
}

.neon {
    border-color: #22577c;
    box-shadow: 0 0 0 1px rgba(0,229,255,.18) inset;
}

.gold {
    border-color: #665326;
    box-shadow: 0 0 0 1px rgba(212,175,55,.28) inset;
}

.gold a {
    color: var(--gold-glow);
}

.site-footer {
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    clear: both;
    border-top: 2px solid rgba(0, 229, 255, 0.45);
    background: linear-gradient(90deg, #081421 0%, #0a1a28 100%);
    margin-top: auto;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    min-height: 120px;
}

.footer-strip {
    border-top: 1px solid #1d2637;
}

.footer-strip-top {
    padding: 10px 0 8px;
}

.footer-top-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.footer-left p,
.footer-note {
    margin: 0;
}

.footer-brand {
    color: #c4d4f1;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    margin: 0;
    width: 100%;
    /* На сайте домен в футере не нужен. */
    display: none !important;
}

.footer-brand-center {
    text-align: center;
}

.footer-contact {
    margin-top: 0;
    color: #c4d4f1;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.footer-note {
    color: #c4d4f1;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    white-space: normal;
}

.footer-left {
    text-align: center;
    width: 100%;
}

.footer-strip-bottom {
    border-top: none;
    padding: 4px 0 10px;
    margin-top: 0;
}

.footer-bottom-center {
    color: #c4d4f1;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.nav-toggle {
    display: none;
}

@media (max-width: 950px) {
    html {
        scroll-padding-bottom: 96px;
    }

    .logo img {
        height: 44px;
    }

    .banner-row {
        justify-content: space-between;
    }

    .burger {
        display: block;
    }

    .top-nav {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: #11151c;
        padding: 14px 16px;
        border-bottom: 1px solid #2b3344;
        flex-direction: column;
        gap: 12px;
    }

    .nav-toggle:checked ~ .top-nav {
        display: flex;
    }

    /* Весь блок героя — чёрный; иначе виден градиент #141922 между строками и вокруг заголовка */
    .hero-layout {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: stretch;
        background: #000;
        border-color: #0a0a0a;
    }

    .hero-layout::before,
    .hero-layout::after {
        background: #000;
    }

    .hero-layout .logo-quarter {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
        padding: 14px 8px 14px 12px;
    }

    /* «Серый квадрат»: вторая колонка 1-й строки была пустой — right-panel уезжал на строку 2 */
    .right-panel {
        display: contents;
    }

    .brand-title-wrap {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        padding: 12px 14px 12px 6px;
        min-height: 0;
        background: #000;
    }

    .brand-slogan-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        background: #000;
        padding-top: 4px;
        padding-bottom: 16px;
        align-self: stretch;
    }

    /* «Веда» крупнее «мобайл», буквы рядом (без растягивания space-between) */
    .brand-title {
        font-size: clamp(44px, 12vw, 64px);
        text-align: left;
        line-height: 1.05;
    }

    .brand-title-inner {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.06em;
        width: max-content;
        max-width: 100%;
    }

    .brand-title-line--top {
        display: block;
        font-size: 1.48em;
        letter-spacing: -0.045em;
        line-height: 0.95;
    }

    .brand-title-line--bottom {
        display: block;
        font-size: 1em;
        text-align: left;
    }

    .brand-title-line--bottom::before {
        content: none;
    }

    h1 {
        font-size: 32px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .showcase-main {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .showcase-action {
        min-width: 200px;
        min-height: 52px;
        font-size: 22px;
    }

    .showcase-price {
        font-size: 20px;
    }

    .tariffs-grid {
        grid-template-columns: 1fr;
    }

    .tariff-card {
        min-height: auto;
    }

    .tariff-title {
        font-size: 22px;
        min-height: 3.1em;
    }

    .tariff-feature-list li {
        font-size: 19px;
    }

    .tariff-price-label {
        margin-top: 14px;
        font-size: 21px;
    }

    .tariff-card--with-description .tariff-price-label {
        margin-top: 42px;
    }

    .tariff-price-value {
        font-size: 24px;
    }

    .showcase-more-btn {
        min-width: 300px;
        min-height: 52px;
        font-size: 26px;
    }

    .showcase-more-sub {
        font-size: 14px;
    }

    .footer-top-grid {
        gap: 8px;
        max-width: 100%;
    }

    /* Отступ от нижней панели браузера / жестовой зоны */
    .site-main {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .site-footer {
        padding-top: 22px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }

    .footer-strip-top {
        padding-top: 6px;
        padding-bottom: 14px;
    }
}
