/*
 * eLegal Digital – landing page a administrace.
 * Vizuál vychází z prezentace eLegal Digital 2026: Georama, oranžová #ff7f00,
 * černá, šedé linky #d9d9d9. Bez buildu, soubor se servíruje tak, jak je.
 */

@font-face {
    font-family: "Georama";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/georama-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Georama";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/georama-latin.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 {
    --orange: #ff7f00;
    --orange-dark: #e06f00;
    --orange-soft: #fff3e6;
    --black: #000;
    --ink: #141413;
    --text: #1f1f1f;
    --muted: #595959;
    --line: #d9d9d9;
    --surface: #f5f5f5;
    --white: #fff;
    --danger: #b42318;
    --success: #1f8a4c;
    --radius: 16px;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --shadow: 0 18px 50px rgba(20, 20, 19, .10);
    --font: "Georama", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.text-orange { color: var(--orange); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 8px; background: var(--black); color: var(--white);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.eyebrow {
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.accent-bar { display: block; width: 120px; height: 7px; margin: 22px 0 0; background: var(--orange); }
.accent-bar--sm { width: 80px; height: 5px; margin-top: 16px; }

/* Tlačítka */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px;
    border: 2px solid transparent; border-radius: 10px;
    font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.button:active { transform: translateY(1px); }
.button--lg { min-height: 54px; padding: 14px 28px; font-size: 18px; }
.button--primary { background: var(--orange); color: var(--white); }
.button--primary:hover { background: var(--orange-dark); }
.button--outline { border-color: var(--black); color: var(--black); }
.button--outline:hover { background: var(--black); color: var(--white); }
.button[disabled] { opacity: .65; cursor: progress; }

/* Hlavička */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(8px);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, .05); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; }
.site-header__logo { flex: none; }
.site-header__logo img { width: 116px; height: auto; }
.site-nav { display: none; gap: 28px; margin-left: auto; font-weight: 600; font-size: 16px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--black); }
.site-header__cta { margin-left: auto; padding-left: 16px; padding-right: 16px; white-space: nowrap; }

/* Hamburger na menších obrazovkách. */
.nav-toggle {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--white);
}
.nav-toggle[hidden] { display: none; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--black);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; background: none; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header.is-open .nav-toggle__bars span { opacity: 0; }
.site-header.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
    .site-header.is-open .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        display: grid; gap: 0;
        margin: 0; padding: 8px var(--gutter) 16px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
    }
    .site-header.is-open .site-nav a { padding: 14px 0; border-bottom: 1px solid #eee; color: var(--black); font-size: 18px; }
    .site-header.is-open .site-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 359px) {
    .site-header__cta { display: none; }
    .nav-toggle { margin-left: auto; }
}
@media (min-width: 1024px) {
    .site-header__inner { gap: 24px; }
    .site-nav { display: flex; }
    .site-header__cta { margin-left: 8px; padding-left: 20px; padding-right: 20px; }
    .site-header__logo img { width: 141px; }
    .nav-toggle { display: none; }
}

