/* ============================================================
   MK-net rate constructor — design tokens
   ============================================================ */
:root {
    /* Палитра */
    --bg: #f6f7fb;
    --paper: #ffffff;
    --paper-2: #eef1f7;
    --fg: #0b1530;
    --fg-2: #1f2a44;
    --muted: #5b6577;
    --muted-2: #8b94a7;
    --border: #e4e8f0;
    --border-strong: #cdd5e2;

    --brand: #1955f6;
    --brand-600: #1648d6;
    --brand-700: #103bb1;
    --brand-50: #eaf0ff;
    --brand-100: #d8e3ff;

    --accent: #16a37b;        /* успех, «бесплатно» */
    --accent-50: #e6f6ef;
    --hit: #ff7a1a;           /* badge ХИТ */
    --hit-50: #ffe9d6;

    /* === 3 СЛОЯ ГЛУБИНЫ === */
    /* L1 — light layer: декор, вторичные блоки */
    --shadow-l1: 0 1px 2px rgba(11, 21, 48, .03);
    /* L2 — medium layer: карточки, шаги, секции */
    --shadow-l2: 0 1px 2px rgba(11, 21, 48, .04), 0 6px 16px rgba(11, 21, 48, .05);
    --shadow-l2-hover: 0 1px 2px rgba(11, 21, 48, .04), 0 12px 28px rgba(11, 21, 48, .08);
    /* L3 — strong layer: summary-блок, активные карточки, glow */
    --shadow-l3: 0 1px 2px rgba(11, 21, 48, .04), 0 12px 32px rgba(11, 21, 48, .08), 0 32px 80px rgba(25, 85, 246, .08);
    --glow-brand: 0 0 0 4px rgba(25, 85, 246, .14), 0 12px 32px rgba(25, 85, 246, .18);
    --glow-brand-soft: 0 0 0 1px rgba(25, 85, 246, .12), 0 8px 24px rgba(25, 85, 246, .12);
    --glow-cta: 0 1px 2px rgba(25, 85, 246, .12), 0 10px 28px rgba(25, 85, 246, .35), 0 20px 56px rgba(25, 85, 246, .22);

    /* legacy aliases — не удаляем чтобы не править весь файл */
    --shadow-xs: var(--shadow-l1);
    --shadow-sm: var(--shadow-l2);
    --shadow-md: var(--shadow-l2-hover);
    --shadow-lg: var(--shadow-l3);

    --radius-card: 22px;
    --radius-lg: 28px;
    --radius-input: 12px;
    --radius-pill: 999px;

    --gutter: clamp(20px, 4vw, 40px);
    --ease: cubic-bezier(.22, .61, .36, 1);

    font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(25, 85, 246, .07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 30%, rgba(22, 163, 123, .04) 0%, transparent 50%),
        linear-gradient(180deg, #f5f8ff 0%, var(--bg) 320px);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; }

/* ============================================================
   HEADER (бренд + телефон + Чат поддержки) — frosted-glass при скролле
   ============================================================ */
.site-header {
    width: 100%;
    background: rgba(255, 255, 255, .55);
    border-bottom: 1px solid transparent;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: none;
    transition: padding .25s var(--ease),
                background .25s var(--ease),
                border-color .25s var(--ease),
                box-shadow .3s var(--ease),
                backdrop-filter .25s var(--ease);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}
.site-header.is-scrolled {
    padding: 12px var(--gutter);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: rgba(228, 232, 240, .85);
    box-shadow: 0 4px 24px rgba(11, 21, 48, .04);
}
.site-header .brand img {
    transition: width .25s var(--ease), height .25s var(--ease);
}
.site-header.is-scrolled .brand img {
    width: 30px; height: 30px;
}
.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fg);
    font-weight: 700;
    letter-spacing: -.01em;
}
.site-header .brand img { width: 38px; height: 38px; display: block; }
.site-header .brand span { font-size: 16px; }
.header-end {
    display: flex;
    align-items: center;
    gap: 18px;
}
.site-header .nav {
    display: flex; gap: 22px; align-items: center;
}
.site-header .nav a {
    text-decoration: none; color: var(--muted);
    font-size: 14px; font-weight: 500;
    transition: color .2s var(--ease);
}
.site-header .nav a:hover { color: var(--fg); }
.site-header .contact {
    display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15;
}
.site-header .contact-phone {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}
.site-header .contact-phone:hover { text-decoration: underline; }
.site-header .contact-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
}
/* Чат поддержки — Telegram-стиль */
.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -.005em;
    transition: filter .2s var(--ease), transform .15s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 1px 2px rgba(34, 158, 217, .15), 0 6px 18px rgba(34, 158, 217, .28);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-support:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-support:active { transform: scale(.97); }
