/* Inter (SIL Open Font License), variabilní: tloušťka 400–700, optická velikost 14–32. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(fonts/inter-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: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(fonts/inter-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; }

/*
 * Apromotion — veřejný web (nová verze).
 * Styl podle Apple HIG: systémové písmo, nadpisy v běžné velikosti písmen,
 * hodně vzduchu, plošné šedé povrchy. Purpurová jen na hlavní akce a stav,
 * zlatá jen pro Premium (text zlatou jen na tmavém podkladu).
 * Kontrasty: --ink na bílé 16,8:1 · --muted na bílé 5,1:1 · bílá na --magenta 5,3:1.
 */
:root {
    --ink: #1d1d1f;
    --ink-2: #2c2c2e;
    --ink-3: #3a3a3c;
    --magenta: #cf007f;
    --magenta-600: #b0006c;
    --magenta-50: #fdf0f7;
    --magenta-100: #fadbec;
    --gold: #d7af14;
    --gold-300: #f5c023;
    --paper: #ffffff;
    --mist: #f5f5f7;
    --line: #d2d2d7;
    --muted: #6e6e73;
    --ok: #0f7a4a;
    --ok-50: #eaf7f0;
    --radius: 14px;
    --radius-lg: 18px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.04), 0 18px 48px rgba(0,0,0,.1);
    --wrap: 1120px;
    /* Inter na vlastním serveru (public/web/fonts) — na Macu i Windows stejné písmo;
       optická velikost (opsz) zúží velké nadpisy sama. Systémové písmo jen jako záloha. */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: 0;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.h-display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.h-display { font-size: clamp(2.75rem, 7vw, 5rem); letter-spacing: -.035em; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.4; color: var(--muted); max-width: 60ch; }
.c-magenta { color: var(--magenta); }
.c-gold { color: var(--gold); }
.more { color: var(--magenta); text-decoration: none; }
.more:hover { text-decoration: underline; }
.more::after { content: ' ›'; }

