/* Verejné stránky: úvodná, objednávka, právne texty. Najprv mobil. */

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; top: 8px; }

h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* --- hlavička ----------------------------------------------------------------- */

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { font: 700 22px/1 var(--font-display); color: var(--ink); text-decoration: none; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; }
.nav a:hover { color: var(--accent-dark); }
.head-cta { margin-left: auto; min-height: 40px; padding: 8px 18px; }

/* --- hero ---------------------------------------------------------------------- */

.hero { padding: 28px 0 18px; overflow: hidden; }
.hero-grid { display: grid; gap: 26px; }
.hero h1 { font-size: clamp(34px, 9vw, 60px); line-height: 1.05; margin: 0 0 16px; }
.lead { font-size: 18px; color: #3b3833; max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 14px; }
.from { font-size: 17px; color: var(--muted); }
.from strong { color: var(--ink); font-size: 20px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.hero-visual { display: flex; justify-content: center; padding: 10px 0 26px; }

/* 3D kniha (CSS). Na dotykových zariadeniach stojí, na počítači sa natáča za myšou. */
.book3d { --rx: 8deg; --ry: -26deg; width: min(58vw, 250px); aspect-ratio: 148 / 210; perspective: 1400px; }
.book3d-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.25s ease-out; }
.book3d-cover, .book3d-back, .book3d-pages { position: absolute; inset: 0; border-radius: 2px 5px 5px 2px; }
.book3d-cover { background: linear-gradient(135deg, #e9c9a8, #c98a6b) center / cover no-repeat; transform: translateZ(9px); box-shadow: inset 5px 0 8px -3px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; }
.book3d-title { font: 700 30px/1.1 var(--font-display); color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.book3d-back { background: #d9cdbd; transform: translateZ(-9px); box-shadow: 18px 26px 44px rgba(60, 40, 20, 0.32); }
.book3d-pages { left: auto; width: 18px; background: repeating-linear-gradient(90deg, #fff 0 1px, #e6e0d6 1px 2px); transform: rotateY(90deg) translateZ(9px) translateX(9px); transform-origin: right center; right: 0; top: 2px; bottom: 2px; border-radius: 0; }

/* --- príležitosti ------------------------------------------------------------------ */

.occasions { padding: 6px 0 26px; }
.occasion-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 14px; margin: 0 -20px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.occasion-row::-webkit-scrollbar { display: none; }
.occasion { flex: none; width: 96px; scroll-snap-align: start; text-align: center; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.occasion-pic { display: flex; align-items: center; justify-content: center; width: 96px; height: 124px; margin-bottom: 8px; border-radius: 12px; background: var(--soft); color: #8a8378; overflow: hidden; box-shadow: 0 2px 8px rgba(40, 30, 20, 0.08); transition: transform 0.2s; }
.occasion-pic img { width: 100%; height: 100%; object-fit: cover; }
.occasion:hover .occasion-pic { transform: translateY(-3px); }

/* --- sekcie ---------------------------------------------------------------------- */

.section { padding: 48px 0; }
.section.alt { background: #F4F1EA; }
.section h2 { font-size: clamp(28px, 6.5vw, 40px); margin: 0 0 10px; }
.section-lead { color: #3b3833; font-size: 17px; max-width: 40em; margin: 0 0 24px; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.cards { display: grid; gap: 14px; margin: 22px 0; }
.tip { padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 15px/1.2 var(--font); color: var(--ink); cursor: pointer; }
.chip.on { border-color: var(--accent); background: #fffaf8; }
.filter { margin-bottom: 22px; }

/* ukážky */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 20px; }
.sample[hidden] { display: none; }
.sample-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sample-mock { position: relative; display: block; padding: 18px 14px 18px 34%; border-radius: 16px; background: linear-gradient(160deg, #efeae0, #e4ddd0); overflow: hidden; }
.sample-spread { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 8px 22px rgba(40, 30, 20, 0.22); }
.sample-cover { position: absolute; left: 6%; top: 50%; width: 34%; height: auto; transform: translateY(-50%) rotate(-4deg); border-radius: 2px 4px 4px 2px; box-shadow: 6px 10px 22px rgba(40, 30, 20, 0.35); transition: transform 0.25s; }
.sample-open:hover .sample-cover, .sample-open:focus-visible .sample-cover { transform: translateY(-52%) rotate(-7deg) scale(1.03); }
.sample-info { padding: 12px 4px 0; }
.sample-info h3 { font-size: 18px; margin: 0 0 2px; }
.sample-info p { margin: 0; font-size: 14px; }

/* formáty */
.format-compare { display: grid; gap: 24px; align-items: center; margin: 8px 0 10px; }
.sizes { width: 100%; max-width: 470px; height: auto; margin: 0 auto; display: block; }
.segmented.big { display: flex; width: max-content; margin: 0 auto 14px; border: 1px solid #cfc9bc; border-radius: 999px; overflow: hidden; background: #fff; }
.segmented.big button { min-width: 84px; min-height: 44px; border: 0; background: transparent; font: 700 16px var(--font); color: var(--ink); cursor: pointer; }
.segmented.big button.on { background: var(--accent); color: #fff; }
.compare-stage { display: flex; align-items: flex-end; justify-content: center; height: 250px; }
.compare-stage img, .compare-placeholder { width: auto; height: 100%; border-radius: 2px; box-shadow: 0 10px 28px rgba(40, 30, 20, 0.22); transition: height 0.35s ease; background: #e9e2d6; aspect-ratio: 296 / 210; }
.compare-stage[data-format="A5"] img, .compare-stage[data-format="A5"] .compare-placeholder { height: 70.7%; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 5px 0 5px 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* kroky */
.steps { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 20px 20px 18px 74px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.step-n { position: absolute; left: 20px; top: 20px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font: 700 18px var(--font-display); }
.steps h3 { font-size: 18px; margin: 4px 0 4px; }
.steps p { margin: 0; color: #3b3833; }

/* čo dostaneš */
.feature-pic { height: 132px; margin: -22px -22px 18px; border-radius: 16px 16px 0 0; }
.feature-pic.paper { background: repeating-linear-gradient(178deg, #fff 0 5px, #eee8dc 5px 6px), #fff; background-color: #f6f1e7; }
.feature-pic.binding { background: linear-gradient(90deg, #e9e0d0 0 49.4%, #b9ad98 49.4% 50.6%, #efe7d8 50.6%), #eee; position: relative; }
.feature-pic.binding::before, .feature-pic.binding::after { content: ""; position: absolute; left: calc(50% - 2px); width: 4px; height: 20px; border-radius: 2px; background: #8d8676; top: 28px; }
.feature-pic.binding::after { top: auto; bottom: 28px; }
.feature-pic.print { background: linear-gradient(135deg, #f2c14e, #e2725b 38%, #7a5ea8 70%, #2e86ab); }
.feature h3 { font-size: 19px; }
.feature p { margin: 0; color: #3b3833; }
.specs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; color: #3b3833; }
.specs strong { display: inline-block; min-width: 86px; color: var(--ink); }

/* cenník */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prices { width: 100%; border-collapse: collapse; font-size: 17px; }
.prices th, .prices td { padding: 15px 18px; text-align: right; border-bottom: 1px solid var(--line); }
.prices th:first-child { text-align: left; }
.prices thead th { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.prices tbody tr:last-child th, .prices tbody tr:last-child td { border-bottom: 0; }
.prices td { font-weight: 700; }
.shipping { list-style: none; margin: 8px 0 18px; padding: 0; }
.shipping li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* otázky */
.faq details { border-bottom: 1px solid #ddd6c8; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; color: var(--accent-dark); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #3b3833; }

.cta-final { padding: 64px 0 96px; }

/* pätička */
.site-foot { padding: 40px 0 96px; background: #25221f; color: #e9e4da; font-size: 15px; }
.site-foot .brand { color: #fff; margin-bottom: 8px; }
.site-foot .muted { color: #b3ada1; }
.site-foot h2 { font: 700 13px var(--font); text-transform: uppercase; letter-spacing: 0.07em; color: #b3ada1; margin: 0 0 8px; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 24px; }
.foot-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid #3a3632; color: #b3ada1; font-size: 13px; }

/* plávajúce tlačidlo (mobil) */
.float-cta { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; min-height: 52px; box-shadow: 0 8px 26px rgba(120, 50, 30, 0.35); transform: translateY(140%); transition: transform 0.25s; }
.float-cta.show { transform: none; }

/* cookie lišta */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #25221f; color: #fff; box-shadow: var(--shadow); font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 260px; }
.cookie-bar a { color: #fff; }
.cookie-bar div { display: flex; gap: 8px; }

/* --- objednávka, stav, právne texty --------------------------------------------- */

.order, .status, .legal { padding: 28px 20px 64px; }
.order h1, .status h1 { font-size: clamp(28px, 7vw, 38px); }
.order h2 { font: 700 18px var(--font); margin: 22px 0 12px; }
.order .card > h2:first-child { margin-top: 0; }
.order-grid { display: grid; gap: 18px; }
.summary { order: -1; }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary dl > div[hidden] { display: none; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total { border-bottom: 0; font-size: 20px; font-weight: 700; }
.summary .total dt { color: var(--ink); }
.options { display: grid; gap: 8px; border-radius: 14px; }
.options.invalid { outline: 2px solid var(--bad); outline-offset: 4px; }
.option { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: #fffaf8; }
.option input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.option small { display: block; color: var(--muted); font-size: 13px; }
.option-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.company { margin: 4px 0 8px; }
.company summary { padding: 10px 0; color: var(--accent-dark); font-weight: 600; cursor: pointer; }
input.invalid, select.invalid { border-color: var(--bad); outline: 1px solid var(--bad); }
.field .field-msg { margin: 5px 0 0; }
.notice { padding: 14px 16px; border-radius: 12px; margin: 14px 0; font-size: 15px; }
.notice.warn { background: #FFF4D6; border: 1px solid #EBCB7A; }
.status .card { padding: 34px 24px; }
.status-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.status-icon.ok { background: #DFF1E5; color: var(--ok); }
.status-list { text-align: left; margin: 22px auto; max-width: 440px; }
.status-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; text-align: right; font-weight: 600; }

.legal h1 { font-size: clamp(28px, 7vw, 40px); margin-bottom: 18px; }
.legal h2 { font: 700 21px var(--font); margin: 30px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal li { margin: 6px 0; }
.legal mark { background: #FFE9A8; padding: 0 3px; border-radius: 3px; }
.legal blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #EBCB7A; background: #FFF4D6; border-radius: 0 10px 10px 0; }

/* --- od 760 px ---------------------------------------------------------------------- */

@media (min-width: 760px) {
  .nav { display: flex; }
  .head-cta { margin-left: 0; }
  .hero { padding: 56px 0 34px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
  .book3d { width: 300px; }
  .book3d-title { font-size: 40px; }
  .occasion-row { justify-content: space-between; overflow: visible; margin: 0; padding: 4px 0 14px; }
  .occasion { width: 112px; }
  .occasion-pic { width: 112px; height: 146px; }
  .section { padding: 76px 0; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .format-compare { grid-template-columns: 1fr 1fr; }
  .compare-stage { height: 300px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 70px 20px 22px; }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; }
  .site-foot { padding-bottom: 40px; }
  .float-cta { display: none; }
  .order-grid { grid-template-columns: 1fr 320px; align-items: start; }
  .summary { order: 0; position: sticky; top: 80px; }
}

/* --- úvodná stránka: smerovanie k nákupu --------------------------------------- */
.section.tight { padding: 8px 0 40px; }
.steps.three li { padding-top: 20px; }
.sub { font: 700 18px var(--font); margin: 34px 0 14px; }
#ukazky .occasion-row { margin-bottom: 4px; }
.plans { display: grid; gap: 16px; margin: 8px 0 18px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan.featured { border-color: var(--accent); }
.plan-tag { position: absolute; top: -13px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.plan-shape { display: block; margin: 0 0 14px; border-radius: 2px 5px 5px 2px; background: linear-gradient(100deg, #cdb9a5 0 4%, #e9dccd 5% 100%); box-shadow: 3px 4px 10px rgba(60, 40, 20, 0.22); align-self: flex-start; }
.plans { align-items: end; }
.plan h3 { font-size: 21px; margin: 0 0 2px; }
.plan p { margin: 0 0 10px; }
.plan-price { font-size: 17px; color: var(--muted); }
.plan-price strong { font-size: 30px; color: var(--ink); }
.plan-rows { list-style: none; margin: 0 0 12px; padding: 0; }
.plan-rows li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan .ticks { margin-bottom: 18px; }
.plan .btn { margin: auto 0 0; }
.ship-line { color: var(--muted); font-size: 15px; text-align: center; }
.benefits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.benefits li { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.benefits strong { display: block; font-size: 17px; margin-bottom: 4px; }
.benefits span { color: #3b3833; }
.cta-final h2 { max-width: 16em; margin: 0 auto 22px; }
.cta-final p { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
@media (min-width: 760px) {
  .steps.three { grid-template-columns: repeat(3, 1fr); }
  .steps.three li { padding: 70px 20px 22px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
  .benefits { grid-template-columns: 1fr 1fr; }
}

/* --- právne prvky ---------------------------------------------------------------- */

.legal-box { margin: 12px 0; font-size: 14px; }
.legal-box summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; }
.legal-box img { display: block; width: 100%; max-width: 480px; height: auto; margin: 10px 0 6px; }
.legal-notice-img { width: 100%; max-width: 620px; height: auto; }
.order-final { font-size: 14px; color: var(--muted); margin: 14px 0 8px; }
.notice.ok { background: #E8F4EC; border: 1px solid #9FCDB0; }
.withdrawal-review { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 20px; }
.withdrawal-review dt { color: var(--muted); }
.withdrawal-review dd { margin: 0; font-weight: 600; }
.withdrawal-back { margin-top: 12px; }
.withdrawal-sample { margin-top: 24px; font-size: 15px; }
.withdrawal-sample summary { cursor: pointer; font-weight: 600; }
