:root {
    --bg: #f6fbff;
    --surface: rgba(255, 255, 255, .86);
    --surface-solid: #ffffff;
    --text: #122235;
    --muted: #66758a;
    --border: rgba(18, 34, 53, .12);
    --brand: #2fb7b0;
    --brand-dark: #117d84;
    --accent: #ff8a5c;
    --accent-2: #7c6cff;
    --yellow: #ffd166;
    --shadow: 0 24px 70px rgba(34, 67, 98, .16);
    --soft-shadow: 0 14px 35px rgba(34, 67, 98, .11);
    --hero-overlay: linear-gradient(105deg, rgba(12, 29, 49, .94), rgba(20, 78, 91, .78) 50%, rgba(255, 138, 92, .38));
}

:root[data-theme="dark"] {
    --bg: #08131f;
    --surface: rgba(15, 30, 46, .86);
    --surface-solid: #0f1e2e;
    --text: #eef7ff;
    --muted: #a9b8c8;
    --border: rgba(255, 255, 255, .13);
    --brand: #51d6cf;
    --brand-dark: #22a6a0;
    --accent: #ff9b72;
    --accent-2: #a9a0ff;
    --yellow: #ffe08a;
    --shadow: 0 24px 70px rgba(0, 0, 0, .35);
    --soft-shadow: 0 14px 35px rgba(0, 0, 0, .28);
    --hero-overlay: linear-gradient(105deg, rgba(3, 11, 20, .96), rgba(9, 56, 68, .84) 52%, rgba(105, 72, 255, .4));
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(47, 183, 176, .16), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(255, 138, 92, .13), transparent 24rem),
        var(--bg);
    color: var(--text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    transition: background-color .35s ease, color .35s ease;
}

h1,
h2,
h3,
h4 {
    letter-spacing: 0;
}

h2 {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
}

a,
button {
    cursor: pointer;
}

.jumbotron {
    margin-bottom: 0 !important;
}

.section-block {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.2rem;
}

.section-heading p {
    font-size: 1.08rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--brand-dark);
    background: rgba(47, 183, 176, .13);
    border: 1px solid rgba(47, 183, 176, .22);
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.atlas-cta {
    position: relative;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 14px 30px !important;
    font-weight: 800;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(17, 125, 132, .18);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease !important;
}

.atlas-cta:hover,
.atlas-cta:focus {
    text-decoration: none;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 38px rgba(17, 125, 132, .28);
}

.atlas-cta-wide {
    width: 100%;
}

.cta-green {
    color: #0b5f62;
    background: linear-gradient(135deg, #ffffff, #dffbf8);
}

.cta-green:hover {
    color: #073d45;
    background: linear-gradient(135deg, #ffffff, #bff5ef);
}

.cta-blue {
    background: linear-gradient(135deg, #10243b, #1b6370);
    color: #ffffff;
}

.cta-blue:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0c1b2e, #117d84);
}

.cta-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .25) !important;
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.cta-glass:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .22);
}

.cta-ghost {
    border: 2px solid var(--text) !important;
    color: var(--text);
}

.cta-ghost:hover {
    color: #ffffff;
    background: var(--text);
}

#banner {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: stretch;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    background: #0f2238;
}

.hero-bg,
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-bg {
    background-image: url("/img/codeacademy-showcase.png?v=20260603");
    background-size: cover;
    background-position: center;
    filter: saturate(1.06);
    transform: scale(1.02);
}

.hero-grid {
    z-index: -2;
    background:
        var(--hero-overlay),
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    opacity: .8;
    animation: floaty 8s ease-in-out infinite;
}

.hero-orbit-one {
    width: 180px;
    height: 180px;
    right: 10%;
    top: 18%;
}

.hero-orbit-two {
    width: 94px;
    height: 94px;
    left: 9%;
    bottom: 14%;
    animation-delay: -2.5s;
}

#banner .container {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

#banner header {
    position: relative;
    z-index: 3;
    padding: .9rem 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .35rem .8rem .35rem .45rem;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .15);
    transition: transform .25s ease, background .25s ease;
}

.brand-mark:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

#banner header img {
    width: 170px;
    max-width: 100%;
}

.nav-contact,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    margin-left: .55rem;
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(16px);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.top-actions {
    position: fixed;
    top: 18px;
    right: max(18px, calc((100vw - 1140px) / 2 + 15px));
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    max-width: calc(100vw - 36px);
    padding: .35rem !important;
    border-radius: 999px;
    background: rgba(9, 24, 39, .46);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .top-actions {
    background: rgba(6, 15, 25, .72);
    border-color: rgba(255, 255, 255, .12);
}

.nav-contact {
    padding: .65rem 1.05rem;
}

.theme-toggle {
    gap: .45rem;
    padding: .65rem .95rem;
}

.nav-contact:hover,
.theme-toggle:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .22);
}

