/* MarcelaMusix WinterCMS Theme
   Verze 1.1 – uhlazenější UI, lepší navigace, důvěryhodnostní prvky a responzivní typografie.
   Vlastní CSS bez externích CDN. Fontové soubory nejsou přibalené; používáme rychlý systémový font stack. */

:root {
    color-scheme: light;
    --bg: #fbf7ef;
    --bg-soft: #f5eee3;
    --bg-strong: #efe3d2;
    --surface: rgba(255, 252, 246, .86);
    --surface-strong: #fffaf2;
    --surface-solid: #fff8ed;
    --ink: #251916;
    --ink-strong: #150e0c;
    --muted: #6e625c;
    --line: rgba(63, 42, 35, .14);
    --line-strong: rgba(63, 42, 35, .22);
    --brand: #8f3f3f;
    --brand-dark: #642b2d;
    --brand-ink: #4a2224;
    --accent: #b98548;
    --accent-soft: #f0dfc7;
    --accent-glow: rgba(185, 133, 72, .22);
    --success: #53724d;
    --shadow: 0 26px 70px rgba(60, 42, 32, .14);
    --shadow-soft: 0 14px 36px rgba(60, 42, 32, .10);
    --shadow-hover: 0 22px 50px rgba(60, 42, 32, .16);
    --radius-xxl: 38px;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
    --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --font-display: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #14100e;
    --bg-soft: #201815;
    --bg-strong: #2d211c;
    --surface: rgba(37, 29, 25, .86);
    --surface-strong: #2a201c;
    --surface-solid: #261d19;
    --ink: #fff6e8;
    --ink-strong: #fffaf0;
    --muted: #cfbfb0;
    --line: rgba(255, 240, 220, .16);
    --line-strong: rgba(255, 240, 220, .25);
    --brand: #df8c85;
    --brand-dark: #f3b1a8;
    --brand-ink: #ffd5cf;
    --accent: #d7ad74;
    --accent-soft: rgba(215, 173, 116, .18);
    --accent-glow: rgba(215, 173, 116, .16);
    --success: #9bc48b;
    --shadow: 0 28px 76px rgba(0, 0, 0, .42);
    --shadow-soft: 0 16px 42px rgba(0, 0, 0, .29);
    --shadow-hover: 0 24px 56px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(circle at 12% 0%, rgba(185, 133, 72, .20), transparent 30rem),
        radial-gradient(circle at 91% 12%, rgba(143, 63, 63, .14), transparent 32rem),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, #fff 12%), var(--bg) 34rem, var(--bg-soft));
    color: var(--ink);
    line-height: 1.68;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
}
.header-topline {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    font-size: .82rem;
    color: var(--muted);
}
.header-topline .container {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header-topline strong { color: var(--ink); font-weight: 850; }
.header-topline a { color: var(--muted); text-decoration: none; font-weight: 800; }
.header-topline a:hover { color: var(--brand); }
.header-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-width: max-content; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-family: var(--font-display); font-size: 1.5rem; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 13px; }
.brand-copy strong { display: block; line-height: 1; font-size: 1.08rem; letter-spacing: .015em; }
.brand-copy small { display: block; color: var(--muted); font-size: .76rem; margin-top: .2rem; }
.primary-nav { justify-self: center; display: flex; justify-content: center; gap: .18rem; align-items: center; padding: .3rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface-strong) 82%, transparent); box-shadow: 0 10px 28px rgba(60, 42, 32, .07); }
.primary-nav a { text-decoration: none; color: var(--muted); font-weight: 820; font-size: .88rem; line-height: 1; padding: .72rem .78rem; border-radius: 999px; white-space: nowrap; transition: background .2s ease, color .2s ease, transform .2s ease; }
.primary-nav a:hover, .primary-nav a.is-active, .primary-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); transform: translateY(-1px); }
.header-actions { display: flex; gap: .55rem; align-items: center; justify-content: flex-end; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); border-radius: 999px; padding: .55rem .75rem; align-items: center; gap: .55rem; cursor: pointer; box-shadow: var(--shadow-soft); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px 0; border-radius: 99px; }
.nav-toggle em { font-style: normal; font-weight: 850; font-size: .82rem; }
.theme-toggle { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .78rem 1.08rem; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 880; letter-spacing: .005em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 16px 32px rgba(143,63,63,.24); }
.btn-primary:hover { color: #fff; box-shadow: 0 20px 42px rgba(143,63,63,.32); }
.btn-secondary { background: var(--accent-soft); color: var(--ink); border-color: var(--line); }
.btn-ghost { background: var(--surface-solid); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.text-link { font-weight: 880; color: var(--brand); text-decoration: none; }
.text-link::after { content: " →"; }

.section { padding: clamp(54px, 7vw, 104px) 0; }
.section.compact { padding: clamp(38px, 5vw, 70px) 0; }
.section-head { max-width: 780px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { color: var(--brand); font-weight: 920; text-transform: uppercase; letter-spacing: .12em; font-size: .77rem; margin: 0 0 .58rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .85rem; color: var(--ink-strong); }
h1 { font-family: var(--font-display); font-size: clamp(2.15rem, 4.8vw, 4.9rem); max-width: 820px; }
h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.9vw, 3.55rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.55rem); }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.04rem, 1.7vw, 1.24rem); color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.fine { font-size: .92rem; color: var(--muted); }

