/* ========================================
   CSS STYLE – DECK KOMPLET s.r.o.
   Světlý, čistý, profesionální design
   Barvy: bílá, teplá šedá, akcent #c5b59d
   Typografie: Raleway + Source Sans 3
   ======================================== */

/* ----------------------------------------
   0. CSS CUSTOM PROPERTIES (PROMĚNNÉ)
   ---------------------------------------- */
:root {
    /* Barvy */
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f5f2;
    --color-bg-accent: #3d3529;
    --color-text: #2a2a2a;
    --color-text-light: #5a5a5a;
    --color-text-muted: #8a8580;
    --color-accent: #c5b59d;
    --color-accent-hover: #b5a48b;
    --color-accent-dark: #3d3529;
    --color-accent-light: rgba(197, 181, 157, 0.12);
    --color-border: #e8e4df;
    --color-border-light: #f0ece8;
    --color-success: #2e7d32;
    --color-success-bg: #e8f5e9;
    --color-error: #c62828;
    --color-error-bg: #ffebee;
    --color-overlay: rgba(42, 42, 42, 0.6);

    /* Typografie */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    /* Velikosti písma */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3.25rem;

    /* Váhy písma */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Rozměry */
    --container-max: 1200px;
    --container-padding: 1.25rem;
    --header-height: 90px;
    --section-padding: 5rem;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Stíny */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-header: 0 2px 20px rgba(0, 0, 0, 0.06);

    /* Přechody */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ----------------------------------------
   1. RESET & ZÁKLADY
   ---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

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

a:hover,
a:focus-visible {
    color: var(--color-accent);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* ----------------------------------------
   2. LAYOUT – CONTAINER
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ----------------------------------------
   3. TYPOGRAFIE
   ---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    color: var(--color-text);
}

h1 {
    font-size: var(--fs-4xl);
}

h2 {
    font-size: var(--fs-3xl);
}

h3 {
    font-size: var(--fs-xl);
}

h4 {
    font-size: var(--fs-lg);
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: var(--fw-semibold);
}

/* ----------------------------------------
   4. TLAČÍTKA
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-text);
    border: 2px solid var(--color-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    color: var(--color-accent-dark);
}

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: var(--fs-xs);
}

.btn--full {
    width: 100%;
}

.btn__text {
    position: relative;
    z-index: 1;
}

.btn__loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn.loading .btn__text {
    opacity: 0;
}

.btn.loading .btn__loader {
    display: block;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------
   5. HEADER / NAVIGACE
   ---------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled,
.header--solid {
    background-color: var(--color-white);
    box-shadow: var(--shadow-header);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

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

/* Navigace */
.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    display: block;
    padding: 0.5rem 0.7rem;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    letter-spacing: 0.02em;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

/* Podtržení – pseudo element */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 1.4rem);
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
    transition: transform var(--transition-base);
    transform-origin: center;
}

/* Hover – podtržení */
.nav__link:hover::after,
.nav__link:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
}

/* Aktivní položka */
.nav__link.active {
    color: var(--color-accent-dark);
    font-weight: var(--fw-semibold);
}

.nav__link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Transparentní header – aktivní bílá */
.header:not(.scrolled):not(.header--solid) .nav__link.active {
    color: var(--color-white);
}

/* CTA tlačítko – BEZ podtržení */
.nav__link--cta::after {
    display: none;
}

.header:not(.scrolled):not(.header--solid) .nav__link {
    color: var(--color-white);
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--color-accent);
}

.header:not(.scrolled):not(.header--solid) .nav__link:hover,
.header:not(.scrolled):not(.header--solid) .nav__link:focus-visible {
    color: var(--color-accent);
}

.nav__link--cta {
    background-color: var(--color-accent);
    color: var(--color-text) !important;
    padding: 0.5rem 1.25rem;
    font-weight: var(--fw-semibold);
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
    background-color: var(--color-accent-dark);
    color: var(--color-white) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    z-index: 1001;
    padding: 4px;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.header:not(.scrolled):not(.header--solid) .hamburger__line {
    background-color: var(--color-white);
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ----------------------------------------
   6. HERO SEKCE
   ---------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../obrazky/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(42, 42, 42, 0.75) 0%,
            rgba(61, 53, 41, 0.6) 50%,
            rgba(42, 42, 42, 0.5) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 8rem 0 4rem;
    max-width: 720px;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2rem, 5vw, var(--fs-4xl));
    font-weight: var(--fw-extrabold);
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero__text {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero .btn--primary {
    background-color: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}

.hero .btn--primary:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-text);
}

