/*
 * DJPORTAL - styly verejnych stranek (landing page, pravni dokumenty, chybove stranky).
 *
 * Soubor je psany rucne a nejde pres Vite - verejne stranky Vite nepouzivaji.
 * Pri zmene aktualizuj query parametr `?v=` v sablonach, ktere ho nacitaji,
 * jinak se navstevnikum nacte stara verze z cache.
 */

/* ==========================================================================
   1. Design tokeny
   ========================================================================== */

/*
 * Modra paleta shodna se zbytkem systemu - Filament pouziva `Color::Blue`
 * a odchozi e-maily stejne hodnoty (viz `App\Support\MailBrand`).
 * Nazvy tokenu jsou zamerne neutralni, aby sla paleta vymenit bez prejmenovani.
 */
:root {
    --font-public: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-text: #1d4ed8;

    --white: #ffffff;
    --surface: #f8fbff;
    --surface-soft: #eef6ff;
    --surface-accent: #dbeafe;

    --text: #0f172a;
    --muted: #475569;
    --muted-soft: #526071;
    --line: #dbe7f7;
    --line-soft: #e8f0fb;

    /* Tmave plochy - produktove mockupy, zaverecne CTA a paticka. */
    --dark: #0f172a;
    --dark-bg: #0f172a;
    --dark-panel: #1e293b;
    --dark-line: #334155;
    --dark-text: #ffffff;
    --dark-muted: #94a3b8;
    --dark-accent: #93c5fd;

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
    --shadow-card: 0 26px 60px rgba(15, 23, 42, 0.12);
    --shadow-dark: 0 32px 70px rgba(15, 23, 42, 0.22);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --wrap: 71.25rem; /* 1140 px obsahu + odsazeni = ~1180 px podle navrhu */
}

/* ==========================================================================
   2. Reset a zaklad
   ========================================================================== */

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

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

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-public);
    font-size: 1rem;
    line-height: 1.6;
    /* Zabrani vodorovnemu posunu stranky, kdyby nejaky prvek pretekl. */
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--accent-text);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

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

/* ==========================================================================
   3. Typografie
   ========================================================================== */

h1,
h2,
h3 {
    font-family: var(--font-public);
    font-weight: 600;
    color: var(--dark);
    /* Zadne pevne vysky - delsi preklady se musi vejit bez orezu. */
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 1.6rem + 3.9vw, 3.875rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 1.35rem + 2.8vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.25;
}

p {
    margin: 0;
}

.eyebrow {
    margin: 0;
    font-family: var(--font-public);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.lead {
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.62;
    color: var(--muted);
}

.section-text {
    font-size: 1.0625rem;
    line-height: 1.68;
    color: var(--muted-soft);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.wrap {
    width: min(var(--wrap), 100% - 3rem);
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 2rem + 6vw, 6.875rem) 0;
    /* Kotva nesmi skoncit pod lepivou navigaci. */
    scroll-margin-top: 6rem;
}

.section--white {
    background: var(--white);
}

.section--tinted {
    background: var(--surface-soft);
}

.section-head {
    max-width: 51rem;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   5. Tlacitka a odkazy
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-public);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent-text);
}

.btn--ghost:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-hover);
}

.btn--on-dark {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark);
}

.btn--on-dark:hover {
    background: var(--surface-accent);
    border-color: var(--surface-accent);
    color: var(--dark);
}

/* ==========================================================================
   6. Navigace
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 251, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    /* Ochranna zona loga: nejmene polovina jeho vysky nad i pod. */
    padding: 1.125rem 0;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logo img {
    display: block;
    width: 9.5rem;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.9375rem;
}

.nav-links a {
    color: var(--muted);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--accent-text);
    border-bottom-color: var(--accent);
}

.nav-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.language-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-link {
    display: inline-flex;
    padding: 0.25rem;
    border: 1px solid transparent;
    border-radius: 6px;
    opacity: 0.6;
    transition: opacity 0.18s ease, border-color 0.18s ease;
}

.language-link:hover {
    opacity: 1;
}

.language-link.is-active {
    opacity: 1;
    border-color: var(--accent);
}

.language-flag {
    display: block;
    width: 1.4375rem;
    height: auto;
    border-radius: 2px;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    grid-template-areas:
        "copy visual"
        "cta  visual";
    align-items: center;
    column-gap: 3.875rem;
    row-gap: 1.75rem;
    padding: clamp(2.75rem, 1.5rem + 4vw, 5.25rem) 0 clamp(3rem, 2rem + 4vw, 4.625rem);
}

.hero-copy {
    grid-area: copy;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.hero-copy h1 {
    max-width: 15ch;
}

.hero-copy h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-text);
}