/* Tlačítka: tvar a výška jako systémová (min. 44 px). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 1.4rem; border-radius: 980px; border: 1px solid transparent; font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-600); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127,127,127,.08); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-300); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-sm { min-height: 32px; padding: 0 .9rem; font-size: .875rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* Hlavička: tenká průsvitná lišta — jediná průhledná vrstva nad obsahem. */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
@media (prefers-reduced-transparency: reduce) { .header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header .wrap { display: flex; align-items: center; gap: 1.6rem; height: 56px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: .1rem; margin-right: auto; }
.nav > a, .nav > .nav-dd > button { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; padding: 0 .65rem; border: 0; background: none; font-size: .8rem; font-weight: 400; text-decoration: none; color: var(--ink); opacity: .85; cursor: pointer; }
.nav > a:hover, .nav > .nav-dd > button:hover, .nav > a.is-active { opacity: 1; }
.nav .nav-premium { color: #a88200 !important; }
.nav-dd { position: relative; }
.nav-dd > button svg { width: .7rem; height: .7rem; transition: transform .2s; }
.nav-dd:hover > button svg, .nav-dd:focus-within > button svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px); width: min(760px, 92vw); padding: 1rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.06); display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.nav-dd:hover .mega, .nav-dd:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega a { display: flex; gap: .75rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; text-decoration: none; }
.mega a:hover { background: var(--mist); }
.mega img { width: 34px; height: 34px; flex: none; }
.mega strong { display: block; font-size: .9rem; font-weight: 600; }
.mega span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.head-actions { display: flex; align-items: center; gap: .2rem; }
.head-phone { margin-right: .6rem; font-size: .8rem; color: var(--ink); text-decoration: none; opacity: .85; white-space: nowrap; }
.head-phone:hover { opacity: 1; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.burger { display: none; }
@media (max-width: 1020px) {
    .nav, .head-phone { display: none; }
    .burger { display: inline-flex; }
    .header .wrap { gap: 1rem; }
    .head-actions { margin-left: auto; }
    .head-actions .btn { display: none; }
}
.mobile-nav { display: none; }
.mobile-nav.is-open { display: block; position: fixed; inset: 56px 0 0; z-index: 49; background: #fff; overflow: auto; padding: 1rem 16px 3rem; }
.mobile-nav a { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.mobile-nav img { width: 30px; height: 30px; }

/* Úvod: vlevo otázka a výběr, vpravo tiskárna, která vybrané „vytiskne". */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero-main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-copy .h-display { margin-top: .4rem; }
.hero-lead { font-size: clamp(1.19rem, 2.2vw, 1.5rem); line-height: 1.35; color: var(--muted); margin: 1.1rem 0 1.8rem; max-width: 30ch; letter-spacing: -.01em; }
.print-pick { margin-bottom: 1.6rem; }
.print-result { display: flex; align-items: center; gap: .8rem 1.25rem; flex-wrap: wrap; }
.print-price { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; flex-basis: 100%; }
@media (max-width: 900px) {
    .hero { padding: 36px 0 48px; }
    .hero-main { grid-template-columns: 1fr; gap: 24px; }
}

/* Tiskárna (kreslená v CSS, rozměry v procentech scény). */
.press { position: relative; width: 100%; max-width: 500px; margin-left: auto; aspect-ratio: 1 / 1.02; }
.press-body { position: absolute; top: 8%; left: 0; right: 0; height: 36%; z-index: 2; border-radius: 26px;
    background: linear-gradient(#fbfbfd, #e4e4ea); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.06), 0 22px 44px rgba(0,0,0,.12); }
.press-body::before { content: 'apromotion'; position: absolute; left: 7%; top: 16%; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: #a1a1a6; }
.press-lid { position: absolute; top: -9%; left: 14%; right: 14%; height: 14%; border-radius: 12px 12px 3px 3px; background: linear-gradient(#f2f2f5, #dadae0); }
.press-lid::before { content: ''; position: absolute; left: 8%; right: 8%; top: -40%; height: 60%; border-radius: 2px; background: #fff; box-shadow: 0 -3px 0 -1px #fff, 0 -6px 0 -2px #f5f5f7, 0 1px 2px rgba(0,0,0,.1); }
.press-screen { position: absolute; top: 12%; right: 6%; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 9px; background: #1d1d1f; color: #f5f5f7; font-size: .72rem; font-weight: 500; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.press-screen i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 6px #30d158; }
.press-screen b { font-weight: 500; color: #a1a1a6; }
.press.is-printing .press-screen i { animation: press-led .5s steps(2) infinite; }
.press.is-printing .press-body { animation: press-hum .14s linear infinite; }
.press-slot { position: absolute; left: 11%; right: 11%; bottom: 16%; height: 6%; border-radius: 6px; background: #1d1d1f; box-shadow: inset 0 3px 4px rgba(0,0,0,.6); }
/* Výstup: archy vyjíždějí ze štěrbiny (nad ní jsou skryté) a padají na hromádku. */
.press-out { position: absolute; top: 38.6%; left: 11%; right: 11%; bottom: 3%; z-index: 3; clip-path: inset(0 -60% -10% -60%); }
.press-shadow { position: absolute; left: 18%; right: 18%; bottom: 0; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.14), transparent); }
@keyframes press-led { 50% { opacity: .25; } }
@keyframes press-hum { 50% { transform: translateY(.6px); } }

.sheet { position: absolute; left: 50%; top: 0; display: flex; flex-direction: column; gap: 7%; padding: 8% 8% 12%; overflow: hidden;
    border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.08); transform: translate(-50%, -102%); }
.sheet i { display: block; height: 5px; flex: none; border-radius: 3px; background: #d2d2d7; }
.sheet i.h { height: 9px; width: 72%; background: #1d1d1f; }
.sheet i.s { width: 55%; }
.sheet .img { flex: none; aspect-ratio: 4 / 3; border-radius: 3px; background: linear-gradient(135deg, #00a0e9, #cf007f 55%, #fff100); }
.sheet::after { content: ''; position: absolute; left: 8%; bottom: 5%; width: 30px; height: 5px; border-radius: 1px;
    background: linear-gradient(90deg, #00a0e9 0 25%, #cf007f 0 50%, #fff100 0 75%, #1d1d1f 0); }
.sheet--letak { width: 44%; aspect-ratio: 1 / 1.414; }
.sheet--plakat { width: 58%; aspect-ratio: 1 / 1.414; gap: 5%; }
.sheet--plakat .img { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #1d1d1f, #3a3a3c 40%, #cf007f); }
.sheet--plakat i.h { height: 14px; width: 86%; }
.sheet--vizitky { width: 84%; aspect-ratio: 1.414 / 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 5%; padding: 7% 7% 10%; }
.sheet--vizitky span { display: flex; flex-direction: column; justify-content: center; gap: 12%; padding: 10%; border: 1px dashed #d2d2d7; }
.sheet--vizitky span b { width: 26%; aspect-ratio: 1; border-radius: 50%; background: #cf007f; }
.sheet--vizitky span i { height: 3px; }
.sheet--premium { width: 60%; aspect-ratio: 1.8 / 1; justify-content: center; align-items: center; gap: 10%; background: #111; }
.sheet--premium::after { display: none; }
.sheet--premium .foil { font-family: var(--font-display); font-size: clamp(1rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -.02em;
    background: linear-gradient(100deg, #9c7a08 20%, #fff1b8 45%, #d7af14 55%, #9c7a08 80%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 2.6s ease-in-out infinite; }
.sheet--premium i { width: 40%; height: 3px; background: #d7af14; opacity: .7; }
@keyframes foil { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .sheet--premium .foil { animation: none; } }
@media (max-width: 900px) { .press { max-width: 400px; margin: 0 auto; } }

/* Řádek s termínem pod úvodem. */

/* Mozaika zakázek pod úvodem. */
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 12px; }
.hero-shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--mist); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-shot:hover img { transform: scale(1.03); }
.hero-shot.is-main { grid-row: 1 / 3; }
.hero-shot.is-main img { object-position: 50% 30%; }
.hero-shot.is-wide { grid-column: 2 / 4; }
.hero-shot figcaption { position: absolute; left: 12px; bottom: 12px; padding: .3rem .7rem; border-radius: 980px; background: rgba(255,255,255,.88); font-size: .8rem; font-weight: 500; color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (prefers-reduced-transparency: reduce) { .hero-shot figcaption { background: #fff; } }
.all-link { text-align: center; margin: 28px 0 0; }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 200px 200px; }
    .hero-shot.is-main { grid-row: auto; grid-column: 1 / 3; }
    .hero-shot.is-wide { grid-column: 1 / 3; }
}
@media (max-width: 520px) { .hero-grid { grid-template-rows: 300px 170px 150px; } }

/* Segmentový přepínač (systémový vzhled). */
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; padding: 2px; border-radius: 10px; background: #e8e8ed; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; min-height: 36px; padding: 0 1rem; border: 0; border-radius: 8px; background: none; font-size: .94rem; font-weight: 500; color: var(--ink); white-space: nowrap; cursor: pointer; }
.seg button[aria-checked="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Sekce */
.section { padding: 96px 0; }
/* Dvě bílé sekce za sebou: bez zdvojené mezery (jinak prázdný pruh). */
.section:not(.section-mist, .section-dark) + .section:not(.section-mist, .section-dark) { padding-top: 0; }
.clients + .section-mist { margin-top: 72px; }
.section-mist { background: var(--mist); }
.section-dark { background: #000; color: #f5f5f7; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section-head .h2 { margin-top: .3rem; }
.section-head.is-center { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.section-head.is-center p { margin: .8rem auto 0; max-width: 40ch; font-size: 1.3rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Filtry (Realizace, slovníček) */
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 1rem; border-radius: 980px; border: 0; background: var(--mist); font-size: .875rem; font-weight: 500; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; transition: background .15s; }
.chip:hover { background: #e8e8ed; }
.chip.is-active { background: var(--ink); color: #fff; }
.cat-filter { display: flex; justify-content: center; margin-bottom: 2.2rem; }

/* Karty produktů */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); background: #fff; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.section:not(.section-mist) .card { background: var(--mist); }
.card:hover { transform: scale(1.015); box-shadow: var(--shadow-lg); }
.card-icon { width: 64px; height: 64px; padding: 6px; margin-bottom: 20px; border-radius: 16px; background: var(--mist); }
.section:not(.section-mist) .card-icon { background: #fff; }
.card-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.card-tag { margin-top: 2px; font-size: .9rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.card-price { font-size: .9rem; white-space: nowrap; }
.card-price b { font-weight: 600; }
.card-cta { font-size: .9rem; color: var(--magenta); white-space: nowrap; }
.card-cta::after { content: ' ›'; }
.card.is-premium { background: #000; color: #f5f5f7; }
.card.is-premium .card-tag { color: #a1a1a6; }
.card.is-premium .card-cta { color: var(--gold); }
.card.is-premium .card-icon { background: #1d1d1f; }
.card .badge { position: absolute; top: 20px; right: 20px; padding: .15rem .55rem; border-radius: 980px; font-size: .72rem; font-weight: 600; background: var(--ok-50); color: var(--ok); }
.card.is-premium .badge { background: rgba(215,175,20,.16); color: var(--gold); }
.card[hidden] { display: none; }

/* Stroje jako produkty: velké dlaždice od okraje k okraji. */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.show { display: flex; flex-direction: column; align-items: center; min-height: 580px; padding: 56px 24px 0; overflow: hidden; text-align: center; background: var(--mist); }
.show.is-wide { grid-column: 1 / -1; min-height: 640px; background: #000; color: #f5f5f7; }
.show .eyebrow { margin-bottom: .5rem; }
.show.is-wide .eyebrow, .show.is-wide .more { color: var(--gold); }
.show .h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.show-sub { margin: .5rem 0 1.25rem; font-size: clamp(1.19rem, 2vw, 1.5rem); color: var(--muted); letter-spacing: -.01em; }
.show.is-wide .show-sub { color: #a1a1a6; }
.show-links { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.show-specs { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .875rem; color: #a1a1a6; }
.show-specs b { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; color: #f5f5f7; }
.show img { width: auto; max-width: 100%; max-height: 380px; margin-top: auto; padding-top: 32px; object-fit: contain; }
.show.is-wide img { max-height: 420px; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } .show, .show.is-wide { min-height: 0; padding-top: 44px; } }

/* Výhody */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.perk svg { width: 30px; height: 30px; margin-bottom: 14px; color: var(--magenta); }
.perk h3 { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.perk p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 960px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* Kroky — opravdu je to sled, proto čísla. */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: st; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 0 0; }
.step::before { counter-increment: st; content: counter(st); display: block; margin-bottom: .6rem; font-size: .875rem; font-weight: 600; color: var(--magenta); }
.step h3 { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Kontakt na úvodu */
.contact-cta { text-align: center; }
.contact-cta p { margin: .8rem 0 2rem; font-size: 1.3rem; color: var(--muted); }
.contact-cta-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-cta-links .btn-ghost { color: var(--magenta); }

/* Kontaktní pás (podstránky) */
.cta-band { border-radius: 24px; background: var(--mist); color: var(--ink); padding: 3rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band p { margin: .6rem 0 0; color: var(--muted); }
.cta-contacts { display: grid; gap: .6rem; }
.cta-contacts a { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: 0 1.1rem; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: box-shadow .15s; }
.cta-contacts a:hover { box-shadow: var(--shadow); }
.cta-contacts svg { width: 1.25rem; height: 1.25rem; color: var(--magenta); }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 2rem 1.4rem; } }

/* Patička: světle šedá, drobné písmo (jako apple.com). */
.footer { background: var(--mist); color: var(--muted); padding: 40px 0 28px; margin-top: 96px; font-size: .8rem; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer h4 { color: var(--ink); font-size: .8rem; font-weight: 600; margin: 0 0 .7rem; }
.footer a { color: var(--muted); text-decoration: none; display: block; padding: .2rem 0; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer p { margin: 0; max-width: 34ch; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-bottom { padding-top: 16px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Produktová stránka */
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding: 1.2rem 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--magenta); }
/* Návody: přepínání mezi nimi (skupiny s „pilulkami"), pod hlavičkou stránky. */
.guide-nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0 0 2.5rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--mist); }
.guide-nav-group { display: grid; gap: .45rem; }
.guide-nav-label { font-size: .7rem; font-weight: 600; color: var(--muted); }
.guide-nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.guide-nav-links a { padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.guide-nav-links a:hover { border-color: var(--magenta); color: var(--magenta); }
.guide-nav-links a.is-active { border-color: var(--magenta); background: var(--magenta-50); color: var(--magenta); }
.guide-body .blk { padding: 40px 0; }
.guide-body .blk:first-child { padding-top: 0; }
.guide-body .blk + .blk:not(.blk-mist) { padding-top: 16px; }
.guide-body .blk-title { margin-bottom: 1.8rem; }
/* Mobil: návody v jednom řádku s posunem do strany (jinak zaberou celou první obrazovku). */
@media (max-width: 820px) {
    .guide-nav { flex-wrap: nowrap; overflow-x: auto; gap: 1.2rem; margin: 0 -16px 1.8rem; padding: .9rem 16px; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
    .guide-nav::-webkit-scrollbar { display: none; }
    .guide-nav-group { flex: none; }
    .guide-nav-links { flex-wrap: nowrap; }
    .guide-nav-links a { white-space: nowrap; }
}
.p-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 1.6rem 0 2.2rem; }
.p-hero .h1 { margin: .3rem 0 .8rem; }
.p-hero-icon { width: 128px; height: 128px; padding: 22px; border-radius: 32px; background: var(--magenta-50); }
.p-hero-icon.is-premium { background: var(--ink); }
@media (max-width: 640px) { .p-hero { grid-template-columns: 1fr; } .p-hero-icon { display: none; } }

.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.6rem; align-items: start; }
.cfg-main { display: grid; gap: 1rem; counter-reset: cfg; }
.cfg-card { padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.cfg-card > h3 { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; font-size: 1.02rem; font-weight: 600; }
.cfg-card > h3::before { counter-increment: cfg; content: counter(cfg); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--magenta); color: #fff; font-size: .85rem; }
.cfg-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; }
.cfg-fold > summary::-webkit-details-marker { display: none; }
.cfg-fold > summary h3 { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: 1.02rem; font-weight: 600; }
.cfg-fold > summary h3::before { counter-increment: cfg; content: counter(cfg); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--magenta); color: #fff; font-size: .85rem; }
.cfg-fold-sum { flex: 1; color: var(--muted); font-size: .92rem; }
.cfg-fold > summary::after { content: '+'; color: var(--magenta); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.cfg-fold[open] > summary { margin-bottom: 1.1rem; }
.cfg-fold[open] > summary::after { transform: rotate(45deg); }
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.tiles { display: flex; flex-wrap: wrap; gap: .45rem; }
.tile { position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .85rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .9rem; line-height: 1.25; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.tile:hover { border-color: #d6d3cc; }
.tile.is-active { border-color: var(--magenta); background: var(--magenta-50); box-shadow: 0 0 0 3px rgba(207,0,127,.08); }
.tile b { display: block; font-weight: 600; }
.tile small { display: block; color: var(--muted); font-size: .74rem; }
.tile .shape { flex: none; display: grid; place-items: center; width: 34px; height: 34px; }
.tile .shape i { display: block; border: 1.5px solid currentColor; border-radius: 2px; background: #fff; }
.tile.is-active .shape i { border-color: var(--magenta); background: var(--magenta-100); }
.sides { display: inline-flex; gap: 2px; }
.sides i { width: 12px; height: 16px; border-radius: 2px; border: 1px solid #cfccc5; }
.sides .s-4 { background: conic-gradient(#00a0e9 0 25%, #e4007f 0 50%, #fff100 0 75%, #1e1f1c 0); border-color: transparent; }
.sides .s-1 { background: #1e1f1c; border-color: #1e1f1c; }
.select { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .95rem; }
.select:focus, .qty input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(207,0,127,.12); }
.qty { display: flex; align-items: stretch; max-width: 220px; border-radius: 12px; border: 1.5px solid var(--line); overflow: hidden; }
.qty button { width: 44px; border: 0; background: var(--mist); font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.qty button:hover { background: var(--magenta-50); color: var(--magenta); }
.qty input { flex: 1; min-width: 0; border: 0; text-align: center; font: inherit; font-weight: 600; font-size: 1.05rem; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cfg-side { position: sticky; top: 96px; }
.price-card { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.price-head { padding: 1.3rem 1.4rem 1.1rem; background: var(--ink); color: #fff; }
.price-head .row { display: flex; justify-content: space-between; align-items: center; }
.vat-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--ink-3); }
.vat-switch button { border: 0; background: none; color: #b9b8b2; padding: .25rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 600; cursor: pointer; }
.vat-switch button.is-active { background: #fff; color: var(--ink); }
.price-big { margin-top: .7rem; font-size: 2.3rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.price-big small { font-size: .85rem; font-weight: 600; color: #b9b8b2; }
.price-meta { margin-top: .35rem; font-size: .85rem; color: #b9b8b2; }
.price-body { padding: 1.1rem 1.4rem 1.4rem; }
.mini-head { font-size: .7rem; font-weight: 600; color: var(--muted); margin: 1rem 0 .5rem; }
.mini-head:first-child { margin-top: 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; }
.tier { padding: .5rem .6rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left; cursor: pointer; line-height: 1.25; transition: border-color .15s; }
.tier:hover { border-color: #d6d3cc; }
.tier.is-active { border-color: var(--magenta); background: var(--magenta-50); }
.tier b { display: block; font-size: .9rem; }
.tier span { display: block; font-size: .74rem; color: var(--muted); }
.tip { margin-top: .6rem; padding: .65rem .8rem; border-radius: 12px; background: var(--ok-50); color: var(--ok); font-size: .84rem; line-height: 1.4; }
.tip button { border: 0; background: none; padding: 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .4rem; }
.term { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .6rem .4rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: center; line-height: 1.25; }
.term.is-active { border-color: var(--magenta); background: var(--magenta-50); }
.term b { font-size: .9rem; }
.term small { font-size: .7rem; color: var(--muted); }
.term .date { margin-top: .2rem; padding: .1rem .5rem; border-radius: 8px; background: var(--mist); font-weight: 600; font-size: .84rem; }
.term.is-active .date { background: var(--magenta); color: #fff; }
.term .t-price { font-size: .72rem; color: var(--muted); }
.note { margin-top: .5rem; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.field-info { font-weight: 600; }
.price-actions { display: grid; gap: .5rem; margin-top: 1.2rem; }
.price-actions .btn { width: 100%; }
.price-foot { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: .8rem; font-size: .76rem; color: var(--muted); text-align: center; }
.is-loading .price-big, .is-loading .tiers, .is-loading .terms { opacity: .45; transition: opacity .2s; }
@media (max-width: 980px) { .cfg { grid-template-columns: 1fr; } .cfg-side { position: static; } }

/* Mobil: cena přilepená dole */
.m-price { display: none; }
@media (max-width: 980px) {
    .m-price { display: flex; position: sticky; bottom: 0; z-index: 40; gap: 1rem; align-items: center; justify-content: space-between; padding: .7rem 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
    .m-price b { font-size: 1.25rem; }
    .m-price small { display: block; font-size: .72rem; color: var(--muted); }
}

/* Využití, FAQ */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.use { padding: 1.3rem; border-radius: var(--radius); background: var(--mist); }
.use .emoji { font-size: 1.6rem; }
.use h3 { margin: .4rem 0 .3rem; font-size: 1rem; font-weight: 600; }
.use p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .uses { grid-template-columns: 1fr; } }
.faq { display: grid; gap: .6rem; max-width: 820px; }
.faq details { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 0 1.2rem; }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--magenta); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* Poptávkový formulář (podstránky bez kalkulačky) */
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.form { display: grid; gap: .9rem; padding: 1.6rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.form input, .form textarea { width: 100%; padding: .8rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; }
.form textarea { min-height: 130px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
/* Rozšířený poptávkový formulář (kniha) — rozložení kalkulačky: kontakt ve dvou sloupcích, shrnutí v bočním panelu. */
.inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.inq-note { min-height: 110px; resize: vertical; }
.inq-sum { display: grid; gap: .45rem; margin: 0; font-size: .85rem; }
.inq-sum div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px dashed var(--line); }
.inq-sum dt { color: var(--muted); }
.inq-sum dd { margin: 0; font-weight: 600; text-align: right; }
.cfg .err { color: #b42318; font-size: .8rem; margin-top: .35rem; }
@media (max-width: 820px) { .inquiry { grid-template-columns: 1fr; } .form .row2, .inq-grid { grid-template-columns: 1fr; } }

/* Odhalení při scrollu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .tiles { display: grid; grid-template-columns: 1fr 1fr; }
    .tile { padding: .5rem .6rem; }
}

/*
 * Prémiový tisk: stejný vzhled jako ostatní stránky, jen purpurovou nahrazuje
 * zlatá. Na text tmavší odstín (světlá zlatá na bílé špatně čte), tlačítka
 * zlatá s tmavým písmem.
 */
.theme-premium {
    --magenta: #a88200;
    --magenta-600: #8f6e00;
    --magenta-50: #fbf6e2;
    --magenta-100: #f1e3ad;
}
.theme-premium .btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(215,175,20,.28); }
.theme-premium .btn-primary:hover { background: var(--gold-300); }
.theme-premium .tile.is-active { box-shadow: 0 0 0 3px rgba(215,175,20,.15); }
.theme-premium .form input:focus, .theme-premium .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,175,20,.15); }
.theme-premium .form input[type=file]::file-selector-button { background: var(--gold); color: var(--ink); }

/* Pole pro soubory ve formuláři. */
.form input[type=file], .cfg input[type=file] { padding: .6rem; font-size: .85rem; color: var(--muted); }
.form input[type=file]::file-selector-button, .cfg input[type=file]::file-selector-button { margin-right: .8rem; padding: .45rem .9rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/*
 * Zlaté tlačítko jako metalická fólie: kovový gradient, světlá hrana nahoře,
 * odlesk, který občas přejede (při najetí hned), a zlatá záře.
 */
.btn-gold, .theme-premium .btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #2a2006;
    background: linear-gradient(160deg, #fff1b8 0%, #f2cf4a 22%, #d7af14 48%, #b8900b 72%, #e9c443 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(120,85,0,.35), 0 8px 22px rgba(215,175,20,.35);
    text-shadow: 0 1px 0 rgba(255,240,190,.55);
}
.btn-gold::after, .theme-premium .btn-primary::after {
    content: '';
    position: absolute;
    inset: -20% auto -20% -60%;
    width: 45%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.85) 50%, transparent);
    transform: skewX(-20deg);
    animation: gold-sweep 4.5s ease-in-out infinite;
}
.btn-gold:hover, .theme-premium .btn-primary:hover {
    background: linear-gradient(160deg, #fff6d0 0%, #f5d65a 22%, #e0b81a 48%, #c39a0e 72%, #f0cd52 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(120,85,0,.35), 0 0 0 4px rgba(215,175,20,.18), 0 12px 30px rgba(215,175,20,.5);
}
.btn-gold:hover::after, .theme-premium .btn-primary:hover::after { animation: gold-sweep .9s ease-out; }
@keyframes gold-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* Text stránky z administrace a galerie fotek. */
.prose { max-width: 760px; font-size: 1.05rem; }
.prose h2, .prose h3 { font-weight: 600; line-height: 1.15; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.15rem; }
.prose a { color: var(--magenta); font-weight: 600; }
.prose ul { padding-left: 1.2rem; }
.prose li::marker { color: var(--magenta); }
.gallery { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

/* Poptávkový formulář — chyby a potvrzení. */
.form .err { color: #b42318; font-size: .8rem; margin-top: -.5rem; }
.form .hp, .cfg .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 2rem 1.6rem; border-radius: var(--radius-lg); background: var(--ok-50); color: var(--ok); text-align: center; }
.form-done h3 { margin: .4rem 0; font-size: 1.3rem; font-weight: 600; }
.form-files { font-size: .82rem; color: var(--muted); margin: -.3rem 0 0; padding-left: 1.1rem; }

/* Košík */
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: .68rem; font-weight: 600; line-height: 18px; text-align: center; }
.cart-badge.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; align-items: start; }
.cart-items { display: grid; gap: .7rem; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.cart-item img { width: 52px; height: 52px; padding: 8px; border-radius: 14px; background: var(--magenta-50); }
.cart-item-body b { font-size: 1.02rem; }
.cart-item-qty { margin-left: .5rem; font-weight: 600; color: var(--magenta); }
.cart-item-body small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: .2rem; }
.cart-item-price { font-weight: 600; white-space: nowrap; }
.cart-remove { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.cart-remove:hover { border-color: #b42318; color: #b42318; }
.cart-more { display: inline-block; padding: .6rem 0; font-weight: 600; color: var(--magenta); text-decoration: none; }
.cart-side { position: sticky; top: 96px; }
.cart-empty { text-align: center; padding: 3rem 1rem 1rem; }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--muted); }
.register { margin-top: 1.6rem; max-width: 760px; }
@media (max-width: 900px) {
    .cart { grid-template-columns: 1fr; }
    .cart-side { position: static; }
    .cart-item { grid-template-columns: 44px 1fr auto; }
    .cart-item-price { grid-column: 2; }
}

/* Přihlášení */
.auth-wrap { padding: 4rem 0 2rem; display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); }
.auth-card .h2 { margin-bottom: .2rem; }

/* Zákaznický účet */
.acc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; padding-top: 2rem; align-items: start; }
.acc-side { position: sticky; top: 96px; }
.acc-who { display: flex; gap: .8rem; align-items: center; padding: 0 .4rem 1.1rem; }
.acc-who b { display: block; line-height: 1.2; }
.acc-who small { color: var(--muted); }
.acc-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--magenta); color: #fff; display: grid; place-items: center; font-weight: 600; }
.acc-company { margin-top: .2rem; max-width: 170px; padding: .2rem .4rem; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: .8rem; background: var(--magenta-50); }
.acc-nav { display: grid; gap: .15rem; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .8rem; border-radius: 12px; border: 0; background: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.acc-nav svg { width: 20px; height: 20px; color: var(--muted); }
.acc-nav a:hover, .acc-nav button:hover { background: var(--mist); }
.acc-nav a.is-active { background: var(--magenta-50); color: var(--magenta); }
.acc-nav a.is-active svg { color: var(--magenta); }
.acc-badge { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.acc-main { min-width: 0; padding-bottom: 2rem; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.acc-head .h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.acc-card { padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; margin-bottom: 1rem; }
.acc-card h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.acc-stat { display: block; padding: 1.2rem 1.3rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.acc-stat:hover { border-color: var(--magenta); transform: translateY(-2px); }
.acc-stat b { display: block; font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--magenta); }
.acc-stat span { color: var(--muted); font-size: .88rem; }
.acc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.acc-table th { text-align: left; font-size: .7rem; font-weight: 600; color: var(--muted); padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
.acc-table td { padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.acc-table tr:last-child td { border-bottom: 0; }
.acc-table .ar { text-align: right; white-space: nowrap; }
.acc-table a.row-link { font-weight: 600; color: var(--ink); text-decoration: none; }
.acc-table a.row-link:hover { color: var(--magenta); }
.acc-table small { display: block; color: var(--muted); }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: var(--mist); color: var(--ink); }
.pill-success { background: var(--ok-50); color: var(--ok); }
.pill-warning { background: #fff6e0; color: #8a5a00; }
.pill-danger { background: #fdecec; color: #b42318; }
.pill-info { background: #e9f1ff; color: #1d4ed8; }
.pill-primary { background: var(--magenta-50); color: var(--magenta); }
.acc-empty { padding: 2rem; text-align: center; color: var(--muted); }
.acc-search { width: 100%; max-width: 320px; padding: .6rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; }
.acc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem 1.4rem; }
.meta-grid span { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); margin-bottom: .15rem; }
.flash { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.flash-success { background: var(--ok-50); color: var(--ok); }
.flash-warning { background: #fff6e0; color: #8a5a00; }

/* Průběh zakázky */
.tl { display: flex; gap: 0; overflow-x: auto; padding-bottom: .4rem; }
.tl-step { position: relative; flex: 1 1 0; min-width: 120px; text-align: center; padding-top: 2.6rem; }
.tl-step::before { content: ''; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-step.is-done::before, .tl-step.is-current::before { background: var(--magenta); }
.tl-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--mist); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; z-index: 1; }
.tl-step.is-done .tl-dot { background: var(--magenta); color: #fff; box-shadow: none; }
.tl-step.is-current .tl-dot { background: #fff; box-shadow: 0 0 0 3px var(--magenta); }
.tl-dot svg { width: 16px; height: 16px; }
.tl-lbl { font-weight: 600; font-size: .85rem; }
.tl-meta, .tl-note { font-size: .74rem; color: var(--muted); }
.tl-bar { width: 90px; height: 6px; margin: .35rem auto 0; border-radius: 3px; background: var(--line); overflow: hidden; }
.tl-bar span { display: block; height: 100%; background: var(--ok); }

/* Rozpis položek (sdílený s PDF a veřejnou nabídkou) */
.oi-table { border-collapse: collapse; margin-bottom: 1.25rem; width: 100%; font-size: .9rem; }
.oi-table th { font-size: .7rem; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.oi-table th.ar, .oi-table td.ar { text-align: right; }
.oi-table td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.oi-muted { color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.oi-spec-k { color: var(--muted); }
.oi-cfg-cell { padding-left: 1.25rem; }
.oi-variant-disc { font-size: .7rem; font-weight: 600; color: var(--ok); }
.oi-totals { border-collapse: collapse; width: 100%; max-width: 420px; margin-left: auto; }
.oi-totals td { padding: .35rem .6rem; }
.oi-totals td:last-child { text-align: right; }
.oi-totals .oi-grand td { font-size: 1.2rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: .55rem; }
.oi-note { margin-top: .3rem; font-size: .84rem; color: var(--muted); white-space: pre-line; }
.oi-order-note { margin-top: 1.25rem; padding: .85rem 1rem; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; }
.oi-order-note-label { font-size: .7rem; color: var(--magenta); font-weight: 600; margin-bottom: .25rem; }
.oi-order-note-text { white-space: pre-line; }
.oi-rc-note { margin-top: 1rem; padding: .7rem .9rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; font-size: .85rem; color: #1e40af; }

@media (max-width: 900px) {
    .acc { grid-template-columns: 1fr; padding-top: 1rem; }
    .acc-side { position: static; }
    .acc-nav { display: flex; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; }
    .acc-nav a, .acc-nav button { white-space: nowrap; width: auto; }
    .acc-nav form { flex: none; }
    .acc-stats { grid-template-columns: 1fr; }
    .acc-table .hide-sm { display: none; }
}

/* Položky mřížky účtu se nesmí roztáhnout podle obsahu (vodorovné menu na mobilu). */
.acc > * { min-width: 0; }
.acc-table { table-layout: auto; }
@media (max-width: 900px) { .acc-card { overflow-x: auto; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--magenta-50), var(--mist)); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-body { display: grid; gap: .35rem; padding: 1.1rem 1.2rem 1.3rem; }
.post-body small { color: var(--muted); font-size: .78rem; }
.post-body b { font-size: 1.08rem; line-height: 1.3; }
.post-body span { color: var(--muted); font-size: .9rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--muted); }
.article { max-width: 820px; }
.article-head { padding: 1.6rem 0 1.2rem; }
.article-head .h1 { margin-top: .4rem; font-size: clamp(1.9rem, 4.2vw, 3rem); text-transform: none; letter-spacing: -.02em; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.prose { line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: .5rem 0; cursor: zoom-in; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.prose th, .prose td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose blockquote { margin: 1.2rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--magenta); background: var(--magenta-50); border-radius: 0 12px 12px 0; }

/* Zvětšení fotky (galerie, obrázky v textu) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(17,17,15,.9); cursor: zoom-out; padding: 2rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 4rem); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-cards { display: grid; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.contact-card:hover { border-color: var(--magenta); transform: translateY(-2px); }
.contact-card small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.contact-card b { font-size: 1.15rem; }
.contact-card.is-main { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.contact-card.is-main small { color: var(--magenta-100); }
.contact-card.is-main .contact-ico { background: rgba(255,255,255,.15); color: #fff; }
.contact-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--magenta-50); color: var(--magenta); display: grid; place-items: center; }
.contact-ico svg { width: 24px; height: 24px; }
.contact-links { display: flex; gap: .9rem; margin-top: .3rem; font-size: .85rem; }
.contact-links a { color: var(--magenta); font-weight: 600; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; isolation: isolate; /* Leaflet panely (z-index 400–1000) jinak lezou přes mega menu */ }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: 1.6rem 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.team-photo { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; margin-bottom: .7rem; background: var(--magenta-50); display: grid; place-items: center; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-photo span { font-weight: 600; font-size: 1.6rem; color: var(--magenta); }
.team-card b { font-size: 1.05rem; }
.team-card small { color: var(--muted); font-size: .86rem; line-height: 1.35; min-height: 2.4em; }
.team-links { display: grid; gap: .1rem; margin-top: .5rem; font-size: .86rem; }
.team-links a { color: var(--ink); text-decoration: none; }
.team-links a:hover { color: var(--magenta); }
.billing { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.billing dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.4rem; margin: 0; }
.billing dt { font-size: .72rem; font-weight: 600; color: var(--muted); padding-top: .2rem; }
.billing dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .contact-grid, .billing { grid-template-columns: 1fr; } }

/* Realizace */
.chip-n { margin-left: .3rem; font-size: .72rem; opacity: .6; }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.ref { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); cursor: zoom-in; }
.ref[hidden] { display: none; }
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ref:hover img { transform: scale(1.05); }
.ref-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; background: linear-gradient(transparent, rgba(17,17,15,.82)); color: #fff; display: grid; gap: .1rem; transform: translateY(35%); opacity: .0; transition: transform .25s, opacity .25s; }
.ref:hover .ref-cap, .ref:focus-visible .ref-cap { transform: none; opacity: 1; }
.ref-cap b { font-size: 1rem; line-height: 1.25; }
.ref-cap small { color: #d2d1cc; font-size: .76rem; }
@media (hover: none) { .ref-cap { transform: none; opacity: 1; } }

/* Mapa na Kontaktu — šedý podklad jako Mapa zákazníků v aplikaci, růžový špendlík. */
.contact-map.leaflet-container { background: #e4e4e2; font-family: inherit; }
.contact-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(.9); }
.contact-map .map-pin { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.contact-map .leaflet-popup-content-wrapper { border-radius: 12px; }
.contact-map .leaflet-popup-content { margin: .7rem .9rem; font-size: .88rem; line-height: 1.45; }
.contact-map .leaflet-popup-content a { color: var(--magenta); font-weight: 600; }

/* Nástroje pod cenou a box pro nestandardní zakázky */
.price-tools { display: flex; justify-content: center; gap: 1.1rem; margin-top: .9rem; flex-wrap: wrap; }
.price-tool { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: 0; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; }
.price-tool:hover { color: var(--magenta); }
.price-tool svg { width: 16px; height: 16px; }
.custom-job { margin-top: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-lg); background: var(--mist); border: 1px solid var(--line); }
.custom-job b { display: block; margin: .3rem 0 .3rem; font-size: 1.02rem; line-height: 1.3; }
.custom-job p { margin: 0 0 .8rem; font-size: .86rem; color: var(--muted); }
.custom-job-contact { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .8rem; font-size: .84rem; }
.custom-job-contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.custom-job-contact a:hover { color: var(--magenta); }

/* Loga zákazníků — šedá, barevná po najetí */
.clients { padding: 72px 0 8px; text-align: center; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.4rem 2.4rem; margin: 1.4rem 0 1.4rem; }
.clients-row img { height: 40px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.clients-row a:hover img, .clients-row span:hover img { filter: none; opacity: 1; }

/*
 * Podstránky v rozvržení starého webu: úvod s obrázkem na „štětcovém" podkladu,
 * bloky (text a obrázek ve sloupcích, karty, galerie), šedé sekce se štětcovými
 * hranami jako na úvodu.
 */
.anchor { scroll-margin-top: 96px; }
.p-hero.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding: 2rem 0 3rem; }
.p-hero-cta { margin-top: 1.6rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.p-hero-media { position: relative; display: grid; place-items: center; min-height: 300px; }
.p-hero-media::before { content: ''; position: absolute; inset: 6% 2% 4% 6%; background: var(--magenta-50);
    border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; transform: rotate(-4deg); }
.p-hero-media img { position: relative; width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 24px 34px rgba(30,31,28,.16)); }
@media (max-width: 820px) {
    .p-hero.has-media { grid-template-columns: 1fr; gap: 1.2rem; }
    .p-hero-media { min-height: 0; order: -1; }
    .p-hero-media img { max-height: 260px; }
}

.blk + .blk:not(.blk-mist) { padding-top: 24px; }
.blk-mist { position: relative; background: var(--mist); margin: 40px 0; }
/* Natržený okraj šedých ploch: bloky obsahu stránek, šedé sekce šablon i patička (ta jen nahoře). */
.section-mist, .footer { position: relative; }
.blk-mist::before, .blk-mist::after, .section-mist::before, .section-mist::after, .footer::before { content: ''; position: absolute; left: 0; right: 0; height: 40px; background: var(--mist);
    pointer-events: none; -webkit-mask: url('img/brush-edge.svg') bottom / 100% 100% no-repeat; mask: url('img/brush-edge.svg') bottom / 100% 100% no-repeat; }
.blk-mist::before, .section-mist::before, .footer::before { bottom: calc(100% - 1px); }
.blk-mist::after, .section-mist::after { top: calc(100% - 1px); transform: scale(-1, -1); }
/* Dvě šedé sekce za sebou = jedna plocha (na starém webu jedna sekce). */
.blk-mist.join-next { margin-bottom: 0; padding-bottom: 48px; }
.blk-mist.join-next::after { display: none; }
.blk-mist.join-prev { margin-top: 0; padding-top: 48px; }
.blk-mist.join-prev::before { display: none; }
.blk-title { text-align: center; max-width: 22ch; margin: 0 auto 2.6rem; text-wrap: balance; }
.blk-title::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--magenta); margin: 1.1rem auto 0; }
.blk-intro { margin: -1rem auto 2rem; text-align: center; }

.blk-cols { display: grid; gap: 3rem; align-items: center; }
.blk-cols-2 { grid-template-columns: 1fr 1fr; }
.blk-cols-3 { grid-template-columns: repeat(3, 1fr); align-items: start; gap: 2rem; }
.blk-cols-2:not(:has(.is-image)) { align-items: start; }  /* text vedle textu odshora, s fotkou na střed */
.blk-cols-1 .blk-col { max-width: 820px; margin: 0 auto; }
.blk-col { min-width: 0; }
.blk-col.is-image { display: grid; place-items: center; }
.blk-img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; border-radius: var(--radius-lg); margin-bottom: 1.4rem; }
.blk-col.is-image .blk-img { margin: 0; }
.blk-prose { max-width: none; }
.blk-prose > :first-child { margin-top: 0; }
.blk-prose > :last-child { margin-bottom: 0; }
.blk-prose h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.blk-prose ul { list-style: none; padding: 0; }
.blk-prose li { position: relative; padding-left: 2rem; margin: .55rem 0; }
.blk-prose li::before { content: ''; position: absolute; left: 0; top: .25em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--magenta-100) no-repeat center / 62%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23cf007f' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E"); }
/* Odrážka jen s odkazem (menu návodů) → šipka místo fajfky. */
.blk-prose li:has(> a:only-child)::before { background-color: transparent; background-size: 80%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23cf007f' d='M7.3 4.3a1 1 0 0 1 1.4 0l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4L11.6 10 7.3 5.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E"); }
.blk-prose li > a:only-child { font-weight: 600; text-decoration: none; color: inherit; }
.blk-prose li > a:only-child:hover { color: var(--magenta); }
.theme-premium .blk-prose li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23a88200' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E"); }
.blk-prose table { background: #fff; border-radius: var(--radius); overflow: hidden; }
.blk-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.blk-actions .btn { white-space: normal; text-align: center; }
.blk-actions-center { justify-content: center; margin-top: 2.4rem; }

.blk-cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.blk-cards-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.blk-cards-2, .blk-cards-4 { grid-template-columns: repeat(2, 1fr); }
.blk-cards-4:not(.has-media) { grid-template-columns: repeat(4, 1fr); }
.blk-card { display: flex; flex-direction: column; padding: 1.6rem 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.blk-mist .blk-card { border-color: transparent; box-shadow: var(--shadow); }
.blk-card.is-plain { position: relative; padding-top: 1.9rem; }
.blk-card.is-plain::before { content: ''; position: absolute; top: 0; left: 1.5rem; width: 40px; height: 4px; border-radius: 0 0 4px 4px; background: var(--magenta); }
.blk-card-media { margin: -1.6rem -1.5rem 1.3rem; height: clamp(180px, 18vw, 240px); background: var(--magenta-50); display: grid; place-items: center; padding: 1.2rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.blk-card-media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.blk-card-media.is-full { padding: 0; overflow: hidden; }
.blk-card-media.is-full img { object-fit: cover; }
.blk-card-icon { width: 64px; height: 64px; padding: 12px; border-radius: 18px; background: var(--magenta-50); margin-bottom: 1rem; }
.blk-card-meta { font-size: .76rem; font-weight: 600; color: var(--magenta); margin-bottom: .3rem; }
.blk-card h3 { margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 600; line-height: 1.2; }
.blk-card-text { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.blk-card-text p { margin: 0 0 .7em; }
.blk-card-text p:last-child { margin: 0; }
.blk-card-text strong { color: var(--ink); }
.blk-card-link { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--magenta); text-decoration: none; }
.blk-card-link svg { width: 1em; height: 1em; transition: transform .15s; }
.blk-card-link:hover svg { transform: translateX(3px); }
.blk .gallery { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
/* Blok Video: na šířku textu, se zaoblením jako obrázky. */
.blk-video { max-width: 820px; margin: 0 auto; }
.blk-video video { display: block; width: 100%; height: auto; max-height: 520px; border-radius: var(--radius-lg); background: var(--mist); }
.blk-video figcaption { margin-top: .9rem; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
    .blk-cols-2, .blk-cols-3 { grid-template-columns: 1fr; gap: 2rem; }
    .blk-cards, .blk-cards-4:not(.has-media) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blk-cards, .blk-cards-2, .blk-cards-4, .blk-cards-4:not(.has-media) { grid-template-columns: 1fr; }
    .blk-mist { margin: 24px 0; }
    .blk-title { margin-bottom: 1.8rem; }
}

/* Kalkulačka textilu: obrázkový výběr modelu a barvy (katalog Malfini). */
.garment-search { margin-bottom: .7rem; }
/* Nástroje nad výběrem modelu: hledání + „Zvětšit katalog" (celoobrazovkový výběr). */
.garment-tools { display: flex; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.garment-tools .garment-search { margin: 0; flex: 1; min-width: 0; }
.garment-tools .garment-zoom { margin-left: auto; }
.garment-zoom { white-space: nowrap; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .55rem .95rem; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; transition: border-color .15s; }
.garment-zoom:hover { border-color: var(--magenta); }
.garment-browser-head { display: none; }
.garment-browser.is-big { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column; padding: 1rem clamp(1rem, 3vw, 2.5rem) 1.5rem; }
.garment-browser.is-big .garment-browser-head { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.garment-browser.is-big .garment-browser-head b { font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.garment-browser.is-big .garment-browser-head input { flex: 1; min-width: 0; margin: 0; }
.garment-browser.is-big .garments { flex: 1; max-height: none; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; align-content: start; }
.garment-browser.is-big .garments.is-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.garment-browser.is-big .garment { padding: .8rem .8rem 1rem; }
.garment-browser.is-big .garment b { font-size: 1.05rem; }
html.garment-zoom-open { overflow: hidden; }
.garments { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .55rem; max-height: 520px; overflow-y: auto; padding: 2px 4px 2px 2px; overscroll-behavior: contain; }
.garment { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .5rem .7rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: center; font: inherit; transition: border-color .15s, box-shadow .15s; }
.garment:hover { border-color: var(--magenta-100); box-shadow: var(--shadow); }
.garment.is-active { border-color: var(--magenta); background: var(--magenta-50); box-shadow: 0 0 0 2px var(--magenta-100); }
.garment-img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: .3rem; padding: 6px; border-radius: 10px; background: var(--mist); }
.garment-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.garment b { font-size: .84rem; line-height: 1.2; }
.garment small { font-size: .74rem; color: var(--muted); line-height: 1.2; }
.garment-gsm { margin-top: .1rem; font-weight: 600; color: var(--ink) !important; }
.garment-detail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-bottom: 1rem; }
.garment-preview { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .7rem; border-radius: var(--radius); background: var(--mist); }
.garment-preview a { position: relative; display: block; border-radius: 10px; cursor: zoom-in; }
.garment-preview a:hover { background: rgba(255,255,255,.6); }
.garment-preview img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.garment-preview svg { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.garment-preview small { grid-column: 1 / -1; text-align: center; font-size: .74rem; color: var(--muted); }
.garment-info b { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.garment-info dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 0 0 .6rem; font-size: .88rem; }
.garment-info dt { color: var(--muted); }
.garment-info dd { margin: 0; font-weight: 600; }
.garment-info p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .4rem; max-height: 340px; overflow-y: auto; padding: 2px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem .25rem .4rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.swatch.is-active { border-color: var(--magenta); background: var(--magenta-50); }
.swatch-img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 3px; border-radius: 8px; background: var(--mist); }
.swatch-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.swatch small { font-size: .68rem; line-height: 1.15; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
/* Propisky: fotky naležato (Adore ~5 : 1) — širší karty, náhled pod sebou. */
.garments.is-wide { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.garments.is-wide .garment-img, .swatches.is-wide .swatch-img { aspect-ratio: 3 / 1; padding: 4px 8px; overflow: hidden; background: #fff; }
.garments.is-wide .garment-img img, .swatches.is-wide .swatch-img img { width: 100%; height: 100%; object-fit: contain; }
.garment-detail.is-wide { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.garment-detail.is-wide .garment-preview { grid-template-columns: 1fr; background: #fff; border: 1.5px solid var(--line); }
.garment-detail.is-wide .garment-preview img { aspect-ratio: 4 / 1; }
.swatches.is-wide { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.swatches.is-wide .swatch-img { padding: 2px 4px; }
@media (max-width: 640px) {
    .garment-detail { grid-template-columns: 1fr; }
    .garment-detail.is-wide { grid-template-columns: 1fr; }
    .garments.is-wide { grid-template-columns: repeat(2, 1fr); }
    .garments { grid-template-columns: repeat(3, 1fr); gap: .4rem; max-height: 440px; }
    .garment-browser.is-big .garments { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .garment-browser.is-big .garment-browser-head b { display: none; }
    .garment { padding: .4rem .3rem .5rem; }
    .garment b { font-size: .76rem; }
    .garment small { font-size: .68rem; }
}

/* ---------- Časté dotazy a slovníček (/faq) ---------- */
.faq-hero { padding: 1.6rem 0 2.6rem; max-width: 820px; }
.faq-hero .h1 { margin: .3rem 0 .8rem; }
.faq-search { display: flex; align-items: center; gap: .7rem; margin-top: 1.8rem; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.faq-search:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 4px var(--magenta-50), var(--shadow); }
.faq-search svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--muted); }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 1rem 0; font: inherit; font-size: 1.05rem; color: var(--ink); }
.faq-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.faq-jump .chip { text-decoration: none; color: var(--ink); }
.faq-main { padding-top: 0; }
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.faq-aside { position: sticky; top: 100px; display: grid; gap: 1.6rem; }
.faq-aside nav { display: grid; gap: .15rem; }
.faq-aside .mini-head { margin-top: 0; }
.faq-aside nav a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); }
.faq-aside nav a:hover { background: var(--magenta-50); color: var(--magenta); }
.faq-aside nav small { min-width: 1.6rem; padding: .1rem .45rem; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: .72rem; text-align: center; }
.faq-aside-help { padding: 1.2rem; border-radius: var(--radius-lg); background: var(--mist); font-size: .88rem; }
.faq-aside-help p { margin: .3rem 0 .5rem; color: var(--muted); }
.faq-aside-help a { font-weight: 600; word-break: break-all; }
.faq-topics { display: grid; gap: 3rem; }
.faq-topic-title { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 600; }
.faq-topics .faq { max-width: none; }
.faq summary:hover { color: var(--magenta); }
.faq details[open] { border-color: var(--magenta-100); box-shadow: var(--shadow); }
.faq-answer { padding: 0 0 1.1rem; color: var(--muted); line-height: 1.7; }
.faq-answer p { margin: 0 0 .7rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--magenta); font-weight: 600; }
.faq-empty { padding: 1.4rem; border-radius: var(--radius-lg); border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.faq-topics [hidden], .gl [hidden], .faq-empty[hidden], .gl-letters[hidden] { display: none !important; }

.gl-letters { position: sticky; top: 84px; z-index: 5; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 2rem; padding: .5rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.gl-letters a { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; text-decoration: none; font-weight: 600; color: var(--ink); }
.gl-letters a:hover { background: var(--magenta); color: #fff; }
.gl { columns: 3 300px; column-gap: 1rem; }
.gl-group { display: block; scroll-margin-top: 160px; }
.gl-letter { display: block; padding: .2rem 0 .6rem .2rem; font-size: 2rem; font-weight: 600; line-height: 1; color: var(--magenta); break-after: avoid; }
.gl dl { margin: 0; }
.gl-term { break-inside: avoid; margin-bottom: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.gl-term dt { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.gl-term dd { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; white-space: pre-line; }

.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.guide { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.guide:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.guide b { font-size: 1.02rem; color: var(--magenta); }
.guide span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.guide .card-cta { margin-top: auto; padding-top: .6rem; }

@media (max-width: 1020px) {
    .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; gap: 0; }
    .faq-aside { display: none; }
}
@media (max-width: 640px) {
    .gl-letters { position: static; border-radius: var(--radius-lg); }
    .guides { grid-template-columns: 1fr; }
}

/* Razítko: řádky textu vedle náhledu otisku (obdélník / kruh v poměru modelu) */
.stamp-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: start; }
.stamp-lines { display: grid; gap: .45rem; }
.stamp-preview { display: grid; justify-items: center; gap: .5rem; padding: 1.2rem; background: var(--mist); border-radius: var(--radius); }
.stamp-preview small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.stamp-imprint { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4%; box-sizing: border-box;
    border: 2px solid #1d3f91; border-radius: 4px; background: #fff; color: #1d3f91; line-height: 1.15; text-align: center; overflow: hidden;
    font-family: Arial, Helvetica, sans-serif; }
.stamp-imprint.is-round { border-radius: 50%; padding: 14%; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px #1d3f91; }
.stamp-imprint span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.15em; }
.stamp-imprint span.is-first { font-weight: 600; }
@media (max-width: 720px) { .stamp-editor { grid-template-columns: 1fr; } }
/* Obrázkové možnosti vlastnosti (podstavec vlajky…) — bez vlastního scrollu. */
.option-images { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: none; overflow: visible; }
.option-images .garment { padding: .4rem .4rem .55rem; }
.option-images .garment-img { padding: 2px; }
.option-images .garment-img { aspect-ratio: 4 / 3; }

/* Chybové stránky (404, 419, 500) */
.err-page { padding: 88px 0 104px; }
.err-page .h1 { margin: .4rem 0 1rem; }
.err-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.err-actions .btn-ghost { color: var(--ink); }
.err-sub { margin: 4rem 0 1rem; font-size: 1rem; font-weight: 600; color: var(--muted); }
.err-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.err-links a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 14px; background: var(--mist, #f5f5f7); color: var(--ink); text-decoration: none; font-weight: 500; transition: background .15s; }
.err-links a:hover { background: #ececf0; }
.err-links img { width: 32px; height: 32px; flex: none; }
@media (max-width: 640px) { .err-page { padding: 56px 0 72px; } .err-sub { margin-top: 3rem; } }

/* Cookie lišta: karta vlevo dole, obsah webu zůstává přístupný. Obě volby
   (přijmout / jen nezbytné) stejně výrazné — tak to chce dozorový úřad. */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(420px, calc(100vw - 32px)); padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 12px 32px rgba(0,0,0,.12); font-size: .875rem; line-height: 1.45; }
.consent[hidden], .consent [hidden] { display: none; }
.consent-title { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.consent p { margin: 0 0 16px; color: var(--muted); }
.consent p a { color: var(--ink); }
.consent-opts { display: grid; gap: 8px; margin: 0 0 16px; }
.consent-opts label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--mist); cursor: pointer; }
.consent-opts input { margin-top: 3px; accent-color: var(--magenta); }
.consent-opts b { display: block; font-weight: 600; }
.consent-opts span { color: var(--muted); }
.consent-opts b { color: var(--ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-consent { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) { .consent { left: 8px; bottom: 8px; width: calc(100vw - 16px); } }
