/* ==========================================================================
   e-spomienka — úvodná stránka, objednávka, rodinný účet a editor.
   Vizuálny jazyk: kamenné odtiene (stone 50–950), čierne akcenty, DM Sans,
   tlačidlá v tvare pilulky, zaoblené karty a jemné objavovanie sekcií.
   Dlhé texty (príbeh v editore) ostávajú v pätkovom Source Serif 4.
   ========================================================================== */

@font-face { font-family: 'DM Sans'; font-weight: 100 1000; font-style: normal; font-display: swap;
  src: url("../fonts/dm-sans-var.105a71ec2160.woff2") format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 100 1000; font-style: italic; font-display: swap;
  src: url("../fonts/dm-sans-var-italic.54234f219042.woff2") format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/source-serif-4-400.3c36ee898b6c.woff2") format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/source-serif-4-600.b98c3789ef03.woff2") format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/source-serif-4-400-italic.3930af934880.woff2") format('woff2'); }

:root {
  --stone-50: #fafaf9; --stone-100: #f5f5f4; --stone-200: #e7e5e4; --stone-300: #d6d3d1;
  --stone-400: #a8a29e; --stone-500: #78716c; --stone-600: #57534e; --stone-700: #44403c;
  --stone-800: #292524; --stone-900: #1c1917; --stone-950: #0c0a09;
  --accent: #0c0a09;
  --accent-deep: #000;
  --accent-soft: #f5f5f4;
  /* staré názvy premenných ostávajú kvôli šablónam účtu a editora */
  --plum: var(--accent);
  --plum-deep: var(--accent-deep);
  --plum-soft: var(--accent-soft);
  --sage: var(--stone-900);
  --brass: var(--stone-500);
  --canvas: var(--stone-50);
  --paper: #ffffff;
  --ink: var(--stone-950);
  --ink-2: var(--stone-700);
  --muted: #6b6560;
  --line: var(--stone-200);
  --line-2: var(--stone-300);
  --error: #b42318;
  --ok: #166534;
  --display: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --sans: var(--display);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --radius: 10px;
  --radius-lg: 15px;
  --radius-xl: 24px;
  --pill: 9999px;
  --shell: 80rem;
  --gutter: 1rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(12,10,9,.04), 0 10px 30px rgba(12,10,9,.06);
  --shadow-lg: 0 30px 80px rgba(12,10,9,.18);
}
@media (min-width: 40rem) { :root { --gutter: 1.5rem; } }
@media (min-width: 64rem) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--stone-600); }
:focus-visible { outline: 2px solid var(--stone-950); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.625rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.eyebrow { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--stone-500); }
.lead { font-size: 1.1875rem; color: var(--ink-2); }

