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

:root {
    --bg: #f7f9fc;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: rgba(15, 23, 42, 0.08);

    /* Česká modrá */
    --primary: #11457e;
    --primary-dark: #0d3765;

    /* Česká červená */
    --accent: #d7141a;

    --black: #0b0b0f;
    --white: #ffffff;

    --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(17, 69, 126, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 20, 26, 0.06), transparent 22%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* =========================
   SMOOTH LOAD ANIMACE
========================= */

.nav-island,
.hero-visual,
.hero-content {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.8s ease forwards;
}

.nav-island {
    animation-delay: 0.05s;
}

.hero-visual {
    animation-delay: 0.18s;
}

.hero-content {
    animation-delay: 0.28s;
}

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

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

.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-island {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* hover jen pro normální linky */
.nav a:not(.nav-pill):hover {
    background: rgba(17, 69, 126, 0.08);
    transform: translateY(-1px);
}

/* Projekty pill */
.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(215, 20, 26, 0.06);
    color: var(--text);
    border: 1.5px solid rgba(215, 20, 26, 0.28);
}

.nav-pill:hover {
    background: rgba(215, 20, 26, 0.10);
    color: var(--text);
    border-color: rgba(215, 20, 26, 0.55);
    box-shadow: 0 8px 20px rgba(215, 20, 26, 0.10);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 14px 30px rgba(17, 69, 126, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(17, 69, 126, 0.26);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.58);
    border-color: var(--line);
    color: var(--text);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 69, 126, 0.20);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* kontakt nahoře menší */
.nav-cta {
    padding: 7px 16px;
    min-height: 50px;
    font-size: 0.92rem;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(17, 69, 126, 0.16);
}

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

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 56px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrap {
    width: min(480px, 100%);
    aspect-ratio: 1 / 1;
    padding: 40px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-wrap::before {
    content: "";
    position: absolute;
    inset: auto auto 15% -10%;
    width: 180px;
    height: 180px;
    background: rgba(17, 69, 126, 0.12);
    filter: blur(40px);
    border-radius: 50%;
}

.logo-wrap::after {
    content: "";
    position: absolute;
    inset: 12% -8% auto auto;
    width: 140px;
    height: 140px;
    background: rgba(215, 20, 26, 0.10);
    filter: blur(40px);
    border-radius: 50%;
}

.hero-logo {
    width: min(240px, 56%);
    height: auto;
    position: relative;
    z-index: 1;
    display: block;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    max-width: 760px;
}

.subtitle {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 660px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================
   SEKCE DO BUDOUCNA
========================= */

section {
    position: relative;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav {
        display: none;
    }

    .nav-island {
        justify-content: space-between;
        width: min(92%, 560px);
    }
}

@media (max-width: 640px) {
    .site-header {
        top: 14px;
    }

    .nav-island {
        padding: 10px 12px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding: 120px 0 70px;
    }

    .logo-wrap {
        border-radius: 28px;
        padding: 28px;
    }

    .hero-logo {
        width: min(220px, 64%);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .subtitle {
        font-size: 1rem;
    }

    .header-actions {
        gap: 8px;
    }

    .nav-cta {
        min-height: 44px;
        padding: 7px 14px;
        font-size: 0.88rem;
    }

    .btn {
        padding: 13px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}