.btn-support svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 720px) {
    .site-header .nav { display: none; }
    .header-end { gap: 12px; }
    .btn-support span { display: none; }
    .btn-support { padding: 10px; }
    .btn-support svg { width: 18px; height: 18px; }
}
@media (max-width: 480px) {
    .site-header .brand span { display: none; }
    .header-end { gap: 10px; }
}
@media (max-width: 380px) {
    .site-header .contact-sub { display: none; }
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
main {
    padding: 36px 0 80px;
}
.page-head {
    margin: 0 0 28px;
}
.page-head .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--brand-50);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}
.page-head .kicker .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
    animation: pulse 2.4s ease-in-out infinite;
}
.page-head h1 {
    margin: 14px 0 6px;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--fg);
}
.page-head .lead {
    margin: 0;
    font-size: 17px;
    color: var(--muted);
    max-width: 720px;
}

/* ============================================================
   LAYOUT 65 / 35
   ============================================================ */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.layout > * { min-width: 0; }
@media (max-width: 980px) {
    .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ============================================================
   STEP HERO IMAGE (только в шаге 1, по ширине карточки)
   ============================================================ */
.step-hero {
    margin: -26px -26px 22px;
    background: #eaf0ff;
    border-top-left-radius: var(--radius-card);
    border-top-right-radius: var(--radius-card);
    overflow: hidden;
    line-height: 0;
}
.step-hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   STEP (карточка-шаг)
   ============================================================ */
.step {
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    border: 1px solid #e7ecf5;
    border-radius: var(--radius-card);
    padding: 26px;
    box-shadow: var(--shadow-l2);
    margin-bottom: 18px;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step.is-active { border-color: #d8e3ff; }
.step:not(.is-visible) { display: none; }
.step.is-visible {
    animation: step-reveal .35s var(--ease) both;
}
@keyframes step-reveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.step.is-active { box-shadow: var(--shadow-sm); }
.step.is-locked .step-body { opacity: .55; pointer-events: none; }

.step-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.step-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.step.is-done .step-num {
    background: var(--accent);
    color: #fff;
}
.step-title {
    flex: 1;
    min-width: 0;
}
.step-title h2 {
    margin: 0 0 2px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.005em;
    color: var(--fg);
}
.step-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}
.step-summary {
    color: var(--muted);
    font-size: 13.5px;
    text-align: right;
    min-width: 0;
}
@media (max-width: 600px) {
    .step-summary {
        font-size: 12px;
        max-width: 50%;
        line-height: 1.3;
    }
}
.step-summary strong {
    color: var(--fg);
    font-weight: 600;
}

/* ============================================================
   OPTIONS GRID
   ============================================================ */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.options.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
    .options.cols-3, .options.cols-2 { grid-template-columns: 1fr; }
}

.option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border: 1.5px solid #e7ecf5;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: transform .18s var(--ease), border-color .2s var(--ease),
                box-shadow .25s var(--ease), background .2s var(--ease);
    min-height: 100%;
    box-shadow: var(--shadow-l1);
    overflow: hidden;
}
.option::before {
    /* лёгкий highlight сверху, чтобы карточка «дышала» */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(25, 85, 246, .04), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.option:hover {
    transform: translateY(-3px);
    border-color: #d0dcf5;
    box-shadow: var(--shadow-l2-hover);
}
.option:hover::before { opacity: 1; }
.option:active { transform: scale(.985); }
.option.is-selected {
    border-color: var(--brand);
    background: linear-gradient(180deg, #f3f7ff 0%, #fff 100%);
    box-shadow: var(--glow-brand);
    transform: translateY(-2px);
}
.option.is-selected::before {
    opacity: 1;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(25, 85, 246, .12), transparent 70%);
}
/* «ХИТ» — выделить даже без выбора, средний уровень контраста */
.option:has(.badge-hit):not(.is-selected) {
    background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
    border-color: #d8e3ff;
    box-shadow: var(--shadow-l2);
}
.option.is-selected .option-check { opacity: 1; transform: scale(1); }
.option-name {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--fg);
    letter-spacing: -.005em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.option-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}
