/* ==========================================================================
   INDIVIDUÁLNÍ DOUČOVÁNÍ – styly pro individualni.html (a individualni_ru.html)
   Načítat AŽ PO style.css. Všechny třídy mají prefix .ix- a jsou omezené na
   .page-individual, ostatní stránky se nemění.

   Stejný jazyk jako domovská stránka a ostatní přípravné stránky (tabule +
   světlý sešit), v zelených barvách osobního doučování. Oranžová zůstává
   barvou hlavní akce napříč celým webem.
   ========================================================================== */

.page-individual {
    --ix-board: #06251d;
    --ix-board-line: rgba(255, 255, 255, 0.07);
    --ix-chalk: #e7fbf3;
    --ix-chalk-muted: #a6cfc0;
    --ix-soft: #67d0ad;
    --ix-primary: #017550;
    --ix-tint: #e6f7f0;
    --ix-tint-2: #cdeee1;
    --ix-amber: #f98a0c;
    --ix-ink: #1e293b;
    --ix-muted: #55657a;
    --ix-line: #e2e8f0;
    --ix-paper: #f6fbf9;
}

/* --- Reset globálních pravidel ze style.css ------------------------------ */
body.page-individual main.ix-main {
    display: block;
    padding: 0;
    min-height: 0;
    flex-shrink: 0;
}

.ix-main section {
    scroll-margin-top: 72px;
}

.ix-main h1,
.ix-main h2,
.ix-main h3 {
    margin: 0;
    padding: 0;
    color: var(--ix-primary);
}

.ix-main h2 {
    text-align: inherit;
}

.ix-main h2::after {
    display: none;
}

.ix-main ul,
.ix-main ol {
    list-style: none;
}

/* ==========================================================================
   Společné komponenty
   ========================================================================== */
.ix-sec {
    padding: clamp(64px, 9vw, 112px) 0;
}

.ix-alt {
    background: var(--ix-paper);
}

.ix-dark {
    background-color: var(--ix-board);
    background-image:
        linear-gradient(var(--ix-board-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ix-board-line) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--ix-chalk);
}

.ix-main .ix-dark h1,
.ix-main .ix-dark h2,
.ix-main .ix-dark h3 {
    color: #ffffff;
}

.ix-head {
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.ix-main .ix-h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.ix-sub {
    margin-top: 16px;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ix-muted);
}

.ix-dark .ix-sub {
    color: var(--ix-chalk-muted);
}

.ix-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ix-primary);
}

.ix-eyebrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ix-soft);
}

.ix-dark .ix-eyebrow {
    color: var(--ix-chalk-muted);
}

.ix-dark .ix-eyebrow::before {
    background: var(--ix-amber);
}

/* --- Tlačítka ------------------------------------------------------------ */
.ix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ix-btn-amber {
    background: var(--ix-amber);
    color: var(--ix-board);
}

.ix-btn-amber:hover {
    background: #ffa03a;
}

.ix-btn-ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.ix-btn-ghost:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.ix-btn-outline {
    border-color: var(--ix-primary);
    color: var(--ix-primary);
}

.ix-btn-outline:hover {
    background: var(--ix-primary);
    color: #ffffff;
}

.ix-btn:focus-visible,
.ix-chip:focus-visible,
.ix-channel:focus-visible {
    outline: 3px solid var(--ix-primary);
    outline-offset: 3px;
}

.ix-dark .ix-btn:focus-visible,
.ix-dark .ix-chip:focus-visible,
.ix-dark .ix-channel:focus-visible {
    outline-color: #ffffff;
}

/* ==========================================================================
   1) ÚVOD
   ========================================================================== */
.ix-hero {
    /* clamp misto čistého 100vh - viz vysvětlení u .hero-split ve style.css */
    min-height: clamp(560px, 100vh, 900px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    /* pevných 110px nahoře (stejně jako .hero-split u cermat/cvut/uk),
       ať se eyebrow tag na tabletových šířkách neschová pod fixní navigaci */
    padding: 110px 0 clamp(56px, 8vw, 104px);
}

.ix-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}

.ix-main .ix-hero h1 {
    max-width: 12em;
    margin-bottom: 24px;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.ix-lead {
    max-width: 34em;
    margin-bottom: 36px;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--ix-chalk-muted);
}