.hero-content {
    min-height: calc(92vh - 110px);
    padding-top: 3rem;
}

.hero-kicker {
    display: inline-flex;
    color: #10243b;
    background: var(--yellow);
    border-radius: 999px;
    padding: .55rem .95rem;
    font-weight: 900;
    box-shadow: 0 14px 35px rgba(255, 209, 102, .24);
}

#banner h1 {
    max-width: 820px;
    font-size: clamp(3rem, 7vw, 5.9rem);
    line-height: .98;
    text-wrap: balance;
}

#banner .lead {
    max-width: 650px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.hero-panel {
    position: relative;
    max-width: 430px;
    margin-left: auto;
    padding: 1rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
    backdrop-filter: blur(22px);
    animation: floaty 7s ease-in-out infinite;
}

.code-window {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(8, 19, 31, .88);
    color: #c9fff7;
    border: 1px solid rgba(255, 255, 255, .12);
}

.window-dots {
    display: flex;
    gap: .45rem;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, .07);
}

.window-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
}

.window-dots span:nth-child(2) {
    background: var(--yellow);
}

.window-dots span:nth-child(3) {
    background: var(--brand);
}

.code-window pre {
    margin: 0;
    padding: 1.2rem;
    color: inherit;
    font-size: .96rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.hero-metric {
    position: absolute;
    right: -22px;
    bottom: -22px;
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    border-radius: 26px;
    color: #10243b;
    background: linear-gradient(135deg, #ffffff, #ffe7b1);
    box-shadow: var(--shadow);
    transform: rotate(4deg);
}

.hero-metric strong {
    font-size: 1.45rem;
    line-height: 1;
}

.hero-metric span {
    font-weight: 800;
}

.feature-grid > [class*="col-"] {
    display: flex;
}

.info-card {
    width: 100%;
    min-height: 100%;
    margin-top: 1.4rem;
    padding: 2rem 1.3rem;
    border-radius: 22px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.info-card:hover {
    transform: translateY(-9px);
    border-color: rgba(47, 183, 176, .35);
    box-shadow: var(--shadow);
}

.info-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 1.15rem;
    transition: transform .35s ease, filter .35s ease;
}

:root[data-theme="dark"] .info-card img {
    filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(81, 214, 207, .2));
}

.info-card:hover img {
    transform: rotate(-4deg) scale(1.1);
}

.info-card h4 {
    color: var(--text);
    font-weight: 800;
    font-size: 1.12rem;
}

.feature {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.feature .container {
    position: relative;
    z-index: 1;
}

.feature h2 {
    color: inherit;
}

.feature img {
    width: 100%;
    max-width: 480px;
    filter: drop-shadow(0 24px 35px rgba(18, 34, 53, .18));
    animation: floaty 7.5s ease-in-out infinite;
}

#feature-first {
    color: var(--text);
    background:
        linear-gradient(145deg, var(--surface-solid) 0 58%, rgba(47, 183, 176, .18) 58%),
        var(--bg);
}

#feature-last {
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .22), transparent 18rem),
        linear-gradient(135deg, #14898f, #2fb7b0 55%, #ff9a6c);
}

#feature-last p {
    color: rgba(255, 255, 255, .88);
}

#price-table {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.course-grid > [class*="col-"] {
    border-radius: 28px !important;
}

.course-card {
    position: relative;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 48%);
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: var(--shadow);
}

#prva_tabulka {
    background: linear-gradient(145deg, #35a9e8, #56d2cf);
    color: #ffffff;
}

#price-table__premium {
    background: linear-gradient(145deg, #ff8a5c, #ffbf63);
    color: #ffffff;
}

#tretia_tabulka {
    background: linear-gradient(145deg, #36c778, #3ccfcf);
    color: #ffffff;
}

.featured-course {
    transform: translateY(-14px);
}

.featured-course:hover {
    transform: translateY(-22px) scale(1.02);
}

#price-table h4,
#price-table p,
#price-table li {
    position: relative;
    color: #ffffff;
}

#price-table h4 {
    font-weight: 900;
    min-height: 3rem;
}

#price-table .display-2 {
    font-size: clamp(3rem, 6vw, 4.8rem);
}

#price-table ul {
    margin-top: 1.4rem;
}

#price-table ul li {
    padding: 7px 0;
    font-weight: 700;
}

#contact {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(7, 19, 32, .96), rgba(16, 89, 98, .86)),
        url("../img/contact-bk.jpg") center / cover;
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .55;
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact h2 {
    color: #ffffff;
}

#contact p {
    color: rgba(255, 255, 255, .82);
}

#contact ul li {
    padding: 5px 0;
}

