/*
 * ============================================================
 * ROON s.r.o. - Hlavní stylesheet
 * ============================================================
 * Varianta B: Teplá & elegantní (krémová + zlatý/jantarový akcent)
 * Font: Patrick Hand
 * Responzivní: Desktop / Tablet / Mobil
 * ============================================================
 */

/* ====== DEFINICE FONTU ====== */
@font-face {
    font-family: 'Patrick Hand';
    src: url('/assets/fonts/PatrickHand-Regular.woff2') format('woff2'),
         url('/assets/fonts/PatrickHand-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* ====== CSS PROMĚNNÉ ====== */
:root {
    /* Primární barvy */
    --primary-color: #b08968;
    --primary-hover: #96735a;
    --primary-light: rgba(176, 137, 104, 0.10);
    --primary-medium: rgba(176, 137, 104, 0.30);
    --primary-transparent: rgba(176, 137, 104, 0.80);

    /* Pozadí */
    --bg-color: #faf8f5;
    --bg-card: #ffffff;
    --bg-header: #fdfcfa;
    --bg-footer: #f5f1eb;
    --bg-hero-fallback: #2c2418;

    /* Okraje */
    --border-color: #ebe5da;
    --border-card: #ebe5da;

    /* Stíny */
    --shadow-card: 0 1px 3px rgba(44, 36, 24, 0.04), 0 4px 12px rgba(44, 36, 24, 0.03);
    --shadow-card-hover: 0 4px 16px rgba(176, 137, 104, 0.10), 0 8px 32px rgba(44, 36, 24, 0.06);
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Tagy */
    --tag-bg: #fef9f0;
    --tag-text: #92700c;
    --tag-border: #f5e6c8;

    /* Text */
    --text-color: #2c2418;
    --text-muted: #7a6e5e;
    --text-light: #a09585;

    /* Font */
    --font-primary: 'Patrick Hand', 'Comic Sans MS', 'Arial', cursive;

    /* Layout */
    --max-width: 1200px;
    --header-height: 68px;

    /* Zaoblení */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-xs: 5px;

    /* Přechody */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}


/* ====== RESET A ZÁKLAD ====== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-hover);
}

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

/* ====== KONTEJNER ====== */

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


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

.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    width: 100%;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.site-logo a:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

.logo-text-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 22px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-text-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Kontakt v headeru */
.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.header-contact svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.header-contact a {
    font-weight: 500;
    color: var(--text-color);
}

.header-contact a:hover {
    color: var(--primary-color);
}


/* ============================================================
   NAVIGACE / HLAVNÍ MENU
   ============================================================ */

.main-nav {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 90;
    padding: 10px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Položky menu */
.nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
}

.nav-items li {
    flex: 1;
    max-width: 220px;
}

.nav-items li a {
    display: block;
    color: white;
    text-decoration: none;
    background: rgba(176, 137, 104, 0.45);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-family: var(--font-primary);
    font-size: 18px;
    padding: 10px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-small);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.nav-items li a:hover {
    background: rgba(176, 137, 104, 0.70);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: #fff;
}

/* Aktivní položka */
.nav-items li.active a {
    background: var(--primary-color);
    font-weight: bold;
    color: #fff;
}

.nav-items li.active a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

/* Focus pro přístupnost */
.nav-items li a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Hamburger tlačítko - skryté na desktopu */
.menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 95;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span::before {
    content: '';
    top: -8px;
}

.menu-toggle span::after {
    content: '';
    bottom: -8px;
}

/* Animace hamburgeru do X */
.menu-toggle.active span {
    background-color: transparent;
}

.menu-toggle.active span::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span::after {
    transform: rotate(-45deg) translate(5px, -5px);
}


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

.hero-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-hero-fallback);
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.hero-background {
    position: relative;
    width: 100%;
    padding-bottom: 42%; /* Aspect ratio pro desktop */
    height: 0;
    background-color: var(--bg-hero-fallback);
    overflow: hidden;
}

/* Jednotlivé slidy */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 2;
}