/* Úvod */
.hero { overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero h1 {
    margin-top: 0;
    color: var(--black);
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.015em;
}
.hero__lead { max-width: 600px; margin-top: 26px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.hero__lead strong { display: block; margin-bottom: 4px; color: var(--black); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.hero__visual { position: relative; min-height: 280px; }
.hero__e { width: min(68%, 440px); margin-left: auto; }
.hero__screen {
    position: absolute; left: 0; bottom: 6%;
    width: 88%;
    animation: float 7s ease-in-out infinite;
}
@media (min-width: 960px) {
    .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
    .hero__screen { left: -14%; width: 100%; }
}

.screen {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

/*
 * Animované ukázky z prezentace. Scéna má pevné rozměry z prezentace
 * (např. 900 × 440) a JS ji zmenší na šířku rámečku. Dokud se nenačte,
 * je vidět statický screenshot pod ní.
 */
.feature__media .screen { position: relative; }
.screen.has-demo { aspect-ratio: var(--demo-ratio); }
.screen.has-demo > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.demo {
    position: absolute; inset: 0;
    overflow: hidden;
    background: var(--white);
    opacity: 0;
    transition: opacity .5s ease;
}
.demo.is-ready { opacity: 1; }
.demo__stage { position: absolute; left: 0; top: 0; overflow: hidden; background: var(--white); transform-origin: 0 0; }
.demo__stage img { display: block; max-width: none; }
.feature__media.has-demo .feature__toast { display: none; }

/* Sekce */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 980px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
    color: var(--black);
    font-size: clamp(30px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
}
.section-head__lead { max-width: 760px; margin-top: 24px; font-size: clamp(18px, 2vw, 22px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center h2 { font-size: clamp(28px, 3.6vw, 44px); }

/* Problém */
.section--problem { background: var(--surface); }
.problem { display: grid; gap: 40px; align-items: center; }
.problem__list { display: grid; gap: 30px; }
.pain h3 { color: var(--orange); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; }
.pain p { margin-top: 8px; max-width: 680px; font-size: clamp(18px, 2vw, 22px); color: var(--black); }
.mail-pile { position: relative; display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.mail-chip {
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    color: var(--muted);
    font-size: 16px;
    white-space: nowrap;
    animation: chip-in .6s both ease-out, chip-drift 6s ease-in-out infinite;
}
.mail-chip:nth-child(1) { transform: rotate(-3deg); margin-left: 30px; animation-delay: .1s, 0s; }
.mail-chip:nth-child(2) { transform: rotate(2deg); animation-delay: .3s, -1.5s; }
.mail-chip:nth-child(3) { transform: rotate(-2deg); margin-left: 52px; animation-delay: .5s, -3s; }
.mail-chip:nth-child(4) { transform: rotate(3deg); margin-left: 12px; animation-delay: .7s, -4.5s; }
.callout {
    margin-top: clamp(40px, 6vw, 64px);
    padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
    border: 1px solid var(--ink);
    border-radius: 20px;
    background: var(--white);
    color: var(--black);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.25;
}
@media (min-width: 960px) {
    .problem { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .mail-pile { justify-items: end; }
}

/* Funkce */
.feature { display: grid; gap: 32px; align-items: center; padding: clamp(32px, 5vw, 64px) 0; }
.feature + .feature { border-top: 1px solid #ececec; }
.feature h3 {
    color: var(--black);
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.12;
}
.feature__intro { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); }
.feature__media { position: relative; }
.feature__toast {
    position: absolute; right: -8px; bottom: -18px;
    width: 230px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.dot-list { display: grid; gap: 16px; margin: 26px 0 0; padding: 0; list-style: none; }
.dot-list li { position: relative; padding-left: 34px; font-size: clamp(17px, 1.8vw, 20px); }
.dot-list li::before {
    content: ""; position: absolute; left: 0; top: .42em;
    width: 14px; height: 14px; border-radius: 50%; background: var(--orange);
}
@media (min-width: 960px) {
    /* Ukázka dostává víc místa než text, aby bylo písmo v portálu čitelné. */
    .feature { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; }
    .feature--reverse { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
    .feature--reverse .feature__copy { order: 2; }
    .feature--reverse .feature__media { order: 1; }
    .feature#schuzka .feature__media,
    .feature#zadani .feature__media { width: 100%; max-width: 684px; justify-self: center; }

}

/* Přínosy */
.section--benefits { padding: clamp(48px, 6vw, 80px) 0; background: var(--orange); color: var(--white); }
.benefits { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.benefit { display: grid; gap: 10px; }
.benefit__number { font-size: 15px; font-weight: 800; letter-spacing: .12em; opacity: .75; }
.benefit p { font-size: clamp(19px, 2vw, 22px); line-height: 1.35; }
.benefit strong { display: block; font-weight: 800; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* API */
.section--api { background: var(--ink); color: var(--white); }
.section--api .section-head h2 { color: var(--white); }
.api-flow { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.api-step {
    position: relative;
    padding: 28px 26px;
    border: 2px solid var(--orange);
    border-radius: var(--radius);
    background: rgba(255, 127, 0, .06);
    animation: wash 6s infinite;
}
.api-step:nth-child(2) { animation-delay: 1.2s; }
.api-step:nth-child(3) { animation-delay: 2.4s; }
.api-step__number {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; margin-bottom: 18px;
    border-radius: 50%;
    background: var(--orange); color: var(--white);
    font-weight: 800;
}
.api-step h3 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; line-height: 1.2; }
.api-step p { margin-top: 10px; color: #d6d6d6; font-size: 17px; }
.api-step:not(:last-child)::after {
    content: "";
    position: absolute; left: 50%; bottom: -16px;
    width: 12px; height: 12px;
    border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
    transform: translateX(-50%) rotate(45deg);
}
.api-tagline { margin-top: clamp(40px, 5vw, 56px); font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.25; }
.api-note { margin-top: 14px; color: #bdbdbd; }
@media (min-width: 900px) {
    .api-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
    .api-step:not(:last-child)::after { left: auto; right: -27px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
}

/* Žádost o účet */
.section--register { background: linear-gradient(180deg, var(--orange-soft) 0%, var(--white) 100%); }
.register { display: grid; gap: 40px; align-items: start; }
.register__intro h2 {
    color: var(--black);
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 800;
    line-height: 1.1;
}
.register__intro > p { margin-top: 24px; max-width: 520px; font-size: 18px; }
.steps { display: grid; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 40px; padding: 6px 0 0 56px; counter-increment: step; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--black); color: var(--white);
    font-weight: 800;
}
.register__contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.register__contact a { color: var(--black); font-weight: 600; }
.register__card {
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}
@media (min-width: 1000px) {
    .register { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
    .register__intro { position: sticky; top: 110px; }
}

/* Formulář */
.form__grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
    .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form__wide { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 15px; font-weight: 700; color: var(--black); }
.field__required { color: var(--orange); }
.field__optional { margin-left: 4px; color: #8a8a8a; font-size: 13px; font-weight: 400; }
.field input, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    background: var(--white);
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, .2);
}
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field__hint { color: var(--muted); font-size: 14px; }
.field__error { color: var(--danger); font-size: 14px; font-weight: 600; }
.field--invalid input, .field--invalid textarea { border-color: var(--danger); }
.checkbox { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; font-size: 16px; cursor: pointer; }
.checkbox input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); }
.form__submit { width: 100%; margin-top: 28px; }
.form__privacy { margin-top: 16px; color: var(--muted); font-size: 14px; }
.form-alert {
    margin-bottom: 22px; padding: 14px 18px;
    border-radius: 10px; background: #fdecea; color: var(--danger); font-weight: 600;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 12px 0; text-align: center; }
.form-success:focus { outline: none; }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 20px; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success__icon circle { fill: var(--orange-soft); }
.form-success h3 { color: var(--black); font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.form-success p { max-width: 460px; margin: 14px auto 0; font-size: 18px; }
.form-success .form-success__small { color: var(--muted); font-size: 15px; }

/* Kontakt */
.team-photo { overflow: hidden; border-radius: 20px; }
.team-photo img { width: 100%; }
.contact-grid { display: grid; gap: 24px; margin-top: 32px; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { color: var(--orange); font-size: 22px; font-weight: 800; }
.contact-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 18px; }
.contact-list a { color: var(--black); font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.contact-list strong { display: block; color: var(--black); }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cookie lišta */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    display: grid; gap: 16px;
    max-width: 760px; margin: 0 auto; padding: 20px 22px;
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--white); box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    font-size: 15px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__copy > strong { display: block; margin-bottom: 4px; color: var(--black); font-size: 17px; }
.cookie-banner__copy a { color: var(--orange-dark); }
.cookie-banner__choices { display: grid; gap: 8px; margin-top: 12px; }
.cookie-banner__choices[hidden] { display: none; }
.cookie-banner__choices .checkbox { font-size: 15px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .button { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.cookie-banner__actions .button[hidden] { display: none; }

/* Patička */
.site-footer { padding: 28px 0; background: var(--black); color: #bdbdbd; font-size: 15px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer a, .site-footer__link-button { color: var(--white); text-decoration: none; }
.site-footer a:hover, .site-footer__link-button:hover { color: var(--orange); }
.site-footer__link-button { padding: 0; border: 0; background: none; }

/* Animace */
[data-reveal] { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .75, .2, 1); }
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(20px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes chip-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes chip-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes wash {
    0%, 70%, 100% { background-color: rgba(255, 127, 0, .06); }
    20% { background-color: rgba(255, 127, 0, .22); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

/* ======================================================================
   Administrace
   ====================================================================== */
.admin-body { min-height: 100vh; background: #f3f3f3; font-size: 16px; }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 68px; }
.admin-topbar__logo img { width: 112px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; }
.admin-nav a:hover { background: var(--surface); color: var(--black); }
.admin-nav a.is-active { background: var(--orange-soft); color: var(--orange-dark); }
.admin-user { display: flex; align-items: center; gap: 14px; margin-left: auto; color: var(--muted); font-size: 14px; }
.admin-user strong { color: var(--black); }
.admin-user form { margin: 0; }
.admin-user button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.admin-main { padding: 32px 0 72px; }
.admin-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-page-head h1 { color: var(--black); font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.15; }
.admin-page-head p { margin-top: 4px; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 8px 16px;
    border: 1px solid var(--black); border-radius: 8px;
    background: var(--black); color: var(--white);
    font-size: 15px; font-weight: 600; text-decoration: none;
}
.admin-button:hover { background: #2a2a2a; }
.admin-button--secondary { background: var(--white); color: var(--black); }
.admin-button--secondary:hover { background: var(--surface); }
.admin-button--orange { border-color: var(--orange); background: var(--orange); }
.admin-button--orange:hover { background: var(--orange-dark); }
.admin-button--danger { border-color: var(--danger); background: var(--white); color: var(--danger); }
.admin-button--danger:hover { background: #fdecea; }
.admin-alert { margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; }
.admin-alert ul { margin: 0; padding-left: 18px; }
.admin-alert--success { background: #e3f4e8; color: #125824; }
.admin-alert--error { background: #fdecea; color: #7d1616; }
.admin-panel { margin-bottom: 20px; padding: 24px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.admin-panel h2 { margin-bottom: 16px; color: var(--black); font-size: 19px; font-weight: 700; }
.admin-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }

.admin-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--muted); font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.admin-tabs a.is-active { background: var(--black); color: var(--white); }
.admin-tabs span { font-size: 13px; opacity: .75; }
.admin-search { display: flex; gap: 8px; }
.admin-search input { min-width: 240px; min-height: 40px; padding: 8px 12px; border: 1px solid #c9c9c9; border-radius: 8px; background: var(--white); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table a.admin-row-link { color: var(--black); font-weight: 700; text-decoration: none; }
.admin-table a.admin-row-link:hover { color: var(--orange-dark); }
.admin-table small { display: block; color: var(--muted); }
.admin-empty { padding: 32px 0; color: var(--muted); text-align: center; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--new { background: var(--orange-soft); color: var(--orange-dark); }
.status--created { background: #e3f4e8; color: var(--success); }
.status--rejected { background: #eee; color: #555; }
.mail-flag { color: var(--danger); font-size: 13px; font-weight: 600; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef2ff; color: #3b4cc0; font-size: 12px; font-weight: 700; }

.admin-details { display: grid; gap: 0; margin: 0; }
.admin-details > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid #eee; }
.admin-details dt { color: var(--muted); }
.admin-details dd { margin: 0; overflow-wrap: anywhere; }
.admin-details a { color: var(--orange-dark); }
@media (max-width: 600px) { .admin-details > div { grid-template-columns: 1fr; gap: 2px; } }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 6px; font-weight: 600; }
.admin-form select, .admin-form textarea, .admin-form input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%; min-height: 42px; padding: 8px 12px;
    border: 1px solid #c9c9c9; border-radius: 8px; background: var(--white); font-weight: 400;
}
.admin-radio-group { display: grid; gap: 8px; }
.admin-radio-group label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; cursor: pointer; }
.admin-radio-group input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.admin-meta { color: var(--muted); font-size: 14px; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.admin-pagination a, .admin-pagination span { padding: 8px 14px; border-radius: 8px; background: var(--white); text-decoration: none; }
.admin-pagination span { color: #aaa; }

.user-row { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid #eee; }
@media (min-width: 1000px) { .user-row { grid-template-columns: 1.1fr 1.3fr .9fr 1.1fr auto auto; align-items: center; } }
.user-row input:not([type="checkbox"]), .user-row select { min-height: 40px; padding: 6px 10px; border: 1px solid #c9c9c9; border-radius: 8px; background: var(--white); }
.inline-check { display: inline-flex; align-items: center; gap: 8px; }

/* Editor obsahu a nastavení */
.admin-fields { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) { .admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-field { display: grid; gap: 6px; align-content: start; font-size: 15px; }
.admin-field > span { font-weight: 600; color: var(--black); }
.admin-field em { margin-left: 3px; color: var(--orange-dark); font-style: normal; }
.admin-field input, .admin-field textarea {
    width: 100%; min-height: 40px; padding: 8px 12px;
    border: 1px solid #c9c9c9; border-radius: 8px; background: var(--white); font-size: 15px;
}
.admin-field textarea { resize: vertical; }
.admin-field small { color: var(--muted); font-size: 13px; }
.admin-field--wide { grid-column: 1 / -1; }
.admin-field--invalid input, .admin-field--invalid textarea { border-color: var(--danger); }
.admin-field__error { color: var(--danger) !important; font-weight: 600; }
.admin-image { display: grid; gap: 8px; padding: 14px; border: 1px dashed #c9c9c9; border-radius: 10px; background: #fafafa; }
.admin-image__label { font-weight: 600; color: var(--black); }
.admin-image__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-image__preview { width: 120px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.admin-image small { color: var(--muted); font-size: 13px; }
.admin-radio-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 4px 0 6px; font-weight: 600; }
.admin-radio-inline input { accent-color: var(--orange); }
.content-editor__toc {
    position: sticky; top: 0; z-index: 5;
    display: flex; flex-wrap: wrap; gap: 4px 16px;
    margin: 0 0 16px; padding: 10px 14px;
    border-radius: 10px; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.content-editor__toc a { color: var(--muted); font-weight: 600; text-decoration: none; }
.content-editor__toc a:hover { color: var(--orange-dark); }
.content-editor__toggles { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.content-editor__feature { margin: 20px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.content-editor__feature legend { padding: 0 8px; font-weight: 700; color: var(--black); }
.content-editor__save {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    margin: 0 0 20px; padding: 14px 18px;
    border-radius: 12px; background: var(--white); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.revision-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.admin-help { margin: 0; padding-left: 20px; color: var(--muted); }
.admin-help li { margin-bottom: 6px; }
.admin-help code { padding: 1px 5px; border-radius: 4px; background: var(--surface); color: var(--black); }

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: #f3f3f3; }
.login-card { width: min(100%, 420px); padding: 36px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.login-card img { width: 150px; margin-bottom: 24px; }
.login-card h1 { margin-bottom: 20px; color: var(--black); font-size: 28px; font-weight: 700; }
.login-card > a { display: inline-block; margin-top: 20px; color: var(--muted); }
