:root {
    color-scheme: dark;
    --paper: #0a1617;
    --surface: #15292a;
    --mist: #102122;
    --ink: #eff7f3;
    --deep: #0c2021;
    --ink-muted: #b6ccca;
    --line: #345253;
    --on-dark: #f6f7ed;
    --on-dark-muted: #ccd9d1;
    --accent: #ffac80;
    --peach: #ffab7b;
    --on-accent: #1d1714;
    --header-height: 5rem;
    --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1.25rem);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 400 1rem/1.65 Manrope, system-ui, sans-serif;
}

body, button, input, textarea { font-family: Manrope, system-ui, sans-serif; }
img, svg { display: block; }
img { max-width: 100%; }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #7ad8cb; outline-offset: 4px; }

.section-inner, .header-inner {
    width: min(81rem, calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.section-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--accent);
    font-size: .875rem;
    font-weight: 800;
}

.section-label::before {
    content: "";
    flex: 0 0 1.65rem;
    height: 2px;
    background: currentColor;
}

.section-title, .legal-heading h1 {
    margin-top: .65rem;
    font-size: clamp(2.15rem, 4.6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.052em;
    word-spacing: .035em;
    text-wrap: balance;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: .65rem;
    left: var(--gutter);
    padding: .65rem 1rem;
    transform: translateY(-180%);
    color: var(--ink);
    background: var(--deep);
    border-radius: .4rem;
}

.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    z-index: 5;
    top: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.35rem;
    min-height: var(--header-height);
}