.hero { position: relative; overflow: hidden; padding: clamp(38px, 5.5vw, 76px) 0 clamp(44px, 7vw, 94px); }
.hero::before { content: ""; position: absolute; inset: auto -18rem -22rem auto; width: 46rem; height: 46rem; background: radial-gradient(circle, var(--accent-glow), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(300px, .9fr); gap: clamp(2rem, 5vw, 4.8rem); align-items: center; position: relative; }
.hero-copy .lead { margin-bottom: 1.45rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .7rem; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(60,42,32,.06); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.65rem 0 1rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.hero-note span { background: var(--surface-solid); border: 1px solid var(--line); padding: .45rem .7rem; border-radius: 999px; }
.hero-media { position: relative; isolation: isolate; }
.hero-media::before { content: ""; position: absolute; inset: -18px 18px 24px -18px; border-radius: var(--radius-xxl); border: 1px solid var(--line); background: var(--accent-soft); transform: rotate(-2deg); z-index: -1; }
.hero-media img { border-radius: var(--radius-xxl); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-card { position: absolute; left: -1.1rem; bottom: 1.15rem; width: min(86%, 380px); background: color-mix(in srgb, var(--surface-strong) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-soft); border-radius: 22px; padding: 1rem 1.05rem; backdrop-filter: blur(14px); }
.hero-card strong { display: block; font-size: 1.02rem; color: var(--ink-strong); }
.hero-card p { margin-bottom: 0; }

.trust-strip { margin-top: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.trust-item { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; box-shadow: var(--shadow-soft); }
.trust-item strong { display: block; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1; color: var(--brand); font-family: var(--font-display); }
.trust-item span { display: block; margin-top: .35rem; font-size: .9rem; color: var(--muted); }

.cards { display: grid; gap: 1rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 2.3vw, 1.55rem); box-shadow: var(--shadow-soft); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card.flat, .card.no-hover { box-shadow: none; }
.card.flat:hover, .card.no-hover:hover { transform: none; box-shadow: none; }
.feature-card { display: grid; grid-template-rows: auto 1fr; gap: 1rem; overflow: hidden; padding: .8rem; }
.feature-card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 18px; background: var(--bg-soft); }
.feature-card div { padding: .3rem .45rem .65rem; }
.icon-card { position: relative; min-height: 100%; }
.icon-card .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--brand); font-weight: 950; margin-bottom: 1rem; }
.proof-card { display: grid; gap: .75rem; }
.proof-card strong { color: var(--ink-strong); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.proof-panel { background: linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, var(--accent-soft)), var(--surface-strong)); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); padding: clamp(1.2rem, 3vw, 2rem); }
.proof-panel .check-list { margin-top: 0; }