.hero-copy .lead {
    max-width: 40rem;
}

.hero-cta {
    grid-area: cta;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    min-width: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--muted);
}

.hero-proof li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-proof li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
}

.hero-visual {
    grid-area: visual;
    position: relative;
    min-width: 0;
    padding: 2rem 0 2rem 2rem;
}

/* Barevny podklad za mockupem - jen dekorace, nesmi prekryt obsah. */
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0 0 0 3.5rem;
    background: var(--surface-accent);
    border-radius: 2.25rem;
    z-index: 0;
}

.hero-visual > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   8. Tmavy produktovy mockup (hero i DJ administrace)
   ========================================================================== */

.mockup {
    background: var(--dark-bg);
    color: var(--dark-text);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-dark);
    font-size: 0.8125rem;
}

.mockup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9375rem;
    border-bottom: 1px solid var(--dark-line);
}

.mockup-head img {
    display: block;
    width: 7.5rem;
    height: auto;
}

.mockup-dots {
    display: inline-flex;
    gap: 0.375rem;
}

.mockup-dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #64748b;
}

.mockup-body {
    display: grid;
    grid-template-columns: 9.25rem minmax(0, 1fr);
    gap: 1.375rem;
    padding-top: 1.375rem;
}

.mockup-side {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 1rem;
    border-right: 1px solid var(--dark-line);
    color: var(--dark-muted);
    font-size: 0.8125rem;
}

.mockup-side span {
    display: block;
    padding: 0.625rem 0.6875rem;
    border-radius: 0.5625rem;
}

.mockup-side .is-active {
    background: #334155;
    color: var(--dark-text);
    font-weight: 600;
}

.mockup-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mockup-title {
    margin: 0;
    font-family: var(--font-public);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text);
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
}

.mockup-stat {
    background: var(--dark-panel);
    border: 1px solid var(--dark-line);
    border-radius: 0.6875rem;
    padding: 0.75rem;
    min-width: 0;
}

.mockup-stat small {
    display: block;
    color: var(--dark-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.mockup-stat b {
    display: block;
    margin-top: 0.375rem;
    font-size: 1.375rem;
    line-height: 1.1;
}

/*
 * V detailu poptavky nejsou ve statistikach jednociferna cisla, ale datum
 * a castka. Pri velkem pismu by se lamaly uprostred, proto mensi stupen.
 */
.mockup-stats--compact b {
    font-size: 1.0625rem;
    line-height: 1.25;
}

.mockup-panel {
    background: var(--dark-panel);
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9375rem;
}

.mockup-panel > b {
    display: block;
    padding: 0.5rem 0 0.25rem;
    font-size: 0.8125rem;
}

.mockup-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.6875rem 0;
    border-bottom: 1px solid var(--dark-line);
    line-height: 1.4;
}

.mockup-row:last-child {
    border-bottom: 0;
}

.mockup-row span,
.mockup-row b,
.mockup-row small {
    min-width: 0;
}

.mockup-row small {
    color: var(--dark-muted);
    font-size: 0.75rem;
}

.mockup-row .grow {
    flex: 1 1 8rem;
}

.mockup-pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-pill);
    background: #e6f4e8;
    color: #275f32;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.mockup-ok {
    color: #8dd49a;
    font-weight: 600;
}

/* ==========================================================================
   9. Jak to funguje
   ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.125rem;
    margin-top: 3.375rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: left;
}

.feature-num {
    font-family: var(--font-public);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-text);
}

.feature-card h3 {
    margin-top: 0.75rem;
}

.feature-card p {
    color: var(--muted-soft);
    line-height: 1.6;
}

.section--white .feature-card {
    background: var(--surface);
}

/* ==========================================================================
   10. Ukazkove sekce (klientska zona, DJ administrace)
   ========================================================================== */

.showcase {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    grid-template-areas:
        "copy visual"
        "cta  visual";
    align-items: center;
    column-gap: 3.625rem;
    row-gap: 1.75rem;
}

.showcase--visual-first {
    grid-template-columns: 1.12fr 0.88fr;
    grid-template-areas:
        "visual copy"
        "visual cta";
}

.showcase-copy {
    grid-area: copy;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    min-width: 0;
}

.showcase-cta {
    grid-area: cta;
    align-self: start;
    min-width: 0;
}

.showcase-visual {
    grid-area: visual;
    min-width: 0;
}

.checklist {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
}

.checklist li::before {
    content: "✓";
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 700;
}

/* ==========================================================================
   11. Karta klientske zony
   ========================================================================== */

