/* ===================================
   AZ-Balance - stylesheet
   =================================== */

:root {
    --primary: #0BA2A5;
    --primary-light: #39D9D6;
    --background: #FFFFFF;
    --text: #212E2B;
    --border: #E5F2EF;

    --primary-dark: #067A7D;
    --surface: #F4FAF8;
    --muted: #5A6B67;
    --radius: 10px;
    --header-h: 76px;
    --font-main: 'Open Sans', system-ui, sans-serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --ease: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--background);
    line-height: 1.65;
    padding-top: var(--header-h);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--ease);
}
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
p { margin-bottom: 1rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: var(--text); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--text); color: #fff; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ===================================
   Header & navigation
   =================================== */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: none !important;
    transition: box-shadow var(--ease);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(33, 46, 43, 0.07) !important; }

.navbar .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-brand .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text);
    line-height: 1.1;
}
.navbar-brand .logo img { height: 44px; width: auto; }
.navbar-brand .logo img[style*="hidden"] { display: none; }

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--text);
}
.logo-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-top: 3px;
}

.nav-menu { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }

.nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--primary-dark); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-cta .btn { padding: 0.65rem 1.3rem; font-size: 0.85rem; white-space: nowrap; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.6rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

/* ===================================
   Hero (index)
   =================================== */

.hero {
    position: relative;
    height: calc(100vh - var(--header-h));
    min-height: 600px;
    max-height: 820px;
    overflow: hidden;
    background: var(--text);
}
.hero-slider, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-content { position: relative; height: 100%; display: flex; align-items: center; color: #fff; }
.hero-content .container { width: 100%; }

.hero-badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    border-left: 3px solid var(--primary-light);
    background: rgba(33, 46, 43, 0.55);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-title { color: #fff; max-width: 780px; font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 1.25rem; }
.hero-subtitle { max-width: 600px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-features { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; }
.hero-feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 600; }
.hero-feature svg { width: 20px; height: 20px; color: var(--primary-light); flex-shrink: 0; }

.hero-controls button {
    position: absolute;
    bottom: 1.25rem;
    z-index: 5;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
}
.hero-controls button:hover { background: #fff; color: var(--text); }
.hero-prev { right: calc(1.5rem + 56px); }
.hero-next { right: 1.5rem; }

.hero-indicators {
    position: absolute;
    left: 50%; bottom: 1.75rem;
    transform: translateX(-50%);
    z-index: 5;
    display: flex; gap: 0.5rem;
}
.hero-indicators button {
    width: 28px; height: 4px;
    border: 0; border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background var(--ease), width var(--ease);
}
.hero-indicators button.active { background: var(--primary-light); width: 44px; }
.hero-scroll { display: none; }

.animate-fade-in { animation: fadeUp 0.8s ease both; }
.animate-fade-in-delay { animation: fadeUp 0.8s ease 0.15s both; }
.animate-fade-in-delay-2 { animation: fadeUp 0.8s ease 0.3s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===================================
   Section helpers (index)
   =================================== */

.section-header { max-width: 640px; margin-bottom: 3rem; }
.section-title { margin-bottom: 0.5rem; }
.section-title::before {
    content: '';
    display: block;
    width: 44px; height: 4px;
    margin-bottom: 1rem;
    background: var(--primary);
    border-radius: 2px;
}
.section-subtitle { font-size: 1.05rem; color: var(--muted); margin: 0; }

.features { padding: 4.5rem 0; background: var(--background); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card {
    padding: 1.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--ease), transform var(--ease);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon {
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    background: var(--surface);
    border-radius: 10px;
    color: var(--primary-dark);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.services { padding: 5rem 0; background: var(--surface); }

/* ===================================
   Tabs (index services + reference)
   =================================== */

.tabs-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; }
.tab-btn {
    padding: 0.7rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.tab-btn.active { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.tab-pane, .tab-content { display: none; }
.tab-pane.active, .tab-content.active { display: block; animation: fadeUp 0.4s ease; }

.service-content { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.service-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}
.service-text h3 { font-size: 1.6rem; }
.service-list li, .service-features li, .jobs-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
}
.service-list li::before, .jobs-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.7em;
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 2px;
}
.service-features {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
}
.service-features h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.service-features li { margin-bottom: 0.35rem; }
.service-features li::before {
    content: '';
    position: absolute;
    left: 2px; top: 0.4em;
    width: 5px; height: 10px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.service-cta {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--background);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.service-cta p { margin: 0; }

/* ===================================
   CTA band
   =================================== */

.cta-section { padding: 4.5rem 0; background: var(--primary-dark); color: #fff; }
.cta-content { max-width: 720px; }
.cta-content h2 { color: #fff; }
.cta-content p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.75rem; }

/* ===================================
   Contact (index)
   =================================== */

.contact { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact .contact-details { margin: 1.75rem 0; display: grid; gap: 1.25rem; }
.contact .contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact .contact-item svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; color: var(--primary); }
.contact .contact-item strong { display: block; font-family: var(--font-heading); font-size: 0.9rem; }
.contact .contact-item p { margin: 0; color: var(--muted); }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}
.social-links a:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.social-links svg { width: 20px; height: 20px; }

.contact-form {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.88rem; font-weight: 600; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"],
.form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font: inherit;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 162, 165, 0.15);
}
.form-group textarea { resize: vertical; }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; font-size: 0.88rem !important; }
.checkbox-label input { margin-top: 0.3rem; accent-color: var(--primary-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-section { margin-bottom: 2.5rem; }
.contact-form-section > p { color: var(--muted); }

/* ===================================
   Subpages: page header
   =================================== */

.page-header {
    padding: 3.5rem 0 3rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.page-header .container { position: relative; padding-left: calc(1.5rem + 18px); }
.page-header .container::before {
    content: '';
    position: absolute;
    left: 1.5rem; top: 0.3rem; bottom: 0.3rem;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.page-header p { margin: 0; font-size: 1.1rem; color: var(--muted); }

/* ===================================
   Subpages: main layouts
   =================================== */

.about-main, .contact-main, .certifications-main, .jobs-main, .sponsorship-main, .references-section {
    padding: 4rem 0 5rem;
}

.about-content-grid, .contact-content-wrapper, .cert-content-wrapper,
.jobs-content-wrapper, .sponsorship-content-wrapper, .content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 3.5rem;
    align-items: start;
}
.content-with-sidebar { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.content-with-sidebar .main-area { display: none; }
.content-with-sidebar .sidebar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.about-sidebar, .contact-sidebar, .cert-sidebar, .jobs-sidebar, .sponsorship-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: grid;
    gap: 1.25rem;
}

.about-main h2, .contact-main h2, .jobs-main h2, .sponsorship-main h2, .cert-section-header h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

/* Contact cards (all variants) */
.contact-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-card > h3,
.contact-card-header h4 {
    margin: 0 0 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
}
.contact-card-header { margin: 0; }
.contact-card-body h5, .contact-details h4, .contact-info p:first-child strong {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.contact-address, .contact-details .address { margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; }
.contact-card .contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.contact-card .contact-label { min-width: 52px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.contact-card .contact-icon { width: 18px; height: 18px; opacity: 0.7; flex-shrink: 0; }
.contact-card .contact-item a { font-weight: 600; word-break: break-word; }
.contact-info p { margin-bottom: 0.4rem; font-size: 0.95rem; }

/* Kontakt page */
.contact-intro { margin-bottom: 2.5rem; }
.contact-intro p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.contact-person-card {
    margin-bottom: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.person-card-header { padding: 1rem 1.75rem; background: var(--primary-dark); }
.person-card-header h3 { margin: 0; color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.person-card-body { padding: 1.5rem 1.75rem; }
.person-card-body h4 { font-size: 1.4rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.contact-info-item a { font-weight: 600; }
.contact-map-section h3 { margin-bottom: 1.25rem; }
.map-wrapper { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-wrapper iframe { display: block; width: 100%; }
.map-address { margin-top: 1rem; }
.map-address p { margin: 0; color: var(--muted); }

/* O nas */
.about-list { margin-bottom: 3rem; }
.about-list li {
    padding: 1rem 0 1rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 1.55rem;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
}
.about-list li:first-child { border-top: 1px solid var(--border); }
.highlight-text { color: var(--primary-dark); }
.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--text);
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Volna mista */
.jobs-card { padding: 2.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.jobs-list { margin: 0 0 1.75rem; font-size: 1.1rem; font-weight: 600; }
.contact-info-box { padding: 1.25rem 1.5rem; background: var(--background); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; }
.contact-info-box p { margin: 0; }

/* Certifikace */
.certifications-intro { max-width: 760px; margin-bottom: 3rem; font-size: 1.1rem; color: var(--muted); }
.cert-documents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.cert-document-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
.cert-card-header h3 { font-size: 1.15rem; }
.cert-image-wrapper, .cert-certificate-item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}
.cert-image-wrapper img, .cert-certificate-item img { width: 100%; transition: transform 0.4s ease; }
.cert-image-wrapper:hover img, .cert-certificate-item:hover img { transform: scale(1.03); }
.cert-overlay, .gallery-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(33, 46, 43, 0.55);
    opacity: 0;
    transition: opacity var(--ease);
}
.cert-image-wrapper:hover .cert-overlay, .cert-certificate-item:hover .cert-overlay,
.gallery-item:hover .gallery-overlay { opacity: 1; }
.zoom-text {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cert-description { margin: 1rem 0 0; font-size: 0.92rem; color: var(--muted); }
.cert-section-header { margin-bottom: 1.75rem; }
.cert-section-header p { color: var(--muted); margin: 0; }
.cert-certificates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }

/* Sponzorujeme */
.sponsorship-intro { margin-bottom: 2.5rem; }
.sponsorship-intro p, .sponsorship-info p { color: var(--muted); font-size: 1.05rem; }
.sponsorship-gallery { margin-bottom: 3rem; }
.sponsorship-info { padding: 1.75rem 2rem; background: var(--surface); border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; }
.sponsorship-info p { margin: 0; }
.gallery-link { display: block; position: relative; height: 100%; }

/* ===================================
   Reference
   =================================== */

.intro-text { margin-bottom: 2.25rem; }
.intro-text p { margin-bottom: 0.25rem; color: var(--muted); }
.intro-text strong { font-family: var(--font-heading); color: var(--text); font-size: 1.2rem; }
.references-section .tabs-nav .tab-btn { font-size: 0.74rem; letter-spacing: 0.04em; }
.gallery-section { margin-bottom: 3rem; }
.gallery-title {
    margin-bottom: 1.25rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--primary);
    font-size: 1.15rem;
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    z-index: 3000;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(33, 46, 43, 0.94);
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; }
.lightbox-content img, .lightbox-img { max-width: 90vw; max-height: 90vh; width: auto; height: auto; border-radius: 6px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: #fff; color: var(--text); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ===================================
   Footer
   =================================== */

.footer { padding: 4rem 0 1.5rem; background: var(--text); color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer h3, .footer h4 {
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}
.footer p { margin-bottom: 0.4rem; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: rgba(255, 255, 255, 0.78); }
.footer a:hover { color: var(--primary-light); }
.footer-copyright { margin-top: 1rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.5rem; bottom: 1.5rem;
    z-index: 900;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-dark);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease), background var(--ease);
}
.back-to-top.visible, .back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--text); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1180px) {
    .header-cta { display: none; }
}

@media (max-width: 1024px) {
    .nav-menu { gap: 1.25rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: flex; margin-left: auto; position: relative; z-index: 1002; }
    .nav-menu {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        height: calc(100vh - var(--header-h));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 1rem 1.5rem 2rem;
        background: var(--background);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
    }
    .nav-menu.active { transform: none; visibility: visible; }
    .nav-link { padding: 1rem 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); }
    .nav-link::after { display: none; }

    .about-content-grid, .contact-content-wrapper, .cert-content-wrapper,
    .jobs-content-wrapper, .sponsorship-content-wrapper, .contact-grid, .service-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-sidebar, .contact-sidebar, .cert-sidebar, .jobs-sidebar, .sponsorship-sidebar {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Na telefonu jen jeden statický obrázek v hero */
    .hero-slide, .hero-slide.active { opacity: 0; visibility: hidden; transition: none; }
    .hero-slide:first-child { opacity: 1; visibility: visible; }
    .hero-controls, .hero-indicators { display: none; }
    .container { padding: 0 1.1rem; }
    .page-header { padding: 2.5rem 0 2rem; }
    .page-header .container { padding-left: calc(1.1rem + 16px); }
    .page-header .container::before { left: 1.1rem; }
    .about-main, .contact-main, .certifications-main, .jobs-main, .sponsorship-main, .references-section { padding: 2.5rem 0 3.5rem; }
    .features, .services, .contact, .cta-section { padding: 3.25rem 0; }
    .features-grid, .cert-documents-grid, .footer-content { grid-template-columns: 1fr; }
    .hero { min-height: 560px; }
    .hero-controls { display: none; }
    .hero-buttons .btn { width: 100%; }
    .tab-btn { flex: 1 1 100%; text-align: left; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .jobs-card, .contact-form { padding: 1.5rem; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