.band { background: color-mix(in srgb, var(--surface) 78%, var(--bg)); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.check-list { padding: 0; margin: 1.2rem 0 0; list-style: none; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.35rem; height: 1.35rem; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); font-weight: 950; font-size: .82rem; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.price-card { position: relative; overflow: hidden; }
.price { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--brand); margin: .7rem 0; }
.price small { font-family: var(--font); font-size: .9rem; color: var(--muted); }

.faq { display: grid; gap: .75rem; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; }
summary { cursor: pointer; font-weight: 900; color: var(--ink-strong); }
details p { margin-top: .75rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.contact-card a { display: block; font-weight: 850; margin: .45rem 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-row-full { grid-column: 1 / -1; }
label { display: grid; gap: .35rem; font-weight: 850; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem; background: var(--surface-strong); color: var(--ink); outline: none; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }

.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs a { color: var(--muted); }
.page-hero { padding: clamp(42px, 7vw, 86px) 0 clamp(36px, 6vw, 76px); }
.page-hero .lead { margin-top: 1rem; }
.content-flow { max-width: 880px; }
.content-flow h2 { margin-top: 2.4rem; }
.content-flow h3 { margin-top: 1.8rem; }
.content-flow ul, .content-flow ol { padding-left: 1.35rem; }
.content-flow li + li { margin-top: .35rem; }
.cta-box { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface-strong)), var(--surface-strong)); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); padding: clamp(1.3rem, 4vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.cta-box h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); }
.landing-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.landing-links a { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 999px; padding: .6rem .85rem; text-decoration: none; font-weight: 820; color: var(--muted); }
.landing-links a:hover { color: var(--ink); background: var(--accent-soft); }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, var(--bg)); }
.footer-cta { margin-top: clamp(28px, 5vw, 60px); background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(1.2rem, 4vw, 2.4rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; transform: translateY(-32px); }
.footer-cta h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.4rem; padding: 2.5rem 0; }
.footer-title { font-family: var(--font); letter-spacing: .08em; font-size: .82rem; text-transform: uppercase; color: var(--brand); }
.footer-grid a, .footer-grid span { display: block; margin: .35rem 0; color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.1rem 0 1.8rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .92rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .9rem; }
.footer-bottom a { color: var(--muted); }