.contact-form {
    color: white;
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px);
}

#contact form label {
    font-weight: 800;
}

#contact form input,
#contact form textarea {
    min-height: 48px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
    color: white;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#contact form textarea {
    min-height: 120px;
}

#contact form input:focus,
#contact form textarea:focus {
    color: white;
    background: rgba(255, 255, 255, .16);
    border-color: var(--yellow);
    box-shadow: 0 0 0 .2rem rgba(255, 209, 102, .18);
}

#copyright {
    background: #0d1c2e;
    padding: 2rem 3rem;
}

#copyright #social-media a {
    width: 42px;
    height: 42px;
    border-radius: 99%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    transition: transform .25s ease, background .25s ease;
}

#copyright #social-media a i {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 42px;
}

#copyright #social-media a:hover {
    transform: translateY(-4px);
    background: var(--brand);
}

#tlac {
    color: #0b5f62;
}

@keyframes floaty {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -14px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 991px) {
    #banner {
        min-height: auto;
    }

    .hero-content {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .hero-panel {
        margin: 3rem auto 0;
    }

    .featured-course {
        transform: none;
    }

    .featured-course:hover {
        transform: translateY(-10px) scale(1.015);
    }
}

@media (max-width: 767px) {
    .section-block,
    .feature {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    #banner .container {
        padding-bottom: 4rem;
    }

    #banner header img {
        width: 135px;
    }

    .top-actions {
        top: 12px;
        right: 12px;
        max-width: calc(100vw - 24px);
    }

    .theme-toggle span,
    .nav-contact {
        font-size: .9rem;
    }

    .hero-actions .atlas-cta {
        width: 100%;
    }

    .hero-panel {
        border-radius: 22px;
    }

    .hero-metric {
        right: 14px;
        bottom: -28px;
        width: 98px;
        height: 98px;
        border-radius: 22px;
    }

    #feature-last .flex-md-first {
        margin-top: 1rem;
    }

    .course-card {
        margin-top: 1.25rem !important;
    }

    .contact-form {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575px) {
    #banner h1 {
        font-size: clamp(2.65rem, 15vw, 4rem);
    }

    #banner .lead {
        font-size: 1rem;
    }

    .brand-mark {
        padding: .25rem .55rem .25rem .35rem;
    }

    #banner header img {
        width: 118px;
    }

    .theme-toggle {
        width: 44px;
        padding: 0;
    }

    .theme-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .nav-contact {
        min-height: 42px;
        padding: .55rem .75rem;
        margin-left: .25rem;
    }

    .info-card {
        padding: 1.6rem 1.1rem;
    }

    #copyright {
        padding: 1.6rem 1rem;
    }
}

/* Demo projects and SEO landing pages */
.demo-projects-section {
    position: relative;
}

.demo-card-grid {
    align-items: stretch;
}

.demo-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.45rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface-solid);
    color: var(--text);
    box-shadow: var(--soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.demo-card:hover,
.demo-card:focus {
    color: var(--text);
    text-decoration: none;
    border-color: rgba(47, 183, 176, .55);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
}

.demo-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(17, 125, 132, .24);
}

.demo-label {
    color: var(--brand-dark);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.demo-card h3 {
    margin: .55rem 0 .45rem;
    font-size: 1.35rem;
    font-weight: 900;
}

.demo-card p {
    margin-bottom: 0;
    font-weight: 650;
}

.demo-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.seo-link-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.seo-link-strip a {
    border-radius: 999px;
    background: rgba(47, 183, 176, .12);
    color: var(--brand-dark);
    padding: .65rem 1rem;
    font-weight: 900;
}

.seo-link-strip a:hover {
    color: #fff;
    background: var(--brand-dark);
    text-decoration: none;
}

.seo-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(47, 183, 176, .16), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(255, 138, 92, .13), transparent 24rem),
        var(--bg);
}

.seo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
}

.seo-nav img {
    width: 180px;
    height: auto;
}

.seo-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.seo-nav-links a {
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--text);
    padding: .65rem 1rem;
    font-weight: 900;
    box-shadow: var(--soft-shadow);
}

.seo-hero {
    padding: 4rem 0 2rem;
}

.seo-hero-card {
    border-radius: 32px;
    background: #10243b;
    color: #fff;
    padding: clamp(2rem, 6vw, 4rem);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.seo-hero-card::after {
    content: "";
    position: absolute;
    right: -8rem;
    top: -8rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: rgba(47, 183, 176, .24);
}

.seo-hero-card h1 {
    position: relative;
    max-width: 880px;
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
    font-weight: 950;
    line-height: 1.05;
}

.seo-hero-card p {
    position: relative;
    max-width: 740px;
    color: rgba(255,255,255,.78);
    font-size: 1.15rem;
    font-weight: 700;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.seo-info-card,
.seo-faq-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface-solid);
    padding: 1.4rem;
    box-shadow: var(--soft-shadow);
}

