/* ===== RESET & BASE ===== */
html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    color: #0f0f0f;
    background: #f8f7f4;
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100%;
}

/* ===== NAVIGACE ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    position: sticky;
    top: 0;
    background: rgba(248, 247, 244, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8e6e0;
    z-index: 1000;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    color: #0f0f0f;
    letter-spacing: -0.5px;
}

.menu { display: flex; gap: 28px; }

.menu a {
    text-decoration: none;
    color: #0f0f0f;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.menu a:hover { color: #333; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #0f0f0f;
    transition: 0.25s;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2c4a6e 0%, #3d6b9e 40%, #2a5080 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-card {
    position: relative;
    z-index: 2;
    background: rgba(248, 247, 244, 0.97);
    border-radius: 20px;
    padding: 52px 56px;
    max-width: 560px;
    margin-left: 8%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    background: #f0ede6;
    color: #555;
    border: 1px solid #e0ddd6;
}

.hero-card h1 {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: #0f0f0f;
}

.hero-sub {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-social {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #ebe8e1;
}

.hero-social > span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f0ede6;
    border: 1px solid #e0ddd6;
    color: #444;
    text-decoration: none;
    transition: 0.2s;
}

.social-icons a:hover {
    background: #0f0f0f;
    border-color: #0f0f0f;
    color: #f8f7f4;
    transform: translateY(-2px);
}

.hero-photo-placeholder {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: transparent;
}

.hero-photo-placeholder img {
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.photo-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.25);
    font-size: 13px;
    padding-bottom: 60px;
}

/* ===== TLAČÍTKA ===== */
.cta {
    display: inline-block;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    white-space: nowrap;
}

.cta-primary {
    padding: 13px 26px;
    background: #0f0f0f;
    color: #f8f7f4;
}

.cta-primary:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.cta-secondary {
    padding: 13px 26px;
    background: transparent;
    color: #0f0f0f;
    border: 1.5px solid #ccc;
}

.cta-secondary:hover {
    border-color: #0f0f0f;
    transform: translateY(-1px);
}

/* ===== INTRO SEKCE ===== */
.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    margin-top: 60px;
}

.intro-photo-placeholder {
    background: #e8e4dc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
}

.intro-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-photo-placeholder .photo-hint {
    color: #aaa9a0;
}

.intro-text {
    padding: 72px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f7f4;
}

.intro-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 14px;
}

.intro-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    max-width: 440px;
}

.intro-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.intro-badges li {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    background: #f0ede6;
    border-radius: 100px;
    color: #444;
    border: 1px solid #e0ddd6;
}

/* ===== SEKCE OBECNĚ ===== */
.section {
    padding: 90px 8%;
    max-width: 1200px;
    margin: auto;
    scroll-margin-top: 80px;
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ===== GRID KARET ===== */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.item {
    background: white;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid #ebe8e1;
    transition: 0.25s;
}

.item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    border-color: #d0cdc6;
}

.item-icon {
    width: 48px;
    height: 48px;
    background: #f0ede6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #444;
}

.item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f0f0f;
}

.item p {
    font-size: 14px;
    color: #777;
    line-height: 1.65;
}

/* ===== O MNĚ ===== */
.about { background: transparent; }

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
    max-width: 520px;
    line-height: 1.75;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat {
    background: white;
    border: 1px solid #ebe8e1;
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f0f0f;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.stat-desc {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
}

/* ===== MATERIÁLY ===== */
.materialy-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    background: white;
    border: 1.5px dashed #d0cdc6;
    border-radius: 16px;
    color: #aaa;
    text-align: center;
}

.materialy-placeholder p {
    font-size: 15px;
    color: #aaa;
}

/* ===== KONTAKT ===== */
.kontakt {
    text-align: center;
    background: #1a1a2e;
    max-width: 100%;
    border-radius: 0;
    padding: 100px 8%;
}

.kontakt-inner {
    max-width: 540px;
    margin: auto;
}

