/* ================= ROOT ================= */

:root {
    --primary: #e84c3d;
    --primary-dark: #c63b2e;
    --primary-light: #fff2f0;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f6fa;
    --white: #ffffff;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

/* ================= CONTAINER ================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER & NAV ================= */

.header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 17px;
    position: relative;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.nav > a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

.nav > a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}

.menu-close {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ================= DROPDOWN ================= */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    top: 100%;
    left: 0;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--dark);
}

.dropdown-content a:hover {
    background: var(--primary);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ================= HERO SECTIONS ================= */

.hero, .page-hero, .price-hero, .contact-hero, .gallery-hero {
    background: url('assets/img/hero.png') top center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero {
    /* místo 100vh */
    min-height: 0;
    height: auto;

    /* aby to pořád působilo „hero“ */
    padding: 90px 0 120px;

    /* když je malá obrazovka, ať to nepřeroste */
    max-height: 92vh;
    max-height: 92dvh;

    overflow: hidden;
}

.page-hero, .price-hero, .contact-hero, .gallery-hero {
    height: 420px;
    min-height: auto;
}

.hero-overlay, .page-hero .overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.centered-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 25px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 15px;
}

.hero-date {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 500;
}

.today-menu {
    margin: 0 auto 40px auto;
    font-size: 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 35px 60px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.3);
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
}

/* ================= BUTTONS ================= */

.btn, .read-more-btn, .btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover, .btn-primary:hover {
    background: var(--primary-dark);
}

.read-more-btn {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 22px;
}

.read-more-btn:hover {
    background: var(--primary);
    color: white;
}

.hero-btn {
    padding: 14px 34px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    border-radius: 40px;
    text-decoration: none;
    transition: 0.3s;
}

.hero-btn:hover {
    background: var(--primary);
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.secondary-btn:hover {
    background: white;
    color: var(--primary);
}

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-light:hover {
    background: var(--primary-light);
}

/* ================= SECTIONS & CONTENT ================= */

.section {
    padding: 100px 0;
    background: var(--light);
}

.section.alt {
    background: var(--white);
}

.section h2 {
    font-size: 38px;
    margin-bottom: 60px;
    color: var(--primary);
    text-align: center;
}

.section-lead {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
}

.content-section {
    padding: 90px 0;
}

.two-col, .two-col.modern {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.two-col img, .modern-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.info-box {
    background: var(--primary-light);
    padding: 18px 22px;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 30px;
}

/* ================= GRIDS & CARDS ================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.article-card {
    background: white;
    border-radius: 22px;
    padding: 45px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover { transform: translateY(-6px); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.team-grid div {
    background: var(--light);
    padding: 15px 20px;
    border-radius: 12px;
}

/* ================= GALLERY & LIGHTBOX ================= */

.gallery, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.gallery img, .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    transition: 0.4s ease;
    cursor: pointer;
    display: block;
}

.gallery img:hover, .gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
}

.lb-close, .lb-arrow {
    position: absolute;
    color: white;
    cursor: pointer;
}

.lb-close { top: 25px; right: 35px; font-size: 32px; }
.lb-arrow { top: 50%; transform: translateY(-50%); font-size: 45px; padding: 20px; }
.lb-prev { left: 25px; }
.lb-next { right: 25px; }

/* ================= TABLES ================= */

.table-wrapper {
    margin: 25px 0 50px 0;
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.price-table th {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    text-align: left;
}

.price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.price-table tr:hover {
    background: #fafafa;
}

.price-table td:last-child {
    font-weight: 600;
    text-align: right;
}

/* ================= CONTACT & FORM ================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.contact-card {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.contact-item i { color: var(--primary); font-size: 18px; margin-top: 4px; }

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.map-wrapper iframe { width: 100%; height: 400px; border: 0; }

/* ================= FOOTER ================= */

.footer {
    background: #111827;
    color: #fff;
    margin-top: 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    padding: 70px 0;
}

.footer-bottom {
    border-top: 1px solid #222;
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
    color: #aaa;
}

/* ================= UTILS ================= */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 999;
}

.anchor-offset { scroll-margin-top: 120px; }

/* ================= RESPONSIVE (900px) ================= */