.seo-info-card h2,
.seo-info-card h3,
.seo-faq-card h3 {
    font-size: 1.35rem !important;
    font-weight: 900;
}

.seo-info-card ul {
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 650;
}

.seo-cta-band {
    border-radius: 30px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.seo-cta-band h2,
.seo-cta-band p {
    color: #fff;
}

@media (max-width: 900px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }

    .seo-nav {
        align-items: flex-start;
        flex-direction: column;
    }
}

#copyright #social-media a.social-tiktok span {
    display: inline-block;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 42px;
}

/* Offer modal, catalogs and flyers */
.offer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.offer-modal.is-hidden {
    display: none;
}

.offer-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 19, 31, .68);
    backdrop-filter: blur(14px);
}

.offer-modal__panel {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(232, 255, 252, .94)),
        radial-gradient(circle at top right, rgba(255, 209, 102, .28), transparent 16rem);
    box-shadow: 0 34px 95px rgba(6, 20, 34, .42);
    padding: clamp(1.25rem, 4vw, 2.4rem);
}

.offer-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #10243b;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
}

.offer-modal__panel h2 {
    max-width: 760px;
    margin: 1rem 0;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.6rem) !important;
    line-height: 1.04;
}

.offer-modal__cards,
.catalog-grid {
    align-items: stretch;
}

.offer-modal__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.4rem 0;
}

.offer-modal__card {
    min-height: 150px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    color: var(--text);
    padding: 1.25rem;
    box-shadow: var(--soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.offer-modal__card:hover {
    border-color: rgba(47, 183, 176, .45);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.offer-modal__card span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: .9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #ffffff;
    font-weight: 900;
}

.offer-modal__card strong,
.offer-modal__card small {
    display: block;
}

.offer-modal__card strong {
    font-size: 1.15rem;
}

.offer-modal__card small {
    margin-top: .4rem;
    color: var(--muted);
    line-height: 1.5;
}

.offer-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.catalog-section {
    position: relative;
}

.catalog-card {
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface-solid);
    box-shadow: var(--soft-shadow);
    padding: 1.4rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.catalog-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, var(--brand), var(--yellow), var(--accent));
}

.catalog-card:hover {
    border-color: rgba(47, 183, 176, .38);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.catalog-card h3 {
    min-height: 3.2rem;
    margin: .8rem 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text);
}

.catalog-card p,
.catalog-card li {
    color: var(--muted);
}

.catalog-card ul {
    min-height: 5.6rem;
    padding-left: 1.1rem;
    margin: 1rem 0;
}

.catalog-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(47, 183, 176, .13);
    color: var(--brand-dark);
    padding: .35rem .8rem;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin: 1.2rem 0;
}

.price-row strong {
    color: var(--text);
    font-size: 2rem;
    font-weight: 950;
}

.old-price {
    color: #d14c4c;
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: line-through;
}

.lesson-price {
    display: inline-flex;
    border-radius: 999px;
    background: #10243b;
    color: #ffffff !important;
    padding: .45rem .85rem;
    font-weight: 900;
}

.package-details {
    margin: 1.1rem 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(47, 183, 176, .06);
    padding: .9rem;
}

.package-details summary {
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.package-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .6rem .9rem;
    margin-top: .9rem;
}

.package-grid span {
    color: var(--muted);
    font-weight: 800;
}

.package-grid strong {
    color: var(--text);
    font-weight: 950;
}

.flyer-page {
    background: #eef9fb;
}

.flyer-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    padding: 1rem;
    text-align: center;
}

.flyer-sheet {
    width: min(820px, calc(100% - 2rem));
    min-height: 1120px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.flyer-hero {
    padding: 2.4rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(8, 19, 31, .96), rgba(17, 125, 132, .88)),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
}

.flyer-hero img {
    width: 170px;
    margin-bottom: 2rem;
}

.flyer-hero h1 {
    max-width: 620px;
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 950;
    line-height: 1.04;
}

.flyer-hero p {
    max-width: 590px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.15rem;
}

.flyer-body {
    padding: 2rem 2.4rem 2.4rem;
}

.flyer-offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.flyer-offer {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
}

.flyer-offer h2 {
    font-size: 1.25rem !important;
    margin-bottom: .45rem;
}

.flyer-price {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .7rem;
    border-radius: 999px;
    background: rgba(47, 183, 176, .14);
    padding: .4rem .75rem;
    font-weight: 950;
}

.flyer-cta {
    margin-top: 1.5rem;
    border-radius: 22px;
    background: #10243b;
    color: #ffffff;
    padding: 1.25rem;
    text-align: center;
}