.hero .btn--outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
}

.hero .btn--outline:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* ----------------------------------------
   7. SEKCE – OBECNÉ STYLY
   ---------------------------------------- */
.section {
    padding: var(--section-padding) 0;
}

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

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

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section__label--light {
    color: var(--color-accent);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    margin-bottom: 1rem;
}

.section__title--light {
    color: var(--color-white);
}

.section__desc {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ----------------------------------------
   8. O NÁS
   ---------------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.about__card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}

.about__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.about__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
    margin-bottom: 1.25rem;
}

.about__card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: 0.75rem;
}

.about__card-text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ----------------------------------------
   9. SLUŽBY
   ---------------------------------------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.service-card__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 0.75rem;
}

.service-card__text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-card__list {
    list-style: none;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-card__list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.8;
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-accent-dark);
    transition: color var(--transition-fast);
    margin-top: auto;
}

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

/* ----------------------------------------
   10. PRONÁJEM PLOŠIN – CENÍK
   ---------------------------------------- */
.platforms__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.platform-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.platform-card__header {
    background-color: var(--color-bg-accent);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.platform-card__name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin: 0;
}

.platform-card__badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: var(--color-accent);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: 50px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.platform-card__specs {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border-light);
}

.platform-card__spec-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.platform-card__spec-value {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.platform-card__pricing {
    padding: 1.5rem 2rem;
}

.platform-card__note {
    padding: 0 2rem 1.5rem;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Ceníkové tabulky */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
}

.pricing-table tbody td {
    padding: 0.75rem 1rem;
    font-size: var(--fs-sm);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background-color: var(--color-accent-light);
}

/* Upozornění */
.platforms__warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
}

.platforms__warning svg {
    flex-shrink: 0;
    color: #f9a825;
    margin-top: 2px;
}

.platforms__warning p {
    font-size: var(--fs-sm);
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* ----------------------------------------
   11. NORMY PÍSKOVÁNÍ
   ---------------------------------------- */
.norms__table-wrap {
    overflow-x: auto;
    margin-bottom: 3rem;
    -webkit-overflow-scrolling: touch;
}

.pricing-table--norms thead th {
    white-space: nowrap;
}

.norms__info {
    margin-top: 2rem;
}

.norms__info-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.norms__info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.norms__info-item {
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--color-border-light);
}

.norms__info-item h4 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
}

.norms__info-item p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ----------------------------------------
   12. PROČ PRÁVĚ NÁS (TMAVÁ SEKCE)
   ---------------------------------------- */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.advantage:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
}

.advantage__number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-accent);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 1rem;
}

.advantage__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.advantage__text {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ----------------------------------------
   13. GALERIE
   ---------------------------------------- */
.gallery__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.gallery__filter-btn {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-light);
    background-color: transparent;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.gallery__filter-btn:hover,
.gallery__filter-btn:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
}

.gallery__filter-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text);
}

/* Galerie grid – uniformní */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery__item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background-color: var(--color-bg-alt);
}

.gallery__item.hidden {
    display: none;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.06);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 42, 42, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__overlay-text {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-white);
}