.client-card {
    background: #eef4fc;
    border: 1px solid #cfdff2;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.client-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.0625rem;
}

.client-brand {
    font-family: var(--font-public);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
}

.client-date {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-pill);
    padding: 0.4375rem 0.75rem;
    color: var(--accent-text);
    font-size: 0.75rem;
    font-weight: 700;
}

.client-offer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
    background: #e3ecf8;
    border-radius: var(--radius);
    padding: 1.125rem;
}

.client-box {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background: var(--white);
    border: 1px solid #d5e3f5;
    border-radius: var(--radius-sm);
    padding: 1.125rem;
    min-width: 0;
}

.client-box h4 {
    margin: 0;
    font-family: var(--font-public);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.client-list {
    margin: 0;
    padding-left: 1.125rem;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.65;
}

.client-price {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent-text);
}

.client-price small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted-soft);
}

.client-paid {
    margin-top: auto;
    background: #edf6ed;
    border-radius: 0.5rem;
    padding: 0.625rem;
    color: #2f6338;
    font-size: 0.75rem;
    font-weight: 700;
}

.client-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.5625rem;
    margin-top: 0.75rem;
}

.client-time {
    background: var(--white);
    border: 1px solid #d5e3f5;
    border-radius: 0.6875rem;
    padding: 0.8125rem;
    font-size: 0.6875rem;
    color: var(--muted-soft);
    min-width: 0;
}

.client-time b {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--dark);
    line-height: 1.3;
}

.client-music {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.client-tag {
    background: var(--white);
    border: 1px solid #d5e3f5;
    border-radius: var(--radius-pill);
    padding: 0.4375rem 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-soft);
}

/* ==========================================================================
   12. Cenik
   ========================================================================== */

.pricing-grid {
    display: grid;
    /*
     * Pocet tarifu se ridi z administrace, sloupce se proto dopocitavaji.
     * Horni mez musi zustat `1fr`, jinak by auto-fit pocital sloupce podle
     * maxima a ctyri tarify by se zalomily do dvou rad.
     */
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 0.9375rem;
    /* Prostor pro nadzvednutou zvyraznenou kartu, aby se nic neorezalo. */
    margin-top: 3.125rem;
    padding-top: 0.875rem;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Pri jednom ci dvou tarifech karta neroztahne pres celou sirku sekce. */
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.625rem 1.375rem;
    text-align: left;
}

.plan--best {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--surface);
    transform: translateY(-0.875rem);
}

.plan-badge {
    font-family: var(--font-public);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.plan--best .plan-badge {
    color: var(--dark-accent);
}

.plan h3 {
    margin: 0.375rem 0 0;
}

.plan--best h3 {
    color: var(--white);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
}

.plan--best .plan-price {
    color: var(--white);
}

.plan-price span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-soft);
}

.plan--best .plan-price span {
    color: #cbd5e1;
}

.plan-desc {
    color: var(--muted-soft);
    font-size: 0.875rem;
    line-height: 1.6;
}

.plan--best .plan-desc {
    color: #cbd5e1;
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.plan--best .plan-features {
    color: #cbd5e1;
}

.plan-features li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.plan-features li::before {
    content: "✓";
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 700;
}

.plan--best .plan-features li::before {
    color: var(--dark-accent);
}

/*
 * Popis tarifu se pise v administraci a nekdo si do nej dava fajfky rucne.
 * Pak se vlastni odrazka nevykresluje, aby u polozky nestaly dve znacky.
 */
.plan-features--own-markers li::before {
    content: none;
}

.plan .btn {
    margin-top: auto;
    width: 100%;
}

.pricing-note {
    max-width: 46rem;
    margin: 1.75rem auto 0;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted-soft);
}

.pricing-note a {
    text-decoration: underline;
}

/* ==========================================================================
   13. Formular a kontakt
   ========================================================================== */

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
    box-shadow: var(--shadow-soft);
}

.panel-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.125rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    min-width: 0;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.form-textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--muted-soft);
}

.form-error {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9b2c2c;
}

/* Vysledek prubezne kontroly obsazenosti adresy profilu. */
.form-status {
    display: flex;
    align-items: baseline;
    gap: 0.4375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted-soft);
}

.form-status[hidden] {
    display: none;
}

.form-status::before {
    flex: 0 0 auto;
    font-weight: 700;
}

.form-status--checking::before {
    content: "…";
}

.form-status--ok {
    color: #2f6338;
}

.form-status--ok::before {
    content: "✓";
}

.form-status--taken {
    color: #9b2c2c;
}

.form-status--taken::before {
    content: "×";
}