.brand { flex-shrink: 0; display: inline-flex; }
.brand img { width: 10.1rem; height: auto; filter: grayscale(1) invert(1); mix-blend-mode: screen; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(.85rem, 1.5vw, 1.55rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding-block: .6rem;
    color: var(--ink-muted);
    font-size: .875rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .33em; }

.header-cta, .btn-primary, .btn-outline, .btn-cookie, .form-submit, .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: fit-content;
    min-height: 3.2rem;
    padding: .73rem 1.25rem;
    color: var(--on-accent);
    background: var(--peach);
    border: 1px solid transparent;
    border-radius: .5rem;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.header-cta, .btn-cookie, .menu-toggle {
    min-height: 2.8rem;
    font-size: .875rem;
    white-space: nowrap;
}

.header-cta, .btn-cookie {
    color: var(--on-dark);
    background: #203d3d;
    border-color: #527372;
}

.header-cta:hover, .btn-cookie:hover { background: #254c43; }
.btn-primary:hover, .form-submit:hover { background: #ffba97; }
.btn-outline, .menu-toggle { color: var(--ink); background: transparent; border-color: #527372; }
.btn-outline:hover, .menu-toggle:hover { background: var(--mist); border-color: #709594; }
.menu-toggle { display: none; }
.menu-toggle svg { width: 1.15rem; height: 1.15rem; }

.hero {
    padding-block: clamp(2.5rem, 5vw, 4.75rem);
    background: radial-gradient(ellipse at 70% 20%, #163b3b 0, transparent 65%),
        radial-gradient(ellipse at 102% 85%, #44271c 0, transparent 36%), var(--paper);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5.3vw, 5rem);
}

.hero h1 {
    margin-block: 1.15rem 1.45rem;
    font-size: clamp(2.8rem, 5.55vw, 5.35rem);
    font-weight: 800;
    line-height: .99;
    letter-spacing: -.063em;
    word-spacing: .035em;
}

.hero h1 span { display: block; color: var(--accent); }

.hero-intro {
    max-width: 32rem;
    color: var(--ink-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.9rem; }

.hero-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 1.075;
    background: var(--deep);
    border: 1px solid #47716d;
    border-radius: .85rem;
    box-shadow: 0 1.5rem 4rem #0007;
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual::before, .hero-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.hero-visual::before {
    opacity: 0;
    background: radial-gradient(11rem circle at var(--light-x, 50%) var(--light-y, 45%), #a1fff339, transparent 90%);
    mix-blend-mode: screen;
    transition: opacity .32s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-visual::after {
        opacity: 0;
        background: linear-gradient(113deg, transparent 38%, #b9fff547 49%, #efb68c28 53%, transparent 64%);
        animation: shield-reflection 1.55s ease-out .25s both;
        mix-blend-mode: screen;
    }

    @keyframes shield-reflection {
        0% { opacity: 0; transform: translateX(-82%); }
        30%, 64% { opacity: .8; }
        100% { opacity: 0; transform: translateX(82%); }
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .hero-visual:hover::before { opacity: 1; }
}

.stats-strip { border-block: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-item {
    padding: 1.5rem clamp(1rem, 3.5vw, 3rem);
    border-inline-start: 1px solid var(--line);
}

.stat-item:first-child { padding-inline-start: 0; border-inline-start: 0; }
.stat-item:last-child { padding-inline-end: 0; }

.stat-number {
    color: var(--ink);
    font-size: clamp(1.45rem, 2.7vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.2;
}

.stat-label { margin-top: .22rem; color: var(--ink-muted); font-size: .875rem; }

#onas, #sluzby, #podcasty, #postup, #kontakt { padding-block: clamp(4rem, 7.6vw, 7.25rem); }
#onas .section-title, #sluzby .section-title { max-width: 14.5ch; text-wrap: initial; }

.onas-grid, .podcast-header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: start;
}

.onas-grid { margin-top: 1.85rem; }
.onas-visual { grid-column: 2; grid-row: 1; align-self: stretch; }
.onas-text { grid-column: 1; grid-row: 1; color: var(--ink-muted); }
.onas-text p + p { margin-top: .9rem; }
.onas-text strong { color: var(--ink); }

.onas-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.4rem);
    color: var(--on-dark);
    background: radial-gradient(ellipse at 100% 0, #2d5146, var(--deep) 72%);
    border-radius: .85rem;
}

.onas-card blockquote {
    max-width: 20ch;
    font-size: clamp(1.6rem, 3vw, 2.9rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.22;
    text-wrap: pretty;
}

.onas-card cite { margin-top: 1.1rem; color: var(--on-dark-muted); font-style: normal; font-size: .9rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1.35rem; }

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 750;
}

.trust-badge svg { color: var(--accent); flex-shrink: 0; }
#sluzby { background: var(--mist); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 2.25rem;
}

.service-card {
    padding: clamp(1.25rem, 2.65vw, 2.35rem);
    background: linear-gradient(150deg, var(--surface), var(--paper) 85%);
    border: 1px solid var(--line);
    border-radius: .75rem;
    transition: border-color .25s ease, box-shadow .25s ease;
}

@media (hover: hover) {
    .service-card:hover {
        border-color: #b57d60;
        box-shadow: inset 0 1px #ffab7b55, 0 .45rem 1.4rem #0005;
    }
}

.service-icon, .podcast-icon, .contact-item-icon {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    color: var(--accent);
    background: #3b2924;
    border-radius: .55rem;
}

.service-card h3, .podcast-card h3, .contact-card h3, .partner-banner h3, .process-step h3 {
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.04em;
    text-wrap: pretty;
}

.service-card h3, .podcast-card h3 { margin-top: 1.1rem; }
.service-card p, .partner-banner p, .process-step p { margin-top: .5rem; color: var(--ink-muted); }

.partner-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: .85rem;
    padding: clamp(1.25rem, 2.65vw, 2.35rem);
    border: 1px solid #466460;
    border-radius: .75rem;
}

.partner-content p { max-width: 54rem; }
.partner-action { flex-shrink: 0; }

#podcasty { color: var(--on-dark); background: var(--deep); }
#podcasty .section-label, .contact-shell .section-label { color: var(--peach); }
.podcast-header { align-items: end; }
.podcast-header .section-title { max-width: 15ch; text-wrap: initial; }
.podcast-intro { max-width: 36rem; color: var(--on-dark-muted); }

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 2.25rem;
}

.podcast-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.25rem, 2.9vw, 2.5rem);
    background: #173a32;
    border: 1px solid #416258;
    border-radius: .75rem;
}

.podcast-icon { color: var(--peach); background: #284a40; }
.podcast-card p { margin-block: .6rem 1.15rem; color: var(--on-dark-muted); }
.podcast-player { display: block; width: min(100%, 27rem); height: 3.4rem; margin-top: auto; }
.podcast-training-note { margin-top: 1.2rem; color: var(--on-dark-muted); }
.podcast-training-note a { color: var(--peach); text-underline-offset: .2em; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2.25rem;
    border-block: 1px solid var(--line);
}

.process-step { padding: 1.4rem clamp(1rem, 2.7vw, 2rem); border-inline-start: 1px solid var(--line); }
.process-step:first-child { padding-inline-start: 0; border-inline-start: 0; }
.process-step:last-child { padding-inline-end: 0; }

.step-number {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: .95rem;
    color: var(--accent);
    background: #3b2924;
    border-radius: 50%;
    font-weight: 800;
}

#kontakt { padding-top: 0; }

.contact-shell {
    padding: clamp(1.35rem, 5vw, 4.6rem);
    color: var(--on-dark);
    background: radial-gradient(ellipse at 0 0, #284f43, var(--deep) 65%);
    border-radius: .9rem;
}

.contact-shell .section-title { text-wrap: initial; }

.kontakt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    margin-top: 1.65rem;
}

.contact-card:first-child { padding-top: .7rem; }

.contact-card:last-child {
    padding: clamp(1.2rem, 3vw, 2rem);
    color: var(--ink);
    background: var(--paper);
    border-radius: .7rem;
}

.contact-item { display: flex; align-items: flex-start; gap: .8rem; margin-top: .85rem; }
.contact-item-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; color: var(--peach); background: #315449; }
.contact-item-text { min-width: 0; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.contact-item-text strong { display: block; color: var(--on-dark); font-size: .875rem; }
.contact-item-text a { color: var(--on-dark); text-underline-offset: .2em; }
.contact-item-text a:hover { color: var(--peach); }
.contact-form { display: grid; gap: .85rem; margin-top: 1rem; }
.form-group { display: grid; gap: .28rem; }
.form-group label { font-weight: 800; font-size: .875rem; }

.form-group :is(input, textarea) {
    width: 100%;
    padding: .7rem .75rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #5a7775;
    border-radius: .38rem;
    font-size: 1rem;
}

.form-group textarea { min-height: 7rem; resize: vertical; }
.form-submit:disabled { cursor: default; opacity: .7; }
.form-disclaimer { font-size: .875rem; color: var(--ink-muted); }
.form-disclaimer a { text-underline-offset: .2em; }
#formStatus:empty { margin-top: -.85rem; }
#formStatus { font-size: .9rem; font-weight: 750; color: #8be1bc; }
#formStatus[data-state="error"] { color: #ffaca6; }

.site-footer { padding-block: 2.7rem 1.4rem; background: var(--mist); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.15fr .85fr auto; gap: 1.7rem; align-items: start; }
.footer-brand p { margin-top: .6rem; color: var(--ink-muted); }
.footer-links { display: grid; gap: .35rem; justify-items: start; font-size: .94rem; font-weight: 750; }
.footer-links a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.footer-links a:hover { color: var(--accent); }
.member-affiliation { display: grid; gap: .3rem; color: var(--ink-muted); font-size: .875rem; }
.member-affiliation img { width: 12.5rem; height: auto; border-radius: .3rem; }
.footer-copy { margin-top: 1.55rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .875rem; }

#cookie-bar {
    position: fixed;
    z-index: 8;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(25rem, calc(100% - 2.5rem));
    padding: 1.1rem 1.25rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #5d7d79;
    border-radius: .75rem;
    box-shadow: 0 .4rem 1.85rem #0008;
    font-size: .875rem;
}

.cookie-content a { color: var(--accent); }
.cookie-actions { margin-top: .7rem; }

.legal-section { padding-block: clamp(2.9rem, 6vw, 6.25rem); }
.legal-section { background: radial-gradient(ellipse 75% 30rem at 65% 0, #183536, transparent); }
.legal-heading h1 { margin-top: 0; text-wrap: initial; }
.legal-heading .subtitle { margin-top: .55rem; color: var(--ink-muted); font-size: 1.1rem; }

.legal-layout {
    display: grid;
    grid-template-columns: minmax(13rem, .35fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    margin-top: 2rem;
}

.legal-toc, .legal-container { padding: clamp(1.1rem, 3vw, 2.3rem); border: 1px solid var(--line); border-radius: .75rem; }
.legal-toc { background: var(--mist); }
.legal-toc p { font-weight: 800; }
.legal-toc ol { display: grid; gap: .35rem; margin: .55rem 0 0; padding-inline-start: 1.35rem; }
.legal-toc li::marker { color: var(--accent); }
.legal-toc a { font-size: .9rem; text-decoration-color: #95a29a; text-underline-offset: .17em; }
.legal-toc a:hover { color: var(--accent); text-decoration-color: currentColor; }
.legal-container { background: var(--surface); color: var(--ink-muted); overflow-wrap: anywhere; }
.legal-container > :first-child { font-size: 1.08rem; }

.legal-container h2 {
    margin-block: 1.9rem .65rem;
    padding-top: 1rem;
    color: var(--ink);
    border-top: 1px solid var(--line);
    font-size: clamp(1.25rem, 2.25vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.legal-container p + p { margin-top: .7rem; }
.legal-container ul { padding-inline-start: 1.3rem; }
.legal-container li + li { margin-top: .28rem; }
.legal-container a { color: var(--accent); text-underline-offset: .16em; }
.legal-container .date-update { margin-top: 1.5rem; font-weight: 800; }

@media (max-width: 72rem) {
    .header-inner { position: relative; flex-wrap: wrap; gap: 0 1rem; }
    .header-inner .brand { margin-block: .55rem; }
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .site-nav { order: 4; width: 100%; }
    .site-nav ul { flex-wrap: wrap; gap: .25rem 1.25rem; padding-bottom: .55rem; }
    .site-header.menu-ready .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: min(26rem, 100%);
        max-height: calc(100dvh - var(--header-height));
        overflow: auto;
        padding: .7rem;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: .7rem;
        box-shadow: 0 .4rem 1.8rem #0007;
    }
    .site-header.menu-ready .site-nav.is-open { display: block; }
    .site-header.menu-ready .site-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .2rem;
        padding: 0;
    }
    .site-header.menu-ready .site-nav a { padding: .65rem; white-space: normal; }
    .site-header.menu-ready .site-nav a:hover { background: var(--mist); border-radius: .3rem; }
}

@media (max-width: 55rem) {
    :root { --header-height: 4.5rem; }
    .hero-grid { gap: 1.6rem; }
    .hero h1 { font-size: clamp(2.7rem, 6.2vw, 4rem); }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-step:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
    .process-step:nth-child(even) { padding-inline-end: 0; }
    .process-step:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
    .hero-grid, .onas-grid, .podcast-header, .podcast-grid, .kontakt-grid, .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { gap: 1.65rem; }
    .hero-visual { aspect-ratio: 1.2; }
    .hero h1 { font-size: clamp(2.65rem, 9.7vw, 4.4rem); }
    .hero-intro { max-width: 29rem; }
    .hero-actions { margin-top: 1.3rem; }
    .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-item { padding-block: 1rem; }
    .stat-item:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
    .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .onas-text, .onas-visual { grid-area: auto; }
    .onas-grid { margin-top: 1.35rem; }
    .partner-banner { align-items: flex-start; flex-direction: column; }
    .podcast-header { gap: .85rem; }
    .contact-card:first-child { padding-top: 0; }
    .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}

@media (max-width: 31rem) {
    .header-cta { display: none; }
    .services-grid, .footer-main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 22rem) {
    .brand img { width: 8.5rem; }
    .hero h1 { font-size: 2.35rem; }
    .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
}
