/* ============================================================
   RDY.cz / RDY.sk — Design System v10 „Clear"
   Přehledné, vzdušné, s velkými ovládacími prvky. Tmavě modré nadpisy
   místo černé, jemně namodralé pozadí, bílé karty s měkkým stínem,
   jediný modrý akcent. Tlačítka a pole min. 48–56 px. Light + dark.
   Názvy tříd zachovány z v8.
   ============================================================ */

/* --- Theme: light --- */
html[data-theme="light"], :root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #eef2f8;
    --surface-3: #e1e8f2;
    --surface-strong: #fbfcfe;
    --fg: #1c2a4a;
    --fg-2: #33415f;
    --muted: #5b6882;
    --muted-2: #8490a8;
    --border: #e1e8f2;
    --border-strong: #cdd7e6;

    --accent: #2962ff;
    --accent-on: #ffffff;
    --accent-hover: #1f4fe0;
    --accent-soft: #eaf0ff;
    --accent-soft-border: #c9d8ff;
    --accent-ink: #1f4fe0;

    --accent-2: #1c2a4a;
    --accent-2-on: #ffffff;
    --accent-3: #5b6882;
    --accent-3-on: #ffffff;

    --marquee-bg: #1c2a4a;
    --marquee-fg: #f6f8fc;
    --phone-bg: #eef2f8;

    --success: #17794a;
    --success-bg: #e4f6ec;
    --danger: #d12f3f;
    --danger-bg: #fdecee;
    --warning: #935f00;
    --warning-bg: #fff3d6;
    --info: #1f4fe0;
    --info-bg: #eaf0ff;

    --shadow-sm: 0 1px 2px rgba(28,42,74,0.05);
    --shadow-md: 0 8px 24px rgba(28,42,74,0.08), 0 1px 3px rgba(28,42,74,0.04);
    --shadow-lg: 0 28px 60px -22px rgba(28,42,74,0.26);
    --ring: 0 0 0 4px rgba(41,98,255,0.18);
    --overlay: rgba(16,26,48,0.5);
    color-scheme: light;
}

/* --- Theme: dark --- */
html[data-theme="dark"] {
    --bg: #0c1322;
    --surface: #151e33;
    --surface-2: #1a2540;
    --surface-3: #27344f;
    --surface-strong: #101829;
    --fg: #eef2fa;
    --fg-2: #cfd8ea;
    --muted: #9aa7c0;
    --muted-2: #6f7d99;
    --border: #25324d;
    --border-strong: #36456a;

    --accent: #4f7dff;
    --accent-on: #ffffff;
    --accent-hover: #6b92ff;
    --accent-soft: #16244b;
    --accent-soft-border: #27408a;
    --accent-ink: #8fadff;

    --accent-2: #eef2fa;
    --accent-2-on: #151e33;
    --accent-3: #9aa7c0;
    --accent-3-on: #0c1322;

    --marquee-bg: #eef2fa;
    --marquee-fg: #151e33;
    --phone-bg: #27344f;

    --success: #6fd9a0;
    --success-bg: #0f2c20;
    --danger: #ff7b88;
    --danger-bg: #3a151b;
    --warning: #ffcb66;
    --warning-bg: #3a2a08;
    --info: #8fadff;
    --info-bg: #16244b;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 30px 60px -24px rgba(0,0,0,0.85);
    --ring: 0 0 0 4px rgba(79,125,255,0.32);
    --overlay: rgba(0,0,0,0.65);
    color-scheme: dark;
}

