/* ==========================================================================
   FK Spartak Dubnica – História (EXT:fk_spartak_historia)
   Prvky „FK História: …“. Všetko pod .fkh, aby sa nebilo so štýlmi webu (šablóna Kester, Bootstrap 5).
   Písma Oswald a Roboto načítava web (Kester main.css) – tu sa len používajú.
   Mobile-first; bez horizontálneho posunu od 320 px.
   ========================================================================== */

.fkh {
    --fkh-accent: #21a8e1;      /* modrá webu (Kester --theme-color) */
    --fkh-accent-soft: #9fdcf5; /* svetlomodrá na tmavomodrej (kontrast) */
    --fkh-navy: #203f7c;        /* tmavomodrá z loga */
    --fkh-deep: #0a162c;
    --fkh-ink: #111111;
    --fkh-text: #333333;
    --fkh-muted: #5f5f5f;
    --fkh-line: #e3e3e3;
    --fkh-light: #f4f4f4;
    --fkh-display: "Oswald", "Arial Narrow", sans-serif;
    --fkh-body: "Roboto", Arial, sans-serif;
    --fkh-pad: clamp(64px, 9vw, 120px);

    position: relative;
    overflow: hidden;
    padding-block: var(--fkh-pad);
    background: #ffffff;
    color: var(--fkh-ink);
    font-family: var(--fkh-body);
    font-size: 16px;
    line-height: 1.6;
}

.fkh *,
.fkh *::before,
.fkh *::after { box-sizing: border-box; }

/* Reset proti globálnym štýlom webu (Kester: p, h1–h6, ul, a…). :where() drží špecificitu na jednej triede,
   takže triedy prvkov nižšie ho vždy prepíšu, a zároveň porazí holé selektory webu (p, ul…). */