.ix-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ix-hero .hero-facts {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.ix-hero .hero-fact:not(:first-child) {
    border-left-color: rgba(255, 255, 255, 0.16);
}

.ix-hero .hero-fact strong {
    color: var(--ix-chalk);
}

.ix-hero .hero-fact span {
    color: var(--ix-chalk-muted);
}

/* ==========================================================================
   2) PROČ INDIVIDUÁLNÍ LEKCE – tři sliby z úvodu
   ========================================================================== */
.ix-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ix-pillar {
    padding: 32px 28px;
    border: 1px solid var(--ix-line);
    border-radius: 24px;
    background: #ffffff;
}

.ix-pillar-ico {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--ix-tint);
    font-size: 1.35rem;
    color: var(--ix-primary);
}

.ix-main .ix-pillar h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.ix-pillar p {
    color: var(--ix-muted);
    line-height: 1.65;
}

/* ==========================================================================
   3) NA CO SE ZAMĚŘÍME – tři úrovně a společný postup
   ========================================================================== */
.ix-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ix-level {
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    border: 1px solid var(--ix-line);
    border-radius: 24px;
    background: #ffffff;
}

.ix-level-n {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--ix-soft);
}

.ix-main .ix-level h3 {
    margin: 20px 0 10px;
    font-size: 1.45rem;
}

.ix-level p {
    color: var(--ix-muted);
    line-height: 1.65;
}

.ix-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.ix-tags li {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--ix-tint);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ix-primary);
}

.ix-method {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 24px;
    padding: 28px 32px;
    border-radius: 24px;
    background-color: var(--ix-board);
    background-image:
        linear-gradient(var(--ix-board-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ix-board-line) 1px, transparent 1px);
    background-size: 32px 32px;
}

.ix-method-ico {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(249, 138, 12, 0.16);
    font-size: 1.35rem;
    color: var(--ix-amber);
}

.ix-main .ix-method h3 {
    margin-bottom: 4px;
    font-size: 1.3rem;
    color: #ffffff;
}

.ix-method p {
    color: var(--ix-chalk-muted);
    line-height: 1.6;
}

/* ==========================================================================
   5) CENÍK
   ========================================================================== */
.ix-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.ix-price {
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
    border: 1px solid var(--ix-line);
    border-radius: 24px;
    background: #ffffff;
}

.ix-price-tag {
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--ix-tint);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ix-primary);
}

.ix-price-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1;
    color: var(--ix-primary);
}

.ix-price-unit {
    margin: 6px 0 22px;
    color: var(--ix-muted);
}

.ix-price ul {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.ix-price li {
    position: relative;
    padding-left: 28px;
}

.ix-price li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 12px;
    height: 7px;
    transform: rotate(-45deg);
    border-left: 2.5px solid var(--ix-primary);
    border-bottom: 2.5px solid var(--ix-primary);
}

.ix-price .ix-btn {
    margin-top: auto;
}

.ix-price-main {
    margin: -14px 0;
    padding: 50px 32px;
    border-color: var(--ix-primary);
    background: var(--ix-primary);
    color: #ffffff;
}

.ix-price-main .ix-price-tag {
    background: var(--ix-amber);
    color: var(--ix-board);
}

.ix-price-main .ix-price-amount {
    color: #ffffff;
}

.ix-price-main .ix-price-unit {
    color: #d6f1e6;
}

.ix-price-main li::before {
    border-color: var(--ix-amber);
}

/* ==========================================================================
   4) JAK PROBÍHÁ LEKCE
   ========================================================================== */
.ix-steps {
    --g: 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--g);
    max-width: 1000px;
    margin: 0 auto;
}

.ix-steps li {
    position: relative;
    padding-top: 48px;
    text-align: center;
}

.ix-steps li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: calc(100% + var(--g));
    height: 2px;
    background: #cbd5e1;
}

.ix-steps li:last-child::before {
    display: none;
}

.ix-steps li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ix-primary);
    box-shadow: 0 0 0 5px var(--ix-paper);
}

.ix-step-n {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--ix-soft);
}

.ix-main .ix-steps h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.ix-steps p {
    max-width: 32ch;
    margin: 0 auto;
    color: var(--ix-muted);
}

/* ==========================================================================
   6) VÝZVA K AKCI
   ========================================================================== */
