/* Landing page on the ALK brand: navy, gold, white, Open Sans (self-hosted in fonts.css).
 *
 * Tokens are scoped to body.landing so this sheet does not depend on, or leak into, base.css.
 * Gold #B4865E is for fills and text on navy. Gold text on light backgrounds uses #7A5A3C (6.3:1 on white).
 * The reduced-motion block sits at the end so it wins over everything above it.
 */

body.landing {
    --navy: #030928;
    --navy-2: #0B1442;
    --gold: #B4865E;
    --gold-soft: #D9B892;
    --gold-text: #7A5A3C;
    --paper: #FFFFFF;
    --mist: #EFF2FC;
    --ink: #030928;
    --ink-2: #4A4F66;
    --line: #D5DAEA;
    --on-dark: #EFF2FC;
    --on-dark-2: #AEB6D3;
    --focus: #7A5A3C;
    --wrap: 1120px;
    --gutter: clamp(16px, 4vw, 40px);

    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

html { scroll-padding-top: 80px; }

/* Resets wrapped in :where() so every component class below wins without a fight */
:where(.landing) :where(h1, h2, h3) { margin: 0; text-wrap: balance; }
:where(.landing) :where(p) { margin: 0; text-wrap: pretty; }
:where(.landing) :where(ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.landing) :where(ul, ol) { list-style: none; }
:where(.landing) :where(img) { display: block; max-width: 100%; }

.landing .on-dark { --focus: var(--gold-soft); color: var(--on-dark); }

.landing a:focus-visible,
.landing button:focus-visible,
.landing summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 2px;
}
.landing main:focus { outline: none; }

