/* ============================================
   Calabrone.cz — Main Stylesheet
   Mobile-first, BEM naming, CSS custom properties
   ============================================ */

:root {
    /* === BARVY === */
    --color-accent: #E7C769;
    --color-accent-hover: #d4b44e;
    --color-accent-divider: #FFD700;

    /* Pozadí */
    --color-bg-primary: #FFFFFF;
    --color-bg-header: #000000;
    --color-bg-section-alt: #FAF9F5;
    --color-bg-prefooter: #E7C769;
    --color-bg-button: #212121;
    --color-bg-button-hover: #333333;

    /* Text */
    --color-text-body: #3B3A3A;
    --color-text-heading: #212121;
    --color-text-nav: #BEBEBE;
    --color-text-nav-active: #E7C769;
    --color-text-footer: #696969;
    --color-text-button: #E0E0E0;
    --color-text-on-accent: #212121;

    /* Stavy */
    --color-danger: #CC0000;
    --color-success: #2E7D32;

    /* === TYPOGRAFIE === */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Roboto', Arial, sans-serif;
    --font-nav: 'Roboto', Arial, sans-serif;

    --font-size-body: 15px;
    --font-size-small: 13px;
    --font-size-h1: 32px;
    --font-size-h2: 28px;
    --font-size-h3: 24px;
    --font-size-h4: 18px;
    --font-size-nav: 12px;
    --font-size-footer: 11px;
    --font-size-prefooter: 13px;
    --font-size-topbar: 11px;

    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;

    --line-height-body: 1.7;
    --line-height-heading: 1.3;

    /* === LAYOUT === */
    --container-max-width: 1200px;
    --container-padding: 0 24px;

    --section-padding-y: 60px;
    --section-padding-y-mobile: 40px;

    --prefooter-padding: 20px 24px;

    /* === NAVIGACE === */
    --nav-height: 48px;
    --header-height: 80px;
    --topbar-height: 32px;

    /* === KOMPONENTY === */
    --button-border-radius: 2px;
    --button-padding: 10px 24px;
    --button-font-size: 12px;
    --button-text-transform: uppercase;
    --button-letter-spacing: 1px;

    --input-border-radius: 4px;
    --input-padding: 10px 14px;
    --input-border: 1px solid #ddd;

    --table-cell-padding: 8px 12px;

    --card-border-radius: 4px;
    --card-box-shadow: 0 1px 3px rgba(0,0,0,0.08);

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ============================================
   RESET + BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-heading);
    color: var(--color-text-heading);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ============================================
   TOP BAR
   ============================================ */

.topbar {
    background: var(--color-bg-header);
    color: #999;
    font-size: var(--font-size-topbar);
    height: var(--topbar-height);
    display: none; /* Skrytý na mobilu */
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar a {
    color: #999;
}

.topbar a:hover {
    color: #fff;
}

.topbar .icon {
    width: 12px;
    height: 12px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: var(--color-bg-header);
    height: var(--header-height);
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.header__left {
    display: none; /* Skrytý na mobilu */
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-topbar);
    color: #999;
}

.header__left a {
    color: #999;
}

.header__left a:hover {
    color: #fff;
}

.header__left .icon {
    width: 14px;
    height: 14px;
}

.header__center {
    display: flex;
    justify-content: center;
}

.header__logo-img {
    height: 50px;
    width: auto;
}

.header__right {
    /* Prázdný sloupec pro symetrii */
}

/* ============================================
   NAV BAR (STICKY)
   ============================================ */

.nav {
    background: var(--color-bg-header);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 1px solid #222;
}

.nav__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav__links {
    display: none; /* Skrytý na mobilu, viditelný od tabletu */
    gap: 2rem;
    align-items: center;
}

.nav__links a {
    font-family: var(--font-nav);
    font-size: var(--font-size-nav);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-nav);
    padding: 4px 0;
    position: relative;
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--color-text-nav-active);
}

.nav__links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-text-nav-active);
}

/* Hamburger */
.nav__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    min-width: 48px;
    min-height: 48px;
    z-index: 101;
}

/* ============================================
   MOBILE MENU (off-canvas)
   ============================================ */

.nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.nav__mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--color-bg-header);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.nav__mobile-menu.is-open {
    transform: translateX(0);
}

.nav__mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
}

.nav__mobile-title {
    color: var(--color-accent);
    font-family: var(--font-nav);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.nav__close:hover {
    color: #fff;
}

.nav__mobile-links {
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}

.nav__mobile-links li {
    border-bottom: 1px solid #1a1a1a;
}

.nav__mobile-links a {
    display: block;
    padding: 14px 20px;
    font-family: var(--font-nav);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-nav);
    min-height: 48px;
    line-height: 20px;
}

.nav__mobile-links a:hover,
.nav__mobile-links a.active {
    color: var(--color-text-nav-active);
    background: rgba(231, 199, 105, 0.05);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    min-height: 60vh;
}

.section {
    padding: var(--section-padding-y-mobile) 0;
}

.section--alt {
    background: var(--color-bg-section-alt);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: var(--color-bg-header);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: #fff;
    text-align: center;
    padding: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ============================================
   INTRO / PAGE CONTENT
   ============================================ */

.intro {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-padding-y-mobile) 24px;
}

