:root {
    --orange: #f57c00;
    --orange-dark: #e65100;
    --dark: #1a1a1a;
    --black: #000000;
    --gray: #f5f5f5;
    --gray-dark: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 120%;
    /* Hide scrollbars */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    overflow-y: scroll;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 80px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--orange);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, background 0.3s ease;
    will-change: padding;
}

header.scrolled {
    padding: 8px 6%;
    background: rgba(255, 255, 255, 0.99);
}

/* Header Contact Items */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.8rem;
    transition: 0.3s;
}

.header-contact-item:hover {
    color: var(--orange);
}

.header-contact-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.logo img {
    height: 100px;
    transition: 0.3s;
}

header.scrolled .logo img {
    height: 80px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--orange);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* Hero Section - Optimalizované načítání */
.hero {
    height: 100vh;
    background-color: #1a1a1a;
    /* Fallback barva - zobrazí se okamžitě */
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.5)),
        url('assets/images/construction-4939383 (1).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Lepší výkon než fixed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
    /* GPU akcelerace pro plynulé načítání */
    transform: translateZ(0);
    will-change: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 4px;
}

.hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--orange);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.hero .tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.9;
    max-width: 600px;
    margin: 20px auto 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate3d(-50%, 0, 0);
    }

    40% {
        transform: translate3d(-50%, -10px, 0);
    }

    60% {
        transform: translate3d(-50%, -5px, 0);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(22px);
    }
}

/* Section Styles */
.section {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--orange);
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section - Dark background with text overlay */
#about {
    background-color: #1a1a1a;
    /* Fallback - okamžité zobrazení */
    background: url('assets/images/texture-7393419.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Lepší výkon */
    position: relative;
    min-height: 100vh;
    display: flex;
    padding: 0;
    /* GPU akcelerace */
    transform: translateZ(0);
    will-change: auto;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* Left column text on dark background */
.about-dark-left {
    flex: 0 0 50%;
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.about-dark-left .section-title {
    text-align: left;
    margin-bottom: 40px;
    color: var(--white);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 1px;
}

.about-dark-text p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 2;
    font-family: 'Times New Roman', Times, serif;
}

.about-dark-text p:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: 400;
    color: var(--white);
    float: left;
    line-height: 0.8;
    margin-right: 15px;
    margin-top: 5px;
    font-family: 'Times New Roman', Times, serif;
}

.about-extended-text {
    max-width: 450px;
    text-align: right;
}

.about-extended-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

/* Statistiky firmy - Sexy design */
.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hodnoty firmy - Sexy design */
.about-values {
    margin-bottom: 60px;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

.about-values h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 30px;
    font-style: italic;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--orange);
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.value-icon {
    font-size: 1.5rem;
    color: var(--orange);
    flex-shrink: 0;
}

.value-item h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Right column - improved layout */
.about-dark-right {
    flex: 0 0 50%;
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

/* Services Section */
#services {
    background: var(--white);
    padding: 80px 8%;
}

.services-header {
    margin-bottom: 60px;
}

.services-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--dark);
    margin-bottom: 40px;
}

.services-intro {
    max-width: 600px;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 40px;
}

.services-intro h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--dark);
}

.services-intro p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid var(--orange);
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    flex: 0 0 35%;
}

.service-name h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--dark);
}

.service-description {
    flex: 0 0 55%;
    text-align: right;
}

.service-description p {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        gap: 15px;
    }

    .service-name,
    .service-description {
        flex: none;
        width: 100%;
    }

    .service-description {
        text-align: left;
    }
}

/* Realizace/Projects Section */
#realizace {
    background: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.video-card {
    background: var(--dark);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    will-change: transform;
}

.video-card:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-card video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 20px;
    background: var(--dark);
    color: var(--white);
}