/* ----------------------------------------
   14. LIGHTBOX
   ---------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
    margin-top: 1rem;
    text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10000;
}

.lightbox__close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox__prev {
    left: 1.5rem;
}

.lightbox__next {
    right: 1.5rem;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background-color: var(--color-accent);
    color: var(--color-text);
}

/* ----------------------------------------
   15. KONTAKT
   ---------------------------------------- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__info-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 1.5rem;
}

.contact__info-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
}

.contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact__info-item:last-child {
    margin-bottom: 0;
}

.contact__info-item svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 3px;
}

.contact__info-item strong {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.contact__info-item p {
    font-size: var(--fs-sm);
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

.contact__info-item a {
    color: var(--color-text);
    font-weight: var(--fw-medium);
}

.contact__info-item a:hover {
    color: var(--color-accent);
}

/* Mapa */
.contact__map {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.contact__map iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Formulář */
.contact__form-wrap {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.contact__form-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 0.5rem;
}

.contact__form-text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-optional {
    font-weight: var(--fw-regular);
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--fs-base);
    color: var(--color-text);
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus {
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input.error {
    border-color: var(--color-error);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

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

.form-error {
    display: none;
    font-size: var(--fs-xs);
    color: var(--color-error);
    margin-top: 0.35rem;
}

.form-error.visible {
    display: block;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-checkbox__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-white);
    transition: all var(--transition-fast);
    margin-top: 1px;
}

.form-checkbox input:checked+.form-checkbox__mark {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-checkbox input:checked+.form-checkbox__mark::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.form-checkbox input:focus-visible+.form-checkbox__mark {
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-checkbox__text a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-checkbox__text a:hover {
    color: var(--color-accent);
}

.form-group--consent {
    margin-bottom: 1.5rem;
}

/* Stavové hlášky formuláře */
.form-status {
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-top: 1.25rem;
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.form-status.visible {
    display: flex;
}

.form-status svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.form-status p {
    margin: 0;
}

.form-status--success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #c8e6c9;
}

.form-status--success svg {
    color: var(--color-success);
}

.form-status--error {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid #ffcdd2;
}

.form-status--error svg {
    color: var(--color-error);
}

/* ----------------------------------------
   16. FOOTER
   ---------------------------------------- */
.footer {
    background-color: var(--color-bg-accent);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    height: 76px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer__text {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: var(--fs-sm);
}

.footer__contact svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 3px;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.6);
}

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

/* Právní odkazy */
.footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__legal-links a {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer__legal-links a:hover {
    color: var(--color-accent);
}

.footer__copyright {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Credit Webarský prostor */
.footer__credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.4);
}

.footer__credit-link {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition-base), filter var(--transition-base);
    opacity: 0.6;
}

.footer__credit-link:hover {
    opacity: 1;
    filter: brightness(1.3);
}

.footer__credit-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ----------------------------------------
   17. COOKIE BANNER
   ---------------------------------------- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9990;
    background-color: var(--color-white);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--color-border-light);
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem var(--container-padding);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-banner__title {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin-bottom: 0.35rem;
}

.cookie-banner__text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ----------------------------------------
   18. COOKIE MODAL
   ---------------------------------------- */
.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9995;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal.visible {
    display: flex;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-overlay);
}

.cookie-modal__content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    z-index: 1;
}

.cookie-modal__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin: 0;
}

.cookie-modal__close {
    font-size: 1.75rem;
    color: var(--color-text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.cookie-modal__close:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-text);
}

.cookie-modal__body {
    padding: 1.5rem 2rem;
}

.cookie-modal__desc {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cookie-modal__desc a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Kategorie cookies */
.cookie-category {
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-category__name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: 0.35rem;
}

.cookie-category__desc {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Toggle switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle__label {
    display: block;
    width: 44px;
    height: 24px;
    background-color: var(--color-border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.cookie-toggle__slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked+.cookie-toggle__label {
    background-color: var(--color-accent);
}

.cookie-toggle input:checked+.cookie-toggle__label .cookie-toggle__slider {
    transform: translateX(20px);
}

.cookie-toggle--disabled .cookie-toggle__label {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle__status {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.cookie-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--color-border-light);
    position: sticky;
    bottom: 0;
    background-color: var(--color-white);
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
}

/* ----------------------------------------
   19. PRÁVNÍ STRÁNKY (cookie-policy, gdpr)
   ---------------------------------------- */
.legal-page {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: var(--section-padding);
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.breadcrumb__link {
    color: var(--color-text-light);
}

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

.breadcrumb__sep {
    color: var(--color-border);
}

.breadcrumb__current {
    color: var(--color-text);
    font-weight: var(--fw-medium);
}

/* Právní obsah */
.legal__header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent);
}

.legal__title {
    font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    margin-bottom: 0.75rem;
}

.legal__meta {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.legal__intro {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    line-height: 1.8;
}

.legal__section {
    margin-bottom: 2.5rem;
}

.legal__heading {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.legal__subheading {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent-dark);
}

.legal__list {
    list-style: none;
    margin-bottom: 1rem;
}

.legal__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text-light);
}

.legal__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.legal__list li strong {
    color: var(--color-text);
}

.legal__info-box {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}

.legal__info-box p {
    font-size: var(--fs-sm);
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.legal__info-box p:last-child {
    margin-bottom: 0;
}

.legal__info-box a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tabulky v právních stránkách */
.legal__table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    -webkit-overflow-scrolling: touch;
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.legal__table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    background-color: var(--color-bg-alt);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.legal__table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-light);
    vertical-align: top;
}

.legal__table tbody tr:hover {
    background-color: var(--color-accent-light);
}

.legal__table code {
    font-family: 'Courier New', monospace;
    font-size: var(--fs-xs);
    background-color: var(--color-bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--color-accent-dark);
}

/* ----------------------------------------
   20. ANIMACE – SCROLL REVEAL
   ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   21. RESPONZIVITA
   ---------------------------------------- */

/* Tablet – max 1024px */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }

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

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

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

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

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