.flyer-cta p,
.flyer-cta a {
    color: #ffffff;
}

@media (max-width: 767px) {
    .offer-modal__cards,
    .flyer-offers {
        grid-template-columns: 1fr;
    }

    .offer-modal__panel {
        border-radius: 22px;
    }

    .catalog-card h3 {
        min-height: 0;
    }
}

@media print {
    .flyer-toolbar,
    .top-actions {
        display: none !important;
    }

    .flyer-page {
        background: #ffffff;
    }

    .flyer-sheet {
        width: 100%;
        min-height: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        page-break-after: always;
    }
}

.package-grid em {
    color: #d14c4c;
    font-style: normal;
    font-size: .92rem;
    font-weight: 950;
    text-decoration: line-through;
    margin-right: .35rem;
}

.flyer-cta s {
    color: #ffb4b4;
    font-weight: 950;
    text-decoration-thickness: 2px;
}

/* Promotional offer modal keeps dark-mode contrast in every theme */
.offer-modal__panel {
    overflow: hidden;
    color: #eef7ff;
    border: 2px solid rgba(255, 255, 255, .18);
    background:
        radial-gradient(circle at 12% 12%, rgba(81, 214, 207, .26), transparent 14rem),
        radial-gradient(circle at 92% 8%, rgba(255, 155, 114, .24), transparent 13rem),
        radial-gradient(circle at 82% 88%, rgba(169, 160, 255, .22), transparent 15rem),
        linear-gradient(135deg, #08131f 0%, #0f1e2e 52%, #10243b 100%);
}

.offer-modal__panel::before,
.offer-modal__panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(.2px);
}

.offer-modal__panel::before {
    width: 220px;
    height: 220px;
    right: -58px;
    top: -62px;
    background: conic-gradient(from 180deg, var(--brand), var(--yellow), #ff4e89, var(--accent-2), var(--brand));
    opacity: .18;
    animation: spin-soft 14s linear infinite;
}

.offer-modal__panel::after {
    width: 170px;
    height: 170px;
    left: -52px;
    bottom: -52px;
    background: linear-gradient(135deg, #2fb7b0, #ffd166, #ff8a5c);
    opacity: .2;
    animation: floaty 5s ease-in-out infinite;
}

.offer-modal__close {
    z-index: 2;
    background: linear-gradient(135deg, #ff4e89, #ff8a5c);
    box-shadow: 0 14px 30px rgba(255, 78, 137, .28);
}

.offer-modal__panel > .eyebrow {
    position: relative;
    z-index: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #ff4e89, #7c6cff, #2fb7b0);
    border: 0;
    box-shadow: 0 12px 28px rgba(124, 108, 255, .28);
}

.offer-modal__panel h2,
.offer-modal__panel p,
.offer-modal__cards,
.offer-modal__actions {
    position: relative;
    z-index: 1;
}

.offer-modal__panel h2 {
    color: #ffffff;
    text-shadow: none;
}

.offer-modal__panel p {
    color: rgba(238, 247, 255, .82);
}

.offer-modal__panel p strong {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ff4e89;
    color: #ffffff;
    padding: .1rem .55rem;
    box-shadow: 0 10px 24px rgba(255, 78, 137, .25);
}

.offer-modal__card {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    backdrop-filter: blur(18px);
}

.offer-modal__card:hover {
    color: #ffffff;
    border-color: rgba(81, 214, 207, .36);
}

.offer-modal__card small {
    color: rgba(238, 247, 255, .72);
}

.offer-modal__card:first-child span {
    background: linear-gradient(135deg, #ffd166, #ff8a5c, #ff4e89);
}

.offer-modal__card:nth-child(2) span {
    background: linear-gradient(135deg, #2fb7b0, #7c6cff, #10243b);
}

.offer-modal__card:first-child {
    box-shadow: 0 22px 46px rgba(255, 138, 92, .2);
}

.offer-modal__card:nth-child(2) {
    box-shadow: 0 22px 46px rgba(124, 108, 255, .2);
}

.offer-modal__actions .cta-green {
    color: #ffffff;
    background: linear-gradient(135deg, #22a6a0, #51d6cf);
    box-shadow: 0 18px 38px rgba(34, 166, 160, .28);
    animation: pulse-cta 2.2s ease-in-out infinite;
}

@keyframes spin-soft {
    to { transform: rotate(360deg); }
}

@keyframes pulse-cta {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.035); }
}

/* Course detail pages */
.course-detail-page {
    --course: var(--brand);
    --course-2: var(--accent);
    --course-3: var(--accent-2);
    --course-dark: var(--brand-dark);
    --course-soft: rgba(47, 183, 176, .14);
    background:
        radial-gradient(circle at 8% 12%, var(--course-soft), transparent 24rem),
        radial-gradient(circle at 90% 30%, rgba(255, 138, 92, .12), transparent 24rem),
        var(--bg);
}

.course-detail-page.course-python {
    --course: #8b5cf6;
    --course-2: #38bdf8;
    --course-3: #ffd166;
    --course-dark: #5b35c8;
    --course-soft: rgba(139, 92, 246, .16);
}

.course-detail-page.course-scratch {
    --course: #ff8a00;
    --course-2: #ff4e89;
    --course-3: #ffd166;
    --course-dark: #d85f00;
    --course-soft: rgba(255, 138, 0, .17);
}

.course-detail-page.course-web {
    --course: #24b26b;
    --course-2: #2fb7b0;
    --course-3: #ffd166;
    --course-dark: #0d7b45;
    --course-soft: rgba(36, 178, 107, .16);
}

.course-detail-page.course-digital {
    --course: #f3a7bd;
    --course-2: #a9a0ff;
    --course-3: #51d6cf;
    --course-dark: #c95f82;
    --course-soft: rgba(243, 167, 189, .22);
}

.course-detail-page .eyebrow {
    color: var(--course-dark);
    background: var(--course-soft);
    border-color: rgba(255, 255, 255, .22);
}

.course-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 4rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 16%, color-mix(in srgb, var(--course-2) 44%, transparent), transparent 18rem),
        radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--course) 58%, transparent), transparent 24rem),
        radial-gradient(circle at 72% 86%, color-mix(in srgb, var(--course-3) 36%, transparent), transparent 20rem),
        linear-gradient(135deg, #071320 0%, #10243b 58%, color-mix(in srgb, var(--course-dark) 68%, #10243b) 100%);
}

