/* ===== Základ ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #f7f4ee;
    overflow-x: hidden;
}

/* ===== Přístupnost ===== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 16px;
    color: #111827;
    background: #ffffff;
    border: 2px solid #111827;
    border-radius: 12px;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

/* ===== Layout ===== */

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 38%),
            linear-gradient(180deg, #faf7f1 0%, #f2ede4 100%);
}

.site-header,
.site-main {
    width: 100%;
}

.site-header {
    padding-top: max(16px, env(safe-area-inset-top));
}

.container {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

.hero {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.site-eyebrow {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #111827;
    text-wrap: balance;
}

.lead {
    max-width: 42rem;
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: #4b5563;
}

/* ===== Připraveno pro budoucí obsah ===== */

section {
    position: relative;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

button,
input,
select {
    min-height: 48px;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button {
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    border-color: #9ca3af;
}

/* ===== Responzivita ===== */

@media (max-width: 767px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .hero {
        padding-top: 24px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}