/* ==========================================================================
   Weblin – Petr Linhart
   Editoriální vzhled: papír, inkoust, kobalt. Jedna rodina písma (Archivo)
   s proměnnou šířkou – široké nadpisy, běžná šířka pro text.
   ========================================================================== */

/* Archivo (variabilní šířka i tloušťka), vložené přímo na web – licence OFL, viz assets/fonts/OFL-Archivo.txt */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --paper: #ECEEF1;
    --paper-2: #E1E4EA;
    --white: #FFFFFF;
    --ink: #0F1530;
    --ink-2: #353C5B;
    --muted: #586080;
    --cobalt: #2347FF;
    --cobalt-deep: #1733D6;
    --line: rgba(15, 21, 48, 0.16);
    --line-light: rgba(255, 255, 255, 0.22);

    --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --section-y: clamp(84px, 11vw, 160px);
    --radius: 4px;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.6;
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--cobalt); color: var(--white); }

:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.muted { color: var(--muted); }

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -60px;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Tlačítka a odkazy ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    font-stretch: 108%;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--cobalt); }

.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--white); }

.btn-line-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-line-light:hover { background: var(--white); color: var(--cobalt); }

.text-link {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--cobalt);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}
.text-link:hover { color: var(--cobalt); }

.beta-tag {
    display: inline-block;
    padding: 0.1em 0.5em 0.15em;
    border-radius: 999px;
    background: var(--cobalt);
    color: var(--white);
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.3;
    vertical-align: 0.15em;
}
.beta-tag-light { background: var(--white); color: var(--cobalt); }

/* ---------- Hlavička ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.brand-mark { width: 38px; height: auto; }
.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    font-stretch: 125%;
    letter-spacing: -0.02em;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav ul a {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}
.main-nav ul a:hover { border-bottom-color: var(--ink); }
.nav-cta { min-height: 46px; padding: 0 1.25rem; }

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    position: relative;
}
.menu-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Úvod ---------- */

.hero { padding: clamp(32px, 6vw, 80px) 0 var(--section-y); }

.hero-title {
    font-size: clamp(2.6rem, 8.5vw, 8rem);
    font-weight: 850;
    font-stretch: 125%;
    line-height: 0.95;
    letter-spacing: -0.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: block; }
.hero-title .line > span { white-space: nowrap; }

.hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 38rem) auto;
    justify-content: space-between;
    align-items: end;
    gap: 2rem 3rem;
    margin-top: clamp(32px, 4.5vw, 64px);
    padding-top: clamp(24px, 3vw, 36px);
    border-top: 3px solid var(--ink);
}
.hero-intro p { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Jediný orchestrovaný pohyb na stránce: řádky nadpisu vyjedou zespodu */
@media (prefers-reduced-motion: no-preference) {
    .js .hero-title .line > span {
        transform: translateY(105%);
        animation: line-up 0.8s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
    }
    .js .hero-title .line:nth-child(2) > span { animation-delay: 0.09s; }
    .js .hero-title .line:nth-child(3) > span { animation-delay: 0.18s; }
    @keyframes line-up { to { transform: translateY(0); } }
}

/* ---------- Společné pro sekce ---------- */

.section { padding: var(--section-y) 0; }

.section-head {
    max-width: 66rem;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.section-title {
    font-size: clamp(2.2rem, 5.2vw, 4.6rem);
    font-weight: 800;
    font-stretch: 122%;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.section-lead {
    margin-top: 1.25rem;
    max-width: 36rem;
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    color: var(--ink-2);
}

/* ---------- Realizace ---------- */

.work { padding-top: 0; }

.work-list { display: grid; gap: clamp(64px, 9vw, 128px); }

.work-item {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}
.work-item.is-flipped .work-media { order: 2; }

.work-media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    border: 2px solid var(--ink);
    background: var(--white);
}
.work-media picture,
.detail-media picture { display: block; }
.work-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.work-media:hover img { transform: scale(1.02); }
.work-media-empty {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--muted);
}

.work-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-2);
}
.work-status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--cobalt);
}
.work-status.is-live::before { background: var(--cobalt); }

.work-title {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    font-stretch: 118%;
    line-height: 1;
    letter-spacing: -0.025em;
}
.work-title a { text-decoration: none; }
.work-title a:hover { color: var(--cobalt); }
.work-desc { color: var(--ink-2); max-width: 32rem; }
.work-services {
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}
.work-empty { font-size: 1.25rem; color: var(--muted); }

/* ---------- Služby (tmavý blok) ---------- */

.services {
    background: var(--ink);
    color: var(--paper);
}
.services .section-lead { color: rgba(236, 238, 241, 0.78); }
.services .btn-ink { background: var(--paper); color: var(--ink); margin-top: 2rem; }
.services .btn-ink:hover { background: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}
.services-head { margin-bottom: 0; position: sticky; top: 120px; }