.course-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.1) 1px, transparent 1.5px);
    background-size: 44px 44px, 44px 44px, 34px 34px;
    mask-image: linear-gradient(120deg, rgba(0,0,0,.88), rgba(0,0,0,.22));
    opacity: .85;
}

.course-hero::after {
    content: "";
    position: absolute;
    width: 36rem;
    height: 36rem;
    right: -12rem;
    top: -13rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: inset 0 0 0 4rem rgba(255,255,255,.035), inset 0 0 0 8rem rgba(255,255,255,.025);
    pointer-events: none;
}

.course-hero .container {
    position: relative;
    z-index: 1;
}

.course-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 4rem;
}

.course-nav img {
    width: 166px;
}

.course-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .7rem;
}

.course-nav-links a {
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
}

.course-hero h1 {
    max-width: 850px;
    color: #ffffff;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 950;
    line-height: 1;
}

.course-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.14rem;
}

.course-hero-panel {
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.2);
    background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    box-shadow: 0 28px 80px rgba(0,0,0,.24);
    backdrop-filter: blur(20px);
    padding: 1.2rem;
}

.course-visual {
    position: relative;
    min-height: 176px;
    margin-bottom: 1rem;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 24%, rgba(255,255,255,.28), transparent 7rem),
        linear-gradient(135deg, color-mix(in srgb, var(--course) 82%, #ffffff), color-mix(in srgb, var(--course-2) 72%, #10243b));
}

.course-visual svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.course-visual-label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    background: rgba(8, 19, 31, .56);
    color: #ffffff;
    padding: .45rem .8rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.course-code-card {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(8, 19, 31, .92);
    border: 1px solid rgba(255,255,255,.14);
}

.course-code-card pre {
    margin: 0;
    padding: 1.2rem;
    color: #d9fff9;
    white-space: pre-wrap;
}

.course-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.course-stat {
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    padding: .9rem;
}

.course-stat strong,
.course-stat span {
    display: block;
    color: #ffffff;
}

.course-stat strong {
    font-size: 1.2rem;
    font-weight: 950;
}

.course-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.course-detail-card {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(145deg, var(--surface-solid), color-mix(in srgb, var(--course-soft) 45%, var(--surface-solid)));
    padding: 1.35rem;
    box-shadow: var(--soft-shadow);
}

.course-detail-card::after {
    content: "";
    position: absolute;
    width: 9rem;
    height: 9rem;
    right: -4.5rem;
    top: -4.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--course) 14%, transparent);
}

.course-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--course), var(--course-2));
    box-shadow: 0 16px 34px color-mix(in srgb, var(--course) 28%, transparent);
}

.course-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.course-detail-card h3,
.course-detail-card p,
.course-detail-card ul {
    position: relative;
    z-index: 1;
}

.course-detail-card h3 {
    color: var(--text);
    font-size: 1.28rem;
    font-weight: 900;
}

.course-detail-card ul {
    padding-left: 1.15rem;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 650;
}

.course-module-list {
    display: grid;
    gap: .9rem;
}

