/* ============================================================
   pricing.css – split screen s přepínačem Veřejnost / Studenti
   ============================================================ */

/* ----- Sekce ----- */
.pricing-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.pricing-section h2 {
    font-size: 3rem;
    font-weight: 800;
    /* Fallback pro prohlížeče bez podpory gradient textu */
    color: #0066cc;
    background: linear-gradient(135deg, #1a1a1a 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
    text-align: center;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================================
   Záložky Veřejnost / Studenti – pill toggle
   ============================================================ */
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.pricing-tabs-inner {
    display: -webkit-inline-flex;
    display: inline-flex;
    background: #e8edf3;
    border-radius: 14px;
    padding: 4px;
    gap: 3px;
}

/* Fallback gap pro Safari < 14.5 (nepodporoval flex gap) */
@supports not (gap: 1px) {
    .pricing-tabs-inner > .pricing-tab + .pricing-tab {
        margin-left: 3px;
    }
    .split-steps > .split-step + .split-step {
        margin-top: 0.75rem;
    }
    .split-step > * + * {
        margin-left: 1rem;
    }
    .split-price-banner > * + * {
        margin-left: 0.5rem;
    }
    .split-service-item > * + * {
        margin-left: 0.6rem;
    }
    .split-student-footnote > * + * {
        margin-left: 0.4rem;
    }
    .split-heading-row > * + * {
        margin-left: 0.75rem;
    }
    .pricing-tab > * + * {
        margin-left: 0.45rem;
    }
}

.pricing-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.6rem;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #8a9ab0;
    transition: all .2s ease;
    white-space: nowrap;
}

.pricing-tab .material-icons {
    font-size: 1.1rem;
    transition: color .2s ease;
}

.pricing-tab:hover:not(.active) {
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.5);
}

.pricing-tab.active {
    background: white;
    color: var(--primary-blue);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* ============================================================
   Studentský režim – prohození barev levého panelu
   Tmavě modrá ↔ oranžová (z badge)
   ============================================================ */

/* Levý panel: oranžový gradient místo navy */
.pricing-split--student .split-left {
    background: linear-gradient(160deg, #d97706 0%, #f97316 100%);
}

/* Nadpis pravé části: oranžový */
.pricing-split--student .split-right-heading {
    color: #ea580c;
}

/* Badge: bílá s černým textem pro studentský režim */
.pricing-split--student .split-badge {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Čísla kroků: bílé kolečko s tmavým číslem */
.pricing-split--student .split-step-num {
    background: white;
    color: #1a1a1a;
}
.pricing-split--student .split-step {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

.pricing-split--student .split-step:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Tag "v ceně" / "zdarma" – tmavší na oranžovém pozadí */
.pricing-split--student .split-step-tag {
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

/* Cenový box – tmavší tón pro kontrast s oranžovou */
.pricing-split--student .split-price-box--student {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Aktivní záložka "Studenti" – oranžový akcent */
.pricing-split--student ~ * .pricing-tab[data-tab="student"].active,
.pricing-tab[data-tab="student"].active {
    color: var(--primary-blue);
}

/* ============================================================
   Split wrapper
   ============================================================ */
.pricing-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
    min-height: 480px;
    transition: box-shadow 0.3s ease;
    /* Safari: overflow:hidden ignoruje border-radius bez GPU vrstvy */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}

/* ============================================================
   Levá strana – balíček
   ============================================================ */
.split-left {
    background: linear-gradient(160deg, #0a1929 0%, var(--primary-blue) 100%);
    color: white;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    transition: background 0.4s ease;
}

.split-right {
    background: #f0f4f8;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.split-left-inner {
    padding: 2.8rem 2.5rem;
    display: flex;
    flex-direction: column;
    /* height:100% nespolehlivé v Safari uvnitř grid položky – použít flex:1 */
    flex: 1;
    min-height: 0;
}

/* ----- Nadpis s inline badge ----- */
.split-heading-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.split-heading-row h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin: 0;
}

.split-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    flex-shrink: 0;
}

.split-badge .material-icons {
    font-size: 0.85rem;
}

.split-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.8rem;
    line-height: 1.55;
}

/* ----- Kroky ----- */
.split-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.split-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    transition: background 0.2s ease;
}

.split-step:hover {
    background: rgba(255, 255, 255, 0.1);
}

.split-step-num {
    width: 28px;
    height: 28px;
    background: var(--light-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
    transition: background 0.3s ease;
}

.split-step-body {
    flex: 1;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
}

.split-step-body strong {
    display: block;
    color: white;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.split-step-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 0.1rem;
}

/* ----- Cenový box – varianta 06 ----- */
.split-price-box {
    background: rgba(255, 255, 255, 0.13);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.6rem;
}

.split-price-box--student {
    border-color: rgba(46, 138, 199, 0.5);
    background: rgba(46, 138, 199, 0.15);
}

.split-price-main {
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.split-price-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
}

.split-price-amount {
    font-family: 'Raleway', sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.split-price-banner {
    background: rgba(46, 138, 199, 0.3);
    border-top: 1px solid rgba(46, 138, 199, 0.4);
    padding: 0.55rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.split-price-banner .material-icons {
    font-size: 1rem;
    color: #a8d8f5;
    flex-shrink: 0;
}

/* Studentský banner v oranžovém tónu */
.split-price-banner--student {
    background: rgba(249, 115, 22, 0.25);
    border-top-color: rgba(249, 115, 22, 0.35);
}

.split-price-banner--student .material-icons {
    color: #fed7aa;
}

.split-right-inner {
    padding: 2.8rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

/* ----- Pozadí ikonka – skryta ----- */
.split-bg-icon {
    display: none;
}

.split-right-heading {
    font-family: 'Raleway', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.split-right-sub {
    font-size: 0.87rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ----- Seznam typů služeb – mléčné sklo místo linek ----- */
.split-services-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.split-service-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.split-service-item:last-child {
    border-bottom: none;
}

.split-service-item .material-icons {
    font-size: 1rem;
    color: #059669;
    flex-shrink: 0;
}

/* ----- Sazba box ----- */
.split-rate-box {
    margin-top: 1.6rem;
    background: #eef2f7;
    border: 1.5px solid var(--primary-blue);
    border-radius: 10px;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.split-rate-box--student {
    border-color: #f97316;
    background: #fff7ed;
}

.split-rate-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
}

.split-rate-box--student .split-rate-label {
    color: #c2410c;
}

.split-rate-val {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.split-rate-box--student .split-rate-val {
    color: #ea580c;
}

/* ----- Studentská footnote ----- */
.split-student-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: #999;
    line-height: 1.5;
}

.split-student-footnote .material-icons {
    font-size: 0.95rem;
    color: #2E8AC7;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ----- Platnost ----- */
.pricing-validity {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .pricing-section {
        padding: 3rem 0;
    }

    .pricing-section h2 {
        font-size: 2rem;
    }

    .pricing-tabs {
        width: auto;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .pricing-tab {
        padding: 0.6rem 1.1rem;
        font-size: 0.88rem;
    }

    .pricing-split {
        grid-template-columns: 1fr;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .split-left-inner,
    .split-right-inner {
        padding: 2rem 1.5rem;
    }

    .split-heading-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .split-price-amount {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .pricing-tab {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
        gap: 0.3rem;
    }

    .pricing-tab .material-icons {
        font-size: 1rem;
    }

    .split-price-amount {
        font-size: 1.6rem;
    }

    .split-rate-val {
        font-size: 1.5rem;
    }
}