.option-price {
    margin-top: auto;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
}
.option-price small {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}
.option-price.is-free { color: var(--accent); }

/* Шаг 1 «Скорость интернета» — цена крупнее (×1.5), жирнее, monthly emphasis */
[data-step="internet"] .option-price {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    padding-top: 14px;
    line-height: 1;
    background: linear-gradient(180deg, var(--fg) 0%, var(--fg-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-step="internet"] .option.is-selected .option-price {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-step="internet"] .option-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
    margin-left: 2px;
    letter-spacing: 0;
}
.option-extra {
    font-size: 12px;
    color: var(--muted);
}
.option-check {
    position: absolute;
    top: 12px; right: 12px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.option-check svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.6; }

/* badge */
.badge-hit {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    background: var(--hit-50);
    color: var(--hit);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.badge-best {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ============================================================
   TOOLTIP
   ============================================================ */
.tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    margin-left: 4px;
    transition: background .15s var(--ease), color .15s var(--ease);
    flex-shrink: 0;
}
.tip:hover { background: var(--brand-50); color: var(--brand); }
.tip[data-tip]::after,
.tip[data-tip]::before {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s var(--ease), transform .15s var(--ease);
    z-index: 200;
}
.tip[data-tip]::after {
    content: attr(data-tip);
    transform: translate(-50%, 4px);
    width: max-content;
    max-width: 240px;
    padding: 10px 12px;
    background: var(--paper);
    color: var(--fg);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: left;
    white-space: normal;
}
.tip[data-tip]::before {
    content: '';
    transform: translate(-50%, 4px);
    border: 6px solid transparent;
    border-top-color: var(--paper);
    margin-bottom: -2px;
    bottom: calc(100% + 4px);
    filter: drop-shadow(0 1px 0 var(--border));
}
.tip[data-tip]:hover::after,
.tip[data-tip]:hover::before,
.tip[data-tip]:focus::after,
.tip[data-tip]:focus::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================================
   SUMMARY (sticky right)
   ============================================================ */
.summary {
    position: sticky;
    top: 90px;
    background: linear-gradient(180deg, #fff 0%, #fafcff 100%);
    border: 1px solid #dde7ff;
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-l3);
    position: sticky;
    overflow: hidden;
}
.summary::before {
    /* мягкое свечение сверху */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 30% at 50% 0%, rgba(25, 85, 246, .06), transparent 70%);
    pointer-events: none;
}
.summary > * { position: relative; z-index: 1; }
@media (max-width: 980px) {
    .summary { position: static; display: none; }
}

/* ============================================================
   MOBILE STICKY BAR (видна только на узких экранах)
   ============================================================ */
.summary-mobile {
    display: none;
}
@media (max-width: 980px) {
    .summary-mobile {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 60;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
        background: rgba(255, 255, 255, .92);
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -10px 28px rgba(11, 21, 48, .08);
        align-items: center;
        gap: 12px;
    }
    main { padding-bottom: 110px; } /* запас под bar */
}
.sm-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.sm-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: color .25s var(--ease);
}
.sm-price.is-flash { color: var(--brand); }
.sm-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 2px;
}
.sm-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sm-cta {
    flex-shrink: 0;
    border: 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
    color: #fff;
    font: inherit; font-weight: 700; font-size: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: filter .2s var(--ease), transform .1s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 1px 2px rgba(25, 85, 246, .12), 0 8px 22px rgba(25, 85, 246, .35);
    white-space: nowrap;
}
.sm-cta:hover { filter: brightness(1.06); }
.sm-cta:active { transform: scale(.97); }
.sm-cta:disabled {
    background: var(--paper-2);
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
}
.summary-promo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}
.summary-promo .price {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--accent) 0%, #14b67c 60%, #0aa168 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 24px rgba(22, 163, 123, .15);
}
.summary-promo .price-strike {
    font-size: 17px;
    color: var(--muted);
    text-decoration: line-through;
    white-space: nowrap;
}
.summary-promo-sub {
    font-size: 13.5px;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 18px;
}
.summary-monthly {
    border-top: 1px dashed var(--border);
    padding-top: 16px;
    margin-bottom: 14px;
}
.summary-monthly-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.summary-monthly-row .label {
    color: var(--muted);
    font-size: 13.5px;
}
.summary-monthly-row .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: color .25s var(--ease);
}
.summary-monthly-row .value.is-flash { color: var(--brand); }
.summary-monthly-hint {
    margin: 0;
    color: var(--muted-2);
    font-size: 12.5px;
}