.fkh :where(h1, h2, h3, p, ul, ol, li, figure, blockquote, figcaption, dl, dd, span) {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.fkh :where(ul, ol) { list-style: none; }
/* Kester má @media (max-width: 1550px) { p { font-size: 16px !important } } – odseky preto dedia veľkosť
   s !important a triedy odsekov nižšie ju nastavujú tiež s !important. */
.fkh :where(p) { font-size: inherit !important; }
.fkh :where(strong) { font-weight: 700; }
.fkh :where(img) { display: block; max-width: 100%; height: auto; }
.fkh :where(a) { display: inline; font-weight: inherit; text-decoration: none; }
.fkh :focus-visible { outline: 3px solid var(--fkh-accent); outline-offset: 3px; }

.fkh--light { background: var(--fkh-light); }
.fkh--white { background: #ffffff; }
.fkh--dark { background: var(--fkh-ink); color: #ffffff; }

.fkh-wrap {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 20px;
}
@media (min-width: 768px) { .fkh-wrap { padding-inline: 24px; } }

/* --- spoločné: nadtitulok, nadpis, hlavička sekcie, text ------------------------------------------- */
.fkh-eyebrow {
    font-family: var(--fkh-display);
    font-size: 15px !important;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fkh-navy);
}
.fkh--dark .fkh-eyebrow,
.fkh-eyebrow--light { color: var(--fkh-accent); }

.fkh-title {
    font-family: var(--fkh-display);
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.05;
    text-transform: uppercase;
    color: inherit;
}

.fkh-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: clamp(36px, 5vw, 60px);
}
.fkh-head__main { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.fkh-head__lead { max-width: 460px; font-size: 17px !important; line-height: 1.65; color: #444444; }
.fkh--dark .fkh-head__lead { color: rgba(255, 255, 255, .78); }
.fkh-head--center { flex-direction: column; align-items: center; text-align: center; }
.fkh-head--center .fkh-head__main { align-items: center; }

.fkh-prose { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.75; color: var(--fkh-text); }
.fkh-prose strong { color: var(--fkh-ink); }

.fkh-ghost {
    position: absolute;
    top: clamp(16px, 3vw, 40px);
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--fkh-display);
    font-weight: 700;
    font-size: clamp(90px, 17vw, 240px);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: #f2f2f2;
    pointer-events: none;
    user-select: none;
}
.fkh--dark .fkh-ghost { color: rgba(255, 255, 255, .04); }
.fkh--light .fkh-ghost { color: #e9e9e9; }

.fkh-note { margin-top: 28px; font-size: 14px !important; color: var(--fkh-muted); }
.fkh--dark .fkh-note { color: rgba(255, 255, 255, .65); }

.fkh-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    background: var(--fkh-navy);
    color: #ffffff;
    font-family: var(--fkh-display);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fkh-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    font-family: var(--fkh-display);
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background-color .2s, color .2s, border-color .2s;
}
.fkh-btn--white { background: #ffffff; color: var(--fkh-ink); }
.fkh-btn--white:hover { background: var(--fkh-accent); color: var(--fkh-deep); }
.fkh-btn--outline { border: 1px solid rgba(255, 255, 255, .5); color: #ffffff; }
.fkh-btn--outline:hover { border-color: #ffffff; background: rgba(255, 255, 255, .08); color: #ffffff; }

/* --- Úvod ------------------------------------------------------------------------------------------ */
.fkh-hero {
    background: var(--fkh-navy);
    color: #ffffff;
    padding-block: clamp(72px, 9vw, 110px) clamp(120px, 12vw, 160px);
}
.fkh-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 35%;
    filter: grayscale(1) contrast(1.1);
    opacity: .28;
}
.fkh-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 22, 44, .95) 0%, rgba(10, 22, 44, .78) 55%, rgba(10, 22, 44, .4) 100%);
}
.fkh-hero__ghost {
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-family: var(--fkh-display);
    font-weight: 700;
    font-size: clamp(120px, 20vw, 260px);
    line-height: 1;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
}
.fkh-hero__inner { display: flex; flex-direction: column; gap: 22px; }
.fkh-hero__title {
    max-width: 900px;
    font-family: var(--fkh-display);
    font-weight: 700;
    font-size: clamp(52px, 8vw, 112px);
    line-height: .95;
    text-transform: uppercase;
    color: #ffffff;
}
.fkh-hero__lead { max-width: 620px; font-size: clamp(17px, 1.6vw, 19px) !important; line-height: 1.6; color: rgba(255, 255, 255, .88); }

.fkh-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; letter-spacing: .04em; }
.fkh-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.fkh-crumbs li + li::before { content: "/"; }
.fkh-crumbs a { color: rgba(255, 255, 255, .8); }
.fkh-crumbs a:hover { color: #ffffff; }
.fkh-crumbs [aria-current] { color: #ffffff; }

.fkh-chapters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.fkh-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    color: #ffffff;
    font-family: var(--fkh-display);
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .2s, border-color .2s;
}
.fkh-chip:hover { border-color: var(--fkh-accent); background: rgba(33, 168, 225, .15); color: #ffffff; }

/* --- Čísla ----------------------------------------------------------------------------------------- */
.fkh-stats { overflow: visible; padding-block: 0; background: transparent; }
.fkh-stats--overlap { margin-top: -84px; z-index: 2; }
.fkh-stats:not(.fkh-stats--overlap) { padding-block: 48px; }
.fkh-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(10, 22, 44, .14);
}
.fkh-stats__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 24px;
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}
.fkh-stats__value { font-family: var(--fkh-display); font-weight: 700; font-size: 48px; line-height: 1; color: var(--fkh-navy); }
.fkh-stats__label { font-family: var(--fkh-display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.fkh-stats__note { font-size: 14px; color: var(--fkh-muted); }

/* --- Text s dokumentom ----------------------------------------------------------------------------- */
.fkh-story__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 64px; }
.fkh-story__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.fkh-quote { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; padding: 30px 34px; background: var(--fkh-light); }
.fkh-quote__mark { color: var(--fkh-navy); }
.fkh-quote blockquote p { font-family: var(--fkh-display); font-weight: 500; font-size: clamp(21px, 2.2vw, 26px) !important; line-height: 1.35; color: var(--fkh-ink); }
.fkh-quote figcaption { font-size: 15px; color: var(--fkh-muted); }

.fkh-doc { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fkh-doc__paper { position: relative; padding: 16px; background: #e9e4da; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.fkh-doc__img { width: 100%; height: clamp(360px, 45vw, 520px); object-fit: cover; object-position: center 30%; }
.fkh-doc__paper .fkh-badge { top: 32px; left: 32px; }
.fkh-doc__detail { padding: 10px; border: 1px solid var(--fkh-line); background: #ffffff; }
.fkh-doc figcaption { font-size: 15px; line-height: 1.55; color: var(--fkh-muted); }
.fkh-doc figcaption strong { color: var(--fkh-ink); }

/* --- Časová os ------------------------------------------------------------------------------------- */
.fkh-eras { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.fkh-era { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.fkh-era__side { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fkh-era__label {
    padding: 6px 12px;
    background: var(--fkh-muted);
    color: #ffffff;
    font-family: var(--fkh-display);
    font-size: 14px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.fkh-era--now .fkh-era__label { background: var(--fkh-navy); }
.fkh-era__range { font-family: var(--fkh-display); font-weight: 700; font-size: clamp(40px, 4.5vw, 54px); line-height: 1; color: var(--fkh-ink); }
.fkh-era__summary { max-width: 300px; color: #444444; }
.fkh-era__list {
    flex: 999 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 28px;
    border-left: 2px solid #d4d9e2;
}
.fkh-milestone {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 24px;
    padding: 22px 24px;
    background: #ffffff;
}
.fkh--white .fkh-milestone { background: var(--fkh-light); }
.fkh-milestone::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 28px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 4px solid var(--fkh-navy);
    background: #ffffff;
}
.fkh-era--now .fkh-milestone::before { border-color: var(--fkh-accent); }
.fkh-milestone__year { flex: 0 0 92px; font-family: var(--fkh-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--fkh-navy); }
.fkh-milestone__body { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fkh-milestone__title { font-family: var(--fkh-display); font-weight: 600; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: var(--fkh-ink); }
.fkh-milestone__text { color: #444444; }

/* --- Míľniky v rade -------------------------------------------------------------------------------- */
.fkh-milestones__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 2px;
    background: #e6e6e6;
}
.fkh-milestones__item { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: #ffffff; }
.fkh-milestones__year { font-family: var(--fkh-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--fkh-navy); }
.fkh-milestones__bar { width: 36px; height: 3px; background: var(--fkh-accent); }
.fkh-milestones__title { font-family: var(--fkh-display); font-weight: 500; font-size: 19px; text-transform: uppercase; color: var(--fkh-ink); }
.fkh-milestones__text { font-size: 15px !important; line-height: 1.55; color: #555555; }

/* --- Európske poháre ------------------------------------------------------------------------------- */
.fkh-europe .fkh-title { color: #ffffff; }
.fkh-europe__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.fkh-europe__season { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; background: #1b1b1b; border-top: 4px solid var(--fkh-accent); }
.fkh-europe__year { margin-bottom: 8px; font-family: var(--fkh-display); font-weight: 700; font-size: 44px; line-height: 1; color: #ffffff; }
.fkh-tie { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #242424; }
.fkh-tie__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fkh-tie__round { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.fkh-tie__badge {
    padding: 4px 9px;
    background: #3a3a3a;
    color: #ffffff;
    font-family: var(--fkh-display);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.fkh-tie__badge--up { background: var(--fkh-accent); color: var(--fkh-deep); }
.fkh-tie__team { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fkh-tie__team strong { font-family: var(--fkh-display); font-weight: 600; font-size: 22px; text-transform: uppercase; color: #ffffff; }
.fkh-tie__team span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.fkh-tie__legs { display: flex; flex-wrap: wrap; gap: 10px; }
.fkh-tie__legs li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .18); }
.fkh-tie__where { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.fkh-tie__score { font-family: var(--fkh-display); font-weight: 700; font-size: 20px; color: #ffffff; }

/* --- Text s titulmi -------------------------------------------------------------------------------- */
.fkh-titles__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.fkh-titles__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fkh-titles__cards { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.fkh-titles__heading { font-family: var(--fkh-display); font-weight: 500; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--fkh-ink); }
.fkh-titles__list { display: flex; flex-direction: column; gap: 14px; }
.fkh-trophy { display: flex; align-items: center; gap: 22px; padding: 22px 26px; background: var(--fkh-navy); color: #ffffff; }
.fkh-trophy__icon { flex: 0 0 auto; color: var(--fkh-accent); }
.fkh-trophy__body { display: flex; flex-direction: column; gap: 2px; }
.fkh-trophy__cat { font-family: var(--fkh-display); font-weight: 700; font-size: 30px; line-height: 1; }
.fkh-trophy__season { font-size: 15px; color: rgba(255, 255, 255, .85); }

/* --- Archívna fotka -------------------------------------------------------------------------------- */
.fkh-archive__figure { display: flex; flex-direction: column; gap: 22px; }
.fkh-archive__img { width: 100%; filter: sepia(.15); }
.fkh-archive__caption { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px 48px; }
.fkh-archive__caption div { display: flex; flex-direction: column; gap: 8px; }
.fkh-archive__label { font-family: var(--fkh-display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--fkh-navy); }
.fkh-archive__caption p { line-height: 1.7; color: var(--fkh-text); }

/* --- Názvy klubu ----------------------------------------------------------------------------------- */
.fkh-names__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.fkh-names__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 140px;
    padding: 22px 22px 24px;
    background: #ffffff;
    border: 1px solid var(--fkh-line);
}
.fkh-names__years { font-family: var(--fkh-display); font-size: 15px; letter-spacing: .08em; color: var(--fkh-navy); }
.fkh-names__name { font-family: var(--fkh-display); font-weight: 600; font-size: 22px; line-height: 1.2; text-transform: uppercase; color: var(--fkh-ink); }
.fkh-names__item--now { background: var(--fkh-navy); border-color: var(--fkh-navy); }
.fkh-names__item--now .fkh-names__years { color: var(--fkh-accent-soft); }
.fkh-names__item--now .fkh-names__name { color: #ffffff; }

/* --- Zoznam mien (známi hráči) -------------------------------------------------------------------- */
.fkh-players__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.fkh-players__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--fkh-line);
    border-left: 3px solid var(--fkh-accent);
}
.fkh--white .fkh-players__item { background: var(--fkh-light); border-color: var(--fkh-light); border-left-color: var(--fkh-accent); }
.fkh-players__name { font-family: var(--fkh-display); font-weight: 600; font-size: 19px; line-height: 1.2; text-transform: uppercase; color: var(--fkh-ink); }
.fkh-players__item--note,
.fkh--white .fkh-players__item--note { background: var(--fkh-navy); border-color: var(--fkh-navy); border-left-color: var(--fkh-accent); }
.fkh-players__item--note .fkh-players__name { color: #ffffff; }
.fkh-players__note { font-size: 14px; color: var(--fkh-accent-soft); }

/* --- Tréneri a prezidenti -------------------------------------------------------------------------- */
.fkh-people__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.fkh-people__main { flex: 999 1 600px; min-width: 0; }
.fkh-people__main .fkh-head { margin-bottom: 28px; }
.fkh-people__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2px; }
.fkh-people__row { display: flex; align-items: baseline; gap: 18px; padding: 14px 18px; background: #ffffff; }
.fkh--white .fkh-people__row:not(.fkh-people__row--now) { background: var(--fkh-light); }
.fkh-people__season { flex: 0 0 82px; font-family: var(--fkh-display); font-size: 16px; color: var(--fkh-navy); }
.fkh-people__name { font-weight: 500; line-height: 1.4; color: var(--fkh-ink); }
.fkh-people__row--now { background: var(--fkh-navy); }
.fkh-people__row--now .fkh-people__season { color: var(--fkh-accent-soft); }
.fkh-people__row--now .fkh-people__name { color: #ffffff; }
.fkh-people__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 36px 32px; background: var(--fkh-ink); color: #ffffff; }
.fkh-people__side-title { font-family: var(--fkh-display); font-weight: 700; font-size: 34px; line-height: 1.1; text-transform: uppercase; color: #ffffff; }
.fkh-people__side-list li { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 17px; }
.fkh-people__no { flex: 0 0 26px; font-family: var(--fkh-display); font-size: 15px; color: var(--fkh-accent); }

/* --- Výzva ----------------------------------------------------------------------------------------- */
.fkh-callout { background: var(--fkh-navy); color: #ffffff; padding-block: clamp(64px, 8vw, 90px); }
.fkh-callout__ghost {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--fkh-display);
    font-weight: 700;
    font-size: clamp(120px, 18vw, 220px);
    line-height: 1;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
}
.fkh-callout__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.fkh-callout__text { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.fkh-callout__text p { font-size: 18px !important; line-height: 1.65; color: rgba(255, 255, 255, .86); }
.fkh-callout__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.fkh-title--light { color: #ffffff; }

/* --- pohyb --------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .fkh *, .fkh *::before, .fkh *::after { transition: none !important; animation: none !important; }
}

/* --- tlač ---------------------------------------------------------------------------------------- */
@media print {
    .fkh { padding-block: 24px; background: #ffffff !important; color: #000000 !important; }
    .fkh-ghost, .fkh-hero__ghost, .fkh-callout__ghost, .fkh-hero__bg, .fkh-hero__shade, .fkh-chapters { display: none !important; }
    .fkh-hero__title, .fkh-title, .fkh-europe__year, .fkh-tie__team strong, .fkh-tie__score { color: #000000 !important; }
}