/* Tablet menší – max 768px */
@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem;
        --header-height: 80px;
        --container-padding: 1rem;
    }

    /* Hamburger menu */
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-base);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .nav__link {
        font-size: var(--fs-lg);
        padding: 0.75rem 1.5rem;
        color: var(--color-text) !important;
    }

    .nav__link.active {
        color: var(--color-accent-dark) !important;
    }

    .nav__link::after {
        bottom: 4px;
    }

    .nav__link--cta {
        margin-top: 0.5rem;
    }

    /* Hamburger active – vždy tmavé čáry v otevřeném menu */
    .hamburger.active .hamburger__line {
        background-color: var(--color-text) !important;
    }

    /* Hero */
    .hero__content {
        padding: 7rem 1.5rem 3rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero .btn {
        width: 100%;
        text-align: center;
    }

    /* Sekce */
    .section__header {
        margin-bottom: 2.5rem;
    }

    /* O nás */
    .about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Služby */
    .services__grid {
        grid-template-columns: 1fr;
    }

    /* Plošiny */
    .platforms__grid {
        grid-template-columns: 1fr;
    }

    .platform-card__specs {
        grid-template-columns: 1fr 1fr;
    }

    /* Normy */
    .norms__info-grid {
        grid-template-columns: 1fr;
    }

    /* Výhody */
    .advantages__grid {
        grid-template-columns: 1fr;
    }

    /* Galerie */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__filters {
        gap: 0.35rem;
    }

    .gallery__filter-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.65rem;
    }

    /* Kontakt */
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__legal {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal-links {
        justify-content: center;
    }

    /* Cookie banner */
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Cookie modal */
    .cookie-modal__content {
        max-height: 85vh;
    }

    .cookie-modal__header,
    .cookie-modal__body,
    .cookie-modal__footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .cookie-category__header {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Lightbox */
    .lightbox__prev {
        left: 0.75rem;
    }

    .lightbox__next {
        right: 0.75rem;
    }

    .lightbox__close {
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Právní stránky */
    .legal__table {
        font-size: var(--fs-xs);
    }

    .legal__table thead th,
    .legal__table tbody td {
        padding: 0.5rem 0.6rem;
    }
}

/* Mobil – max 480px */
@media (max-width: 480px) {
    :root {
        --section-padding: 3rem;
        --fs-4xl: 2.25rem;
        --fs-3xl: 1.875rem;
        --fs-2xl: 1.5rem;
    }

    .header__logo-img {
        height: 62px;
    }

    .hero__content {
        padding: 6.5rem 1.25rem 2.5rem;
    }

    /* O nás */
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__card {
        padding: 1.5rem;
    }

    /* Plošiny specs */
    .platform-card__specs {
        grid-template-columns: 1fr;
    }

    .platform-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Galerie */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Formulář */
    .contact__form-wrap {
        padding: 1.5rem;
    }

    /* Footer credit */
    .footer__credit-logo {
        height: 18px;
    }

    /* Cookie modal footer */
    .cookie-modal__footer {
        flex-direction: column;
    }

    .cookie-modal__footer .btn {
        width: 100%;
    }
}

/* ----------------------------------------
   21.5 BACK TO TOP
   ---------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-base),
        visibility var(--transition-base),
        transform var(--transition-base),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    transition: transform var(--transition-fast);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Posun nahoru když je cookie banner viditelný */
.cookie-banner.visible~.back-to-top {
    bottom: 7rem;
}

/* Responzivita */
@media (max-width: 768px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    .cookie-banner.visible~.back-to-top {
        bottom: 9rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }

    .cookie-banner.visible~.back-to-top {
        bottom: 11rem;
    }
}

/* ----------------------------------------
   22. PŘÍSTUPNOST – FOCUS VISIBLE
   ---------------------------------------- */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Redukce pohybu */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ----------------------------------------
   23. TISK
   ---------------------------------------- */
@media print {

    .header,
    .hero,
    .cookie-banner,
    .cookie-modal,
    .lightbox,
    .gallery__filters,
    .contact__form-wrap,
    .footer,
    .back-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .legal-page {
        padding-top: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}