.cookie-panel { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 999; width: min(100% - 2rem, 980px); margin-inline: auto; background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px; padding: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.cookie-panel[hidden] { display: none; }
.cookie-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions a { color: var(--muted); font-size: .9rem; }

@media (max-width: 1160px) {
    .header-grid { grid-template-columns: auto auto 1fr; }
    .nav-toggle { display: inline-flex; order: 2; }
    .primary-nav { position: fixed; inset: 114px 0 auto 0; display: none; background: var(--surface-strong); border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 1rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: .95rem 1rem; font-size: 1rem; }
    .header-actions { order: 3; }
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .hero-media { max-width: 620px; }
    .cards-4, .cards-3, .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-grid, .proof-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cta { grid-template-columns: 1fr; }
    .footer-cta-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 22px, var(--container)); }
    .header-topline { display: none; }
    .header-grid { min-height: 70px; grid-template-columns: auto auto auto; gap: .55rem; }
    .brand-copy small { display: none; }
    .brand-mark { width: 42px; height: 42px; border-radius: 14px; }
    .hide-sm { display: none; }
    .header-actions { gap: .4rem; }
    .header-actions .btn-primary { padding-inline: .82rem; font-size: .84rem; min-height: 42px; }
    .theme-toggle { width: 42px; height: 42px; }
    .nav-toggle { padding: .52rem .68rem; }
    .primary-nav { inset: 70px 0 auto 0; }
    h1 { font-size: clamp(2.05rem, 10vw, 3.25rem); }
    .hero { padding-top: 30px; }
    .hero-card { position: static; width: auto; margin-top: .85rem; }
    .hero-media::before { inset: -10px 10px 16px -10px; }
    .cards-4, .cards-3, .cards-2, .trust-strip { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .cta-box { display: block; }
    .cta-box .btn { margin-top: .7rem; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { display: block; }
    .cookie-panel { grid-template-columns: 1fr; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { width: 100%; }
}

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


/* ------------------------------------------------------------
   Verze 1.2 – kompletně přepracované responzivní mobilní menu.
   Off-canvas navigace, overlay, větší tap oblasti, focus stavy,
   lepší semantika a dostupnější ovládání pro klávesnici.
------------------------------------------------------------ */

.primary-nav {
    isolation: isolate;
}
.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-head,
.mobile-nav-trust,
.mobile-nav-actions,
.mobile-nav-close,
.nav-backdrop {
    display: none;
}
.hide-xs { display: inline-flex; }
.nav-toggle-lines {
    display: grid;
    gap: 4px;
    width: 20px;
}
.nav-toggle-lines i {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle span:not(.nav-toggle-lines) { display: none; }

@media (max-width: 1160px) {
    .site-header { z-index: 1000; }
    .header-grid {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        min-height: 74px;
    }
    .header-actions {
        order: 2;
        justify-self: end;
        gap: .45rem;
    }
    .nav-toggle {
        order: 99;
        display: inline-flex;
        min-height: 46px;
        padding: .58rem .82rem;
        position: relative;
        z-index: 1003;
    }
    .nav-toggle span { margin: 0; }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1001;
        width: 100vw;
        height: 100vh;
        border: 0;
        padding: 0;
        cursor: pointer;
        background: rgba(20, 14, 12, .46);
        backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }
    body.nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .nav-backdrop[hidden] { display: none; }

    .primary-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 1002;
        width: min(420px, calc(100vw - 22px));
        height: 100dvh;
        max-height: 100dvh;
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) auto auto;
        align-items: stretch;
        justify-content: stretch;
        gap: 0;
        padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
        border: 1px solid var(--line);
        border-right: 0;
        border-radius: 30px 0 0 30px;
        background:
            radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 18rem),
            linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 96%, var(--bg)), var(--surface-solid));
        box-shadow: -28px 0 70px rgba(28, 16, 10, .22);
        overflow: hidden auto;
        transform: translateX(110%);
        opacity: .98;
        visibility: hidden;
        pointer-events: none;
        transition: transform .26s ease, visibility .26s ease;
    }
    body.nav-open .primary-nav {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .primary-nav.is-open { display: grid !important; }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .15rem .15rem 1rem;
        border-bottom: 1px solid var(--line);
        margin-bottom: .75rem;
    }
    .mobile-nav-head strong {
        display: block;
        font-size: 1.15rem;
        line-height: 1.1;
        color: var(--ink-strong);
    }
    .mobile-nav-head small {
        display: block;
        color: var(--muted);
        font-size: .82rem;
        margin-top: .2rem;
    }
    .mobile-nav-close {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--surface-solid);
        color: var(--ink);
        font-size: 1.7rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: var(--shadow-soft);
    }

    .nav-list {
        display: grid;
        align-content: start;
        gap: .45rem;
        overflow: visible;
        padding: .2rem 0 .9rem;
    }
    .primary-nav li { display: block; }
    .primary-nav a {
        min-height: 52px;
        width: 100%;
        justify-content: space-between;
        gap: .75rem;
        padding: .92rem 1rem;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: color-mix(in srgb, var(--surface) 76%, transparent);
        color: var(--ink);
        font-size: 1rem;
        font-weight: 900;
        text-decoration: none;
        box-shadow: 0 10px 22px rgba(60, 42, 32, .055);
    }
    .primary-nav a::after {
        content: "→";
        color: var(--brand);
        font-weight: 950;
        transform: translateX(0);
        transition: transform .18s ease;
    }
    .primary-nav a:hover::after,
    .primary-nav a.is-active::after { transform: translateX(3px); }
    .primary-nav a:hover,
    .primary-nav a.is-active,
    .primary-nav a[aria-current="page"] {
        background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--surface-strong) 88%, var(--accent-soft)));
        border-color: var(--line-strong);
        color: var(--ink-strong);
        transform: none;
    }

    .mobile-nav-trust {
        display: flex;
        flex-wrap: wrap;
        gap: .45rem;
        padding: .85rem 0 1rem;
        border-top: 1px solid var(--line);
    }
    .mobile-nav-trust span {
        display: inline-flex;
        min-height: 34px;
        align-items: center;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: .42rem .62rem;
        background: color-mix(in srgb, var(--accent-soft) 62%, transparent);
        color: var(--muted);
        font-size: .78rem;
        font-weight: 850;
    }
    .mobile-nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .65rem;
        padding-top: .25rem;
    }
    .mobile-nav-actions .btn {
        width: 100%;
        min-height: 50px;
        padding-inline: .8rem;
    }
}