.service-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line-light);
}
.service-row:last-child { border-bottom: 1px solid var(--line-light); }
.service-row dt {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    font-weight: 750;
    font-stretch: 112%;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.service-row dd { color: rgba(236, 238, 241, 0.78); font-size: 1.05rem; }

/* ---------- Spolupráce ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 40px);
    border-top: 3px solid var(--ink);
    counter-reset: none;
}
.step { padding-top: 1.75rem; }
.step-num {
    display: block;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 850;
    font-stretch: 125%;
    line-height: 0.9;
    color: var(--cobalt);
}
.step-title {
    margin: 1.25rem 0 0.6rem;
    font-size: 1.3rem;
    font-weight: 750;
    font-stretch: 110%;
    line-height: 1.2;
}
.step-desc { font-size: 1rem; color: var(--ink-2); }

/* ---------- Účtuj (kobaltový blok) ---------- */

.uctuj {
    position: relative;
    overflow: hidden;
    background: var(--cobalt);
    color: var(--white);
    padding: clamp(48px, 7vw, 96px) 0 var(--section-y);
}

.uctuj-wordmark {
    font-size: clamp(6rem, 25vw, 23rem);
    font-weight: 900;
    font-stretch: 125%;
    line-height: 0.78;
    letter-spacing: -0.05em;
    margin: 0 0 clamp(40px, 6vw, 88px) -0.05em;
    white-space: nowrap;
}

.uctuj-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.uctuj-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.05rem;
}
.uctuj-title {
    margin: 1.25rem 0 1.25rem;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 800;
    font-stretch: 118%;
    line-height: 1;
    letter-spacing: -0.03em;
}
.uctuj-lead { font-size: clamp(1.1rem, 1.3vw, 1.25rem); max-width: 34rem; color: rgba(255, 255, 255, 0.9); }

.uctuj-features {
    margin: 2rem 0 2.25rem;
    border-top: 1px solid var(--line-light);
}
.uctuj-features li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.88);
}
.uctuj-features strong { color: var(--white); font-weight: 700; }

.uctuj-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.uctuj-note {
    margin-top: 1.5rem;
    max-width: 34rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
}

/* Ukázka faktury */
.invoice {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius);
    padding: clamp(22px, 2.6vw, 34px);
    box-shadow: 14px 14px 0 var(--ink);
    transform: rotate(1.5deg);
    font-size: 0.95rem;
    line-height: 1.45;
}
.invoice-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 3px solid var(--ink);
}
.invoice-kind { font-size: 0.9rem; color: var(--muted); }
.invoice-no { font-size: 1.7rem; font-weight: 800; font-stretch: 118%; line-height: 1.1; }
.invoice-due { text-align: right; font-size: 0.85rem; color: var(--muted); }
.invoice-due strong { color: var(--ink); font-size: 1rem; }
.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}
.invoice-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.ares-chip {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(35, 71, 255, 0.12);
    color: var(--cobalt-deep);
    font-size: 0.75rem;
    font-weight: 700;
}
.invoice-lines { width: 100%; border-collapse: collapse; margin: 0.4rem 0; }
.invoice-lines td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice-lines td:nth-child(2) { color: var(--muted); padding: 0.6rem 0.75rem; white-space: nowrap; }
.invoice-lines td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.invoice-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}
.invoice-qr { width: 84px; height: 84px; fill: var(--ink); }
.invoice-total { text-align: right; }
.invoice-sum { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 850; font-stretch: 118%; line-height: 1; }

/* ---------- Poptávka a kontakt ---------- */

.inquiry-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 3px solid var(--ink);
}
.contact-list dt { font-size: 0.9rem; color: var(--muted); }
.contact-list dd { font-size: 1.2rem; font-weight: 600; }
.contact-list dd a { text-decoration: none; border-bottom: 2px solid var(--cobalt); }
.contact-list dd a:hover { color: var(--cobalt); }
.contact-list .muted { font-size: 1rem; font-weight: 400; }

.inquiry-form-wrap {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: clamp(24px, 3.5vw, 48px);
}