.form-alert {
    grid-column: 1 / -1;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.form-alert--success {
    background: #edf6ed;
    border: 1px solid #c5e0c9;
    color: #2f6338;
}

.form-alert--error {
    background: #fdf0ef;
    border: 1px solid #f0cdc9;
    color: #9b2c2c;
}

.slug-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.slug-control .form-input {
    flex: 1 1 10rem;
    min-width: 0;
}

.slug-suffix {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted-soft);
    white-space: nowrap;
}

.consent-field {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--muted);
}

.consent-option input {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.consent-option a {
    text-decoration: underline;
}

.form-submit {
    grid-column: 1 / -1;
    justify-self: start;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--accent-text);
    font-size: 0.9375rem;
    font-weight: 600;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.contact-link svg {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
}

/* ==========================================================================
   14. Zaverecne CTA a paticka
   ========================================================================== */

.final-cta {
    background: var(--dark);
    color: var(--surface);
    padding: clamp(3rem, 2rem + 4vw, 5.625rem) 0;
}

.final-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.final-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 38rem;
    min-width: 0;
}

.final-cta h2 {
    color: var(--white);
}

.final-cta .eyebrow {
    color: var(--dark-accent);
}

.final-cta p {
    color: #cbd5e1;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.footer {
    background: var(--dark);
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    padding: 2.5rem 0;
    font-size: 0.8125rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.75rem 2rem;
}

.footer-logo img {
    display: block;
    width: 8.75rem;
    height: auto;
    margin-bottom: 0.875rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.footer-contact-title {
    margin: 0 0 0.125rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark-accent);
}

.footer-contact a {
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer a {
    color: #cbd5e1;
}

.footer a:hover {
    color: var(--white);
}

.footer-slogan {
    margin: 0 0 0.5rem;
    color: var(--dark-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-identity,
.footer-copy {
    margin: 0;
    line-height: 1.6;
}

/*
 * Pravni dokumenty a chybove stranky maji vlastni layoutove CSS primo ve svych
 * sablonach. Odsud prebiraji jen tokeny, reset, typografii a fonty, aby byly
 * barvy vsech verejnych stranek na jednom miste.
 */

/* ==========================================================================
   15. Responzivita
   ========================================================================== */

/* Tablet - navigacni kotvy se skryvaji, produktove sekce jdou pod sebe. */
@media (max-width: 62rem) {
    .nav-links {
        display: none;
    }

    .hero,
    .showcase,
    .showcase--visual-first {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "visual"
            "cta";
        row-gap: 2.25rem;
    }

    /*
     * V heru jde CTA pred ukazku. Ukazka je vysoka pres 780 px, takze pod ni
     * by hlavni tlacitko skoncilo az kolem 1350 px - hluboko pod ohybem.
     * Sekce nize na strance si poradi text -> vizual -> CTA nechavaji.
     */
    .hero {
        grid-template-areas:
            "copy"
            "cta"
            "visual";
    }

    .hero-copy,
    .showcase-copy {
        align-self: auto;
    }

    .hero-cta,
    .showcase-cta {
        align-self: auto;
    }

    .hero-visual {
        padding: 1.5rem 0 0;
    }

    .hero-visual::before {
        display: none;
    }

    .plan--best {
        transform: none;
    }

    .mockup-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .mockup-side {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
        gap: 0.25rem;
        padding-right: 0;
        padding-bottom: 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--dark-line);
    }
}

@media (max-width: 48rem) {
    .wrap {
        width: min(var(--wrap), 100% - 2.5rem);
    }

    .doc-shell {
        width: min(54rem, 100% - 2.5rem);
    }

    .final-cta-inner {
        align-items: flex-start;
    }
}

/* Mobil - jeden sloupec, tlacitka na celou sirku. */
@media (max-width: 34rem) {
    .wrap {
        width: min(var(--wrap), 100% - 1.75rem);
    }

    .doc-shell {
        width: min(54rem, 100% - 1.75rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-proof {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mockup-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .mockup-side {
        grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    }

    /*
     * Logo, vlajky a CTA se na uzkou obrazovku vedle sebe nevejdou. Navigace
     * se proto zalomi do dvou rad - logo nahore, prepinac jazyka a CTA pod nim.
     */
    .nav-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-logo img {
        width: 8rem;
    }

    .nav-side {
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .nav-side .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Vyssi navigace nesmi po prokliku kotvy prekryt nadpis sekce. */
    .section {
        scroll-margin-top: 9rem;
    }

    .final-cta .btn,
    .form-submit {
        width: 100%;
    }
}

@media print {
    .nav,
    .final-cta {
        display: none;
    }

    body {
        background: var(--white);
    }
}
