/* ============================================
   Screen 2b: Варианты развертывания
   Prefix: .s2b-
   ============================================ */

/* === Section wrapper === */
.s2b-section {
    padding: 80px 0 60px;
    text-align: center;
}

/* === Hero: title + subtitle === */
.s2b-hero {
    margin-bottom: 48px;
}

.s2b-title {
    font-size: clamp(2.4rem, 3.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 16px;
}

.s2b-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === Cards grid === */
.s2b-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Individual card === */
.s2b-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition:
        transform 0.3s var(--ease-out-expo),
        border-color 0.3s ease,
        box-shadow 0.3s ease;

    /* Scroll-in animation initial state */
    opacity: 0;
    transform: translateY(40px);
}

.s2b-card.s2b-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.s2b-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--accent-border);
    box-shadow:
        0 8px 32px rgba(87, 243, 87, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === Card icon === */
.s2b-card__icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 4px;
}

/* === Card header: title + subtitle === */
.s2b-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.s2b-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.s2b-card__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
}

/* === Card description === */
.s2b-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* === Tag / badge === */
.s2b-card__tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: auto;
}

/* === Light theme overrides === */
:root.light-theme .s2b-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

:root.light-theme .s2b-card:hover {
    border-color: var(--accent-dark);
    box-shadow:
        0 8px 32px rgba(20, 170, 20, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

:root.light-theme .s2b-title {
    color: var(--text-primary);
}

:root.light-theme .s2b-subtitle {
    color: var(--text-secondary);
}

/* === Responsive: tablet → 2 columns === */
@media (max-width: 900px) {
    .s2b-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Responsive: mobile → single column === */
@media (max-width: 768px) {
    .s2b-section {
        padding: 56px 0 40px;
    }

    .s2b-cards {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .s2b-card {
        padding: 28px 24px;
    }

    .s2b-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
}

/* === Multiple tags === */
.s2b-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

/* Tags: capitalize */
.s2b-card__tag {
    text-transform: capitalize;
}

/* ===== Light Theme Overrides ===== */
:root.light-theme .s2b-card {
    background: rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.08);
}

:root.light-theme .s2b-card__tag {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #333;
}

:root.light-theme .s2b-title {
    color: #0a0a14;
}

:root.light-theme .s2b-subtitle {
    color: #444455;
}
