/* =========================================================
   E-mail Hosting – technická podpora | Core Trade s.r.o.
   Styly: čisté, responzivní, bez externích závislostí.
   ========================================================= */

:root {
    --c-primary:        #0b3d91;
    --c-primary-dark:   #082a66;
    --c-primary-light:  #1e5fd8;
    --c-accent:         #10b981;
    --c-accent-dark:    #047857;
    --c-warn:           #f59e0b;
    --c-danger:         #dc2626;
    --c-bg:             #f6f8fc;
    --c-surface:        #ffffff;
    --c-surface-alt:    #eef2f9;
    --c-text:           #0f172a;
    --c-text-muted:     #475569;
    --c-border:         #e2e8f0;
    --c-code-bg:        #0f172a;
    --c-code-text:      #e2e8f0;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow:    0 4px 14px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12);

    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --maxw: 1180px;
    --nav-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--c-primary-light); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--c-text); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code, kbd, samp {
    font-family: var(--font-mono);
    font-size: .92em;
    background: var(--c-surface-alt);
    padding: .12em .4em;
    border-radius: var(--radius-sm);
}
pre {
    background: var(--c-code-bg);
    color: var(--c-code-text);
    padding: 1em 1.2em;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: .9em;
    line-height: 1.55;
}
pre code { background: transparent; padding: 0; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
    position: absolute; left: -9999px; top: auto;
    background: var(--c-primary); color: #fff; padding: .6em 1em; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ================= Header / Nav ================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--nav-h); gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--c-text); }
.brand:hover { text-decoration: none; }
.brand-logo { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; color: var(--c-primary); }
.brand-text em { font-style: normal; font-size: .75rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .05em; }

.primary-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.primary-nav a {
    display: inline-block; padding: .55rem .85rem; border-radius: var(--radius-sm);
    color: var(--c-text); font-weight: 500; font-size: .95rem;
}
.primary-nav a:hover { background: var(--c-surface-alt); text-decoration: none; color: var(--c-primary); }
.primary-nav a.active { color: var(--c-primary); background: var(--c-surface-alt); }
.primary-nav a.cta {
    background: var(--c-primary); color: #fff; padding: .6rem 1rem;
}
.primary-nav a.cta:hover { background: var(--c-primary-dark); color: #fff; }

.nav-toggle {
    display: none; background: none; border: 0; width: 44px; height: 44px;
    cursor: pointer; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--c-border);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .primary-nav.open { max-height: 90vh; }
    .primary-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; gap: 0; }
    .primary-nav li { border-bottom: 1px solid var(--c-border); }
    .primary-nav li:last-child { border-bottom: 0; }
    .primary-nav a { padding: .9rem .6rem; border-radius: 0; }
    .primary-nav a.cta { margin-top: .75rem; border-radius: var(--radius-sm); text-align: center; }
}

/* ================= Sections ================= */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
section + section { border-top: 1px solid transparent; }
.section-alt { background: var(--c-surface-alt); }

/* Sjednocený rytmus nadpisů v sekcích */
section > .container > h2:first-child,
section > .container > .section-title:first-child { margin-top: 0; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .6rem; }
.section-title {
    display: block !important; /* zrušit dřívější flex – způsoboval mezery */
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 700; letter-spacing: -0.015em;
    margin: 0 0 .5rem; color: var(--c-text);
}
.section-subtitle {
    font-size: 1.05rem; color: var(--c-text-muted);
    max-width: 68ch; margin: 0 0 2.5rem;
    line-height: 1.6;
}

/* ===== HERO (homepage) – velký, vrstvený, dramatický ===== */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
    background:
        radial-gradient(1400px 700px at 8% -15%, rgba(59, 130, 246, .55), transparent 60%),
        radial-gradient(1000px 600px at 105% 10%, rgba(16, 185, 129, .4), transparent 55%),
        radial-gradient(700px 500px at 50% 120%, rgba(139, 92, 246, .35), transparent 60%),
        linear-gradient(135deg, #061a4a 0%, #0b3d91 45%, #1e40af 100%);
}
/* Jemná mřížka přes celou hero – vrstva č.1 */
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
    pointer-events: none;
    z-index: -1;
}
/* Světelná koule – vrstva č.2 */
.hero::after {
    content: "";
    position: absolute;
    top: -220px; right: -180px;
    width: 620px; height: 620px;
    background: radial-gradient(circle at center, rgba(16, 185, 129, .35), transparent 65%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
    animation: heroFloat 14s ease-in-out infinite alternate;
}
@keyframes heroFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, 30px) scale(1.08); }
}