.intro p {
    margin-bottom: 1em;
}

.page-content {
    padding: var(--section-padding-y-mobile) 24px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.page-content h1 {
    margin-bottom: 24px;
}

.page-content p {
    margin-bottom: 1em;
}

/* ============================================
   KARTY (cards grid)
   ============================================ */

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 24px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.card {
    background: var(--color-bg-primary);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-box-shadow);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card__body {
    padding: 16px;
}

.card__title {
    font-size: var(--font-size-h4);
    margin-bottom: 8px;
}

.card__text {
    font-size: var(--font-size-small);
    color: var(--color-text-footer);
}

/* ============================================
   TLAČÍTKA
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--button-padding);
    font-family: var(--font-nav);
    font-size: var(--button-font-size);
    font-weight: var(--font-weight-medium);
    text-transform: var(--button-text-transform);
    letter-spacing: var(--button-letter-spacing);
    border: none;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    background: var(--color-bg-button);
    color: var(--color-text-button);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: var(--color-bg-button-hover);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}

.btn--accent:hover {
    background: var(--color-accent-hover);
}

/* ============================================
   ALERT MESSAGES
   ============================================ */

.alert {
    padding: 14px 18px;
    border-radius: var(--card-border-radius);
    margin-bottom: 24px;
    font-size: var(--font-size-body);
    line-height: 1.5;
}

.alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert--error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

/* ============================================
   FORMULÁŘE
   ============================================ */

.form__group {
    margin-bottom: 16px;
}

.form__label {
    display: block;
    margin-bottom: 4px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-heading);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--input-padding);
    border: var(--input-border);
    border-radius: var(--input-border-radius);
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    color: var(--color-text-body);
    background: #fff;
    transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   CENÍKOVÁ TABULKA
   ============================================ */

.price-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-body);
}

.price-table th,
.price-table td {
    padding: var(--table-cell-padding);
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-table th {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-heading);
    background: var(--color-bg-section-alt);
}

.price-table tr:nth-child(even) {
    background: var(--color-bg-section-alt);
}

.price-table tr:hover {
    background: rgba(231, 199, 105, 0.08);
}

/* ============================================
   EVENTS
   ============================================ */

.events-list {
    padding: var(--section-padding-y-mobile) 24px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.events-list h1 {
    margin-bottom: 24px;
}

.event-card {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.event-card:last-child {
    border-bottom: none;
}

.event-card h2 {
    font-size: var(--font-size-h3);
    margin-bottom: 8px;
}

.event-card h2 a:hover {
    color: var(--color-accent);
}

.event-card time {
    display: inline-block;
    font-size: var(--font-size-small);
    color: var(--color-text-footer);
    margin-bottom: 8px;
}

.event-detail {
    padding: var(--section-padding-y-mobile) 24px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.event-detail h1 {
    margin-bottom: 16px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: var(--font-size-small);
    color: var(--color-text-footer);
}

.event-content {
    margin-top: 16px;
}

.event-content p {
    margin-bottom: 1em;
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-page {
    text-align: center;
    padding: var(--section-padding-y) 24px;
}

.error-page h1 {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 16px;
}

.error-page a {
    color: var(--color-accent);
}

.error-page a:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   PRE-FOOTER (zlatý bar)
   ============================================ */

.prefooter {
    background: var(--color-bg-prefooter);
    padding: var(--prefooter-padding);
    overflow: hidden;
}

.prefooter__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.prefooter__left,
.prefooter__right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-prefooter);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    color: var(--color-text-on-accent);
}

.prefooter__separator {
    color: rgba(0,0,0,0.3);
}

.prefooter a {
    color: var(--color-text-on-accent);
}

.prefooter a:hover {
    opacity: 0.7;
}

.prefooter .icon {
    width: 16px;
    height: 16px;
}

.prefooter__hashtag {
    font-style: italic;
}

/* ============================================
   FOOTER (copyright)
   ============================================ */

.footer {
    padding: 20px 0;
    text-align: center;
    font-size: var(--font-size-footer);
    color: var(--color-text-footer);
}

/* ============================================
   SVG ICONS (global)
   ============================================ */

.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-bg-header);
}

.slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slider__slide.is-active {
    opacity: 1;
}

.slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    z-index: 10;
    transition: background var(--transition-fast);
    display: none; /* Skrytý na mobilu */
}

.slider__arrow:hover {
    background: rgba(0,0,0,0.7);
}

.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }

.slider__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast);
}

.slider__dot.is-active,
.slider__dot:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ============================================
   SECTION DIVIDERS (zlatá čára s titulem)
   ============================================ */

.section__divider {
    position: relative;
    border-top: 1px solid var(--color-accent-divider);
    margin-bottom: 32px;
    text-align: center;
}

.section__divider-title {
    position: relative;
    top: -0.7em;
    background: var(--color-bg-primary);
    padding: 0 16px;
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-light);
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section--alt .section__divider-title {
    background: var(--color-bg-section-alt);
}

.section__media {
    margin-bottom: 24px;
}