.inquiry-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-size: 0.98rem; font-weight: 650; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-left: 0.25rem; }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid rgba(15, 21, 48, 0.35);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1.05rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230F1530' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--cobalt);
    box-shadow: 0 0 0 3px rgba(35, 71, 255, 0.25);
}
.field .has-error { border-color: #C2183B; }
.field-error { font-size: 0.9rem; color: #B3122F; min-height: 0; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 0.5rem;
}
.btn-submit { min-width: 220px; }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-note { font-size: 0.92rem; color: var(--muted); max-width: 22rem; }
.form-note a { color: var(--ink); }

.form-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    border: 2px solid;
    font-size: 1rem;
}
.form-alert.is-success { border-color: var(--cobalt); background: rgba(35, 71, 255, 0.08); }
.form-alert.is-error { border-color: #C2183B; background: rgba(194, 24, 59, 0.07); }

/* ---------- Patička ---------- */

.site-footer {
    background: var(--ink);
    color: rgba(236, 238, 241, 0.8);
    padding: clamp(56px, 7vw, 96px) 0 2rem;
    font-size: 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 2.5rem;
    padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--paper);
    text-decoration: none;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 850;
    font-stretch: 125%;
    letter-spacing: -0.03em;
    line-height: 1;
}
.footer-logo img { width: 46px; }
.footer-brand p { margin-top: 1rem; max-width: 26rem; }
.footer-col { display: grid; gap: 0.6rem; align-content: start; }
.footer-col a { text-decoration: none; color: var(--paper); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-light);
    font-size: 0.92rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal a { color: inherit; }
.admin-link { color: inherit; text-decoration: none; }

/* ---------- Podstránky (detail projektu, GDPR) ---------- */

.subpage { padding: clamp(32px, 5vw, 72px) 0 var(--section-y); }
.back-link {
    display: table;
    margin-bottom: 2rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--ink);
}
.back-link:hover { color: var(--cobalt); border-color: var(--cobalt); }

.subpage .work-status { margin-bottom: 1rem; }

.subpage-title {
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    font-weight: 850;
    font-stretch: 122%;
    line-height: 0.96;
    letter-spacing: -0.035em;
    max-width: 18ch;
}
.subpage-lead { margin-top: 1.25rem; max-width: 40rem; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-2); }

.detail-media {
    margin: clamp(32px, 5vw, 64px) 0;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.detail-media img { width: 100%; }

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.detail-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    font-stretch: 115%;
    margin-bottom: 1rem;
}
.detail-body p { white-space: pre-line; color: var(--ink-2); max-width: 40rem; }

.detail-facts {
    border-top: 3px solid var(--ink);
    padding-top: 1.25rem;
    display: grid;
    gap: 1.25rem;
}
.detail-facts dt { font-size: 0.9rem; color: var(--muted); }
.detail-facts dd { font-weight: 600; }
.detail-facts .btn { margin-top: 0.5rem; justify-self: start; }

.detail-cta {
    margin-top: clamp(56px, 8vw, 112px);
    padding: clamp(32px, 5vw, 64px);
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.detail-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; font-stretch: 118%; line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; }
.detail-cta .btn-ink { background: var(--paper); color: var(--ink); }
.detail-cta .btn-ink:hover { background: var(--white); }

.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; font-weight: 800; font-stretch: 112%; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0; }
.legal a { color: var(--ink); text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }

/* ---------- Údržba ---------- */

.maintenance {
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 1.5rem;
    width: min(100% - 32px, 46rem);
    margin: 0 auto;
}
.maintenance-title {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 850;
    font-stretch: 125%;
    line-height: 0.95;
    letter-spacing: -0.035em;
}
.maintenance p { color: var(--ink-2); font-size: 1.2rem; }

/* ---------- Responzivita ---------- */

@media (max-width: 1080px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; border-top: 0; }
    .step { border-top: 3px solid var(--ink); }
    .uctuj-grid { grid-template-columns: 1fr; }
    .invoice { max-width: 560px; }
}

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        inset: 80px 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        padding: 2rem var(--gutter) 3rem;
        background: var(--paper);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s;
    }
    .main-nav.is-open { visibility: visible; opacity: 1; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.6rem;
        font-weight: 750;
        font-stretch: 115%;
    }
    .main-nav ul a:hover { border-bottom-color: var(--line); color: var(--cobalt); }
    .nav-cta { min-height: 56px; }
    body.nav-open { overflow: hidden; }

    .hero-title { font-size: 8.6vw; }
    .hero-intro { grid-template-columns: 1fr; }
    .work-item,
    .work-item.is-flipped { grid-template-columns: 1fr; }
    .work-item.is-flipped .work-media { order: 0; }
    .services-grid { grid-template-columns: 1fr; }
    .services-head { position: static; }
    .inquiry-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { font-size: 1.0625rem; }
    .header-row { min-height: 68px; }
    .main-nav { inset: 68px 0 0 0; }
    .brand-name { font-size: 1.4rem; }
    .brand-mark { width: 32px; }
    .hero-title { font-size: 9.2vw; letter-spacing: -0.03em; }
    .hero-actions .btn { flex: 1 1 auto; }
    .steps { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .field-row { grid-template-columns: 1fr; }
    .invoice { transform: none; box-shadow: 8px 8px 0 var(--ink); }
    .invoice-parties { grid-template-columns: 1fr; }
    .invoice-qr { width: 64px; height: 64px; }
    .uctuj-actions .btn,
    .btn-submit { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