.hero .container { position: relative; z-index: 2; }
.hero .badge {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    padding: .4rem .9rem;
    font-size: .72rem;
    display: inline-flex; align-items: center; gap: .5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.hero .badge::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(16,185,129,.3);
    animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    50%      { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.hero h1 {
    color: #fff;
    margin: 1.5rem 0 1.25rem;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 18ch;
    text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 .accent {
    background: linear-gradient(120deg, #86efac 0%, #10b981 60%, #22d3ee 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, .9);
    max-width: 60ch;
    line-height: 1.6;
    margin: 0;
}
.hero-actions {
    display: flex; gap: .85rem; flex-wrap: wrap;
    margin-top: 2.5rem;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 3.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255,255,255,.18);
    max-width: 820px;
}
@media (max-width: 720px) {
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-stat { color: #fff; }
.hero-stat .num {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, #fff 0%, #bfdbfe 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-stat .lbl {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .25rem;
    display: block;
}

.btn {
    display: inline-block; padding: .8rem 1.35rem; border-radius: var(--radius);
    font-weight: 600; text-decoration: none; border: 2px solid transparent;
    cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease;
    font-size: 1rem; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }

/* Grids & cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Striktně 2 sloupce (nikdy ne 3+1) – padá na 1 sloupec pod 720 px */
.grid-2x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid-2x { grid-template-columns: 1fr; } }
/* Striktně 3 sloupce – padá na 2 pod 900 px a na 1 pod 620 px */
.grid-3x { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3x { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3x { grid-template-columns: 1fr; } }

.card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .08s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-top: 0; color: var(--c-primary); display: flex; align-items: center; gap: .5rem; }
.card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--c-surface-alt); color: var(--c-primary);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem;
}

/* Pricing */
.pricing {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}
.price-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); padding: 2.25rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    position: relative;
}
.price-card.featured {
    border-color: var(--c-primary);
    box-shadow: 0 10px 30px rgba(11,61,145,.18);
    padding-top: 3rem; /* místo pro badge, aby nepřekrýval nadpis */
}
.price-card.featured::before {
    content: "ZÁKLADNÍ SLUŽBA";
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    background: var(--c-primary); color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: .1em;
    padding: .3rem .85rem; border-radius: 999px; white-space: nowrap;
}
.price-card h3 {
    color: var(--c-primary); margin: 0 0 .75rem;
    font-size: 1.1rem; line-height: 1.35; min-height: 2.8em;
}
.price {
    font-size: 2.1rem; font-weight: 700; color: var(--c-text);
    margin: 0 0 .15rem; line-height: 1.1;
}
.price small { font-size: .95rem; color: var(--c-text-muted); font-weight: 500; margin-left: .25rem; }
.price-unit { color: var(--c-text-muted); font-size: .88rem; margin: 0 0 1.25rem; min-height: 2.5em; }
.price-card ul { list-style: none; padding: 0; margin: auto 0 0; }
.price-card li {
    padding: .6rem 0 .6rem 1.6rem;
    border-top: 1px dashed var(--c-border);
    position: relative;
    font-size: .92rem; line-height: 1.5;
}
.price-card li::before {
    content: "✓"; color: var(--c-accent); font-weight: 700;
    position: absolute; left: 0; top: .55rem;
}
.price-note {
    background: #fff7ed; border: 1px solid #fde2b1; border-left: 4px solid var(--c-warn);
    color: #7c2d12; padding: 1rem 1.2rem; border-radius: var(--radius); margin-top: 1.5rem;
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-border); }
table { width: 100%; border-collapse: collapse; background: var(--c-surface); min-width: 600px; }
thead { background: var(--c-primary); color: #fff; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--c-surface-alt); }
tbody tr:last-child td { border-bottom: 0; }

/* Alerts / notes */
.note {
    padding: 1rem 1.25rem; border-radius: var(--radius);
    border-left: 4px solid var(--c-primary); background: #eff4ff;
    color: #0c2f70; margin: 1rem 0;
}
.note.warn { background: #fffbeb; border-color: var(--c-warn); color: #78350f; }
.note.danger { background: #fef2f2; border-color: var(--c-danger); color: #7f1d1d; }
.note.success { background: #ecfdf5; border-color: var(--c-accent); color: #064e3b; }

/* Badges */
.badge {
    display: inline-block; font-size: .75rem; font-weight: 700;
    padding: .25em .6em; border-radius: 999px; letter-spacing: .03em;
    background: var(--c-surface-alt); color: var(--c-primary); text-transform: uppercase;
}
.badge.ok { background: #d1fae5; color: #065f46; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
    counter-increment: step;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 1rem 1.25rem 1rem 3.2rem; margin-bottom: .75rem; position: relative;
}
.steps > li::before {
    content: counter(step);
    position: absolute; left: .9rem; top: 1rem;
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    background: var(--c-primary); color: #fff; font-weight: 700;
    display: grid; place-items: center; font-size: .9rem;
}

/* Accordion */
.accordion details {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 0; margin-bottom: .6rem; overflow: hidden;
}
.accordion summary {
    cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--c-primary);
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
    content: "+"; font-size: 1.4rem; color: var(--c-text-muted); transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--c-border); padding-top: 1rem; }

/* Tabs (client setup) */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 2px solid var(--c-border); margin-bottom: 1.5rem; }
.tab-btn {
    background: none; border: 0; padding: .8rem 1.15rem; cursor: pointer;
    font-weight: 600; color: var(--c-text-muted); border-bottom: 3px solid transparent;
    margin-bottom: -2px; font-size: .95rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--c-primary); background: var(--c-surface-alt); }
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); background: var(--c-surface); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 780px; background: var(--c-surface); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--c-text); }
.form label .req { color: var(--c-danger); }
.form input, .form select, .form textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid var(--c-border); border-radius: var(--radius);
    font: inherit; background: #fff; color: var(--c-text); transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(11,61,145,.15);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .hint { font-size: .82rem; color: var(--c-text-muted); margin-top: .3rem; }