@media (max-width: 900px) {
    .hero-content h1 { font-size: 32px; }
   
    .page-header h1, .page-hero h1 { font-size: 32px; }
    
    .two-col { flex-direction: column; }
    .news-grid { grid-template-columns: 1fr; }

    .hamburger { display: flex; }
    .menu-close { display: block; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 100px 30px;
        transition: 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        gap: 20px;
    }

    .nav.active { right: 0; }

    .dropdown-content {
        position: static;
        display: none;
        background: #f9f9f9;
        box-shadow: none;
        margin-top: 10px;
        padding: 10px 15px;
    }

    .dropdown.open .dropdown-content { display: block; }

    .today-menu {
        width: 100%;
        padding: 20px;
        font-size: 16px;
    }

    .hero-buttons { width: 100%; }
    .hero-btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ================= RESPONSIVE (768px) ================= */

@media (max-width: 768px) {
    .page-hero, .contact-hero { height: 320px; }
    .form-row { flex-direction: column; }
    .hero-buttons .btn { display: block; margin: 10px auto; width: 220px; }
}
.hero-overlay {
    padding-bottom: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
/* ================= MODERN FOOTER ================= */

.footer {
    background: #0f172a;
    color: #e5e7eb;
    margin-top: 80px;
}

.footer-top {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #fff;
}

.footer p,
.footer a {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer a:hover {
    color: var(--primary);
}

/* kontakt blok */

.footer-contact div {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    font-size: 16px;
}

/* pravý sloupec odkazy */

.footer-links a {
    display: block;
    margin-bottom: 10px;
}

/* logo strava */

.footer-partner img {
    max-width: 160px;
    margin-top: 10px;
    opacity: 0.85;
    transition: 0.3s;
}

.footer-partner img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* spodní část */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 22px 15px;
    font-size: 14px;
    color: #94a3b8;
}
/* Honeypot */

.hp-field {
    position: absolute;
    left: -9999px;
}

/* GDPR checkbox */

.form-consent {
    margin: 15px 0 25px 0;
    font-size: 14px;
    color: var(--gray);
}

.form-consent input {
    margin-right: 8px;
}
/* ================= GDPR CONSENT ================= */

.form-consent {
    margin: 20px 0 25px 0;
}

/* wrapper */

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
    color: var(--dark);
}

/* schová originální checkbox */

.consent-checkbox input {
    display: none;
}

/* custom checkbox */

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    margin-top: 3px;
    transition: all .2s ease;
}

/* check symbol */

.checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
}

/* checked */

.consent-checkbox input:checked + .checkmark {
    background: var(--primary);
}

.consent-checkbox input:checked + .checkmark::after {
    opacity: 1;
}

/* odkaz GDPR */

.consent-text a {
    color: var(--primary);
    font-weight: 500;
}

.consent-text a:hover {
    text-decoration: underline;
}
.footer-bottom a{
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover{
    text-decoration: underline;
}
/* ================= COOKIES ================= */

.cookie-bar{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#1f2937;
color:#fff;
padding:15px 20px;
z-index:9999;
display:none;
}

.cookie-content{
max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
flex-wrap:wrap;
}

.cookie-bar a{
color:#f15649;
text-decoration:none;
font-weight:600;
}

.cookie-bar button{
background:#f15649;
border:none;
color:#fff;
padding:10px 18px;
border-radius:6px;
cursor:pointer;
font-weight:600;
}

.cookie-bar button:hover{
background:#d9473b;
}
/* ===== potvrzení formuláře ===== */

.success-box{
max-width:600px;
margin:60px auto;
text-align:center;
background:#fff;
padding:40px;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.success-icon{
width:70px;
height:70px;
background:#4CAF50;
color:#fff;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:36px;
margin:0 auto 20px;
}

.success-box h1{
margin-bottom:15px;
}

.success-box p{
margin-bottom:25px;
color:#555;
font-size:18px;
}
/* STRAVA BUTTON */

.header-actions{
display:flex;
align-items:center;
margin-left:20px;
}

.strava-link{
display:flex;
align-items:center;
padding:6px 10px;
border-radius:8px;
transition:0.2s;
}

.strava-link img{
height:34px;
width:auto;
}

.strava-link:hover{
background:#f3f6fa;
transform:translateY(-1px);
}
.popup-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

.popup-box{
background:#fff;
padding:35px;
border-radius:12px;
max-width:500px;
text-align:center;
box-shadow:0 15px 40px rgba(0,0,0,0.2);
}

.popup-box h2{
margin-bottom:15px;
}

.popup-box button{
margin-top:20px;
background:#f15649;
color:white;
border:none;
padding:10px 18px;
border-radius:6px;
cursor:pointer;
}

/* ===== HEADER LAYOUT ===== */

.header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo{
    flex: 0 0 auto;
}

.logo img{
    display: block;
    max-height: 72px;
    width: auto;
}

.nav{
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 36px; /* odsazení menu od loga */
    flex: 1;
}

.nav > a,
.nav > .dropdown > a{
    white-space: nowrap;
}

.header-actions{
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex: 0 0 auto;
}

.strava-link{
    display: flex;
    align-items: center;
}

.strava-link img{
    display: block;
    height: 42px;
    width: auto;
}

.strava-link-mobile{
    display: none;
}

.strava-link-desktop{
    display: flex;
}

.hamburger{
    display: none;
}

/* ===== MOBILE ===== */

@media (max-width: 980px){

    .header-inner{
        gap: 14px;
    }

    .nav{
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0,0,0,0.12);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 80px 24px 24px;
        margin-left: 0;
        z-index: 9999;
        transition: right .3s ease;
        overflow-y: auto;
    }

    .nav.active{
        right: 0;
    }

    .nav > a,
    .nav > .dropdown > a,
    .nav .dropdown-content a{
        width: 100%;
        padding: 12px 0;
    }

    .header-actions{
        display: none; /* desktop strava zmizí vedle hamburgeru */
    }

    .strava-link-desktop{
        display: none;
    }

    .strava-link-mobile{
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid #e5e7eb;
    }

    .strava-link-mobile img{
        height: 40px;
    }

    .hamburger{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        flex: 0 0 auto;
    }

    .hamburger span{
        display: block;
        width: 26px;
        height: 3px;
        background: #1f2937;
        border-radius: 2px;
    }

    .menu-close{
        position: absolute;
        top: 18px;
        right: 18px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
    }
}