.course-module {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 1rem;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-solid);
    padding: 1rem;
    box-shadow: var(--soft-shadow);
}

.course-module span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--course), var(--course-dark));
    color: #ffffff;
    font-size: .82rem;
    font-weight: 950;
    text-align: center;
    line-height: 1.05;
}

.course-module h3 {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 900;
}

.course-cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 20%, rgba(255,255,255,.25), transparent 16rem),
        linear-gradient(135deg, var(--course), var(--course-dark) 55%, var(--course-2));
    color: #ffffff;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.course-cta-band::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -6rem;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
}

.course-cta-band h2,
.course-cta-band p,
.course-cta-band a {
    position: relative;
    z-index: 1;
}

.course-cta-band h2,
.course-cta-band p {
    color: #ffffff;
}

.course-cta-band .cta-green {
    color: #10243b;
}

@media (max-width: 900px) {
    .course-nav {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 2.5rem;
    }

    .course-nav-links {
        justify-content: flex-start;
    }

    .course-card-grid,
    .course-stat-grid {
        grid-template-columns: 1fr;
    }

    .course-module {
        grid-template-columns: 1fr;
    }
}

/* Keep the promo popup above the theme switcher on mobile and desktop. */
.offer-modal {
    z-index: 2147483647;
}

.offer-modal__panel {
    z-index: 2;
}

.offer-modal__backdrop {
    z-index: 1;
}

.offer-modal__close {
    z-index: 4;
}

body:has(.offer-modal:not(.is-hidden)) .top-actions {
    z-index: 1;
}

.top-actions {
    z-index: 9000;
}

/* Legal pages and subtle cookie banner */
.legal-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(47, 183, 176, .14), transparent 26rem),
        radial-gradient(circle at 92% 20%, rgba(255, 209, 102, .16), transparent 24rem),
        var(--bg);
}

.legal-nav {
    margin-bottom: 2rem;
}

.legal-document {
    max-width: 980px;
    margin: 0 auto 4rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface-solid);
    box-shadow: var(--soft-shadow);
    padding: clamp(1.3rem, 4vw, 2.6rem);
}

.legal-document h1 {
    margin: 1rem 0;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 950;
    line-height: 1.05;
}

.legal-document h2 {
    margin-top: 1.7rem;
    font-size: clamp(1.25rem, 3vw, 1.7rem) !important;
}

.legal-document p,
.legal-document li {
    color: var(--muted);
    line-height: 1.75;
}

.legal-document a {
    color: var(--brand-dark);
    font-weight: 900;
}

.legal-note,
.consent-box {
    border: 1px solid rgba(47, 183, 176, .22);
    border-radius: 16px;
    background: rgba(47, 183, 176, .08);
    padding: 1rem;
}

.legal-updated {
    margin-top: 2rem;
    font-weight: 900;
}

.consent-box {
    margin: 1rem 0;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal-links {
        justify-content: flex-start;
    }
}

.footer-legal-links a {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    font-weight: 800;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9500;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    width: min(760px, calc(100% - 2rem));
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 18px;
    background: rgba(16, 36, 59, .94);
    color: #ffffff;
    box-shadow: 0 22px 55px rgba(6, 20, 34, .28);
    padding: 1rem;
    backdrop-filter: blur(14px);
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner p {
    margin: .25rem 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: .92rem;
    line-height: 1.45;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.cookie-btn,
.cookie-link {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .55rem .85rem;
    font-size: .85rem;
    font-weight: 900;
}

.cookie-btn-primary {
    border: 0;
    background: var(--brand);
    color: #ffffff;
}

.cookie-btn-muted,
.cookie-link {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.cookie-link:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, .16);
}

@media (max-width: 767px) {
    .cookie-banner {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
        grid-template-columns: 1fr;
        width: auto;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-btn,
    .cookie-link {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media print {
    .cookie-banner,
    .offer-modal,
    .top-actions,
    .seo-nav {
        display: none !important;
    }

    .legal-document {
        box-shadow: none;
        border: 0;
        padding: 0;
    }
}

.privacy-note {
    margin: .6rem 0 1rem;
    color: rgba(255, 255, 255, .78) !important;
    font-size: .88rem;
    line-height: 1.5;
}

.privacy-note a {
    color: var(--yellow);
    font-weight: 900;
}

.pdf-download-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #2dd4bf);
    color: #ffffff;
    font-weight: 900;
    padding: .7rem 1rem;
    box-shadow: 0 14px 30px rgba(24, 200, 200, .22);
}

.pdf-download-link::before {
    content: "PDF";
    display: inline-grid;
    place-items: center;
    min-width: 2.2rem;
    height: 1.45rem;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .18);
    font-size: .72rem;
    letter-spacing: .04em;
}

.pdf-download-link:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(24, 200, 200, .28);
}

.free-trial-callout,
.hero-free-trial,
.section-free-trial,
.trial-mini-badge {
    position: relative;
    isolation: isolate;
}

.free-trial-callout {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin: .3rem 0 1rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #ff4e89, #7c6cff);
    color: #ffffff;
    font-weight: 950;
    padding: .72rem 1rem;
    box-shadow: 0 18px 42px rgba(255, 78, 137, .26);
}

.hero-free-trial {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #ff8a5c, #ff4e89);
    color: #10243b;
    font-size: 1.05rem;
    font-weight: 950;
    padding: .75rem 1.15rem;
    box-shadow: 0 20px 45px rgba(255, 209, 102, .24);
    animation: pulse-cta 2.5s ease-in-out infinite;
}

.hero-free-trial::before,
.section-free-trial::before {
    content: "★";
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
}

.hero-free-trial:hover,
.section-free-trial:hover {
    color: #10243b;
    text-decoration: none;
    transform: translateY(-2px);
}

.section-free-trial {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), #ff8a5c);
    color: #10243b;
    font-weight: 950;
    padding: .68rem 1rem;
    box-shadow: 0 16px 36px rgba(255, 138, 92, .2);
}