.form .form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.form .btn-primary { background: var(--c-primary); color: #fff; }
.form .btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.form-status {
    display: none; padding: 1rem 1.25rem; border-radius: var(--radius); margin-top: .5rem;
    font-weight: 500;
}
.form-status.show { display: block; }
.form-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form .hp { position: absolute; left: -9999px; opacity: 0; }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; margin-top: 4rem; padding: 3rem 0 1rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: #93c5fd; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .2rem 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 2rem; padding-top: 1rem; color: #94a3b8; font-size: .85rem; }
.footer-bottom a { color: #93c5fd; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--c-text-muted); }
.lead { font-size: 1.1rem; color: var(--c-text-muted); max-width: 760px; }
.kbd { display: inline-block; padding: .15em .45em; border: 1px solid var(--c-border); border-bottom-width: 2px; border-radius: 4px; font-family: var(--font-mono); font-size: .85em; background: #fff; }

.section-title { display: flex; align-items: center; gap: .75rem; margin-bottom: .3rem; }
.section-subtitle { color: var(--c-text-muted); margin-bottom: 2rem; }

/* ===== Page hero (podstránky) – výraznější, s dekorací ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background:
        radial-gradient(1000px 500px at 10% -20%, rgba(59, 130, 246, .5), transparent 60%),
        radial-gradient(700px 400px at 100% 100%, rgba(16, 185, 129, .3), transparent 60%),
        linear-gradient(135deg, #061a4a 0%, #0b3d91 50%, #1e40af 100%);
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
    pointer-events: none; z-index: -1;
}
.page-hero::after {
    content: "";
    position: absolute;
    bottom: -180px; right: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(16, 185, 129, .28), transparent 65%);
    border-radius: 50%; filter: blur(20px);
    pointer-events: none; z-index: -1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #86efac;
    padding: .35rem .85rem;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .32);
    border-radius: 999px;
    margin: 0 0 1.25rem;
}
.page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 1.15rem;
    max-width: 22ch;
    text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.page-hero p {
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    max-width: 65ch;
    margin: 0;
    line-height: 1.65;
}

/* Inline kód uvnitř hero sekcí – světlý text na průhledném podkladu */
.hero code, .page-hero code,
.hero kbd, .page-hero kbd,
.hero samp, .page-hero samp {
    background: rgba(255, 255, 255, .14);
    color: #e0f2fe;
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .1em .45em;
    border-radius: 6px;
    font-weight: 500;
}
.hero a, .page-hero a { color: #93c5fd; }
.hero a:hover, .page-hero a:hover { color: #fff; }

/* Zvětšit tlačítka v hero */
.hero .btn, .page-hero .btn {
    padding: .95rem 1.6rem;
    font-size: 1.02rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.hero .btn-primary, .page-hero .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, .45), 0 2px 4px rgba(0,0,0,.1);
}
.hero .btn-primary:hover, .page-hero .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 12px 32px rgba(16, 185, 129, .55), 0 2px 4px rgba(0,0,0,.15);
    transform: translateY(-2px);
}
.hero .btn-outline, .page-hero .btn-outline {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, .3);
}
.hero .btn-outline:hover, .page-hero .btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-2px);
}

