/* Základ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f5f6f8;
    --color-surface: #ffffff;
    --color-text: #1a1d21;
    --color-muted: #5c6570;
    --color-accent: #c45c26;
    --color-border: #e2e5e9;
    --header-height: 72px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-accent);
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 1.75rem;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.15s;
}

.nav a:hover,
.nav a.active {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1d21 0%, #2d333b 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 36rem;
    margin: 0 auto;
}

/* Dlaždice */
.tiles-section {
    padding: 3rem 0 4rem;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tile {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tile:hover {
    border-color: #c9cdd3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.tile-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tile h2 {
    font-size: 1.35rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tile p {
    color: var(--color-muted);
    font-size: 0.95rem;
    flex: 1;
}

.tile-link {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.875rem;
}

/* Responzivita */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 1rem 1.25rem 1.25rem;
        border-bottom: 1px solid var(--color-border);
        gap: 1rem;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .tiles {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 0 2.75rem;
    }
}