.trial-mini-badge {
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    margin-top: .35rem;
    border-radius: 999px;
    background: #ff4e89;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .35rem .65rem;
    box-shadow: 0 10px 24px rgba(255, 78, 137, .22);
}

@media (max-width: 575px) {
    .free-trial-callout,
    .hero-free-trial,
    .section-free-trial {
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: 18px;
    }

    .trial-mini-badge {
        margin-left: 0;
    }
}

/* 2026-06-04 conversion upgrades: camps countdown, terms and prefilled lead form */
.countdown-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    max-width: 100%;
    margin: 1rem 0 1.15rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 78, 137, .96), rgba(255, 138, 92, .96), rgba(255, 209, 102, .95));
    color: #ffffff;
    padding: .6rem .8rem .6rem 1rem;
    box-shadow: 0 16px 36px rgba(255, 78, 137, .24);
}

.countdown-strip--section {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #10243b, #117d84, #ff8a5c);
}

.countdown-strip span,
.countdown-strip strong,
.countdown-strip b {
    color: #ffffff;
    line-height: 1;
}

.countdown-strip span {
    font-weight: 850;
    opacity: .92;
}

.countdown-strip strong {
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    padding: .42rem .65rem;
    font-size: .92rem;
    font-weight: 950;
}

.countdown-strip b {
    min-width: 7.2rem;
    border-radius: 999px;
    background: #08131f;
    padding: .48rem .72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-align: center;
}

.term-panel {
    margin: 1rem 0 .7rem;
}

.term-toggle {
    width: 100%;
    border: 1px solid rgba(47, 183, 176, .26);
    border-radius: 999px;
    background: rgba(47, 183, 176, .1);
    color: var(--brand-dark);
    padding: .75rem .95rem;
    font-weight: 950;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.term-toggle:hover,
.term-toggle:focus {
    border-color: rgba(47, 183, 176, .52);
    background: rgba(47, 183, 176, .16);
    transform: translateY(-2px);
}

.term-list {
    display: grid;
    gap: .55rem;
    margin-top: .7rem;
}

.term-list[hidden] {
    display: none !important;
}

.term-list button {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-solid);
    color: var(--text);
    padding: .75rem .85rem;
    font-weight: 900;
    text-align: left;
    box-shadow: 0 10px 22px rgba(34, 67, 98, .08);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.term-list button::before {
    content: "Termín ";
    color: var(--muted);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.term-list button:hover,
.term-list button:focus,
.term-list button.is-selected {
    border-color: rgba(255, 138, 92, .55);
    box-shadow: 0 16px 28px rgba(255, 138, 92, .16);
    transform: translateY(-2px);
}

.term-list button.is-selected {
    background: linear-gradient(135deg, rgba(255, 209, 102, .28), rgba(47, 183, 176, .14));
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    margin-top: 1rem;
}

.course-actions .atlas-cta {
    flex: 1 1 12rem;
    text-align: center;
}

.form-interest-pill {
    margin: 0 0 1rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 18px;
    background: rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .9);
    padding: .8rem 1rem;
    font-size: .92rem;
    font-weight: 850;
}

.camp-card .atlas-cta,
.course-offer-card .atlas-cta {
    min-height: 48px;
}

@media (max-width: 575px) {
    .countdown-strip {
        width: 100%;
        justify-content: center;
        border-radius: 22px;
        text-align: center;
    }

    .countdown-strip b {
        width: 100%;
    }

    .course-actions .atlas-cta {
        flex-basis: 100%;
    }
}
