/* === STARTUP PAGE (/zapusk-konditsionera-spb/): APPLE x NOTHING === */
.st-main { overflow-x: clip; }

.st-section { padding: 80px 0; }
.st-section-soft { background: var(--bg-soft); }
.st-section-dark {
    background: var(--dark);
    color: #f5f5f7;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

/* BREADCRUMBS */
.st-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 18px;
}
.st-crumbs a { color: var(--muted); text-decoration: none; }
.st-crumbs a:hover { color: var(--accent); }
.st-crumbs span { opacity: 0.45; }

/* EYEBROW & HEADINGS */
.st-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.78);
}
.st-section-dark .st-eyebrow {
    color: #a1a1aa;
    border-color: var(--border-dark);
    background: rgba(255, 255, 255, 0.04);
}
.st-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
}

.st-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}
.st-h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.st-lead {
    margin: 0;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}
.st-section-dark .st-lead { color: #98989f; }

/* === HERO + RESOURCE CHART CARD === */
.st-hero {
    padding: 36px 0 64px;
    background:
        radial-gradient(circle at 84% 18%, rgba(0, 102, 204, 0.08), transparent 44%),
        radial-gradient(circle at 12% 85%, rgba(255, 107, 0, 0.06), transparent 40%),
        var(--bg);
}
.st-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
    align-items: center;
}
.st-h1 {
    margin: 14px 0 18px;
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
    color: var(--ink);
}
.st-h1 span { color: var(--warn); }
.st-sub {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.58;
    color: var(--muted);
    max-width: 550px;
}
.st-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.st-btn-primary, .st-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.18s;
    border: 1px solid transparent;
    cursor: pointer;
}
.st-btn-primary { background: var(--ink); color: #fff; }
.st-btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.st-btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.st-btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.st-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.st-pill {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 6px 11px;
    border-radius: 8px;
}

/* TELEMETRY RESOURCE CHART CARD (NOTHING DARK) */
.res-card {
    background: var(--dark);
    color: #fff;
    border-radius: 24px;
    border: 1px solid var(--border-dark);
    padding: 22px;
    box-shadow: 0 28px 60px rgba(17, 17, 19, 0.16);
}
.res-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}
.res-id {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #8e8e93;
}
.res-badge-ok {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.res-stage {
    position: relative;
    border-radius: 16px;
    background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(180deg, #121216 0%, #0b0b0e 100%);
    background-size: 28px 28px, 28px 28px, 100% 100%;
    border: 1px solid var(--border-dark);
    padding: 22px 20px 18px;
    margin-bottom: 14px;
}
.res-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: end;
    height: 175px;
    padding: 0 12px;
}
.res-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.res-bar-wrap {
    width: 100%;
    max-width: 120px;
    height: 132px;
    display: flex;
    align-items: flex-end;
    position: relative;
}
.res-bar {
    width: 100%;
    border-radius: 10px 10px 4px 4px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}
.res-bar-bad {
    height: 36px;
    background: linear-gradient(180deg, #ff5c5c 0%, #b91c1c 100%);
    box-shadow: 0 0 24px rgba(255, 92, 92, 0.25);
    animation: growBadBar 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.res-bar-good {
    height: 128px;
    background: linear-gradient(180deg, #34d399 0%, #047857 100%);
    box-shadow: 0 0 28px rgba(52, 211, 153, 0.28);
    animation: growGoodBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes growBadBar { from { height: 0; } to { height: 36px; } }
@keyframes growGoodBar { from { height: 0; } to { height: 128px; } }

.res-win-tag {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--dark);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.res-col-label {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    color: #a1a1aa;
}
.res-col-label strong { display: block; color: #fff; font-size: 12.5px; }
.res-col-label.is-ok strong { color: #34d399; }

.res-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.res-cell {
    background: var(--dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 10px 12px;
}
.res-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c7c84;
}
.res-val {
    font-family: var(--font-mono);
    font-size: 14.5px;
    font-weight: 700;
    margin-top: 4px;
    color: #fff;
}
.res-val.is-cyan { color: var(--accent-cyan); }
.res-val.is-ok { color: #34d399; }

/* === CHEMISTRY WARNING BLOCK === */
.warn-card {
    background: #fff;
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-left: 5px solid var(--warn);
    border-radius: 22px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
    box-shadow: 0 14px 36px rgba(255, 107, 0, 0.07);
}
.warn-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--warn);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.warn-card h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.warn-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}
.warn-card p strong { color: var(--ink); }

.formula-box {
    background: var(--dark);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.formula-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #ff7b7b;
    letter-spacing: 0.1em;
}
.formula-eq {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #f4f4f5;
}
.formula-eq span { color: #ff5c5c; }
.formula-cost {
    padding-top: 10px;
    border-top: 1px solid var(--border-dark);
    font-size: 12.5px;
    color: #a1a1aa;
}
.formula-cost strong { color: #fff; font-family: var(--font-mono); }

/* === ARSENAL GRID (6 CARDS, NOTHING DARK) === */
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.arsenal-card {
    background: var(--dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.18s, transform 0.18s;
}
.arsenal-card:hover {
    border-color: rgba(0, 194, 255, 0.45);
    transform: translateY(-2px);
}
.arsenal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.arsenal-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
}
.arsenal-spec {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #d4d4d8;
}
.arsenal-card h3 {
    margin: 4px 0 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.arsenal-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #a1a1aa;
}

/* === STARTUP CALCULATOR === */
.calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}
.calc-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.calc-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
    display: block;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.model-btn {
    border: 1px solid var(--border);
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: 0.16s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.model-btn:hover { border-color: var(--ink); }
.model-btn.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}
.model-name { display: block; font-size: 15px; font-weight: 800; }
.model-area { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.model-btn.active .model-area { color: #a1a1aa; }
.model-price {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}
.model-btn.active .model-price { color: var(--accent-cyan); }

/* SERVICE ROWS */
.srv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}
.srv-row.is-base {
    background: var(--bg-soft);
}
.srv-row.is-active {
    border-color: var(--accent);
    background: rgba(0, 102, 204, 0.035);
}
.srv-row h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.srv-row p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
}
.srv-row-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.srv-row-price {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}
.srv-row-price.is-muted { color: #9ca3af; font-weight: 600; }

/* APPLE TOGGLE SWITCH */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}
.ios-switch input { opacity: 0; width: 0; height: 0; }
.ios-slider {
    position: absolute;
    inset: 0;
    background: #d4d4d8;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s;
}
.ios-slider::before {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.25s;
}
.ios-switch input:checked + .ios-slider { background: #10b981; }
.ios-switch input:checked + .ios-slider::before { transform: translateX(22px); }

/* COUNTER */
.flare-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.counter-ui {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
}
.counter-btn {
    width: 32px; height: 32px;
    border: 0;
    background: #fff;
    border-radius: 7px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.counter-btn:hover { background: var(--ink); color: #fff; }
.counter-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    min-width: 26px;
    text-align: center;
}
.flare-unit {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
}

.slider-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}
.slider-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13.5px;
    font-weight: 600;
}
.slider-val { font-family: var(--font-mono); color: var(--accent); font-weight: 700; white-space: nowrap; }
.range-input { width: 100%; accent-color: var(--accent); cursor: pointer; }

/* CALC SUMMARY CARD (DARK) */
.calc-summary {
    background: var(--dark);
    color: #fff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border-dark);
    position: sticky;
    top: 92px;
}
.sum-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
}
.sum-total {
    font-family: var(--font-mono);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 12px 0 4px;
}
.sum-breakdown {
    list-style: none;
    margin: 16px 0 18px;
    padding: 16px 0;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.5px;
    color: #b4b4bc;
}
.sum-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.sum-breakdown strong {
    font-family: var(--font-mono);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.sum-input {
    width: 100%;
    background: #0b0b0d;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
}
.sum-input:focus { border-color: var(--accent-cyan); }

.sum-actions { display: flex; flex-direction: column; gap: 10px; }
.sum-btn {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.18s;
}
.sum-btn-max { background: var(--accent); color: #fff; }
.sum-btn-max:hover { background: #0077ed; }
.sum-btn-tg {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-dark);
    color: #e4e4e7;
}
.sum-btn-tg:hover { background: #229ed9; border-color: #229ed9; color: #fff; }
.sum-vpn {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
}
.sum-note {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #7c7c84;
    text-align: center;
    line-height: 1.45;
}
.sum-note.is-ok { color: #34d399; }

/* === FAQ (ALWAYS OPEN CARDS) === */
.faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.faq-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}
.faq-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}
.faq-item h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
}
.faq-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.58;
    color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .st-hero-grid, .warn-card, .calc-grid { grid-template-columns: 1fr; }
    .arsenal-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-summary { position: static; }
    .st-head { flex-direction: column; align-items: flex-start; }
    .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .st-section { padding: 54px 0; }
    .st-hero { padding: 24px 0 46px; }
    .arsenal-grid, .model-grid { grid-template-columns: 1fr; }
    .srv-row { flex-direction: column; align-items: flex-start; }
    .srv-row-right { width: 100%; justify-content: space-between; }
    .flare-wrap { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .calc-panel, .calc-summary, .warn-card { padding: 20px; }
    .st-cta-row a { width: 100%; }
}