/* =====================================================================
   HISTÓRIA (2026) — page chrome zarovnané s galeria-page / vysledky
   Cream pozadie · navy + cherry typografia · biele "pillow" karty
   + vertikálny timeline a stat tiles.
   ===================================================================== */

#section-historia-page {
    position: relative;
    background: var(--color-cream);
    color: var(--color-navy-dark);
    padding: var(--space-section) 0 var(--space-section);
    text-align: left;
    isolation: isolate;
    min-height: 100vh;
}

#section-historia-page .section-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin-inline: auto;
    padding: 0 24px;
    text-align: left;
}

#section-historia-page .historia-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#section-historia-page .historia-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

#section-historia-page .blob-cherry {
    width: 520px;
    height: 520px;
    background: var(--color-cherry);
    top: -180px;
    right: -120px;
    opacity: 0.15;
}

#section-historia-page .blob-sand {
    width: 460px;
    height: 460px;
    background: var(--color-sand);
    bottom: 20%;
    left: -160px;
    opacity: 0.20;
}

#section-historia-page .blob-teal {
    width: 380px;
    height: 380px;
    background: var(--color-teal);
    top: 60%;
    right: 10%;
    opacity: 0.10;
}

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */
#section-historia-page .historia-page-head {
    margin-bottom: var(--space-section-inner);
    text-align: left;
}

#section-historia-page .historia-breadcrumbs {
    margin-bottom: var(--space-6);
}

#section-historia-page .crumb {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: rgba(14, 33, 72, 0.06);
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color var(--transition-fast),
        transform var(--transition-fast),
        color var(--transition-fast);
}

#section-historia-page .crumb:hover {
    background: rgba(14, 33, 72, 0.12);
    color: var(--color-cherry);
    transform: translateX(-2px);
}

#section-historia-page .historia-head-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-8);
}

#section-historia-page .historia-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--surface-tint-cherry);
    color: var(--color-cherry);
    font-family: var(--font-family-heading);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#section-historia-page .historia-page-title {
    margin: 0 0 var(--space-4);
    font-family: var(--font-family-display);
    line-height: 1.02;
    text-transform: uppercase;
}

#section-historia-page .historia-page-title .line-1 {
    display: block;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--color-navy);
}

#section-historia-page .historia-page-title .line-2 {
    display: block;
    font-weight: 900;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    color: var(--color-cherry);
    letter-spacing: -0.005em;
}

#section-historia-page .historia-lead {
    margin: 0;
    max-width: 620px;
    font-family: var(--font-family-text);
    font-size: clamp(1rem, 1.1vw, 1.08rem);
    line-height: 1.7;
    color: var(--text-muted);
}

#section-historia-page .historia-lead strong {
    color: var(--color-navy);
    font-weight: 700;
}

#section-historia-page .historia-head-right {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#section-historia-page .historia-year {
    font-family: var(--font-family-special);
    font-size: clamp(5rem, 11vw, 11rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-navy);
    user-select: none;
    pointer-events: none;
}

/* ---------------------------------------------------------------------
   HERO IMAGE
   --------------------------------------------------------------------- */
#section-historia-page .historia-hero-figure {
    margin: 0 0 var(--space-12);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-pillow-md);
    background: #fff;
}

#section-historia-page .historia-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#section-historia-page .historia-hero-figure figcaption {
    padding: 14px 22px;
    background: #fff;
    color: var(--text-muted);
    font-family: var(--font-family-text);
    font-size: 0.88rem;
    font-style: italic;
}

/* ---------------------------------------------------------------------
   STATS
   --------------------------------------------------------------------- */
#section-historia-page .historia-stats {
    list-style: none;
    margin: 0 0 var(--space-12);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-grid-gap);
}

#section-historia-page .stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 22px;
    background: #fff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-pillow-sm);
    text-align: left;
    position: relative;
    overflow: hidden;
}

#section-historia-page .stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-navy);
}

#section-historia-page .stat--cherry::before {
    background: var(--color-cherry);
}

#section-historia-page .stat--sand::before {
    background: var(--color-sand);
}

#section-historia-page .stat--teal::before {
    background: var(--color-teal);
}

#section-historia-page .stat--mustard::before {
    background: var(--color-mustard);
}

#section-historia-page .stat-value {
    display: block;
    font-family: var(--font-family-display);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-navy-dark);
    letter-spacing: -0.005em;
}

#section-historia-page .stat-label {
    display: block;
    font-family: var(--font-family-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------
   TIMELINE
   --------------------------------------------------------------------- */
#section-historia-page .historia-timeline {
    position: relative;
    margin: 0 0 var(--space-12);
    padding-left: 28px;
}

#section-historia-page .historia-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: rgba(14, 33, 72, 0.12);
    border-radius: 2px;
}

#section-historia-page .timeline-item {
    position: relative;
    padding: 0 0 var(--space-8);
}

#section-historia-page .timeline-item:last-child {
    padding-bottom: 0;
}

#section-historia-page .timeline-dot {
    position: absolute;
    top: 6px;
    left: -28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-navy);
    box-shadow: 0 0 0 4px var(--color-cream),
        0 0 0 6px rgba(14, 33, 72, 0.12);
}

#section-historia-page .timeline-dot--cherry {
    background: var(--color-cherry);
    box-shadow: 0 0 0 4px var(--color-cream),
        0 0 0 6px rgba(224, 36, 30, 0.18);
}