.kontakt .section-label { color: #7a8fa6; }

.kontakt h2 {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8f7f4;
    margin-bottom: 16px;
}

.kontakt p {
    font-size: 15px;
    color: #9aabb8;
    margin-bottom: 32px;
    line-height: 1.7;
}

.kontakt .cta-primary {
    background: #f8f7f4;
    color: #0f0f0f;
}

.kontakt .cta-primary:hover {
    background: #ffffff;
}

.kontakt-form {
    margin-top: 36px;
    text-align: left;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #9aabb8;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #f8f7f4;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.4);
}

.cta-light {
    display: block;
    margin: 0 auto;
    padding: 13px 32px;
    background: #f8f7f4;
    color: #0f0f0f;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.cta-light:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.form-success {
    display: none;
    margin-top: 24px;
    font-size: 17px;
    color: #7ecba1;
    text-align: center;
}

/* ===== FOOTER ===== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 8%;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #e8e6e0;
    background: #f8f7f4;
}

.footer-link {
    text-decoration: none;
    color: #999;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #0f0f0f;
}

/* ===== NÁSTROJE ===== */
.nastroje-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nastroj-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 1px solid #ebe8e1;
    border-radius: 16px;
    padding: 24px 28px;
    text-decoration: none;
    color: inherit;
    transition: 0.25s;
}

.nastroj-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    border-color: #d0cdc6;
}

.nastroj-icon {
    width: 56px;
    height: 56px;
    background: #f0ede6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #444;
    transition: background 0.2s;
}

.nastroj-card:hover .nastroj-icon {
    background: #2c4a6e;
    color: white;
}

.nastroj-body {
    flex: 1;
}

.nastroj-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 5px;
}

.nastroj-body p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    max-width: 560px;
}

.nastroj-arrow {
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.nastroj-card:hover .nastroj-arrow {
    color: #2c4a6e;
    transform: translateX(4px);
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        flex-direction: column-reverse;
        padding: 0;
    }
    .hero-card {
        margin: 0 5% 60px;
        padding: 40px 36px;
        max-width: 100%;
        position: relative;
        z-index: 2;
    }
    .hero-card h1 { font-size: 30px; }
    .hero-photo-placeholder {
        position: relative;
        width: 100%;
        height: 380px;
    }
    .intro { grid-template-columns: 1fr; }
    .intro-photo-placeholder { min-height: 300px; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    nav {
        z-index: 1002;
        width: 100%;
    }

    .menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f8f7f4;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 0 10%;
        gap: 32px;
        z-index: 1002;
        width: 100%;
    }
    .menu.open { display: flex; }
    .menu a {
        font-size: 28px;
        font-weight: 700;
        font-family: 'Syne', sans-serif;
        color: #0f0f0f;
    }
    .hamburger {
        display: flex;
        z-index: 1003;
    }

    /* Hero mobile — center name and subtext */
    .hero {
        overflow: hidden;
        width: 100%;
    }
    .hero-card {
        margin: 0 4% 40px;
        padding: 28px 20px;
        width: 92%;
        text-align: center;
    }
    .hero-card h1 { font-size: 26px; }
    .hero-tags { justify-content: center; }
    .hero-sub { text-align: center; }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-ctas .cta {
        text-align: center;
        width: 100%;
    }
    .hero-social {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .hero-photo-placeholder {
        height: 300px;
        width: 100%;
        overflow: hidden;
    }

    /* Section headers — center on mobile */
    .section-header {
        text-align: center;
    }

    /* Sections mobile */
    .section {
        padding: 60px 5%;
        width: 100%;
        max-width: 100%;
    }

    /* Grid mobile */
    .grid { grid-template-columns: 1fr; }

    /* About stats mobile */
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Intro text mobile */
    .intro-text {
        padding: 48px 5%;
        text-align: center;
    }
    .intro-text p { max-width: 100%; }
    .intro-badges { justify-content: center; }

    /* About text mobile */
    .about-text p { max-width: 100%; text-align: center; }
    .about-grid { gap: 28px; }

    /* Nástroje mobile */
    .nastroj-card {
        flex-wrap: wrap;
        gap: 14px;
        padding: 20px;
    }
    .nastroj-arrow { display: none; }

    /* Kontakt form mobile */
    .form-row {
        grid-template-columns: 1fr;
    }
    .kontakt-form {
        width: 100%;
    }
    .kontakt {
        padding: 70px 5%;
    }
    .kontakt h2 { font-size: 28px; }

    footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

nav:has(.menu.open) {
    backdrop-filter: none;
    background: rgba(248, 247, 244, 0.88);
}