/* ===== STACK BOX (Hero side) ===== */
.sl-service-stack-box {
    background: white;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sl-stack-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.sl-stack-val {
    font-family: var(--font-mono);
    font-weight: 700;
}
.sl-stack-val--green { color: #1F8A6B; }
.sl-stack-val--teal { color: var(--color-brand-accent-2); }
.sl-stack-val--purple { color: #7A3FC0; }

/* ===== USP GRID 2x2 ===== */
.sl-service-usp-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) {
    .sl-service-usp-grid--2x2 { grid-template-columns: 1fr; }
}

/* ===== LEVELS TABS ===== */
.sl-levels-tabs {
    display: flex;
    gap: 8px;
    background: var(--color-brand-bg);
    padding: 6px;
    border-radius: 14px;
    margin: 0 auto 20px auto;
    width: fit-content;
    justify-content: center;
}

.sl-level-tab {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-brand-text-muted);
    outline: none;
    box-shadow: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.sl-level-tab:hover {
    color: var(--color-brand-text);
}

.sl-level-tab:focus,
.sl-level-tab:active {
    outline: none;
    box-shadow: none;
}

.sl-level-tab.sl-level-tab--active,
.sl-level-tab.sl-level-tab--active:focus,
.sl-level-tab.sl-level-tab--active:active,
.sl-level-tab.sl-level-tab--active:hover {
    background: #1B4B43 !important;
    color: #ffffff !important;
}

/* Центрируем блок с табами внутри его секции */
.sl-service-section-head,
.sl-levels-tabs-wrap {
    text-align: center;
}

/* ===== LEVEL PANEL ===== */
.sl-level-panel {
    padding: 28px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    transition: opacity .18s ease;
}

@media (max-width: 800px) {
    .sl-level-panel { grid-template-columns: 1fr; }
}

.sl-level-panel .sl-package-badge {
    display: inline-flex;
    justify-self: start;
    width: auto;
    max-width: max-content;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 10px;
    letter-spacing: .04em;
    margin-bottom: 12px;
}

.sl-badge--level1 { background: rgba(31, 138, 107, 0.12); color: #1F8A6B; }
.sl-badge--level2 { background: rgba(44, 122, 123, 0.12); color: #2C7A7B; }
.sl-badge--level3 { background: rgba(122, 63, 192, 0.12); color: #7A3FC0; }

.sl-level-panel h3 {
    margin: 0;
    line-height: 1.3;
    font-size: 20px;
}

.sl-level-panel p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-brand-text-muted);
}

.sl-level-check {
    font-size: 12px;
    color: var(--color-brand-accent-2);
    font-weight: 600;
    margin-top: 12px;
}

/* ===== PACKAGE BADGE (global override for this page) ===== */
.sl-package-badge {
    display: inline-block !important;
    width: auto !important;
    white-space: nowrap;
}

/* ===== PACKAGE CARD DASHED (custom pipeline) ===== */
.sl-package-card--dashed {
    border-style: dashed;
    background: var(--color-brand-accent-soft);
}

/* ===== PRICE NOTE CARD ===== */
.sl-price-note-card {
    padding: clamp(24px, 4vw, 40px);
    margin-bottom: 32px;
}

.sl-price-note-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    align-items: start;
    margin-top: 14px;
}

.sl-price-note-grid h2 {
    margin: 0;
}

@media (max-width: 800px) {
    .sl-price-note-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sl-levels-tabs {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .sl-level-tab {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}