@media (max-width: 760px) {
    .header-grid {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .55rem;
    }
    .brand {
        min-width: 0;
    }
    .brand-copy strong {
        font-size: 1rem;
        max-width: 42vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-actions .theme-toggle {
        display: none;
    }
    .hide-xs { display: none !important; }
    .nav-toggle {
        min-height: 44px;
        padding: .54rem .72rem;
    }
    .nav-toggle em { font-size: .78rem; }
    .primary-nav {
        width: min(390px, calc(100vw - 14px));
        border-radius: 24px 0 0 24px;
        padding: .85rem .78rem max(.85rem, env(safe-area-inset-bottom));
    }
    .primary-nav a {
        min-height: 50px;
        border-radius: 16px;
        font-size: .96rem;
        padding: .85rem .88rem;
    }
    .mobile-nav-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .brand-mark {
        width: 39px;
        height: 39px;
    }
    .brand-copy strong {
        max-width: 36vw;
    }
    .nav-toggle em { display: none; }
    .nav-toggle {
        min-width: 44px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-nav,
    .nav-backdrop,
    .nav-toggle-lines i {
        transition: none !important;
    }
}


/* Hotfix 1.2.1 – ochrana hamburger ikonky před staršími pravidly pro .nav-toggle span. */
.nav-toggle .nav-toggle-lines {
    display: grid;
    gap: 4px;
    width: 20px;
    height: auto;
    background: transparent;
    margin: 0;
    border-radius: 0;
}
.nav-toggle .nav-toggle-lines i {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    background: currentColor;
    border-radius: 999px;
}

/* ------------------------------------------------------------
   Hotfix 1.2.2 – desktop header / klasické PC menu.
   Řeší překrývání navigace s logem a CTA na užších noteboocích.
   Menu má v desktopu vlastní širší header container, kompaktnější
   položky a při menší šířce schová duplicitní tlačítko „Zavolat“.
------------------------------------------------------------ */
@media (min-width: 1161px) {
    .site-header > .container {
        width: min(100% - 28px, 1360px);
    }

    .header-grid {
        grid-template-columns: minmax(172px, auto) minmax(0, 1fr) auto;
        gap: .72rem;
        min-height: 72px;
    }

    .brand {
        min-width: 0;
        gap: .62rem;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        font-size: 1.34rem;
        flex: 0 0 auto;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-copy strong,
    .brand-copy small {
        white-space: nowrap;
    }

    .brand-copy strong {
        font-size: 1rem;
    }

    .brand-copy small {
        font-size: .70rem;
        max-width: 172px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .primary-nav {
        min-width: 0;
        max-width: 100%;
        justify-self: center;
        padding: .22rem;
        gap: .1rem;
        overflow: visible;
    }

    .nav-list {
        min-width: 0;
        max-width: 100%;
        gap: .08rem;
    }

    .primary-nav a {
        min-height: 38px;
        padding: .62rem .58rem;
        font-size: .79rem;
        letter-spacing: -.012em;
    }

    .header-actions {
        min-width: 0;
        gap: .42rem;
    }

    .header-actions .btn {
        min-height: 42px;
        padding: .68rem .86rem;
        font-size: .86rem;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }
}

@media (min-width: 1161px) and (max-width: 1320px) {
    .header-actions .hide-sm {
        display: none !important;
    }

    .header-grid {
        grid-template-columns: minmax(166px, auto) minmax(0, 1fr) auto;
        gap: .62rem;
    }

    .primary-nav a {
        padding-inline: .54rem;
    }
}

@media (min-width: 1161px) and (max-width: 1235px) {
    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .primary-nav a {
        min-height: 37px;
        padding: .56rem .48rem;
        font-size: .76rem;
    }

    .header-actions .btn-primary {
        padding-inline: .76rem;
    }
}