/* ---------- tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.75rem; border-radius: var(--pill); border: 1px solid transparent; font: 500 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; background: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--stone-800); border-color: var(--stone-800); color: #fff; }
.btn-ghost { border-color: var(--stone-300); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; border-color: #fff; color: var(--stone-950); }
.btn-white:hover { background: var(--stone-100); color: var(--stone-950); }
.btn-ghost-white { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-sm { min-height: 2.5rem; padding: 0 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- hlavička a pätička ---------- */
.hdr { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hdr .shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); justify-self: center; grid-column: 2; grid-row: 1; }
.brand img { width: 84px; height: auto; }
.brand span { font: 500 .8125rem/1.2 var(--sans); color: var(--muted); border-left: 1px solid var(--line); padding-left: .6rem; }
.nav { display: none; gap: 1.75rem; align-items: center; grid-column: 1; grid-row: 1; }
.nav a { color: var(--stone-700); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.hdr-actions { display: flex; gap: .5rem; align-items: center; justify-self: end; grid-column: 3; grid-row: 1; }
@media (max-width: 55.99rem) {
  .hdr .shell { grid-template-columns: auto 1fr; }
  .brand { justify-self: start; grid-column: 1; }
  .hdr-actions { grid-column: 2; }
}
@media (max-width: 30rem) { .brand span { display: none; } .hdr .btn-ghost { display: none; } }
@media (min-width: 56rem) { .nav { display: flex; } }
/* Telefón v hlavičke: na mobile kratší zápis 0951 …, odkaz tel: rovnaký. */
.hdr-phone { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .35rem; color: var(--ink); font: 600 .9375rem/1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.hdr-phone svg { color: var(--plum); flex: none; }
.hdr-phone:hover { color: var(--plum); }
.hdr-phone-local { display: none; }
@media (max-width: 40rem) {
  .brand span { display: none; }
  .hdr-phone-intl { display: none; }
  .hdr-phone-local { display: inline; }
}
@media (max-width: 23.5rem) { .hdr-phone { font-size: .875rem; } .hdr-phone svg { display: none; } }
/* S navigáciou je v strede hlavičky menej miesta — podnadpis loga skryjeme. */
@media (min-width: 56rem) and (max-width: 74.99rem) { .brand span { display: none; } }
.ftr { background: var(--stone-950); color: var(--stone-400); padding: 4rem 0 2rem; font-size: .9375rem; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { color: var(--stone-300); }
.ftr .cols { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .ftr .cols { grid-template-columns: 2fr 1fr 1fr; } }
.ftr h2 { font: 600 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stone-500); margin-bottom: 1rem; }
.ftr ul { list-style: none; padding: 0; }
.ftr li + li { margin-top: .5rem; }
.ftr .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: var(--stone-500); }

/* ---------- objavovanie pri skrolovaní ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- úvodná stránka ---------- */
.hero { padding: 3.5rem 0 3rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .shell { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero .shell { grid-template-columns: 1.15fr .85fr; } .hero { padding: 5rem 0 4.5rem; } }
.hero h1 { margin: .75rem 0 1.25rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-visual { position: relative; max-width: 26rem; margin: 0 auto; width: 100%; }
.phone { border-radius: 2rem; border: 8px solid #231c25; background: #fff; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 9 / 17; }
.phone iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.plate-float { position: absolute; left: -2.5rem; bottom: -2rem; width: 7.5rem; filter: drop-shadow(0 10px 22px rgba(0,0,0,.2)); }
@media (max-width: 40rem) { .plate-float { left: -.5rem; bottom: -2.5rem; width: 6rem; } }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { margin-top: .75rem; color: var(--ink-2); }
.steps { display: grid; gap: 1.5rem; list-style: none; padding: 0; counter-reset: s; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 .9rem/1 var(--sans); color: var(--brass); letter-spacing: .06em; }
.steps h3 { margin: .75rem 0 .5rem; }
.steps p { color: var(--ink-2); }
.promise { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .promise { grid-template-columns: repeat(2, 1fr); } }
.promise div { border-left: 3px solid var(--brass); padding: .25rem 0 .25rem 1.1rem; }
.promise h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.promise p { color: var(--ink-2); }

.packages { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .packages { grid-template-columns: repeat(3, 1fr); } }
.pkg { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; position: relative; }
.pkg-hl { border-color: var(--plum); }
.pkg .badge { position: absolute; top: -.8rem; left: 1.5rem; background: var(--plum); color: #fff; font: 600 .75rem/1 var(--sans); padding: .4rem .7rem; border-radius: 999px; letter-spacing: .03em; }
.pkg .price { font: 600 2.4rem/1.1 var(--serif); margin: .75rem 0 .25rem; }
.pkg .price small { font: 500 1rem var(--sans); color: var(--muted); }
.pkg p.summary { color: var(--ink-2); margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin-bottom: 1.5rem; flex: 1; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.ticks li::before { content: ''; position: absolute; left: .15rem; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.addons { margin-top: 1.5rem; display: grid; gap: .5rem; font-size: .96875rem; color: var(--ink-2); }

.demos { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .demos { grid-template-columns: repeat(3, 1fr); } }
.demo { display: flex; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; text-decoration: none; color: var(--ink); }
.demo:hover { border-color: var(--plum); color: var(--ink); }
.demo img, .demo .ph { width: 4.5rem; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; background: var(--canvas); flex: none; }
.demo strong { font-family: var(--serif); font-size: 1.15rem; display: block; line-height: 1.25; }
.demo span { color: var(--muted); font-size: .9375rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--plum); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: .6rem; color: var(--ink-2); }

/* ---------- formuláre ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
@media (min-width: 48rem) { .card { padding: 2rem; } }
.card + .card { margin-top: 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field > label, .label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.field .help { font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.field .err, .errorlist { color: var(--error); font-size: .9375rem; font-weight: 600; margin-top: .3rem; list-style: none; padding: 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search],
input[type=date], input[type=url], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff; font-size: 1rem; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: 2px solid rgba(12,10,9,.1); outline-offset: 0; }
textarea { resize: vertical; min-height: 6rem; }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 2fr 1fr 1fr; } .row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.check { display: flex; gap: .65rem; align-items: flex-start; margin: .6rem 0; font-size: .96875rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; accent-color: var(--plum); }
.choices { display: grid; gap: .6rem; }
.choices-2 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.choice { position: relative; display: block; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: .85rem 1rem .85rem 2.75rem; background: #fff; cursor: pointer; }
.choice input { position: absolute; left: 1rem; top: 1.05rem; width: 1.15rem; height: 1.15rem; accent-color: var(--plum); }
.choice:has(input:checked) { border-color: var(--plum); background: var(--plum-soft); }
.choice strong { display: block; }
.choice .meta { font-size: .875rem; color: var(--muted); display: block; margin-top: .15rem; }
.choice .price-tag { float: right; font-weight: 600; margin-left: .75rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; }
.alert-ok, .alert-success { background: #e6f1ee; color: #1a4b43; }
.alert-err, .alert-error { background: #fbeae9; color: #7c211c; }
.alert-info, .alert-warning { background: #fff5dc; color: #57420f; }
.messages { list-style: none; padding: 0; margin: 1rem 0; }

/* ---------- objednávka ---------- */
.order-layout { display: grid; gap: 1.5rem; align-items: start; padding-top: 2rem; }
@media (min-width: 62rem) { .order-layout { grid-template-columns: minmax(0, 1fr) 22rem; } }
.order-step { counter-increment: step; }
.order-step h2 { font-size: 1.4rem; display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.1rem; }
.order-step h2::before { content: counter(step); font: 600 .875rem/1 var(--sans); color: #fff; background: var(--plum); width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; transform: translateY(-.15rem); }
.order-form { counter-reset: step; }
.inquiry-steps { list-style: none; counter-reset: iq; display: grid; gap: .75rem; margin: 0; padding: 0; }
.inquiry-steps li { counter-increment: iq; position: relative; padding-left: 2.25rem; color: var(--ink-2); }
.inquiry-steps li::before { content: counter(iq); position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--brass, var(--line)); color: var(--plum); font: 600 .8125rem/1.4rem var(--sans); text-align: center; }
.summary { position: sticky; top: 5.5rem; }
.summary h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.summary table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.summary td { padding: .4rem 0; vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.summary .total td { border-top: 1px solid var(--line); padding-top: .75rem; font-weight: 600; font-size: 1.125rem; }
.summary .calc { color: var(--muted); font-size: .875rem; min-height: 1.3em; }
.mobile-total { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: .5rem; align-items: baseline; justify-content: center; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--plum-deep); color: #fff; text-decoration: none; font-size: 1rem; }
.mobile-total strong { font-size: 1.15rem; }
.mobile-total span { font-size: .875rem; color: #d9c8da; margin-left: .5rem; }
.mobile-total:hover { color: #fff; }
@media (min-width: 62rem) { .mobile-total { display: none; } }
@media (max-width: 61.99rem) { .order-form { padding-bottom: 3.5rem; } }
.plate-preview { width: 11rem; margin: 0 auto 1.25rem; transition: width .2s; }
.plate-preview.size-70 { width: 14rem; }
.person { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1rem 1rem .2rem; margin-bottom: .75rem; }
.person legend { font-weight: 600; padding: 0 .3rem; }
.autocomplete { position: relative; }
.autocomplete ul { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: #fff; border: 1.5px solid var(--line-2); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); list-style: none; padding: 0; max-height: 16rem; overflow: auto; box-shadow: var(--shadow); }
.autocomplete li { padding: .55rem .85rem; cursor: pointer; }
.autocomplete li[aria-selected="true"], .autocomplete li:hover { background: var(--plum-soft); }
.autocomplete li small { color: var(--muted); }
[data-show-when] { display: none; }
[data-show-when].is-visible { display: block; }

/* ---------- detail objednávky ---------- */
.status-pill { display: inline-block; padding: .3rem .75rem; border-radius: 999px; font: 600 .8125rem/1.2 var(--sans); background: var(--plum-soft); color: var(--plum); }
.status-paid, .status-closed, .status-installed { background: #e6f1ee; color: #1a4b43; }
.status-cancelled, .status-expired { background: #f1eceb; color: #6b5e5c; }
.paybox { display: grid; gap: 1.5rem; align-items: center; }
.paybox > * { min-width: 0; }
@media (min-width: 40rem) { .paybox { grid-template-columns: 12rem 1fr; } }
.paybox svg { width: 100%; max-width: 12rem; background: #fff; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.timeline-steps { list-style: none; padding: 0; }
.timeline-steps li { padding: .45rem 0 .45rem 1.75rem; position: relative; color: var(--muted); }
.timeline-steps li::before { content: ''; position: absolute; left: .3rem; top: .95rem; width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.timeline-steps li.done { color: var(--ink); }
.timeline-steps li.done::before { background: var(--sage); border-color: var(--sage); }
.timeline-steps li.current { color: var(--ink); font-weight: 600; }
.timeline-steps li.current::before { border-color: var(--plum); background: var(--plum); }

/* ---------- účet a editor ---------- */
.page-head { padding: 2rem 0 1.25rem; }
.page-head p { color: var(--ink-2); margin-top: .35rem; }
.crumbs { font-size: .9375rem; margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.grid-cards { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
.tile { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; text-decoration: none; color: var(--ink); position: relative; }
a.tile:hover { border-color: var(--plum); color: var(--ink); }
.tile h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.tile p { color: var(--muted); font-size: .9375rem; }
.tile .count { position: absolute; top: 1.1rem; right: 1.2rem; font: 600 .8125rem/1 var(--sans); background: var(--plum); color: #fff; padding: .35rem .55rem; border-radius: 999px; }
.tile .state { font-size: .875rem; font-weight: 600; color: var(--sage); }
.tile .state.todo { color: var(--brass); }
table.list { width: 100%; border-collapse: collapse; font-size: .96875rem; }
table.list th { text-align: left; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--line); }
table.list td { padding: .7rem .5rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.editor-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; scrollbar-width: none; }
.editor-tabs a { padding: .65rem .9rem; white-space: nowrap; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; font-weight: 500; }
.editor-tabs a[aria-current] { color: var(--plum); border-color: var(--plum); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border: 1.5px solid var(--line-2); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--canvas); position: sticky; top: 4.25rem; z-index: 5; }
.rte-toolbar button { min-width: 2.6rem; height: 2.6rem; border: 1px solid transparent; background: none; border-radius: 4px; cursor: pointer; font-weight: 600; padding: 0 .6rem; }
.rte-toolbar button:hover, .rte-toolbar button[aria-pressed="true"] { background: #fff; border-color: var(--line-2); }
.rte { min-height: 22rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius); background: #fff; font: 1.125rem/1.65 var(--serif); }
.rte:focus { outline: 2px solid rgba(12,10,9,.1); border-color: var(--plum); }
.rte > * + * { margin-top: .9em; }
.rte h2 { font-size: 1.3rem; } .rte h3 { font-size: 1.15rem; }
.rte blockquote { border-left: 3px solid var(--brass); padding-left: 1em; font-style: italic; color: var(--ink-2); }
.rte ul, .rte ol { padding-left: 1.4em; }
.rte:empty::before { content: attr(data-placeholder); color: var(--muted); }
.save-state { font-size: .875rem; color: var(--muted); min-height: 1.3em; }
.save-state.ok { color: var(--ok); } .save-state.err { color: var(--error); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr)); gap: .75rem; list-style: none; padding: 0; }
.media-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-grid li.dragging { opacity: .4; }
.media-grid li.is-portrait { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum); }
.media-grid .thumb { aspect-ratio: 1; background: var(--canvas); display: flex; align-items: center; justify-content: center; font-size: .875rem; color: var(--muted); text-align: center; padding: .25rem; }
.media-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-grid .body { padding: .5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.media-grid input[type=text] { padding: .4rem .5rem; font-size: .875rem; }
.media-grid .ops { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.media-grid .ops button { min-width: 0; height: 2.2rem; padding: 0 .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line-2); background: #fff; border-radius: 4px; cursor: pointer; font-size: .8125rem; }
.media-grid .ops [data-portrait] { order: -1; grid-column: 1 / -1; }
.media-grid .ops [data-delete] { grid-column: 1 / -1; color: #8f2a22; }
.media-grid li.is-portrait .ops [data-portrait] { color: var(--plum); border-color: var(--plum); font-weight: 600; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius-lg); padding: 2rem 1rem; text-align: center; background: #fff; }
.dropzone.over { border-color: var(--plum); background: var(--plum-soft); }
.upload-list { list-style: none; padding: 0; margin-top: 1rem; font-size: .9375rem; }
.upload-list li { display: flex; gap: .75rem; align-items: center; padding: .3rem 0; }
.upload-list progress { flex: 1; height: .5rem; }
.crop-stage { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; overflow: hidden; }
.crop-stage img { max-height: 70vh; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; }
.crop-box .h { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; background: #fff; border-radius: 50%; cursor: nwse-resize; }
.versions li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.q-section + .q-section { margin-top: 2rem; }
.draft { font: 1.125rem/1.65 var(--serif); }
.draft > * + * { margin-top: .9em; }
.comment { border-left: 3px solid var(--line-2); padding: .3rem 0 .3rem 1rem; margin: .8rem 0; }
.comment .who { font-size: .875rem; color: var(--muted); }
.legal-doc { font-size: 1.0625rem; }
.legal-doc > * + * { margin-top: 1em; }
.legal-doc h2 { font-size: 1.4rem; margin-top: 1.75em; }
.legal-doc h3 { font-size: 1.15rem; margin-top: 1.5em; }
.legal-doc ul, .legal-doc ol { padding-left: 1.4em; }

/* ---------- návod na nalepenie a odstránenie ---------- */
.guide .page-head h1 { margin-top: .4rem; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem !important; }
.guide h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.guide-lead { color: var(--ink-2); margin-bottom: 1.25rem; }
.guide-cond { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
@media (min-width: 40rem) { .guide-cond { grid-template-columns: repeat(3, 1fr); } }
.guide-cond li { background: var(--plum-soft); border-radius: var(--radius); padding: .75rem .9rem; font-weight: 600; }
.guide-steps { list-style: none; padding: 0; margin: 1.75rem 0; counter-reset: g; display: grid; gap: 1.4rem; }
.guide-steps li { counter-increment: g; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
.guide-steps li::before { content: counter(g); grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--plum); color: #fff; font: 600 1.1rem/2.5rem var(--sans); text-align: center; }
.guide-steps h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; margin: .45rem 0 .25rem; }
.guide-steps p { color: var(--ink-2); grid-column: 2; }
.guide-note { background: #fbf3e6; border: 1px solid #e8c98f; border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.guide-note h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.guide-note ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.guide-warn { background: #fbeeec; border-color: #e6aba4; }
.guide-warn h3 { color: #8f2a22; }
@media print {
  .hdr, .ftr, .skip, .no-print { display: none !important; }
  .guide .card { border: 0; padding: 0; break-inside: auto; }
  .guide-steps li { break-inside: avoid; }
}
.ftr-claim { margin-top: 1.25rem; max-width: 26rem; }
.ftr-contact { margin-top: .9rem; }

/* ---------- náhľad tabuľky na žule (objednávka) ---------- */
.plate-stage { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center;
  background: #1c1917 url("../img/home/zula-tmava.708f2f4f824b.jpg") center / cover; box-shadow: inset 0 0 60px rgba(0,0,0,.45); }
.plate-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 40%, rgba(0,0,0,.25)); pointer-events: none; }
.plate-stage .plate-preview { width: 52%; margin: 0; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)) drop-shadow(0 14px 20px rgba(0,0,0,.35)); transition: width .45s var(--ease); }
.plate-stage .plate-preview.size-70 { width: 72%; }
.plate-stage .plate-preview svg { width: 100%; height: auto; }
.plate-scale { position: absolute; left: .75rem; bottom: .75rem; z-index: 2; background: rgba(255,255,255,.92); color: var(--stone-950); font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .3rem .65rem; }

/* ---------- súhlas s cookies (rovnaký vzhľad ako na ehroby.sk) ---------- */
.ftr .linklike { color: inherit; }
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 70rem; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(12,10,9,.18); max-height: calc(100vh - 2rem); overflow-y: auto; }
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; padding: 1.375rem 1.625rem; }
.cookie-text { flex: 1 1 24rem; }
.cookie-text h2 { font: 600 1rem/1.3 var(--sans); }
.cookie-text p { margin-top: .375rem; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.cookie-text a { color: var(--ink); }
.cookie-actions { display: flex; gap: .625rem; flex-wrap: wrap; }
.cookie-settings { padding: 0 1.625rem 1.375rem; border-top: 1px solid var(--line); }
.cookie-settings[hidden] { display: none; }
.cookie-settings fieldset { border: 0; padding: 0; margin: 1.25rem 0 1.125rem; display: grid; gap: .875rem; }
.cookie-opt { display: grid; grid-template-columns: 1.375rem 1fr; gap: .75rem; align-items: start; cursor: pointer; }
.cookie-opt input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--ink); }
.cookie-opt b { display: block; font-size: .9375rem; }
.cookie-opt small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
@media (max-width: 39rem) {
  .cookie-bar { left: .5rem; right: .5rem; bottom: .5rem; }
  .cookie-inner { padding: 1.125rem; gap: 1.125rem; }
  .cookie-settings { padding: 0 1.125rem 1.125rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; padding: 0 1rem; }
  .cookie-actions [data-consent="settings"] { flex-basis: 100%; order: 3; }
}
@media print { .cookie-bar { display: none !important; } }