.wrap {
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* --- SKIP LINK --- */
.skip-link {
    position: absolute;
    left: 16px;
    top: -200px;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
}
.skip-link:focus { top: 12px; }

/* --- BUTTONS --- */
.landing .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    transform: none;
    box-shadow: none;
}
.landing .btn-gold { background: var(--gold); color: var(--navy); }
.landing .btn-gold:hover { background: #C49A74; }
.landing .btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(239, 242, 252, 0.4); }
.landing .btn-ghost:hover { border-color: var(--gold); color: #FFFFFF; }
.landing .btn-small { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.875rem; }

/* --- HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid rgba(180, 134, 94, 0.35);
    padding-top: env(safe-area-inset-top, 0);
}
.header-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--on-dark);
    text-decoration: none;
}
.brand-logo { width: 64px; height: 32px; flex: none; }
.brand-course {
    padding-left: 12px;
    border-left: 1px solid rgba(239, 242, 252, 0.25);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-nav { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 0; }
.nav-links a {
    display: block;
    white-space: nowrap;
    padding: 0.5rem 0.4375rem;
    color: var(--on-dark-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: #FFFFFF; border-bottom-color: var(--gold); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(239, 242, 252, 0.3);
    border-radius: 2px;
    color: var(--on-dark);
    cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); }
.mobile-menu {
    border-top: 1px solid rgba(239, 242, 252, 0.12);
    background: var(--navy);
    padding: 8px var(--gutter) 16px;
}
.mobile-menu a {
    display: block;
    padding: 0.85rem 0;
    color: var(--on-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(239, 242, 252, 0.1);
}
.mobile-menu a:last-child { color: var(--gold); border-bottom: 0; }

/* --- HERO --- */
.hero {
    background: var(--navy);
    padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: end;
}
.hero-kicker { color: var(--gold); font-weight: 600; font-size: 0.9375rem; }
.hero-title {
    margin: 0.3em 0 0.45em;
    font-size: clamp(2.75rem, 7.2vw, 5.5rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}
.hero-lead { max-width: 38em; color: var(--on-dark-2); font-size: 1.125rem; line-height: 1.65; }
.hero-lead strong { color: #FFFFFF; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-resume { margin-top: 14px; color: var(--on-dark-2); font-size: 0.9375rem; }

.facts { border-left: 1px solid rgba(180, 134, 94, 0.45); padding-left: clamp(24px, 3vw, 40px); }
.facts-title { color: var(--gold); font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; }
.fact { padding: 14px 0; border-top: 1px solid rgba(239, 242, 252, 0.14); }
.fact:first-child { border-top: 0; }
.fact dt { color: #FFFFFF; font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.fact dd { color: var(--on-dark-2); font-size: 0.9375rem; }

/* Time bar: one segment per module, width proportional to minutes */
.timebar { margin-top: clamp(48px, 7vw, 80px); }
.timebar-track { display: flex; gap: 3px; }
.seg { flex: var(--min) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.seg-z { flex: 34 1 0; }
.seg b { order: 0; color: #FFFFFF; font-size: 0.8125rem; font-weight: 700; }
.seg::before {
    content: '';
    order: 1;
    display: block;
    height: 10px;
    background: var(--gold);
    transform-origin: left center;
    animation: seg-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.seg-z::before { background: transparent; border: 1px dashed var(--gold); }
.seg i { order: 2; font-style: normal; color: var(--on-dark-2); font-size: 0.75rem; white-space: nowrap; }
.seg:nth-child(2)::before { animation-delay: 0.08s; }
.seg:nth-child(3)::before { animation-delay: 0.16s; }
.seg:nth-child(4)::before { animation-delay: 0.24s; }
.seg:nth-child(5)::before { animation-delay: 0.32s; }
.seg:nth-child(6)::before { animation-delay: 0.40s; }
.seg:nth-child(7)::before { animation-delay: 0.48s; }
@keyframes seg-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.timebar-caption { margin-top: 16px; color: var(--on-dark-2); font-size: 0.875rem; }

/* --- SECTIONS --- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
    font-size: clamp(1.875rem, 3.6vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; max-width: 40em; }

/* Attributed statistics */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); column-gap: 48px; }
.stat { padding: 24px 0 32px; border-top: 1px solid var(--line); }
.stat-figure {
    color: var(--gold-text);
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.stat-text { margin-top: 10px; color: var(--ink); font-size: 1rem; }
.stat-src { margin-top: 10px; color: var(--ink-2); font-size: 0.8125rem; }
.stat-src a { color: var(--ink-2); text-underline-offset: 2px; }
.stat-src a:hover { color: var(--gold-text); }

/* Program */
.modules { counter-reset: none; border-bottom: 1px solid #CDD3E6; }
.module {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr) auto;
    gap: 8px 32px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid #CDD3E6;
}
.module-meta { display: flex; flex-direction: column; gap: 2px; }
.module-id { font-weight: 700; color: var(--ink); }
.module-time { color: var(--gold-text); font-weight: 600; font-size: 0.9375rem; }
.module-done { color: var(--gold-text); font-size: 0.8125rem; font-weight: 600; }
.module-body h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.module-body p { margin-top: 8px; color: var(--ink-2); max-width: 44em; }
.module-body .module-lead { color: var(--ink); font-size: 0.875rem; font-weight: 600; }
.module-link {
    align-self: center;
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
    text-underline-offset: 4px;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}
.module-link:hover { color: var(--gold-text); }
.module-final { border-top: 2px solid var(--gold); }

/* Materials */
.materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 16px; }
.materials li { display: flex; }
.material {
    flex: 1;
    display: block;
    padding: 22px 24px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.material:hover { border-color: var(--gold-text); }
.material-where { color: var(--gold-text); font-size: 0.8125rem; font-weight: 600; }
.material h3 { margin-top: 6px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.material p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); gap: 40px 56px; }
.person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; }
.person-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--navy); }
.person-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}
.person h3 { font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.person-role { margin-top: 2px; color: var(--gold-text); font-size: 0.875rem; font-weight: 600; }
.person p:not(.person-role) { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }

/* Featured instructor: full-width card with the company box */
.person-feature { grid-column: 1 / -1; grid-template-columns: 96px minmax(0, 1fr) minmax(15rem, 21rem); gap: 20px 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.person-feature .person-photo { width: 96px; height: 96px; }
.person-feature p.person-lead-line { margin-top: 12px; color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.45; max-width: 60ch; }
.person-feature p { max-width: 68ch; }
.person-feature p.person-actions { margin-top: 18px; }
.landing .btn-ink { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.landing .btn-ink:hover { background: transparent; color: var(--ink); }
.company-card { align-self: start; padding: 24px; border-radius: 4px; background: var(--navy); color: #FFFFFF; }
.company-card h4 { font-size: 1.125rem; font-weight: 700; color: #FFFFFF; }
.person-feature .company-card p { margin-top: 8px; color: rgba(239, 242, 252, 0.86); font-size: 0.9375rem; }
.person-feature .company-card p.company-note { color: var(--gold); font-weight: 600; font-size: 0.875rem; }
.company-card .btn { margin-top: 18px; }
@media (max-width: 900px) {
    .person-feature { grid-template-columns: 72px minmax(0, 1fr); }
    .person-feature .person-photo { width: 72px; height: 72px; }
    .company-card { grid-column: 1 / -1; }
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 clamp(32px, 6vw, 88px); }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.faq summary::after {
    content: '';
    flex: none;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold-text);
    border-bottom: 2px solid var(--gold-text);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 42em; }

/* Closing band */
.closing { background: var(--navy); padding: clamp(64px, 9vw, 104px) 0; }
.closing h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; color: #FFFFFF; }
.closing p { margin: 16px 0 32px; color: var(--on-dark-2); font-size: 1.0625rem; max-width: 36em; }

/* Footer */
.site-footer { background: var(--navy); border-top: 1px solid rgba(180, 134, 94, 0.35); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0)); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: center; }
.footer-brand { grid-row: span 2; }
.footer-brand img { width: 80px; height: 40px; }
.site-footer p { color: var(--on-dark-2); font-size: 0.875rem; }

.footer-nav { grid-column: 2; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--on-dark); font-size: 0.875rem; text-underline-offset: 3px; }
.footer-nav a:hover { color: var(--gold-soft); }

/* Landing: link from a module row to its public description */
.module-body h3 a { color: inherit; text-decoration: none; }
.module-body h3 a:hover { color: var(--gold-text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* --- CONTENT PAGES: program, słownik, explainer --- */
.nav-links a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--gold); }
.mobile-menu a[aria-current="page"] { color: var(--gold-soft); }

.page-hero { background: var(--navy); padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.875rem; color: var(--on-dark-2); }
.breadcrumbs li + li::before { content: '/'; padding: 0 10px; color: rgba(239, 242, 252, 0.4); }
.breadcrumbs a { color: var(--on-dark-2); text-underline-offset: 3px; }
.breadcrumbs a:hover { color: #FFFFFF; }
.breadcrumbs [aria-current] { color: var(--on-dark); }
.page-title {
    margin-top: 20px;
    max-width: 20em;
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    overflow-wrap: break-word;
}
.page-lead { margin-top: 18px; max-width: 40em; color: var(--on-dark-2); font-size: 1.125rem; line-height: 1.65; }
.page-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--on-dark-2); font-size: 0.9375rem; }
.page-meta strong { color: #FFFFFF; font-weight: 600; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-body { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.prose { max-width: 46rem; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 {
    margin-top: 3rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    scroll-margin-top: 88px;
}
.prose h3 { margin-top: 2rem; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.6em; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--gold-text); }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--gold-text); }
.prose a.btn { text-decoration: none; overflow-wrap: normal; }
.prose a.btn-gold, .prose a.btn-gold:hover { color: var(--navy); }
.prose .note, .prose .module-credit { color: var(--ink-2); font-size: 0.9375rem; }
.prose .sources li { color: var(--ink-2); font-size: 0.9375rem; }