.video-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.load-more-btn {
    display: block;
    margin: 50px auto 0;
    padding: 15px 50px;
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.load-more-btn:hover {
    background: var(--orange);
    color: var(--white);
}

/* Reference & Certifikace Sections - Scattered Gallery */
.gallery-section {
    background-color: #1e1e1e;
    /* Fallback - okamžité zobrazení */
    background: url('assets/images/concrete-pump-2222450.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Lepší výkon */
    position: relative;
    min-height: 600px;
    padding: 80px 5%;
    /* Performance optimization */
    will-change: auto;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.92);
    /* Force own layer */
    transform: translateZ(0);
}

.gallery-section .section-header {
    position: relative;
    z-index: 2;
}

.gallery-section .section-title {
    color: var(--white);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 1px;
}

/* Scattered Documents Container */
.scattered-gallery {
    position: relative;
    min-height: 450px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
    /* Force GPU acceleration */
    transform: translateZ(0);
    will-change: contents;
}

.doc-item {
    position: absolute;
    cursor: pointer;
    transition: transform 0.25s ease-out;
    /* Use box-shadow instead of filter for better performance */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    /* Force own layer */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.doc-item:hover {
    z-index: 10;
    transform: scale(1.15) rotate(0deg) translateZ(0) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.doc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: white;
    border: 1px solid #ddd;
    /* Prevent repainting */
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Individual document positions and rotations */
.doc-item:nth-child(1) {
    left: 5%;
    top: 10%;
    width: 180px;
    transform: rotate(-8deg);
}

.doc-item:nth-child(2) {
    left: 22%;
    top: 5%;
    width: 160px;
    transform: rotate(5deg);
}

.doc-item:nth-child(3) {
    left: 38%;
    top: 15%;
    width: 190px;
    transform: rotate(-3deg);
}

.doc-item:nth-child(4) {
    left: 55%;
    top: 8%;
    width: 170px;
    transform: rotate(7deg);
}

.doc-item:nth-child(5) {
    left: 72%;
    top: 12%;
    width: 175px;
    transform: rotate(-5deg);
}

.doc-item:nth-child(6) {
    left: 10%;
    top: 55%;
    width: 165px;
    transform: rotate(6deg);
}

.doc-item:nth-child(7) {
    left: 28%;
    top: 50%;
    width: 185px;
    transform: rotate(-4deg);
}

.doc-item:nth-child(8) {
    left: 48%;
    top: 55%;
    width: 170px;
    transform: rotate(8deg);
}

.doc-item:nth-child(9) {
    left: 65%;
    top: 48%;
    width: 180px;
    transform: rotate(-6deg);
}

.doc-item:nth-child(10) {
    left: 80%;
    top: 55%;
    width: 160px;
    transform: rotate(4deg);
}

.doc-item:nth-child(11) {
    left: 15%;
    top: 75%;
    width: 170px;
    transform: rotate(-7deg);
}

.doc-item:nth-child(12) {
    left: 85%;
    top: 75%;
    width: 165px;
    transform: rotate(5deg);
}

/* Certifikáty positions */
.cert-gallery .doc-item:nth-child(1) {
    left: 10%;
    top: 20%;
    width: 200px;
    transform: rotate(-6deg);
}

.cert-gallery .doc-item:nth-child(2) {
    left: 38%;
    top: 15%;
    width: 220px;
    transform: rotate(4deg);
}

.cert-gallery .doc-item:nth-child(3) {
    left: 65%;
    top: 20%;
    width: 210px;
    transform: rotate(-5deg);
}

.cert-gallery .doc-item:nth-child(4) {
    left: 25%;
    top: 55%;
    width: 195px;
    transform: rotate(7deg);
}

.cert-gallery .doc-item:nth-child(5) {
    left: 55%;
    top: 58%;
    width: 205px;
    transform: rotate(-4deg);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: white;
}

.lightbox-title {
    color: var(--white);
    margin-top: 20px;
    font-size: 1rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lightbox-nav:hover {
    background: var(--orange);
    border-color: var(--orange);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-download {
    margin-top: 15px;
    padding: 10px 30px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    transition: 0.3s;
}

.lightbox-download:hover {
    background: var(--orange-dark);
}

/* Responsive for scattered gallery */
@media (max-width: 1200px) {
    .scattered-gallery {
        min-height: 600px;
    }

    .doc-item {
        width: 140px !important;
    }

    .cert-gallery .doc-item {
        width: 160px !important;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        background-attachment: scroll;
    }

    .scattered-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        min-height: auto;
        padding: 20px;
    }

    .doc-item {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        transform: rotate(0deg) !important;
    }

    .doc-item img {
        width: 100%;
        height: auto;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Contact Section */
#contact {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)),
        url('assets/images/construction-4939383.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

#contact .section-title {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--orange);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    fill: var(--orange);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.contact-item a:hover {
    color: var(--orange);
}

.company-info h3 {
    color: var(--orange);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.company-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.company-info .ico {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: var(--white);
    color: var(--dark);
    padding: 80px 8% 40px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.footer-section h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 30px;
    color: var(--dark);
}

.footer-section p {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    font-family: 'Times New Roman', Times, serif;
}

.footer-section a {
    color: var(--dark);
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a:hover {
    color: var(--orange);
}

.footer-logo-section {
    text-align: right;
}

.footer-logo {
    height: 195px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo-section {
        text-align: center;
    }

    .top-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 8px 3%;
    }

    .top-bar-item {
        font-size: 0.75rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--orange);
    color: var(--white);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 992px) {
    #about {
        flex-direction: column;
    }

    .about-left {
        flex: 0 0 auto;
        padding: 60px 30px;
    }

    .about-right {
        flex: 0 0 auto;
        min-height: 400px;
    }

    #about-extended {
        flex-direction: column;
        background-attachment: scroll;
    }

    .about-dark-left {
        flex: 0 0 auto;
        padding: 60px 30px;
    }

    .about-dark-right {
        flex: 0 0 auto;
        padding: 60px 30px;
        align-items: flex-start;
    }

    .about-extended-text {
        max-width: 100%;
        text-align: left;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 5%;
    }

    .logo img {
        height: 60px;
    }

    .header-contacts {
        display: none;
    }

    nav {
        position: fixed;
        top: 84px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
    }

    nav.active {
        max-height: 400px;
        padding: 20px 0;
        border-bottom: 4px solid var(--orange);
    }

    nav a {
        margin: 10px 0;
        font-size: 1rem;
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section {
        padding: 60px 5%;
    }

    .hero {
        background-attachment: scroll;
    }

    #contact {
        background-attachment: scroll;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Responzivní O nás sekce */
    #about {
        flex-direction: column;
        min-height: auto;
    }

    .about-dark-left,
    .about-dark-right {
        flex: none;
        width: 100%;
        padding: 60px 20px;
    }

    .about-stats {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-values {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .about-dark-right {
        align-items: flex-start;
    }

    .about-extended-text {
        max-width: 100%;
        text-align: left;
    }
}

/* Hidden videos for load more */
.video-card.hidden {
    display: none;
}

.video-card.visible {
    display: block;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    color: #fff;
    font-size: 0.85rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--orange);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--orange-dark);
}

.cookie-btn {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.cookie-btn:hover {
    background: var(--orange-dark);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-btn {
        width: 100%;
    }
}