.hero-slide.active {
    opacity: 1;
}

/* Textový pás pod sliderem */
.hero-text-section {
    position: relative;
    padding: 1.5rem 0;
    background-color: var(--bg-hero-fallback);
    color: #fff;
    text-align: center;
    margin-top: 0;
    border-top: none;
}

.hero-text-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 36, 24, 0.60);
    pointer-events: none;
}

.hero-text-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-text-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-text-subtitle {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    opacity: 0.95;
}


/* ============================================================
   SEKCE - OBECNÉ
   ============================================================ */

.section {
    padding: 2.5rem 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}


/* ============================================================
   KARTY DIVIZÍ - MŘÍŽKA
   ============================================================ */

.divisions-section {
    padding: 2.5rem 0;
}

.divisions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 sloupce na desktopu */
    gap: 24px;
}

/* Jednotlivá karta */
.division-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

.division-card:hover {
    border-color: rgba(176, 137, 104, 0.30);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* Obrázek v kartě */
.division-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.division-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.division-card:hover .division-image img {
    transform: scale(1.03);
}

/* Tělo karty */
.division-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Název divize */
.division-name {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.division-name a {
    color: var(--text-color);
    text-decoration: none;
}

.division-name a:hover {
    color: var(--primary-color);
}

/* Tagy */
.division-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--tag-text);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    padding: 3px 10px;
    border-radius: var(--border-radius-xs);
}

/* Popis */
.division-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}

/* Spodní lišta karty */
.division-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tlačítko "Navštívit web" */
.division-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    background: var(--primary-light);
    border: 1px solid var(--tag-border);
    transition: var(--transition);
    font-family: var(--font-primary);
}

.division-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.division-link svg {
    width: 12px;
    height: 12px;
}

.division-no-web {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Sociální ikony v kartě */
.division-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    display: flex;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}


/* ============================================================
   DETAIL STRÁNKY DIVIZE
   ============================================================ */

.page-division {
    padding: 2.5rem 0;
}

.page-division .container {
    max-width: 900px;
}

.division-header {
    text-align: center;
    margin-bottom: 2rem;
}

.division-header h1 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.division-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ============================================================
   FOTOGALERIE DIVIZE - HLAVNÍ KOMPONENT
   ============================================================
   Komponenta: division-gallery.php (sdílená šablona)
   Funkce: Hlavní fotka s crossfade, šipky, miniatury, swipe
   Třídy: .division-gallery, .gallery-main-wrapper, .gallery-main,
          .gallery-main-img, .gallery-arrow, .gallery-arrow-left,
          .gallery-arrow-right, .gallery-caption,
          .gallery-thumbs, .gallery-thumb
   ============================================================ */

.division-gallery {
    max-width: 100%;
}

/* Obal hlavní fotky + šipek */
.gallery-main-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-hero-fallback);
}

/* Kontejner hlavních obrázků (crossfade) */
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
}

/* Jednotlivé hlavní fotky */
.gallery-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-main-img.active {
    opacity: 1;
}

/* Šipky navigace (vlevo / vpravo) */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 12px 10px;
    border-radius: var(--border-radius-xs);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-arrow:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.gallery-arrow-left {
    left: 10px;
}

.gallery-arrow-right {
    right: 10px;
}

/* Popisek pod hlavní fotkou */
.gallery-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.4;
    text-align: center;
    min-height: 1.4em;
}

/* Kontejner miniatur */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Jednotlivá miniatura */
.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius-xs);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.division-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.division-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}


/* ------ Záhlaví divize (detail stránka) ------ */

.division-header-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.division-header-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.division-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-xs);
    transition: var(--transition);
}

.division-header-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.division-header-link svg {
    flex-shrink: 0;
}

/* ------ Fotogalerie sekce ------ */

.division-gallery-section {
    margin-bottom: 1rem;
}

