.vlnovka {
    background-color: white;
    background-image: url('../images/vlnovka-footer.svg');
    background-repeat: repeat-x;
    height: 80px;
    background-size: auto 100%;
}

/* --- FONTY --- */
@font-face {
    font-family: 'Lufga';
    src: url('../fonts/Lufga-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Lufga';
    src: url('../fonts/Lufga-SemiBold.otf') format('opentype');
    font-weight: 600;
}

@font-face {
    font-family: 'LufgaRoudnice';
    src: url('../fonts/LufgaRoudnice-SemiBold.otf') format('opentype');
}

:root {
    --rce-blue: #005FBE;
    --rce-blue-dark: #004a95;
    --rce-dark: #0f172a;

    --wave-hero-h: 50px;
    --wave-hero-img: url('../images/vlnovka-bila.svg');
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Lufga', sans-serif;
    color: var(--rce-dark);
    background-color: white;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand,
.hero-title {
    font-family: 'LufgaRoudnice', sans-serif;
}

/* COLORS */
.text-primary {
    color: var(--rce-blue) !important;
}

.bg-primary {
    background-color: var(--rce-blue) !important;
}

.btn-primary {
    background-color: var(--rce-blue);
    border-color: var(--rce-blue);
}

.btn-primary:hover {
    background-color: var(--rce-blue-dark);
    border-color: var(--rce-blue-dark);
}

.btn-outline-primary {
    color: var(--rce-blue);
    border-color: var(--rce-blue);
}

.btn-outline-primary:hover {
    background-color: var(--rce-blue);
    border-color: var(--rce-blue);
    color: #fff;
}

a {
    color: var(--rce-blue);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--rce-blue-dark);
}

/* Hover micro animace */
.btn {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px);
}

/* --- INFO BAR --- */
.top-info-bar {
    background-color: var(--rce-dark);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 105;
}

/* --- NAVIGACE (VŽDY MODRÁ) --- */
.navbar {
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: 0.3s ease;
    background: var(--rce-blue);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    margin: 0 5px;
}

.nav-link:hover {
    color: white !important;
    opacity: 1;
}

.btn-outline-light:hover {
    color: var(--rce-blue);
    background: white;
    border-color: white;
}

/* --- HERO --- */
.hero-section {
    position: relative;
    /* ZVĚTŠENO O CCA 20% */
    height: 75vh;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #fff;
    padding-bottom: var(--wave-hero-h);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--wave-hero-h);
    background-image: var(--wave-hero-img);
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto var(--wave-hero-h);
    z-index: 4;
    pointer-events: none;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/ice.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 10px;
    color: var(--rce-dark);
}

.hero-title {
    font-size: clamp(2.0rem, 4.2vw, 4.0rem);
    line-height: 1.03;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rce-blue);
    text-shadow: none;
}

.hero-img {
    /* OPRAVENA VELIKOST FOTKY */
    width: min(550px, 100%);
    /* Zvětšeno z 420px na 550px */
    height: auto;
    /* OPRAVENO: Původně 8vh (chyba), nyní 70vh aby využila výšku boxu */
    max-height: 70vh;
    object-fit: contain;
    transform: scale(1.02);
    transform-origin: center;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.25));
    will-change: transform;
    transition: transform .22s ease, filter .22s ease;
}

.hero-img:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

/* --- "KARTY" = jen stín (bez rámečku a bez zaoblení) --- */
.session-card,
.tab-content-box,
.glass-feature,
.doc-link,
.soft-shadow-box {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08) !important;
}

/* Hover i na boxy */
.soft-shadow-box,
.tab-content-box,
.about-img-wrap {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    will-change: transform;
}

.soft-shadow-box:hover,
.tab-content-box:hover,
.about-img-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.12) !important;
}

/* --- ROZPIS PRVKY --- */
.schedule-child-img {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.session-card {
    background: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.14) !important;
}

.session-card.highlight {
    background: linear-gradient(135deg, var(--rce-blue), #004a95);
    color: white;
}

.session-card.highlight:hover {
    filter: brightness(1.03);
}

.session-card.highlight .day-name {
    color: rgba(255, 255, 255, 0.8);
}

.session-card.highlight .time-badge {
    background: white;
    color: var(--rce-blue);
}

.day-name {
    font-weight: 700;
    color: var(--rce-blue);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.day-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.time-badge {
    background: #e0f2fe;
    color: var(--rce-blue);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform .18s ease;
}

.session-card:hover .time-badge {
    transform: translateY(-1px);
}

/* dokument (1 soubor = 1 karta) */
.doc-link {
    display: block;
    padding: 16px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    height: 100%;
    color: #0f172a;
}

.doc-link:hover {
    transform: translateY(-3px);
    background: #f8fafc;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14) !important;
    color: #0f172a;
}

.doc-link .doc-arrow {
    transition: transform .18s ease, opacity .18s ease;
    opacity: 0.65;
}

.doc-link:hover .doc-arrow {
    transform: translateX(2px) translateY(-1px);
    opacity: 1;
}

/* Drobné info pod termíny */
.soft-info-mini {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}

.soft-info-mini .price {
    font-weight: 800;
    color: var(--rce-blue);
}

.soft-info-mini .free {
    font-weight: 800;
    color: #16a34a;
}

/* --- OSTATNÍ SECTIONS --- */
.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-pills .nav-link {
    color: var(--rce-dark);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
    margin-right: 0;
    background: #e2e8f0;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    will-change: transform;
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.10);
}

.nav-pills .nav-link.active {
    background-color: var(--rce-blue);
    color: white;
}

.tab-content-box {
    background: white;
    padding: 36px;
    height: auto;
    min-height: 0;
}

.glass-feature {
    background: white;
    padding: 30px;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.glass-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 95, 190, 0.14) !important;
}