#section-historia-page .timeline-content {
    background: #fff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-pillow-sm);
    padding: 22px 26px;
}

#section-historia-page .timeline-date {
    display: inline-block;
    margin-bottom: 6px;
    font-family: var(--font-family-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-cherry);
}

#section-historia-page .timeline-title {
    margin: 0 0 8px;
    font-family: var(--font-family-display);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 800;
    color: var(--color-navy-dark);
    letter-spacing: -0.005em;
}

#section-historia-page .timeline-content p {
    margin: 0;
    font-family: var(--font-family-text);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-navy-dark);
}

/* ---------------------------------------------------------------------
   CONTENT BLOCKS
   --------------------------------------------------------------------- */
#section-historia-page .historia-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

#section-historia-page .content-block {
    background: #fff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-pillow-sm);
    padding: clamp(28px, 3.5vw, 44px);
}

#section-historia-page .content-block-head {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    text-align: left;
}

#section-historia-page .content-block-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-3);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface-tint-cherry);
    color: var(--color-cherry);
    font-family: var(--font-family-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#section-historia-page .content-block-eyebrow--sand {
    background: rgba(217, 178, 106, 0.20);
    color: #8a6a2a;
}

#section-historia-page .content-block-eyebrow--teal {
    background: rgba(59, 180, 174, 0.16);
    color: #186f6b;
}

#section-historia-page .content-block-eyebrow--mustard {
    background: rgba(232, 184, 51, 0.20);
    color: #8a6914;
}

#section-historia-page .content-block-title {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 900;
    color: var(--color-navy);
    letter-spacing: -0.005em;
    line-height: 1.15;
}

#section-historia-page .content-block p {
    margin: 0 0 14px;
    font-family: var(--font-family-text);
    font-size: clamp(0.98rem, 1.05vw, 1.05rem);
    line-height: 1.72;
    color: var(--color-navy-dark);
}

#section-historia-page .content-block p:last-child {
    margin-bottom: 0;
}

#section-historia-page .content-block strong {
    color: var(--color-navy);
    font-weight: 700;
}

#section-historia-page .content-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#section-historia-page .content-list li {
    position: relative;
    padding: 12px 16px 12px 38px;
    background: rgba(14, 33, 72, 0.03);
    border-radius: var(--radius-medium);
    font-family: var(--font-family-text);
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--color-navy-dark);
}

#section-historia-page .content-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-cherry);
    transform: translateY(-50%);
}

/* ---------------------------------------------------------------------
   GALERIA (Swiper)
   --------------------------------------------------------------------- */
#section-historia-page .historia-gallery {
    margin-bottom: var(--space-12);
    text-align: left;
}

#section-historia-page .historia-gallery-head {
    margin-bottom: var(--space-6);
    text-align: left;
}

#section-historia-page .history-swiper {
    width: 100%;
    padding: 8px 0 32px;
}

#section-historia-page .history-swiper .swiper-slide {
    width: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#section-historia-page .history-swiper .swiper-slide img {
    height: 360px;
    width: auto;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-pillow-sm);
    cursor: pointer;
    display: block;
    transition: transform var(--transition-base),
        box-shadow var(--transition-base);
}

#section-historia-page .history-swiper .swiper-slide img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-pillow-md);
}

#section-historia-page .image-caption {
    margin: 0;
    font-family: var(--font-family-text);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 240px;
    word-break: break-word;
}

#section-historia-page .history-swiper .swiper-button-prev,
#section-historia-page .history-swiper .swiper-button-next {
    width: 40px !important;
    height: 40px !important;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-pillow-sm);
    color: var(--color-navy) !important;
}

#section-historia-page .history-swiper .swiper-button-prev:after,
#section-historia-page .history-swiper .swiper-button-next:after {
    font-size: 16px !important;
    font-weight: 800;
}

#section-historia-page .history-swiper .swiper-pagination-bullet {
    background: rgba(14, 33, 72, 0.25);
    opacity: 1;
}

#section-historia-page .history-swiper .swiper-pagination-bullet-active {
    background: var(--color-cherry);
}

/* ---------------------------------------------------------------------
   FOOT NAV
   --------------------------------------------------------------------- */
#section-historia-page .historia-foot {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    text-align: left;
}

#section-historia-page .foot-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: var(--shadow-pillow-sm);
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition-base),
        box-shadow var(--transition-base),
        color var(--transition-base);
}

#section-historia-page .foot-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pillow-md);
    color: var(--color-cherry);
}

#section-historia-page .foot-link ion-icon {
    font-size: 18px;
    color: var(--color-cherry);
}

#section-historia-page .foot-link .arrow {
    margin-left: auto;
    color: var(--color-navy);
    transition: transform var(--transition-base);
}

#section-historia-page .foot-link:hover .arrow {
    transform: translateX(4px);
    color: var(--color-cherry);
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media screen and (max-width: 60em) {
    #section-historia-page .historia-head-inner {
        grid-template-columns: 1fr;
    }

    #section-historia-page .historia-head-right {
        justify-content: flex-start;
    }

    #section-historia-page .historia-year {
        font-size: clamp(4rem, 16vw, 7rem);
    }

    #section-historia-page .historia-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 40em) {
    #section-historia-page .history-swiper .swiper-slide img {
        height: 240px;
    }

    #section-historia-page .timeline-content {
        padding: 18px 20px;
    }
}