.section__media img {
    width: 100%;
    border-radius: var(--card-border-radius);
}

.section p {
    margin-bottom: 24px;
    max-width: 800px;
}

.section .btn {
    margin-top: 8px;
}

.section__title {
    margin-bottom: 24px;
}

/* ============================================
   SERVIS PAGE
   ============================================ */

.servis-section {
    margin-bottom: 48px;
}

.servis-section h2 {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.servis-list {
    margin-bottom: 24px;
}

.servis-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--color-text-body);
}

.servis-list .icon {
    color: var(--color-success);
    flex-shrink: 0;
}

.servis-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.servis-gallery img {
    width: 100%;
    border-radius: var(--card-border-radius);
}

.servis-note {
    margin-top: 32px;
    color: var(--color-text-footer);
    font-size: var(--font-size-small);
}

/* ============================================
   CAFÉ PAGE
   ============================================ */

.cafe-section {
    margin-bottom: 40px;
}

.cafe-section h2 {
    margin-bottom: 12px;
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery-grid__item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--card-border-radius);
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.gallery-grid__item img:hover {
    opacity: 0.85;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    font-size: 32px;
    line-height: 1;
    z-index: 1001;
}

.lightbox__close:hover {
    color: var(--color-accent);
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    z-index: 1001;
    transition: background var(--transition-fast);
}

.lightbox__arrow:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }

.lightbox__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: var(--font-size-small);
}

/* ============================================
   CYCLING CLUB PAGE
   ============================================ */

.cyclingclub-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}

.cyclingclub-gallery img {
    width: 100%;
    border-radius: var(--card-border-radius);
}

/* ============================================
   KONTAKT PAGE
   ============================================ */

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.kontakt-info h2 {
    margin-bottom: 24px;
}

.kontakt-info h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: var(--font-size-h4);
}

.kontakt-info__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.kontakt-info__item .icon {
    margin-top: 4px;
    color: var(--color-accent);
}

.kontakt-info__item a:hover {
    color: var(--color-accent);
}

.oteviraci-doba {
    border-collapse: collapse;
}

.oteviraci-doba td {
    padding: 4px 16px 4px 0;
}

.kontakt-social {
    display: flex;
    gap: 16px;
}

.kontakt-social a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kontakt-social a:hover {
    color: var(--color-accent);
}

.kontakt-form h2 {
    margin-bottom: 24px;
}

.kontakt-map {
    margin-top: 48px;
}

.kontakt-map h2 {
    margin-bottom: 16px;
}

/* ============================================
   EVENTS EMPTY STATE
   ============================================ */

.events-empty {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.events-empty a {
    color: var(--color-accent);
}

.events-empty a:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   RESPONSIVE — Tablet (640px+)
   ============================================ */

@media (min-width: 640px) {
    .topbar {
        display: block;
    }

    .header__left {
        display: flex;
    }

    .section {
        padding: var(--section-padding-y) 0;
    }

    .intro {
        padding: var(--section-padding-y) 24px;
    }

    .page-content {
        padding: var(--section-padding-y) 24px;
    }

    .events-list {
        padding: var(--section-padding-y) 24px;
    }

    .event-detail {
        padding: var(--section-padding-y) 24px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .prefooter__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .slider {
        height: 450px;
    }

    .slider__arrow {
        display: flex;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cyclingclub-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE — Desktop (960px+)
   ============================================ */

@media (min-width: 960px) {
    .nav__links {
        display: flex;
        gap: 2rem;
    }

    .nav__hamburger {
        display: none;
    }

    .cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .kontakt-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   RESPONSIVE — Wide desktop (1200px+)
   ============================================ */

@media (min-width: 1200px) {
    .nav__links {
        gap: 2.5rem;
    }

    .header__logo-img {
        height: 56px;
    }
}

/* ============================================
   GALLERY LIST (přehled galerií)
   ============================================ */

.gallery-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .gallery-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .gallery-list { grid-template-columns: repeat(3, 1fr); }
}

.gallery-card {
    display: block;
    background: var(--color-bg-primary);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-box-shadow);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.gallery-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.gallery-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-section-alt);
}

.gallery-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    opacity: 0.3;
}

.gallery-card__count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.gallery-card__body {
    padding: 16px;
}

.gallery-card__title {
    font-size: var(--font-size-h4);
    margin-bottom: 4px;
}

.gallery-card__desc {
    font-size: var(--font-size-small);
    color: var(--color-text-footer);
}

/* Gallery detail */
.gallery-detail__back {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--color-accent);
    font-size: var(--font-size-small);
}

.gallery-detail__back:hover {
    color: var(--color-accent-hover);
}

.gallery-detail__desc {
    margin-bottom: 24px;
    color: var(--color-text-footer);
    max-width: 600px;
}

.gallery-detail__count {
    margin-top: 16px;
    font-size: var(--font-size-small);
    color: var(--color-text-footer);
    text-align: center;
}

/* Larger gallery grid variant */
.gallery-grid--large {
    gap: 12px;
}

@media (min-width: 960px) {
    .gallery-grid--large { grid-template-columns: repeat(4, 1fr); }
}
