/* --- GLOBAL RESET & VARIABLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    --gray-light: #f4f4f4;
    --gray-dark: #333333;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Baskervville', serif;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

p { margin-bottom: 1.5rem; font-weight: 300; color: var(--gray-dark); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- LAYOUT UTILS --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover { background-color: transparent; color: var(--accent-color); }
.btn:disabled { background-color: #ccc; border-color: #ccc; cursor: not-allowed; }

.btn-outline {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 10px 25px;
    font-size: 0.8rem;
}
.btn-outline:hover { background: #000; color: #fff; }

/* --- HEADER --- */
header {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    position: sticky; top: 0;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 45px; width: auto; display: block; }

nav ul { display: flex; list-style: none; gap: 40px; }
nav a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 120px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* OPRAVENÁ CESTA K OBRÁZKU */
    background-image: url('/zddf6t9f/images/foto-brno-01.jpeg'); 
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: left;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
    animation: bounce 2s infinite;
}

.scroll-down-arrow:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}


/* --- NUMBERS SECTION (Tohle v tvém CSS chybělo) --- */
.numbers { background-color: var(--accent-color); color: #fff; padding: 60px 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.number-item h3 { color: #fff; font-size: 2.5rem; margin-bottom: 0.5rem; }
.number-item p { color: #ccc; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- VISION & HISTORY (Tohle v tvém CSS chybělo) --- */
.vision { padding: 80px 0 40px 0; background: #fff; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.vision-text p { color: #333; font-size: 1.05rem; line-height: 1.8; margin-bottom: 0; text-align: justify; }

/* --- PRODUCTS SECTION (Tohle v tvém CSS chybělo) --- */
.products { padding: 40px 0 100px 0; }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }
.section-title h2 { font-size: 3rem; }

.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.product-card {
    padding: 40px;
    border: 1px solid #eee;
    transition: 0.3s;
    position: relative;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.product-card p { flex-grow: 1; margin-bottom: 0; }
.product-card h3 { min-height: 3rem; }

.product-icon-svg { width: 48px; height: 48px; margin-bottom: 25px; display: block; fill: #000; }

/* --- ABOUT SECTION (Tohle v tvém CSS chybělo) --- */
.about { padding: 100px 0; background-color: var(--gray-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }

.about-img {
    width: 100%; height: 600px;
    background-image: url('/zddf6t9f/images/jakub-flek-02.jpeg'); /* Zkontroluj cestu */
    background-size: cover; background-position: top center;
    filter: grayscale(100%);
}

blockquote {
    font-family: 'Baskervville', serif; font-size: 1.4rem; font-style: italic;
    border-left: 3px solid #000; padding-left: 20px; margin: 30px 0;
}

/* --- CONTACT SECTION (Tohle v tvém CSS chybělo) --- */
.contact { padding: 100px 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 20px;
    border: 1px solid #ddd; background: #fff; font-family: inherit;
}
.contact-form input:focus { outline: none; border-color: #000; }

/* --- FOOTER --- */
footer { 
    background-color: #000; 
    color: #fff; 
    padding: 60px 0; 
    text-align: center; /* Toto centruje text */
}

/* OPRAVA LOGA - přidáno margin: 0 auto pro vycentrování bloku */
.footer-logo { 
    filter: invert(1); 
    height: 40px; 
    margin: 0 auto 20px auto; 
    opacity: 0.9; 
    display: block; /* Ujištění, že je to blok */
}

.footer-bottom { 
    border-top: 1px solid #333; 
    margin-top: 30px; 
    padding-top: 20px; 
    font-size: 0.8rem; 
    color: #666; 
}

/* --- NEW PAGE: FORMS (Accordion styles) --- */
.page-form header { position: relative; background: #fff; border-bottom: 1px solid #eee; }

.accordion-wrapper { max-width: 900px; margin: 0 auto; }

.accordion-item { 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    margin-bottom: 20px; 
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.accordion-item.active { border-color: #000; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }

.accordion-header {
    width: 100%; padding: 25px 40px;
    background: #fdfdfd; border: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    font-family: 'Baskervville', serif; font-size: 1.5rem;
    text-align: left; color: #000;
    transition: background 0.3s;
}

.accordion-header:hover { background: #f0f0f0; }

.arrow-icon { transition: transform 0.4s ease; fill: #000; }
.active .arrow-icon { transform: rotate(180deg); }

.accordion-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.6s ease-out; background: #fff;
}
.active .accordion-content { max-height: 2500px; transition: max-height 0.8s ease-in; }

.form-content-inner { padding: 40px; }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Range Slider */
.range-wrapper { background: #f9f9f9; padding: 20px; border: 1px solid #eee; margin-bottom: 20px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 20px; width: 20px;
    border-radius: 50%; background: #000; cursor: pointer; margin-top: -8px;
}
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; background: #ddd; }

/* File Inputs */
.file-input-group {
    margin-bottom: 15px; border: 2px dashed #ddd; padding: 20px;
    text-align: center; background: #fafafa; transition: 0.3s;
}
.file-input-group:hover { border-color: #999; }
.file-input-group label { display: block; font-weight: 600; margin-bottom: 10px; }

/* MISC */
.grecaptcha-badge { visibility: hidden; }

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .nav-flex { gap: 20px; }
    nav ul { display: none; }
    .hero { text-align: center; }
    .hero .container { justify-content: center; }
    .hero-content { margin: 0 auto; text-align: center; }
    .hero .btn { display: none; } /* Původní btn se skryje */
    .hero h1 { font-size: 3rem; }
    .numbers-grid { grid-template-columns: 1fr 1fr; }
    .vision-grid { grid-template-columns: 1fr; gap: 30px; }
    .products-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-card h3 { min-height: auto; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .about-img { height: 400px; order: 2; }
    .about-content { order: 1; display: flex; flex-direction: column; }
    .about-content h2, .about-content > p:first-of-type { text-align: center; }
    .section-title h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .form-group-row { grid-template-columns: 1fr; gap: 0; }
    footer .container { grid-template-columns: 1fr !important; text-align: center; }
    .accordion-header { font-size: 1.2rem; padding: 20px; }
    .form-content-inner { padding: 20px; }
}

@media (max-width: 480px) {
    .nav-flex { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .logo { margin-bottom: 5px; }
    .hero h1 { font-size: 2.2rem; }
    .numbers-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; }
}