/* --- Tokens --- */
:root {
    --maxw: 1200px;
    --pad: 32px;
    --pad-sm: 20px;
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 980px;
    /* Výška ovládacích prvků — jedna stupnice pro tlačítka, pole i výběry */
    --ctl: 52px;
    --ctl-sm: 40px;
    --ctl-xs: 32px;
    --ctl-lg: 58px;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --font-display: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;

    --tr-fast: .12s ease;
    --tr: .2s cubic-bezier(.2,.7,.2,1);
    --tr-slow: .35s cubic-bezier(.2,.7,.2,1);
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    line-height: 1.55;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

/* Staré ozdoby (mřížka, záře) — v8 se nepoužívají, ale starší stránky je ještě volají */
.hero-grid-bg, .hero-glow { display: none !important; }

/* --- Layout --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 768px) { .container, .container-narrow, .container-wide { padding: 0 var(--pad-sm); } :root { --pad: 20px; } }

section { padding: 80px 0; position: relative; }
section.tight { padding: 56px 0; }
section.compact { padding: 40px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } section.tight { padding: 48px 0; } section.compact { padding: 24px 0; } }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; color: var(--fg); font-family: var(--font-display); }
h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(26px, 3.1vw, 36px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
h3 { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 18px; line-height: 1.3; }
h5 { font-size: 15px; line-height: 1.3; }
h6 { font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

h1.text-xs, h2.text-xs, h3.text-xs, h4.text-xs, h5.text-xs, h6.text-xs { font-size: 0.75rem; line-height: 1rem; letter-spacing: 0; }
h1.text-sm, h2.text-sm, h3.text-sm, h4.text-sm, h5.text-sm, h6.text-sm { font-size: 0.875rem; line-height: 1.25rem; letter-spacing: 0; }
h1.text-base, h2.text-base, h3.text-base, h4.text-base, h5.text-base, h6.text-base { font-size: 1rem; line-height: 1.5rem; letter-spacing: 0; }
h1.text-lg, h2.text-lg, h3.text-lg, h4.text-lg, h5.text-lg, h6.text-lg { font-size: 1.125rem; line-height: 1.75rem; letter-spacing: 0; }
h1.text-xl, h2.text-xl, h3.text-xl, h4.text-xl, h5.text-xl, h6.text-xl { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; }
h1.text-2xl, h2.text-2xl, h3.text-2xl, h4.text-2xl, h5.text-2xl, h6.text-2xl { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.01em; }
h1.text-3xl, h2.text-3xl, h3.text-3xl, h4.text-3xl, h5.text-3xl, h6.text-3xl { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }
h1.text-4xl, h2.text-4xl, h3.text-4xl, h4.text-4xl, h5.text-4xl, h6.text-4xl { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em; }
h1.text-5xl, h2.text-5xl, h3.text-5xl, h4.text-5xl, h5.text-5xl, h6.text-5xl { font-size: 3rem; line-height: 1; letter-spacing: -0.025em; }
h1.text-6xl, h2.text-6xl, h3.text-6xl, h4.text-6xl, h5.text-6xl, h6.text-6xl { font-size: 3.75rem; line-height: 1; letter-spacing: -0.025em; }

p { margin: 0; line-height: 1.65; color: var(--muted); }
.lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.5; color: var(--fg-2); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent-ink); margin-bottom: 14px; text-transform: none; font-family: inherit; }
.eyebrow::before { display: none; }

.text-mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent-ink); }
.text-fg { color: var(--fg); }
.text-muted { color: var(--muted); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--ctl); padding: 0 24px;
    border-radius: var(--radius-md);
    font-weight: 600; font-size: 16px; letter-spacing: -0.005em;
    border: 1px solid transparent; cursor: pointer;
    transition: transform var(--tr-fast), background var(--tr), color var(--tr), border-color var(--tr), box-shadow var(--tr), opacity var(--tr);
    text-decoration: none; line-height: 1.2; white-space: nowrap; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn i { font-size: 0.9em; }

.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: 0 6px 16px -6px rgba(41,98,255,0.55); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-on); }
.btn-dark { background: var(--accent-2); color: var(--accent-2-on); }
.btn-dark:hover { background: var(--fg-2); color: var(--accent-2-on); }
html[data-theme="dark"] .btn-dark:hover { background: #ffffff; }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn-soft { background: var(--surface-2); color: var(--fg); }
.btn-soft:hover { background: var(--surface-3); }
.btn-link { background: transparent; color: var(--accent-ink); padding-left: 4px; padding-right: 4px; min-height: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn-danger-soft:hover { background: var(--danger); color: #fff; }

.btn-sm { min-height: var(--ctl-sm); padding: 0 16px; font-size: 14.5px; border-radius: var(--radius-sm); }
.btn-xs { min-height: var(--ctl-xs); padding: 0 12px; font-size: 13px; gap: 6px; border-radius: 8px; }
.btn-lg { min-height: var(--ctl-lg); padding: 0 30px; font-size: 17px; font-weight: 700; border-radius: 14px; }
.btn-icon { padding: 0; width: 44px; height: 44px; min-height: 0; gap: 0; }
.btn-icon.btn-sm { width: 36px; height: 36px; padding: 0; }
.btn-icon.btn-xs { width: 30px; height: 30px; padding: 0; }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--radius-pill); }
.btn-mono { font-family: var(--font-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
/* Apple-like textový odkaz se šipkou */
.link-arrow { color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow::after { content: '›'; font-size: 20px; line-height: 1; transition: transform var(--tr); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(2px); }

/* --- Tag / badge --- */
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 500; background: var(--surface-2); color: var(--fg-2); border: 1px solid transparent; line-height: 1; font-family: inherit; text-transform: none; letter-spacing: 0; }
.tag.tag-ghost { background: transparent; border-color: var(--border); }
.tag.tag-accent { background: var(--accent); color: var(--accent-on); }
.tag.tag-dark { background: var(--accent-2); color: var(--accent-2-on); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag.tag-dark .dot, .tag.tag-accent .dot { background: currentColor; }

.badge, a.badge, .rdy-prose a.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
    background: var(--accent); color: var(--accent-on); text-decoration: none; line-height: 1.3; white-space: nowrap; font-family: inherit;
}
.badge.badge-dark, a.badge.badge-dark { background: var(--accent-2); color: var(--accent-2-on); }
.badge.badge-soft, a.badge.badge-soft { background: var(--accent-soft); color: var(--accent-ink); }
.badge.badge-muted { background: var(--surface-2); color: var(--muted); }
.badge.badge-success { background: var(--success-bg); color: var(--success); }
.badge.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge.badge-info { background: var(--info-bg); color: var(--info); }
.badge.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
/* Premium se musí v seznamech poznat na první pohled, proto zlatá mimo paletu odstínů stavu */
.badge.badge-premium, a.badge.badge-premium { background: #fdf0d0; color: #7a5210; }
.badge.badge-premium i { font-size: 10px; }
:root[data-theme="dark"] .badge.badge-premium, .dark .badge.badge-premium { background: #4a3708; color: #fbd77a; }

/* --- Card --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr); }
.card.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-sm { padding: 20px; border-radius: var(--radius); }
.card-flat { background: var(--surface-2); border: 0; box-shadow: none; }

/* --- Forms --- */
.input, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], input[type="datetime-local"], textarea, select {
    width: 100%; min-height: var(--ctl); padding: 13px 16px; border-radius: var(--radius-md);
    border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--fg);
    font-family: inherit; font-size: 16px; line-height: 1.4; outline: none;
    transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
    -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: var(--ring); }
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--muted-2); }
.input.input-mono, input.input-mono, textarea.input-mono { font-family: var(--font-mono); font-size: 14px; }
.input.input-lg, input.input-lg { min-height: var(--ctl-lg); padding: 16px 18px; font-size: 18px; font-weight: 500; border-radius: 14px; }
.input.input-sm, input.input-sm, select.input-sm { min-height: var(--ctl-sm); padding: 8px 12px; font-size: 14.5px; border-radius: var(--radius-sm); }
input:disabled, textarea:disabled, select:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
input[type="color"] { padding: 4px; height: var(--ctl); min-height: 0; width: 64px; cursor: pointer; }
input[type="file"] { padding: 8px; background: var(--surface-2); border-style: dashed; }
select { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5l5 5 5-5' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.input-group { display: flex; align-items: stretch; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.input-group > .input-group-prefix, .input-group > .input-group-suffix { padding: 0 13px; background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); font-size: 13px; display: flex; align-items: center; flex-shrink: 0; }
.input-group > .input-group-prefix { border-right: 1px solid var(--border); }
.input-group > .input-group-suffix { border-left: 1px solid var(--border); }
.input-group > input, .input-group > select, .input-group > textarea { border: 0; border-radius: 0; flex: 1; box-shadow: none; background: transparent; min-width: 0; }
.input-group > input:focus { box-shadow: none; }
.input-group > .btn { border-radius: 0; box-shadow: none; }

label, .label { display: block; font-size: 14.5px; font-weight: 600; color: var(--fg); margin-bottom: 8px; letter-spacing: 0; text-transform: none; font-family: inherit; }
.label-mono, label.label-mono { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field-help { display: block; font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }

input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; min-height: 0; padding: 0; border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: 5px; cursor: pointer; position: relative; flex-shrink: 0; padding: 0; box-shadow: none; transition: background var(--tr), border-color var(--tr); }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M3 8l3 3 7-7' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center/11px no-repeat; }
input[type="checkbox"]:indeterminate { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:indeterminate::after { content: ''; position: absolute; left: 4px; right: 4px; top: 7px; height: 2px; background: #fff; border-radius: 2px; }
input[type="radio"]:checked::after { content: ''; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.checkbox-label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-size: 15.5px; color: var(--fg); font-weight: 500; margin-bottom: 0; }

/* --- Switch (iOS) --- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; font-weight: 500; margin-bottom: 0; color: var(--fg); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 52px; height: 30px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background var(--tr); flex-shrink: 0; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: left var(--tr); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { left: 25px; }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }

/* --- Tabs (segmented control) --- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface-2); border: 0; border-radius: 16px; }
.tabs .tab { min-height: 42px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; background: transparent; color: var(--fg-2); font-size: 15px; font-weight: 600; transition: all var(--tr); text-decoration: none; line-height: 1.2; display: inline-flex; align-items: center; gap: 7px; }
.tabs .tab:hover { color: var(--fg); }
.tabs .tab.active, .tabs .tab[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }
html[data-theme="dark"] .tabs .tab.active { background: var(--surface-3); }
.tabs .tab .count { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
@media (max-width: 640px) { .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; } .tabs .tab { white-space: nowrap; padding: 8px 12px; font-size: 13px; } }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs-line .tab { padding: 10px 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.tabs-line .tab:hover { color: var(--fg); }
.tabs-line .tab.active { color: var(--fg); border-bottom-color: var(--fg); }

/* --- Header (veřejný web) — tenká, průsvitná --- */
.rdy-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,0.06); }
html[data-theme="dark"] .rdy-header { background: rgba(0,0,0,0.72); border-bottom-color: rgba(255,255,255,0.08); }
.rdy-header .header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; max-width: 1120px; }
.rdy-logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--fg); flex-shrink: 0; }
.rdy-logo .logo-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.rdy-logo .logo-tld { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.rdy-nav { display: flex; align-items: center; gap: 4px; }
.rdy-nav > a { padding: 7px 12px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color var(--tr), background var(--tr); display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.rdy-nav > a:hover { color: var(--fg); opacity: 1; }
.rdy-nav > a.active { color: var(--fg); opacity: 1; }
.rdy-nav > a .badge { font-size: 9px; padding: 2px 5px; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; color: var(--fg-2); background: none; border: none; cursor: pointer; font-family: inherit; transition: color var(--tr); opacity: .9; }
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--fg); opacity: 1; }
.nav-dropdown-trigger svg { opacity: 0.5; transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px); transition: opacity 0.15s, visibility 0.15s, transform 0.15s; z-index: 100; }
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-item { display: block; padding: 10px 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--fg); transition: background 0.12s; }
.nav-dropdown-item:hover { background: var(--surface-2); }
.nav-dropdown-item.active { background: var(--accent-soft); }
.nav-dropdown-label { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.nav-dropdown-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
/* Megamenu (skupina Nástroje) */
.nav-dropdown-menu.nav-mega { min-width: 720px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 12px; border-radius: 20px; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nav-mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--fg); transition: background 0.12s; }
.nav-mega-item:hover, .nav-mega-item.active { background: var(--surface-2); }
.nav-mega-item.active { background: var(--accent-soft); }
.nav-mega-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; transition: background var(--tr), color var(--tr), transform var(--tr); }
.nav-mega-ico svg { width: 20px; height: 20px; }
.nav-mega-item:hover .nav-mega-ico { background: var(--accent); color: #fff; transform: translateY(-1px); }
.nav-mega-txt { display: flex; flex-direction: column; min-width: 0; }
.nav-mega-txt .nav-dropdown-label { font-size: 14px; }
.nav-mega-txt .nav-dropdown-label .badge { font-size: 9px; padding: 2px 6px; vertical-align: middle; }
.nav-mega-txt .nav-dropdown-desc { font-size: 12.5px; white-space: normal; line-height: 1.35; }
.nav-mega-txt .nav-dropdown-label { white-space: normal; }
.nav-mega-promo { border-radius: 16px; padding: 18px 18px 16px; background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
html[data-theme="dark"] .nav-mega-promo { background: linear-gradient(160deg, rgba(79,125,255,.16), var(--surface-2)); }
.nav-mega-promo-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.nav-mega-promo strong { font-size: 15px; letter-spacing: -0.01em; line-height: 1.25; }
.nav-mega-promo p { margin: 0 0 6px; font-size: 12.5px; color: var(--fg-2); line-height: 1.45; }
.nav-mega-promo .btn { align-self: flex-start; white-space: nowrap; }
.nav-mega-promo .btn.btn-primary { color: var(--accent-on); background: var(--accent); opacity: 1; }
.nav-mega-promo .btn.btn-primary:hover { background: var(--accent-hover); color: var(--accent-on); }
.nav-mega-promo-link { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.nav-mega-promo-link i { font-size: 10px; }
@media (max-width: 1100px) { .nav-dropdown-menu.nav-mega { min-width: 560px; grid-template-columns: 1fr; } .nav-mega-promo { display: none; } }
.rdy-header-actions { display: flex; gap: 8px; align-items: center; }
.rdy-header-actions .btn { padding: 8px 16px; font-size: 13.5px; }
.rdy-dash-btn { gap: 7px; }
.rdy-user-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: box-shadow var(--tr), border-color var(--tr); }
.rdy-user-btn:hover, .dropdown.open .rdy-user-btn { border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.rdy-user-btn .avatar { width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
.rdy-user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdy-user-caret { color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.dropdown.open .rdy-user-caret { transform: rotate(180deg); }
@media (max-width: 860px) { .rdy-user-btn { padding: 0; width: 36px; justify-content: center; } .rdy-user-name, .rdy-user-caret { display: none; } .rdy-user-btn .avatar { width: 30px; height: 30px; } }
.rdy-user-menu { min-width: 250px; }
.dropdown-menu a.danger { color: var(--danger); } .dropdown-menu a.danger i { color: var(--danger); }
.mobile-drawer .drawer-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 12px 6px; }
.mobile-drawer a.drawer-primary { background: var(--accent); color: #fff; border-radius: var(--radius-md); }
.mobile-drawer a.drawer-primary i { color: #fff; }

.theme-toggle, .icon-btn { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1px solid transparent; cursor: pointer; display: grid; place-items: center; color: var(--fg-2); transition: background var(--tr), color var(--tr); padding: 0; }
.theme-toggle:hover, .icon-btn:hover { background: var(--surface-2); color: var(--fg); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.mobile-menu-toggle { display: none; width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 0; cursor: pointer; place-items: center; color: var(--fg); }
@media (max-width: 1024px) { .rdy-nav { display: none; } .mobile-menu-toggle { display: grid; } }
@media (max-width: 640px) { .rdy-header-actions .btn-text-mobile-hide { display: none; } .rdy-header .header-inner { height: 52px; } }

/* --- Mobile drawer --- */
.mobile-drawer { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: none; flex-direction: column; padding: 20px; overflow-y: auto; }
.mobile-drawer.open { display: flex; }
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer nav a { padding: 14px 12px; border-radius: var(--radius-md); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); border-radius: 0; }
.mobile-drawer nav a:hover { color: var(--accent-ink); }
.mobile-drawer .drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }

/* --- Dropdown --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; border-radius: var(--radius-md); font-size: 14px; color: var(--fg); text-decoration: none; cursor: pointer; text-align: left; font-weight: 500; }
.dropdown-menu a i, .dropdown-menu button i { width: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .danger { color: var(--danger); }
.dropdown-menu .danger i { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-header { padding: 8px 12px 6px; font-size: 12px; color: var(--muted); }
.dropdown-header strong { display: block; color: var(--fg); font-size: 13px; }

/* --- Marquee --- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; background: var(--surface-2); }
.marquee-track { display: flex; gap: 48px; padding: 18px 0; white-space: nowrap; animation: rdy-marquee 34s linear infinite; }
.marquee-track > span { font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 48px; }
@keyframes rdy-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.counter-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.rdy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rdy-table th, table.rdy-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.rdy-table th { font-size: 12px; letter-spacing: 0.02em; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
table.rdy-table th a { color: inherit; text-decoration: none; }
table.rdy-table th a:hover { color: var(--fg); }
table.rdy-table tbody tr:last-child td { border-bottom: 0; }
table.rdy-table tbody tr:hover td { background: var(--surface-2); }
table.rdy-table tbody tr.selected td { background: var(--accent-soft); }
table.rdy-table .col-mono { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
table.rdy-table .col-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
table.rdy-table .col-actions { text-align: right; white-space: nowrap; }
table.rdy-table td.muted { color: var(--muted); }
table.rdy-table .cell-truncate { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
table.rdy-table.compact th, table.rdy-table.compact td { padding: 9px 12px; font-size: 13px; }

/* --- Alerts / toast --- */
.alert { padding: 13px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.alert > i { margin-top: 3px; flex-shrink: 0; }
.alert-success { background: var(--success-bg); border-color: transparent; color: var(--success); }
.alert-danger  { background: var(--danger-bg);  border-color: transparent; color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: transparent; color: var(--warning); }
.alert-info    { background: var(--info-bg);    border-color: transparent; color: var(--info); }
.alert strong { color: inherit; }
.alert a { color: inherit; font-weight: 600; }
.toast { position: fixed; top: 70px; right: 16px; z-index: 200; max-width: 380px; padding: 13px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px; animation: toast-in .35s cubic-bezier(.2,.8,.2,1); }
.toast.toast-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.toast.toast-danger  { background: var(--danger-bg);  color: var(--danger); border-color: transparent; }
.toast.toast-warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.toast.toast-info    { background: var(--info-bg);    color: var(--info); border-color: transparent; }
.toast .toast-close { margin-left: auto; opacity: 0.6; cursor: pointer; background: transparent; border: 0; padding: 4px; color: inherit; }
.toast .toast-close:hover { opacity: 1; }
@keyframes toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
.toast.closing { animation: toast-out .3s ease forwards; }

/* --- Footer (Apple-like) --- */
.rdy-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: var(--surface-2); margin-top: auto; font-size: 12.5px; }
.rdy-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.rdy-footer .footer-col h6, .rdy-footer .footer-col .footer-title { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--fg); margin-bottom: 12px; font-weight: 600; }
.rdy-footer .footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rdy-footer .footer-col a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.rdy-footer .footer-col a:hover { color: var(--fg); text-decoration: underline; }
.rdy-footer .footer-col p { font-size: 12.5px; }
.rdy-footer .footer-projects { padding: 18px 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.rdy-footer .footer-projects .footer-title { margin: 0 6px 0 0; white-space: nowrap; }
.rdy-footer .footer-projects ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; min-width: 0; flex: 1 1 auto; }
.rdy-footer .footer-projects li { max-width: 100%; min-width: 0; }
.rdy-footer .footer-projects a { overflow-wrap: anywhere; }
.rdy-footer .footer-projects li { display: flex; align-items: center; }
.rdy-footer .footer-projects li + li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong, var(--border)); margin: 0 10px; }
.rdy-footer .footer-projects a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.rdy-footer .footer-projects a:hover { color: var(--fg); text-decoration: underline; }
.rdy-footer .footer-bottom { padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.rdy-footer .footer-bottom p { font-size: 12px; color: var(--muted); margin: 0; }
.rdy-footer .footer-bottom a { color: var(--muted); text-decoration: none; font-size: 12px; }
.rdy-footer .footer-bottom a:hover { color: var(--fg); }
.rdy-footer .footer-social { display: flex; gap: 8px; }
.rdy-footer .footer-social a { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--fg); transition: background var(--tr), color var(--tr); }
.rdy-footer .footer-social a:hover { background: var(--accent-2); color: var(--accent-2-on); border-color: transparent; }
@media (max-width: 900px) { .rdy-footer .footer-grid { grid-template-columns: 1fr 1fr; } .rdy-footer .footer-grid .footer-col:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rdy-footer .footer-grid { grid-template-columns: 1fr; } }

/* --- Prose --- */
.rdy-prose { max-width: 720px; margin: 0 auto; color: var(--fg); font-size: 17px; line-height: 1.7; }
.rdy-prose h1, .rdy-prose h2, .rdy-prose h3, .rdy-prose h4 { margin-top: 40px; margin-bottom: 12px; line-height: 1.2; }
.rdy-prose h1 { font-size: clamp(28px, 3.8vw, 40px); margin-top: 0; }
.rdy-prose h2 { font-size: clamp(22px, 2.4vw, 28px); padding-top: 6px; }
.rdy-prose h3 { font-size: 20px; }
.rdy-prose h4 { font-size: 17px; }
.rdy-prose p { color: var(--fg-2); margin: 14px 0; }
.rdy-prose ul, .rdy-prose ol { margin: 14px 0; padding-left: 24px; }
.rdy-prose li { margin: 6px 0; color: var(--fg-2); }
.rdy-prose li::marker { color: var(--accent-ink); }
.rdy-prose a { color: var(--accent-ink); text-decoration: none; }
.rdy-prose a:hover { text-decoration: underline; }
.rdy-prose a.badge { color: var(--accent-on); }
.rdy-prose strong { color: var(--fg); }
.rdy-prose code { font-family: var(--font-mono); font-size: 0.88em; padding: 2px 6px; background: var(--surface-2); border-radius: 5px; }
.rdy-prose pre { background: var(--surface-2); border: 0; padding: 16px 18px; border-radius: var(--radius-md); overflow-x: auto; }
.rdy-prose pre code { background: none; padding: 0; }
.rdy-prose blockquote { border-left: 3px solid var(--accent); padding: 4px 18px; margin: 18px 0; color: var(--muted); font-style: italic; }
.rdy-prose hr { margin: 32px 0; }
.rdy-prose .rdy-prose-callout { background: var(--surface-2); border: 0; border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.rdy-prose img { border-radius: var(--radius); margin: 14px 0; }
.rdy-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; }
.rdy-prose th, .rdy-prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.rdy-prose th { background: var(--surface-2); font-weight: 600; }
.rdy-prose figure.article-figure { margin: 24px 0; }
.rdy-prose figure.article-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

/* --- Sortable.js --- */
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { background: var(--accent-soft); }
.sortable-drag { cursor: grabbing; }

/* --- Avatar / misc --- */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-2); color: var(--accent-2-on); display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.avatar-xl { width: 80px; height: 80px; font-size: 28px; }
.kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.status-dot.on { background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.status-dot.off { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.status-dot.warn { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-bg); }
.code-chip { font-family: var(--font-mono); font-size: 13px; font-weight: 500; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); color: var(--fg); text-decoration: none; border: 1px solid transparent; }
.code-chip:hover { border-color: var(--border-strong); }
.divider { height: 1px; background: var(--border); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: 6px; }
@keyframes skel { to { background-position: -200% 0; } }

/* --- Modal --- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.hidden { display: none !important; }
/* Scrolluje se .modal-body, ne celý box — jinak posuvník přeteče přes zaoblený roh. */
.modal-box { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: modal-in .22s cubic-bezier(.2,.7,.2,1); max-height: calc(100vh - 32px); overflow: hidden; display: flex; flex-direction: column; }
.modal-box > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.modal-head, .modal-foot { flex: 0 0 auto; }
.modal-box.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; margin: 0; }
.modal-body { padding: 24px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
@keyframes modal-in { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- Empty / pagination --- */
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty > i, .empty > svg { font-size: 34px; opacity: 0.3; margin-bottom: 14px; display: inline-block; }
.empty h4 { color: var(--fg); margin-bottom: 6px; }
.empty p { max-width: 380px; margin: 0 auto 16px; font-size: 14px; }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pagination strong { color: var(--fg); }

/* --- Utilities --- */
.flex { display: flex; } .inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; min-width: 0; }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.font-semibold { font-weight: 600; } .font-medium { font-weight: 500; }
.w-full { width: 100%; }
.relative { position: relative; } .absolute { position: absolute; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none; }
}
@media print { .rdy-header, .rdy-footer, .marquee, .toast, .mobile-drawer { display: none !important; } body { background: white; color: black; } }