.answer { margin-top: 0; padding: 22px 24px 24px; background: var(--mist); border-left: 3px solid var(--gold); }
.prose .answer h2 { margin-top: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.answer p { margin-top: 8px; font-size: 1.125rem; line-height: 1.6; }

.table-wrap { max-width: 100%; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.prose thead th { background: var(--mist); font-weight: 600; border-top: 0; }
.prose td:first-child { white-space: nowrap; font-weight: 600; }

.concepts { display: flex; flex-wrap: wrap; gap: 8px; }
.prose ul.concepts { list-style: none; padding-left: 0; }
.prose .concepts li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; font-size: 0.9375rem; }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; max-width: 46rem; margin-top: 56px; }
.pager a { display: block; padding: 18px 20px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.pager a:hover { border-color: var(--gold-text); }
.pager span { display: block; color: var(--gold-text); font-size: 0.8125rem; }
.pager-next { text-align: right; }

.program-intro { margin-bottom: 32px; }
.program-list .module-title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.program-list .module-title a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.program-list .module-title a:hover { color: var(--gold-text); }

/* Glossary: index on the side, terms in a column */
.glossary { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 0 56px; align-items: start; }
.term-index { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 8px; }
.term-index-title { font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.term-index ol { font-size: 0.875rem; line-height: 1.4; }
.term-index li + li { margin-top: 6px; }
.term-index a { color: var(--ink-2); text-decoration: none; }
.term-index a:hover { color: var(--gold-text); text-decoration: underline; }
.terms > .term { margin-top: 0; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.terms > .term:first-child { border-top: 0; padding-top: 0; }
.term h2 { margin-top: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: 0; }
.term-anchor { text-decoration: none; }
.term-anchor:hover { text-decoration: underline; }
.term p { margin-top: 10px; }
.term .term-meta { color: var(--ink-2); font-size: 0.875rem; }
.term:target h2 { color: var(--gold-text); }

/* Landing: open materials */
.open-materials .material { border-top: 3px solid var(--gold); }

/* --- BOARD TRAINING LEADS: early band, #dla-zarzadu section, sticky mobile bar ---
 * Every lead action carries data-lead (book, email, phone, linkedin, form) so clicks can be counted later.
 * Error text on navy uses #FFB3A7 (11:1 on #030928). Field borders #8A91B4 keep 3:1 against the navy fill. */
.landing .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.landing .nowrap { white-space: nowrap; }

.lead-band { background: var(--navy-2); padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid rgba(180, 134, 94, 0.35); border-bottom: 1px solid rgba(180, 134, 94, 0.35); }
.lead-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.lead-band-text { max-width: 34em; color: #FFFFFF; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); font-weight: 600; line-height: 1.4; }
.lead-band-text span { display: block; color: var(--on-dark-2); font-weight: 400; }
.lead-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.lead-band-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--on-dark);
    font-weight: 600;
    text-underline-offset: 5px;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}
.lead-band-more:hover { color: #FFFFFF; text-decoration-color: var(--gold-soft); }

.lead { background: var(--navy); }
.lead .section-head h2 { color: #FFFFFF; font-weight: 300; }
.lead .section-head p { color: var(--on-dark-2); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
.lead-sub { color: var(--gold); font-size: 1rem; font-weight: 600; line-height: 1.4; }

.channels { margin-top: 12px; border-bottom: 1px solid rgba(239, 242, 252, 0.14); }
.channel {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    margin: 0 -12px;
    padding: 14px 12px;
    color: var(--on-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.channels li + li { border-top: 1px solid rgba(239, 242, 252, 0.14); }
.channel:hover { background: rgba(239, 242, 252, 0.05); }
.landing .channel:focus-visible { outline-offset: 0; }
.channel svg { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel-icon { stroke: var(--gold); }
.channel-arrow { stroke: var(--on-dark-2); transition: transform 0.2s ease; }
.channel:hover .channel-arrow { stroke: var(--gold-soft); transform: translateX(3px); }
.channel-text { display: flex; flex-direction: column; min-width: 0; }
.channel-verb { color: #FFFFFF; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.channel:hover .channel-verb { color: var(--gold-soft); }
.channel-detail { margin-top: 2px; color: var(--on-dark-2); font-size: 0.9375rem; overflow-wrap: anywhere; }

.lead-form { padding: clamp(24px, 3vw, 36px); background: var(--navy-2); border: 1px solid rgba(180, 134, 94, 0.35); border-radius: 4px; }
.lead-form-intro { margin-top: 8px; color: var(--on-dark-2); font-size: 0.9375rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 22px; }
.field-wide { grid-column: 1 / -1; }
.field label, .lead-preview label { display: block; margin-bottom: 6px; color: var(--on-dark); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.field-opt { display: block; color: var(--on-dark-2); font-size: 0.875rem; font-weight: 400; }
.field input, .field textarea, .lead-preview textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    background: var(--navy);
    color: #FFFFFF;
    border: 1px solid #8A91B4;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
}
.field textarea { min-height: 104px; resize: vertical; }
.landing .field input:focus-visible, .landing .field textarea:focus-visible, .landing .lead-preview textarea:focus-visible {
    outline: 3px solid var(--gold-soft);
    outline-offset: 1px;
    border-color: var(--gold-soft);
}
.field [aria-invalid="true"] { border-color: #FFB3A7; box-shadow: inset 0 0 0 1px #FFB3A7; }
.field-error { margin-top: 6px; color: #FFB3A7; font-size: 0.875rem; font-weight: 600; }
.lead-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lead-form-hint { margin-top: 14px; color: var(--on-dark-2); font-size: 0.875rem; }
.lead-status { margin-top: 14px; color: #FFFFFF; font-size: 0.9375rem; font-weight: 600; }
.lead-status:empty { margin-top: 0; }
.lead-status.is-error { color: #FFB3A7; }
.lead-preview { margin-top: 16px; }
.lead-preview textarea { min-height: 200px; font-size: 0.9375rem; resize: vertical; }
.lead-sign { margin-top: clamp(40px, 5vw, 56px); padding-top: 20px; border-top: 1px solid rgba(180, 134, 94, 0.35); color: var(--on-dark); font-size: 1rem; }

/* Sticky bar: phones only, shown by landing.js past the hero, hidden over #dla-zarzadu and the footer */
.lead-bar { display: none; }
@media (max-width: 767.98px) {
    .lead-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        background: var(--navy);
        border-top: 1px solid rgba(180, 134, 94, 0.5);
        box-shadow: 0 -8px 24px rgba(3, 9, 40, 0.18);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .lead-bar.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease, visibility 0s linear 0s; }
}
.lead-bar-title { flex: 1 1 6rem; min-width: 0; color: #FFFFFF; font-size: 0.875rem; font-weight: 600; line-height: 1.25; }
.lead-bar-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.landing .lead-bar .btn-small { min-height: 44px; padding: 0.5rem 0.875rem; }

@media (max-width: 900px) {
    .lead-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .lead-band-actions { width: 100%; }
    .lead-band-actions .btn { flex: 1 1 100%; }
    .fields { grid-template-columns: minmax(0, 1fr); }
    .lead-form { margin: 0 calc(var(--gutter) * -0.5); }
    .lead-form-actions .btn { flex: 1 1 100%; }
    .channel { gap: 14px; }
}
@media (max-width: 359px) {
    .lead-bar-title { flex-basis: 100%; }
    .lead-bar-actions { flex: 1 1 100%; }
    .lead-bar-actions .btn { flex: 1 1 0; }
}

/* --- RESPONSIVE --- */
/* Seven nav entries need about 1110px; below 1140px the menu button takes over */
@media (max-width: 1140px) {
    .nav-links, .landing .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
    .glossary { grid-template-columns: minmax(0, 1fr); }
    .term-index { position: static; max-height: none; overflow: visible; margin-bottom: 40px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
    .term-index ol { columns: 2; column-gap: 24px; }
    .term-index li { break-inside: avoid; }
}

@media (max-width: 900px) {
    .nav-links, .landing .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .facts { border-left: 0; padding-left: 0; border-top: 1px solid rgba(180, 134, 94, 0.45); padding-top: 16px; }
    .facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
    .fact:nth-child(2) { border-top: 0; }
    .faq-wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .module { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
    .module-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
    .module-link { align-self: start; margin-top: 4px; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); }
    .footer-brand { grid-row: auto; }
    .footer-nav { grid-column: auto; }
    .pager-next { text-align: left; }
    .prose td:first-child { white-space: normal; }
}

@media (max-width: 480px) {
    .term-index ol { columns: 1; }
    .page-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 560px) {
    .hero-lead { font-size: 1.0625rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .facts-list { grid-template-columns: minmax(0, 1fr); }
    .fact:nth-child(2) { border-top: 1px solid rgba(239, 242, 252, 0.14); }
    .seg .u { display: none; }
    .seg b { font-size: 0.75rem; }
    .people { grid-template-columns: minmax(0, 1fr); }
    .person { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
    .person-photo { width: 56px; height: 56px; }
    .brand-course { font-size: 0.8125rem; padding-left: 12px; }
    .brand { gap: 12px; }
}

@media (max-width: 359px) {
    .brand-course { display: none; }
}

/* --- REDUCED MOTION: last, so it overrides every animation and transition above --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .landing *, .landing *::before, .landing *::after {
        animation: none !important;
        transition: none !important;
    }
    .seg::before { transform: none; }
}

/* Verified public profiles under each instructor */
.person p.person-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.875rem; font-weight: 600; }
.person-links a { color: var(--gold-text); text-underline-offset: 3px; }