.glass-feature i {
    font-size: 2rem;
    color: var(--rce-blue);
    margin-bottom: 15px;
    display: block;
}

/* FIX: fotka nesmí lézt mimo (hlavně při reveal-right) */
.about-img-wrap {
    height: 420px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.about-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Galerie hover */
.gallery-tile img {
    transition: transform .28s ease, filter .28s ease;
    will-change: transform;
}

.gallery-tile:hover img {
    transform: scale(1.07);
    filter: brightness(1.02) contrast(1.02);
}

/* --- KONTAKT --- */
.contact-row {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e0f2fe;
    color: var(--rce-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex: 0 0 46px;
}

.contact-title-mini {
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* --- PATIČKA (vlnovka jako vzor) --- */
footer {
    background: var(--rce-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

footer a {
    color: white;
    opacity: 0.9;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Reveal (decent + stagger) */
.reveal-up {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(2px);
    transition: opacity .75s ease, transform .75s ease, filter .75s ease;
    transition-delay: var(--d, 0s);
    will-change: transform, opacity, filter;
}

.active-reveal {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* Varianty směru / efektu (používej spolu s reveal-up) */
.reveal-left {
    transform: translateX(-34px);
}

.reveal-right {
    transform: translateX(34px);
}

.reveal-scale {
    transform: scale(.965);
}

.reveal-zoom {
    transform: translateY(22px) scale(.985);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

section {
    scroll-margin-top: 130px;
}

/* TABLET FIX */
@media (max-width: 992px) {
    .about-img-wrap {
        height: 320px;
    }

    /* ZAJIŠTĚNÍ FOTKY NA TABLETU */
    .hero-img {
        max-width: 100%;
        max-height: 50vh;
        /* Na tabletu trochu menší než desktop, ale stále výrazná */
    }
}

@media (max-width: 991.98px) {

    /* === FIX: mobilní rozbalovací menu - vše na střed a stejně zarovnané === */
    #mainNav .navbar-nav {
        width: 100%;
    }

    #mainNav .navbar-nav .nav-item {
        width: 100%;
    }

    #mainNav .navbar-nav .nav-link {
        margin: 0 !important;
        text-align: center !important;
        padding: .75rem 0;
    }

    /* === /FIX === */
}

@media (max-width: 576px) {

    /* HERO musí na mobilu pojmout i fotku => auto výška */
    .hero-section {
        height: auto;
        min-height: 0;
        padding-top: 18px;
        padding-bottom: calc(var(--wave-hero-h) + 18px);
    }

    .hero-content {
        padding-top: 8px;
    }

    .hero-img {
        max-width: 290px;
        max-height: 34vh;
    }

    /* DŮLEŽITÉ: na mobilu vypnout posun do stran (dělá overflow / „lezení“ mimo) */
    .reveal-left,
    .reveal-right {
        transform: translateY(34px);
    }

    .about-img-wrap {
        height: 260px;
    }

    .top-info-bar {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    #brusleni .container {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .schedule-child-img {
        max-width: 200px;
        margin-bottom: 8px !important;
    }

    .session-card {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .session-card .session-date {
        min-width: auto !important;
    }

    .day-num {
        font-size: 1.15rem;
    }

    .time-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    #galerie .rounded-3[style*="height: 220px"] {
        height: 160px !important;
    }

    /* Pills na mobilu pod sebe */
    .nav-pills {
        flex-direction: column;
    }

    .nav-pills .nav-item,
    .nav-pills .nav-link {
        width: 100%;
    }

    /* === HERO TLAČÍTKA NA MOBILU MENŠÍ === */
    .hero-content .btn.btn-lg {
        padding: .65rem 1.25rem !important;
        font-size: 1rem !important;
        line-height: 1.2;
    }

    .hero-content .btn.btn-lg.px-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .hero-content .btn.btn-lg.py-3 {
        padding-top: .65rem !important;
        padding-bottom: .65rem !important;
    }
}

/* === XXL: trochu vyšší hero + trochu větší fotka === */
@media (min-width: 1400px) {
    .hero-section {
        height: 56vh;
        /* ZVĚTŠENO */
        min-height: 500px;
        /* ZVĚTŠENO */
    }

    .hero-img {
        width: min(600px, 100%);
        max-height: 56vh;
        transform: scale(1.06);
    }

    .hero-img:hover {
        transform: scale(1.09) translateY(-2px);
    }
}


.schedule-scroll {
    max-height: 520px;
    overflow-y: auto;
    padding-right: .5rem;
    scrollbar-gutter: stable;
}

.schedule-scroll::-webkit-scrollbar {
    width: 10px;
}

.schedule-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .06);
    border-radius: 10px;
}

.schedule-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 95, 190, .35);
    border-radius: 10px;
}

.schedule-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 95, 190, .55);
}

.operation-info-box {
    background: linear-gradient(135deg, rgba(0, 95, 190, .14), rgba(0, 95, 190, .04));
    border: 1px solid rgba(0, 95, 190, .20);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}