.tabs[data-tab-group="hero-tools"] { flex-wrap: wrap; justify-content: center; max-width: 100%; }
@media (max-width: 640px) { .tabs[data-tab-group="hero-tools"] { overflow-x: visible; flex-wrap: wrap; } }

/* Pomocné mřížky statistik (inline grid na stránkách statistik se zde jen zalamuje) */
@media (max-width: 960px) { .rdy-grid-4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .rdy-grid-4, .rdy-grid-2 { grid-template-columns: 1fr !important; } }

/* iOS Safari: pole s písmem < 16px při zaměření přiblíží stránku a zpět už ji nevrátí.
   Na dotykových šířkách proto všechna textová pole držíme na 16px. */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  textarea, select, .input, .input-sm, .input-mono, .input-lg { font-size: 16px !important; }
}

/* Titulky sloupců patičky nejsou nadpisy (H-hierarchie) */
.rdy-footer .footer-title { margin-top: 0; }

/* Sémantické pomocné třídy — barvy jen přes tokeny */
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-accent { color: var(--accent-ink) !important; }
.text-fg-2 { color: var(--fg-2) !important; }
.bg-soft { background: var(--accent-soft); }
.bg-surface-2 { background: var(--surface-2); }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: .04em; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.block { display: block; }
.inline-block { display: inline-block; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-1 { margin-right: 4px; } .mr-2 { margin-right: 8px; } .ml-1 { margin-left: 4px; } .ml-2 { margin-left: 8px; }
.mt-5 { margin-top: 20px; } .mb-5 { margin-bottom: 20px; } .pt-4 { padding-top: 16px; } .pb-4 { padding-bottom: 16px; }
.p-0 { padding: 0 !important; }
.gap-0 { gap: 0; }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: 999px; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.break-all { word-break: break-all; }
.nowrap { white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.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; }
.max-w-sm { max-width: 420px; } .max-w-md { max-width: 560px; } .max-w-lg { max-width: 720px; } .max-w-xl { max-width: 900px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.divider-top { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.divider-bottom { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 14px; }
.thumb { width: 44px; height: 44px; border-radius: var(--radius-md); object-fit: cover; background: var(--surface-2); }
.thumb-lg { width: 72px; height: 72px; border-radius: var(--radius-lg); object-fit: cover; background: var(--surface-2); }
.icon-tile { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.icon-tile.danger { background: var(--danger-bg); color: var(--danger); }
.icon-tile.success { background: var(--success-bg); color: var(--success); }
.icon-tile.warning { background: var(--warning-bg); color: var(--warning); }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.progress.success > span { background: var(--success); } .progress.warning > span { background: var(--warning); } .progress.danger > span { background: var(--danger); }
.color-swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); display: inline-block; vertical-align: middle; }


/* ============================================================
   v10 „Clear" — úpravy komponent nad základem
   ============================================================ */
/* Hlavička: vyšší, větší písmo navigace, bílá s jemným stínem */
.rdy-header { background: rgba(255,255,255,0.86); border-bottom: 1px solid var(--border); }
html[data-theme="dark"] .rdy-header { background: rgba(12,19,34,0.86); border-bottom-color: var(--border); }
.rdy-header .header-inner { height: 72px; max-width: var(--maxw); }
.rdy-logo .logo-name { font-size: 26px; font-weight: 800; }
.rdy-nav { gap: 6px; }
.rdy-nav > a, .nav-dropdown-trigger { padding: 10px 14px; font-size: 15.5px; font-weight: 600; border-radius: var(--radius-sm); }
.rdy-nav > a:hover, .nav-dropdown-trigger:hover { background: var(--surface-2); }
.rdy-nav > a.active, .nav-dropdown-trigger.active { color: var(--accent-ink); }
.nav-dropdown-label, .nav-mega-txt .nav-dropdown-label { font-size: 15.5px; }
.nav-dropdown-desc, .nav-mega-txt .nav-dropdown-desc { font-size: 13.5px; }
.nav-mega-ico { width: 44px; height: 44px; border-radius: 12px; }
.nav-mega-ico svg { width: 22px; height: 22px; }
.nav-mega-promo strong { font-size: 16.5px; }
.nav-mega-promo p { font-size: 13.5px; }
.rdy-header-actions { gap: 10px; }
.rdy-header-actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.rdy-user-btn { height: 44px; padding: 0 12px 0 5px; font-size: 15px; }
.rdy-user-btn .avatar { width: 32px; height: 32px; font-size: 13px; }
.theme-toggle, .icon-btn { width: 42px; height: 42px; }
@media (max-width: 860px) { .rdy-header .header-inner { height: 62px; } .rdy-user-btn { width: 42px; padding: 0; } }

/* Nadpis sekce s ikonou a štítkem kroku (vzor objednávky): .sec-head */
.sec-head { display: grid; gap: 10px; margin-bottom: 20px; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.sec-eyebrow .sec-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 13px; }
.sec-head h2 { font-size: 28px; }
.sec-head p { font-size: 16px; color: var(--muted); }

/* Zamčený krok: čárkovaný box se zámkem */
.locked-step { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: 15.5px; }

/* Volba jako velká karta s přepínačem (radio-card) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; margin: 0; padding: 18px 18px 18px 54px; border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color var(--tr), box-shadow var(--tr), background var(--tr); }
.choice:hover { border-color: var(--accent); }
.choice input { position: absolute; left: 18px; top: 20px; }
.choice-title { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.choice-desc { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.choice-price { display: block; font-size: 15.5px; font-weight: 700; color: var(--fg); margin-top: 8px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--ring); }
.choice .choice-badge { position: absolute; top: -10px; right: 14px; }

/* Shrnutí vpravo (lepivé) */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.order-flow { display: grid; gap: 44px; min-width: 0; }
.order-summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); display: grid; gap: 18px; }
.order-summary h2 { font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--fg-2); }
.sum-row strong { color: var(--fg); white-space: nowrap; }
.sum-row small { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.sum-sep { border-top: 1px solid var(--border); padding-top: 18px; }
.sum-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sum-total .label { font-weight: 700; color: var(--fg); font-size: 16px; margin: 0; }
.sum-total .label small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.sum-total .amount { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; white-space: nowrap; }
.sum-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--fg-2); font-weight: 500; }
.sum-trust li { display: flex; align-items: center; gap: 10px; }
.sum-trust i { color: var(--success); font-size: 13px; }
@media (max-width: 980px) { .order-layout { grid-template-columns: 1fr; } .order-summary { position: static; } }

/* Stepper (kroky objednávky) */
.stepper { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0 0 28px; padding: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.stepper li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-sm); }
.stepper li.active { background: var(--accent); color: #fff; }
.stepper li.done { color: var(--fg); }
.stepper li.done i { color: var(--success); }
.stepper .sep { padding: 0; color: var(--muted-2); font-size: 11px; }

/* Tabulky, upozornění a drobnosti o stupeň větší */
.alert { font-size: 15px; border-radius: var(--radius-md); }
.dropdown-menu a, .dropdown-menu button { font-size: 15px; }

/* Logo jako text */
.rdy-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.045em; color: var(--fg); line-height: 1; white-space: nowrap; }
.rdy-wordmark .wm-dot { color: var(--accent); }
.rdy-footer .rdy-wordmark, footer .rdy-wordmark { font-size: 28px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
/* Odkazy ve spodním řádku patičky se na telefonu zalomí, jinak přetékají do strany */
.rdy-footer .footer-bottom > div { flex-wrap: wrap; row-gap: 8px; max-width: 100%; }
/* Dvousloupcové mřížky v inline stylu (.rdy-grid-2-md) — na telefonu a tabletu pod sebe */
@media (max-width: 860px) { .rdy-grid-2-md { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; } }