/* ------ Obsahové sekce ------ */

.division-content-section {
    padding: 2rem 0;
}

.division-content-section h2 {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.division-content-section p {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.7;
}

.division-content-alt {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

/* ------ Feature karty (produkty, vybavení) ------ */

.division-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 1.2rem;
}

.division-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.division-feature-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.division-feature-card h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.division-feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ------ Kroky (jak to funguje / jak spolupracujeme) ------ */

.division-steps {
    margin-top: 1.2rem;
}

.division-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.division-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.division-step-content h3 {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.division-step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ------ Benefits list (proč právě my) ------ */

.division-benefits-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.division-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.division-benefits-list li svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

/* ------ CTA patička divize ------ */

.division-cta-section {
    padding: 2.5rem 0;
    text-align: center;
}

.division-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.division-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.division-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.division-cta-btn svg {
    flex-shrink: 0;
}

.division-cta-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.division-cta-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.division-cta-back:hover {
    color: var(--primary-color);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-heading {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--primary-color);
}

/* Logo v footeru */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-company-info {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-phone-note {
    font-size: 12px;
    color: var(--text-light);
}

/* Badge */
.footer-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--tag-text);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    padding: 3px 10px;
    border-radius: 6px;
    margin-top: 6px;
}

/* Copyright bar */
.footer-copyright {
    border-top: 1px solid var(--border-color);
    padding: 16px 1.5rem 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    max-width: var(--max-width);
    margin: 2rem auto 0;
}


/* ============================================================
   STRÁNKA KONTAKT
   ============================================================ */

.contact-section {
    padding: 2.5rem 0;
}

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

.contact-box {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-card);
    padding: 24px;
}

.contact-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.contact-box-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-box-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    fill: none;
}

.contact-box-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.contact-box p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Poznámka v kontaktu */
.contact-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--tag-border);
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Mapa */
.contact-map {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-card);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.contact-map-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.contact-map-header svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    fill: none;
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    flex: 1;
}

/* IČO / DIČ info boxy */
.info-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.info-box {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-card);
    padding: 16px 20px;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}


/* ============================================================
   STRÁNKA O NÁS
   ============================================================ */

.page-about {
    padding-bottom: 1rem;
}

/* Úvodní sekce */
.about-intro {
    padding: 2.5rem 0;
}

.about-intro-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.about-intro-text p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.about-intro-image img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    object-fit: cover;
}

/* Časová osa */
.about-timeline {
    padding: 2.5rem 0;
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 2rem auto 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-year {
    position: absolute;
    left: -40px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 16px 20px;
}

.timeline-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Hodnoty / Pilíře */
.about-values {
    padding: 2.5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 1.5rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.value-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    fill: none;
}

.value-card-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.value-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Provozovny */
.about-locations {
    padding: 2.5rem 0;
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 1.5rem;
}

.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
}

.location-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    fill: none;
}

.location-card-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.location-card-address {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.location-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA sekce (O nás) */
.about-cta {
    padding: 2.5rem 0;
    text-align: center;
}

.about-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-cta-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-cta-text {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.about-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}


/* ============================================================
   STRÁNKA KONTAKT - ROZŠÍŘENÉ STYLY
   ============================================================ */

.page-contact {
    padding-bottom: 1rem;
}

.contact-intro {
    padding: 2.5rem 0 1rem;
    text-align: center;
}

/* Dva sloupce kontaktu */
.contact-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-col-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Kontaktní boxy - rozšířené */
.contact-box-text {
    flex: 1;
}

.contact-box-address {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.contact-box-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 10px;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    border-radius: var(--border-radius-xs);
    margin-bottom: 0.4rem;
}

.contact-box-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Detail ikony (telefon, email, firemní údaje) */
.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-color);
    fill: none;
}

/* Telefony */
.contact-phones {
    margin-bottom: 1.2rem;
}

