:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-contrast: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #f3f6fb;
    --header-bg: #ffffff;
    --header-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
    --hero-text: #ffffff;
    --hero-bg: linear-gradient(rgba(37, 99, 235, 0.45), rgba(29, 78, 216, 0.75)), url("home/img/zahlavi.png") no-repeat center center / cover;
    --btn-bg: #ffffff;
    --btn-text: #2563eb;
    --card-bg: #ffffff;
    --card-text: #1f2937;
    --card-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
    --radius: 6px;
    --radius-lg: 10px;
    --border: #d1d5db;
    --footer-bg: #111827;
    --footer-text: #ffffff;
    --ok-bg: #ecfdf5;
    --ok-text: #065f46;
    --err-bg: #fef2f2;
    --err-text: #991b1b;
    --font: "Source Sans 3", "Segoe UI", sans-serif;
    --font-display: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background: var(--bg);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

fieldset {
    border: 0;
    min-width: 0;
}

header {
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display, var(--font));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
}

.nav-toggle span::before {
    transform: translate(-50%, calc(-50% - 6px));
}

.nav-toggle span::after {
    transform: translate(-50%, calc(-50% + 6px));
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--hero-text);
    text-align: center;
    padding: 8rem 2rem;
    background: var(--hero-bg);
    max-width: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display, var(--font));
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.hero .btn {
    margin-top: 1.25rem;
}

.btn {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: var(--font-display, var(--font));
    font-size: 2.25rem;
    margin: 2.5rem 0 2rem;
}

.section-title:first-child {
    margin-top: 0;
}

.section-lead {
    text-align: center;
    max-width: 40rem;
    margin: -1rem auto 2rem;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    color: var(--card-text);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin: 0 0 1rem;
    color: var(--primary);
    font-family: var(--font-display, var(--font));
}

.service-card h3 + h3,
.service-card p + h3 {
    margin-top: 1.5rem;
}

.service-card ul {
    display: grid;
    gap: 0.35rem;
}

.service-card a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.service-card--wide {
    grid-column: 1 / -1;
}

.contact-form {
    background: var(--card-bg);
    color: var(--card-text);
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.contact-form .form-group,
.contact-form .form-row,
.contact-form .check--gdpr,
.contact-form fieldset.form-group {
    text-align: left;
}

.contact-card {
    text-align: center;
}

.contact-card img {
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label,
.form-group legend {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--input-bg, #fff);
    color: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: var(--primary);
}

.checkbox-list {
    display: grid;
    gap: 0.65rem;
}

.check {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    font-weight: 400;
    cursor: pointer;
}

.check input {
    box-sizing: border-box;
    flex: 0 0 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0 0.85rem 0 0;
    padding: 0;
    accent-color: var(--primary);
}

.check span {
    min-width: 0;
    line-height: 1.4;
}

.check--gdpr {
    margin: 0 0 1.25rem;
}

.form-group.is-invalid input:not([type="checkbox"]),
.form-group.is-invalid textarea {
    border-color: var(--err-text);
    background: var(--err-bg);
}

.form-group.is-invalid input:not([type="checkbox"]):focus,
.form-group.is-invalid textarea:focus {
    outline-color: var(--err-text);
    border-color: var(--err-text);
}

.form-group.is-invalid > label,
.form-group.is-invalid > legend {
    color: var(--err-text);
}

.form-group.is-invalid .checkbox-list {
    outline: 2px solid var(--err-text);
    outline-offset: 6px;
    border-radius: var(--radius);
}

.check--gdpr.is-invalid {
    color: var(--err-text);
}

.check--gdpr.is-invalid input {
    outline: 2px solid var(--err-text);
    outline-offset: 2px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--primary-contrast);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-status {
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-status--ok {
    background: var(--ok-bg);
    color: var(--ok-text);
}

.form-status--err {
    background: var(--err-bg);
    color: var(--err-text);
}

.form-status a {
    text-decoration: underline;
}

.page-message {
    text-align: center;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--header-bg);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        box-shadow: var(--header-shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 2rem;
    }

    .hero {
        padding: 5rem 1.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

body {
    background-image:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28rem),
        radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.06), transparent 22rem);
}

.hero .btn:hover {
    background: #eff6ff;
}

.nabidka-page {
    padding-top: 3rem;
}

.nabidka-prose h1 {
    font-family: var(--font-display, var(--font));
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 1.25rem;
    color: var(--text);
    line-height: 1.25;
}

.service-card {
    border-top: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.service-card .btn {
    align-self: flex-start;
    margin-top: 1.25rem;
    background: var(--primary);
    color: var(--primary-contrast);
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
}

.contact-card img {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.checkbox-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.checkbox-list .check {
    padding: 0.45rem 0.35rem;
}

.checkbox-list .check input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    border: 2px solid #93c5fd;
    border-radius: 4px;
    background: #fff center / 0.7rem no-repeat;
    cursor: pointer;
}

.checkbox-list .check input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5 8.7 9.5 3.3'/%3E%3C/svg%3E");
}

.nabidka-prose {
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.nabidka-prose h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.6rem;
    color: var(--primary);
}

.nabidka-prose p {
    margin-bottom: 0.9rem;
}

.nabidka-prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.45rem;
}

.nabidka-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.nabidka-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--card-shadow);
}