.ix-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ix-channel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-weight: 600;
    color: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ix-channel:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.ix-others {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 14px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ix-others-label {
    margin-right: 6px;
    font-weight: 600;
    color: var(--ix-chalk-muted);
}

.ix-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    color: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ix-chip::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c);
}

.ix-chip:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* --- 6) Anketa - stejné tabulové pozadí jako hero, ať je vidět nová sekce */
.ix-anketa {
    background-color: var(--ix-board);
    background-image:
        linear-gradient(var(--ix-board-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ix-board-line) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* .main-footer má sitewide margin-top: 10px - na tmavé anketě by pod ní
   probleskl bílý pruh, tady ho proto vypínáme */
body.page-individual .main-footer {
    margin-top: 0;
}

@media (min-width: 769px) {
    .ix-anketa .mini-poll-grid {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

.ix-anketa-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 40px;
    color: var(--ix-ink);
}

.ix-main .ix-anketa-intro h2 {
    color: var(--ix-primary);
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0 0 12px;
}

.ix-anketa-intro .ix-sub {
    color: var(--ix-muted);
    margin: 0 0 28px;
    font-size: 1rem;
}

.ix-anketa-intro .ix-cta-actions {
    justify-content: flex-start;
    margin-bottom: 28px;
}

.ix-anketa-intro .ix-channel {
    border-color: var(--ix-line);
    color: var(--ix-ink);
}

.ix-anketa-intro .ix-channel:hover {
    border-color: var(--ix-primary);
    background: var(--ix-tint);
}

.ix-anketa-intro .ix-others {
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid var(--ix-line);
}

.ix-anketa-intro .ix-others-label {
    color: var(--ix-muted);
}

.ix-anketa-intro .ix-chip {
    border-color: var(--ix-line);
    color: var(--ix-ink);
}

.ix-anketa-intro .ix-chip:hover {
    border-color: var(--ix-primary);
    background: var(--ix-tint);
}

/* ==========================================================================
   RESPONZIVITA
   ========================================================================== */
@media (max-width: 1000px) {
    .ix-price-main {
        margin: 0;
        padding: 36px 32px;
    }
}

@media (max-width: 900px) {
    .ix-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ix-pillars,
    .ix-levels,
    .ix-prices {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 720px) {
    .ix-head {
        text-align: left;
    }

    .ix-steps {
        --g: 0px;
        grid-template-columns: 1fr;
        gap: 40px 0;
    }

    .ix-steps li {
        padding: 0 0 0 48px;
    }

    .ix-steps li::before {
        top: 12px;
        left: 9px;
        right: auto;
        width: 2px;
        height: calc(100% + 40px);
    }

    .ix-steps li::after {
        display: none;
    }

    .ix-cta-actions,
    .ix-others {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    /* Dost místa na to, aby nadpis nezajížděl pod fixní navigaci, a ať se
       na mobilu vejde nadpis + tlačítko + obrázek na jednu obrazovku bez
       scrollování - popisný text a checklist proto na mobilu schováme. */
    .ix-hero {
        padding-top: 100px;
        padding-bottom: 32px;
    }

    .ix-hero-grid {
        gap: 24px;
    }

    .ix-lead,
    .hero-facts {
        display: none;
    }

    .ix-pillar,
    .ix-level {
        padding: 26px 22px 24px;
    }

    .ix-price,
    .ix-price-main {
        padding: 30px 24px;
    }

    .ix-method {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 16px;
        padding: 22px 20px;
    }

    .ix-method-ico {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .ix-cta-row .ix-btn,
    .ix-cta-actions .ix-btn {
        width: 100%;
    }
}


/* Nová patička, kontaktní pruh a pořadí hero na mobilu (odznak, záhlaví, fotka, tlačítko) */
body.page-individual .main-footer {
    margin-top: 0;
}

@media (max-width: 900px) {
    .ix-hero-text {
        display: contents;
    }

    .ix-hero-grid {
        gap: 28px;
    }

    .ix-hero-text > .ix-eyebrow { order: 1; }
    .ix-hero-text > h1 { order: 2; }
    .ix-hero-text > .ix-lead { order: 3; margin-bottom: 0; }
    .ix-hero-grid > .hero-visual-frame { order: 4; }
    .ix-hero-text > .ix-cta-row { order: 5; }
    .ix-hero-text > .hero-facts { order: 6; }
}