.contact-phone-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.contact-phone-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-phone-number:hover {
    color: var(--primary-color);
}

.contact-phone-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Email */
.contact-email {
    margin-bottom: 1.2rem;
}

.contact-email-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-email-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Firemní údaje */
.contact-company-info {
    margin-bottom: 1rem;
}

.contact-company-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.contact-company-details strong {
    color: var(--text-color);
}

/* Mapy - rozšířené */
.contact-maps {
    padding: 2rem 0;
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-maps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 1rem;
}

.contact-map-title {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.contact-map-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.contact-map-frame {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Kontaktní formulář */
.contact-form-section {
    padding: 2.5rem 0;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 1.5rem auto 0;
    text-align: left;
}

.form-row {
    margin-bottom: 16px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.form-required {
    color: #c0392b;
}

.form-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

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

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a6e5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.form-label-checkbox {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-label-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-row-submit {
    text-align: center;
    margin-top: 8px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.form-submit svg {
    flex-shrink: 0;
}


/* ============================================================
   STRÁNKA COOKIES
   ============================================================ */

.page-cookies {
    padding-bottom: 2rem;
}

.cookies-section {
    padding: 1.5rem 0;
}

.cookies-section:first-child {
    padding-top: 2rem;
}

.cookies-content {
    max-width: 900px;
    margin: 0 auto;
}

.cookies-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cookies-category {
    margin-top: 0.5rem;
}

.cookies-category-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookies-category-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Cookies tabulka */
.cookies-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookies-table th {
    background: var(--bg-footer);
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.cookies-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
}

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

.cookies-table tr:hover td {
    background: var(--primary-light);
}

.cookies-table code {
    background: var(--bg-footer);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Cookies badge (Vždy aktivní / Vyžaduje souhlas) */
.cookies-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
    vertical-align: middle;
}

.cookies-badge-required {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.cookies-badge-optional {
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
}

.cookies-empty {
    font-style: italic;
    color: var(--text-light);
    padding: 1rem 0;
}

/* Seznam prohlížečů */
.cookies-browser-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookies-browser-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    transition: var(--transition);
}

.cookies-browser-list li a:hover {
    color: var(--primary-hover);
}

.cookies-browser-list li a svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Revoke tlačítko */
.cookies-revoke-section {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cookies-revoke-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--border-radius-xs);
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.cookies-revoke-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.cookies-revoke-btn svg {
    flex-shrink: 0;
}

/* Kontakt a aktualizace */
.cookies-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookies-contact a:hover {
    text-decoration: underline;
}

.cookies-updated {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}


/* ============================================================
   STRÁNKA GDPR
   ============================================================ */

.page-gdpr {
    padding-bottom: 2rem;
}

.gdpr-section {
    padding: 1.5rem 0;
}

.gdpr-section:first-child {
    padding-top: 2rem;
}

.gdpr-content {
    max-width: 900px;
    margin: 0 auto;
}

.gdpr-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.gdpr-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.gdpr-content a:hover {
    text-decoration: underline;
}

.gdpr-category-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* GDPR tabulka */
.gdpr-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.gdpr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gdpr-table th {
    background: var(--bg-footer);
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.gdpr-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
}

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

.gdpr-table tr:hover td {
    background: var(--primary-light);
}

/* GDPR seznam */
.gdpr-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.gdpr-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    line-height: 1.6;
}

.gdpr-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Práva subjektů */
.gdpr-right-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.gdpr-right-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gdpr-right-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.gdpr-right-article {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

/* GDPR kontaktní box */
.gdpr-contact-box {
    background: var(--bg-footer);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}

.gdpr-contact-box p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.gdpr-contact-box a {
    color: var(--primary-color);
    text-decoration: none;
}

.gdpr-contact-box a:hover {
    text-decoration: underline;
}

.gdpr-updated {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}


/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background-color: var(--bg-card);
    color: var(--text-color);
    padding: 18px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    z-index: 9999;
    font-family: var(--font-primary);
    animation: cookieFadeIn 0.5s ease;
    display: block;
}

.cookie-banner p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-cookie {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
    text-align: center;
}

.btn-cookie-accept {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-cookie-reject {
    background-color: #f0ece6;
    color: var(--text-color);
}

.btn-cookie-reject:hover {
    background-color: #e5e0d8;
}

@keyframes cookieFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   MODÁLNÍ OKNO (popup)
   ============================================================ */

.promo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.promo-modal.active {
    display: flex;
}

.promo-modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.promo-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
}

.promo-modal-close {
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    line-height: 1;
}

.promo-modal-close:hover {
    color: var(--primary-color);
}

.promo-modal-body {
    padding: 0 24px 24px;
    text-align: center;
}

.promo-modal-image {
    width: 100%;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: opacity 0.3s;
    margin-bottom: 16px;
}

.promo-modal-image:hover {
    opacity: 0.9;
}

.promo-modal-text {
    padding: 0 0 10px;
}

.promo-modal-text p {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

.promo-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Toggle přepínač */
.toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-option span {
    font-size: 14px;
    color: var(--text-muted);
}

.toggle-switch {
    width: 46px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.active {
    background-color: var(--primary-color);
}

.toggle-slider {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    left: 24px;
}

/* Tlačítko v modálu */
.promo-modal-btn {
    padding: 8px 16px;
    background-color: #e0e0e0;
    color: #999;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 15px;
    cursor: not-allowed;
    transition: var(--transition);
    opacity: 0.6;
}

.promo-modal-btn.active {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    opacity: 1;
}

.promo-modal-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ============================================================
   RESPONZIVNÍ DESIGN - TABLET (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}


/* ============================================================
   RESPONZIVNÍ DESIGN - MOBIL (max 768px)
   ============================================================ */

@media (max-width: 768px) {

    /* Header */
    .header-wrapper {
        height: 60px;
    }

    .header-contact {
        display: none; /* Na mobilu schováme, je v menu */
    }

    /* Navigace - hamburger */
    .menu-toggle {
        display: block !important;
    }

    .nav-wrapper {
        justify-content: flex-start;
    }

    .nav-items {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
        padding: 0;
    }

    .nav-items.active {
        max-height: 500px;
        padding: 10px;
    }

    .nav-items li {
        margin: 5px 0;
        width: 100%;
        max-width: 100%;
        opacity: 0;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    /* Kaskádová animace položek */
    .nav-items.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-items.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-items.active li:nth-child(2) { transition-delay: 0.10s; }
    .nav-items.active li:nth-child(3) { transition-delay: 0.15s; }

    .nav-items li a {
        padding: 12px;
        text-align: left;
        font-weight: 600;
    }

    /* Aktivní položka na mobilu - levý proužek */
    .nav-items li.active a::after {
        left: 0;
        width: 4px;
        height: 70%;
        top: 15%;
        bottom: auto;
    }

    /* Hero slider - vyšší poměr na mobilu */
    .hero-background {
        padding-bottom: 56.25%; /* 16:9 */
    }

    .hero-text-title {
        font-size: 2rem;
    }

    .hero-text-subtitle {
        font-size: 1.1rem;
    }

    .hero-text-section {
        padding: 1rem 0;
    }

    /* Sekce */
    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Karty divizí - pod sebou */
    .divisions-grid {
        grid-template-columns: 1fr;
    }

    /* Footer - 1 sloupec */
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Kontakt - 1 sloupec */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Detail divize - galerie (menší miniatury) */
    .gallery-thumb {
        width: 65px;
        height: 48px;
    }

    .gallery-arrow {
        padding: 8px 6px;
    }

    .gallery-arrow svg {
        width: 20px;
        height: 20px;
    }

    /* Detail divize - feature karty pod sebou */
    .division-features-grid {
        grid-template-columns: 1fr;
    }

    /* O nás - intro pod sebou */
    .about-intro-content {
        grid-template-columns: 1fr;
    }

    .about-intro-image {
        order: -1;
    }

    /* O nás - hodnoty a provozovny pod sebou */
    .values-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    /* Kontakt - mapy pod sebou */
    .contact-maps-grid {
        grid-template-columns: 1fr;
    }

    /* Kontakt - formulář 1 sloupec */
    .form-row-2col {
        grid-template-columns: 1fr;
    }

    /* Modal */
    .promo-modal-content {
        max-width: 95%;
    }

    .promo-modal-actions {
        flex-direction: column;
        gap: 12px;
    }

    /* Cookies / GDPR tabulky - mobilní card layout */
    .cookies-table thead,
    .gdpr-table thead {
        display: none;
    }

    .cookies-table tr,
    .gdpr-table tr {
        display: block;
        margin-bottom: 12px;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 12px;
    }

    .cookies-table td,
    .gdpr-table td {
        display: block;
        padding: 4px 14px;
        border-bottom: none;
        text-align: left;
    }

    .cookies-table td::before,
    .gdpr-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-color);
    }

    .cookies-table td:first-child,
    .gdpr-table td:first-child {
        padding-top: 10px;
    }

    .cookies-category-title {
        font-size: 1.2rem;
    }

    .gdpr-category-title {
        font-size: 1.2rem;
    }
}


/* ============================================================
   RESPONZIVNÍ DESIGN - MALÝ MOBIL (max 480px)
   ============================================================ */

@media (max-width: 480px) {

    .hero-text-title {
        font-size: 1.6rem;
    }

    .hero-text-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .division-name {
        font-size: 1.1rem;
    }

    .division-header-title {
        font-size: 1.6rem;
    }

    .division-content-section h2 {
        font-size: 1.3rem;
    }

    .about-cta-title {
        font-size: 1.3rem;
    }

    /* Cookie banner - přes celou šířku */
    .cookie-banner {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
    }

    .cookie-buttons {
        flex-direction: column-reverse;
        gap: 6px;
    }

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


/* ============================================================
   RESPONZIVNÍ DESIGN - VELMI MALÝ MOBIL (max 360px)
   ============================================================ */

@media (max-width: 360px) {

    .hero-text-title {
        font-size: 1.3rem;
    }

    .hero-text-subtitle {
        font-size: 0.95rem;
    }

    /* Galerie - menší miniatury */
    .gallery-thumb {
        width: 50px;
        height: 38px;
    }

    .gallery-thumbs {
        gap: 5px;
    }

    .promo-modal-content {
        max-width: 95%;
        max-height: 85%;
    }

    .promo-modal-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
}

/* ============================================================
   KONTAKTNÍ FORMULÁŘ - HLÁŠKY A VALIDACE
   (Doplnit na konec common.css)
   ============================================================ */

/* Hlášky úspěch / chyba */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.form-message-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-message-success svg {
    stroke: #22c55e;
}

.form-message-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-message-error svg {
    stroke: #ef4444;
}

/* Validační chyba pod polem */
.form-field-error {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 6px;
    line-height: 1.3;
}

/* Pole ve stavu chyba */
.form-input.field-error,
.form-select.field-error,
.form-textarea.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* Pole ve stavu OK */
.form-input.field-valid,
.form-select.field-valid,
.form-textarea.field-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12);
}

/* ============================================================
   GALERIE - OVERLAY, POPISKY, LIGHTBOX
   ============================================================
   Připojit na konec stávajícího common.css (za řádek 2313)
   ============================================================ */

/* Galerie - položka */
.gallery-item {
    position: relative;
}

.gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.gallery-img {
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius-sm);
}

.gallery-overlay svg {
    stroke: #fff;
}

.gallery-link:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 12px;
    padding: 0 20px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 4px 8px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    transition: background 0.2s ease;
    z-index: 10;
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}