.summary-list {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.summary-list li {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: baseline;
    font-size: 14px;
    color: var(--fg);
}
.summary-list li.is-empty { color: var(--muted-2); }
.summary-list .ic-bullet {
    color: var(--brand);
    font-size: 12px;
    line-height: 1.2;
}
.summary-list .li-name { color: var(--muted); }
.summary-list .li-name strong {
    color: var(--fg);
    font-weight: 600;
}
.summary-list .li-price {
    font-weight: 600;
    color: var(--fg);
    white-space: nowrap;
}
.summary-list .li-price.is-free { color: var(--accent); }

.summary-upfront {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.summary-upfront-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.summary-upfront-row .label {
    color: var(--muted);
    font-size: 13.5px;
}
.summary-upfront-row .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
}
.summary-upfront-detail {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.summary-upfront-detail li {
    display: flex; justify-content: space-between; gap: 10px;
}

.btn-cta {
    position: relative;
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 22px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .12s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
    box-shadow: var(--glow-cta);
    letter-spacing: -.005em;
    overflow: hidden;
}
.btn-cta::before {
    /* highlight сверху */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,.15), transparent);
    pointer-events: none;
}
.btn-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-cta:active { transform: scale(.985) translateY(0); }
.btn-cta:disabled {
    background: var(--paper-2);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    filter: none; transform: none;
}
.btn-cta:disabled::before { display: none; }

.summary-foot {
    margin: 14px 0 0;
    text-align: center;
    color: var(--muted-2);
    font-size: 12.5px;
}

/* ============================================================
   FOOTER (как у mknet.biz)
   ============================================================ */
.site-footer {
    background: #0b1530;
    color: #aab3c8;
    padding: 44px 0 28px;
    margin-top: 40px;
}
.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease);
}
.site-footer a:hover { color: #fff; }
.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}
@media (max-width: 980px) {
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .footer-cols { grid-template-columns: 1fr; gap: 22px; }
}
.footer-col h4 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.footer-col ul {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 14px;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    font-weight: 700; color: #fff; font-size: 16px;
}
.footer-brand img { width: 30px; height: 30px; }
.footer-about {
    font-size: 13.5px; line-height: 1.55; color: #aab3c8; margin: 0;
    max-width: 320px;
}
.footer-bot {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: #6c7794;
    font-size: 12.5px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed; inset: 0;
    background: rgba(11, 21, 48, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}
.modal.is-open { display: flex; animation: modalFadeIn .25s var(--ease); }
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp .3s var(--ease);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-card h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
}
.modal-card p.modal-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}
.modal-recap {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: var(--fg);
}
.modal-recap-row { display: flex; justify-content: space-between; gap: 10px; }
.modal-recap-row + .modal-recap-row { margin-top: 4px; }
.modal-recap-row .v { font-weight: 600; white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-2);
}
.field input, .field textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input);
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--fg);
    background: var(--paper);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
    width: 100%;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(25, 85, 246, .12);
}
.field input.is-error, .field textarea.is-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}
.field-error {
    color: #dc2626;
    font-size: 12.5px;
    min-height: 0;
}
.field-error:empty { display: none; }

.modal-actions {
    display: flex; gap: 10px; margin-top: 8px;
}
.btn-secondary {
    background: var(--paper-2);
    color: var(--fg);
    border: 0;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    font: inherit; font-weight: 600; font-size: 14.5px;
    transition: background .15s var(--ease);
}
.btn-secondary:hover { background: var(--border); }
.modal-actions .btn-cta { flex: 1; padding: 14px 18px; font-size: 15px; }

/* THANK YOU */
.thanks-icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--accent-50);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.thanks-icon svg { width: 36px; height: 36px; }
.modal-thanks { text-align: center; }
.modal-thanks h3 { margin-bottom: 8px; }
.modal-thanks p { color: var(--muted); margin: 0 0 18px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.92); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