/* Vlnitý oddělovač pod hero */
.hero + section, .page-hero + section {
    position: relative;
}

/* ================= Prose / dlouhý obsah (smlouva, dokumenty) ================= */
.prose-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}
@media (max-width: 960px) {
    .prose-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

.prose-toc {
    position: sticky; top: calc(var(--nav-h) + 1.5rem);
    align-self: start;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1rem;
    font-size: .9rem;
    max-height: calc(100vh - var(--nav-h) - 3rem);
    overflow-y: auto;
}
@media (max-width: 960px) { .prose-toc { position: static; max-height: none; } }
.prose-toc h3 {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--c-text-muted); margin: 0 0 .75rem; font-weight: 700;
}
.prose-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.prose-toc li { counter-increment: toc; margin: 0; }
.prose-toc a {
    display: block; padding: .4rem .5rem .4rem 2rem;
    position: relative;
    color: var(--c-text); border-radius: 6px;
    line-height: 1.35; font-weight: 500;
    border-left: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.prose-toc a::before {
    content: counter(toc, upper-roman) ".";
    position: absolute; left: .5rem; top: .4rem;
    font-variant-numeric: tabular-nums;
    color: var(--c-text-muted); font-weight: 700; font-size: .85em;
}
.prose-toc a:hover { background: var(--c-surface-alt); color: var(--c-primary); text-decoration: none; }
.prose-toc a.is-active {
    background: rgba(11, 61, 145, .08); color: var(--c-primary);
    border-left-color: var(--c-primary);
}

.prose { max-width: 76ch; font-size: 1rem; line-height: 1.7; color: var(--c-text); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700; letter-spacing: -0.01em;
    margin: 3rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
    display: flex; align-items: baseline; gap: .7rem;
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h2 .art-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; padding: .15rem .55rem;
    background: var(--c-primary); color: #fff;
    border-radius: 8px;
    font-size: .82rem; font-weight: 700; letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.prose h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--c-primary);
    margin: 1.75rem 0 .6rem; letter-spacing: -0.005em;
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.prose h4 {
    font-size: .8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--c-text-muted);
    margin: 1.5rem 0 .4rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--c-primary); }
.prose .note, .prose .card { margin: 1.25rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,61,145,.3); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--c-text); font-weight: 600; }

/* Kompakt TOC – mobilní sbalitelná */
@media (max-width: 960px) {
    .prose-toc details { margin: 0; }
    .prose-toc > ol { margin-top: .5rem; }
}

/* Print */
@media print {
    .site-header, .site-footer, .nav-toggle, .hero-actions, .form, .tab-btn { display: none !important; }
    body { background: #fff; color: #000; }
    .card, pre, table { box-shadow: none; border-color: #ccc; }
}
