/* ===== Puzzle Lípa — design system ===== */
:root {
  --sky: #2E86AB;
  --sky-dark: #1C3D5A;
  --sun: #F7C948;
  --sun-dark: #D9A520;
  --paper: #FFFDF6;
  --paper-2: #F3EFE1;
  --ink: #23303A;
  --line: #D8CFB8;
  --danger: #C04B3C;
  --radius: 14px;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", monospace;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; color: var(--sky-dark); line-height: 1.15; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 3px; }

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

/* ===== layout helpers ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; position: relative; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 12% 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.reveal-1 { transition-delay: .05s; } .reveal-2 { transition-delay: .15s; } .reveal-3 { transition-delay: .25s; } .reveal-4 { transition-delay: .35s; }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,246,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.logo__mark { width: 150px; height: 31px; }
.site-nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { font-weight: 600; font-size: .95rem; padding: 6px 2px; position: relative; color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--sun-dark); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--sky-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; color: var(--sky-dark); display: inline-flex; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--sun-dark); color: var(--ink); font-size: .68rem; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { height: 2px; background: var(--sky-dark); border-radius: 2px; }
@media (max-width: 880px) {
  .site-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px); background: var(--paper); flex-direction: column; padding: 90px 28px; gap: 22px; transform: translateX(100%); visibility: hidden; transition: transform .3s ease; box-shadow: -8px 0 24px rgba(0,0,0,.12); }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .menu-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
}

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .95rem; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--sky-dark); background: var(--sky-dark); color: var(--paper); cursor: pointer; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; }
.btn span { position: relative; z-index: 2; }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--sun); transition: left .3s ease; z-index: 1; }
.btn-sweep:hover::before { left: 0; }
.btn-sweep:hover { color: var(--ink); }
.btn-outline { background: transparent; color: var(--sky-dark); }
.btn-outline.btn-sweep:hover { color: var(--ink); border-color: var(--sun-dark); }
.btn-ghost { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-sm { padding: 9px 18px; font-size: .85rem; min-height: 38px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== icons ===== */
.icon { stroke: currentColor; display: inline-block; vertical-align: middle; }

/* ===== hero ===== */
.hero { position: relative; padding: 48px 0 80px; overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.2rem); margin-bottom: .4em; }
.hero__lede { font-size: 1.15rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.badge-rotate { position: absolute; top: -10%; right: -6%; width: 140px; height: 140px; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.topo-line { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }

/* ===== dividers / decoration ===== */
.section-divider { width: 100%; height: 36px; display: block; }
.footer-divider { width: 100%; height: 30px; display: block; }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 1; mix-blend-mode: multiply; }

/* ===== cards ===== */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(28,61,90,.15); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 16px 18px 20px; }
.card__price { font-weight: 700; color: var(--sky-dark); font-size: 1.05rem; }
.card__price-old { text-decoration: line-through; color: #9a9080; font-weight: 400; margin-left: 6px; font-size: .9rem; }

.product-strip { display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 20px; scroll-snap-type: x mandatory; }
.product-strip .card { min-width: 240px; scroll-snap-align: start; flex: 0 0 auto; }
@media (min-width: 881px) { .product-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .product-strip .card { min-width: 0; } }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* ===== feature: Herní plán (signature feature) ===== */
.planner { background: var(--sky-dark); color: var(--paper); border-radius: 20px; padding: 40px; position: relative; overflow: hidden; }
.planner h2, .planner h3 { color: var(--paper); }
.planner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 880px) { .planner-grid { grid-template-columns: 1fr; } }
.planner-controls label { display: block; font-weight: 600; margin: 14px 0 6px; }
.planner-controls select, .planner-controls input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: var(--paper); }
.planner-result { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.4); border-radius: 14px; padding: 20px; min-height: 160px; }
.planner-result .pick { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.planner-result .pick:last-child { border-bottom: 0; }

/* ===== page hero for inner pages ===== */
.page-hero { padding: 48px 0 32px; background: var(--paper-2); position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.page-hero p { max-width: 60ch; }

/* ===== breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; display: flex; gap: 6px; color: #6b6355; margin-bottom: 1em; }
.breadcrumbs a { color: var(--sky-dark); }
.breadcrumbs span[aria-hidden] { color: #b8ad92; }

/* ===== notices ===== */
.notice { border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper-2); margin: 1.2em 0; }
.notice-success { border-color: #8bbf8f; background: #eef7ee; }
.notice-error { border-color: var(--danger); background: #fbeae6; }
.notice-info { border-color: var(--sky); background: #e9f3f8; }

/* ===== prose (legal pages) ===== */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

.legal-toc { background: var(--paper-2); border-radius: 12px; padding: 20px 24px; margin-bottom: 2em; }
.legal-toc h2 { font-size: 1.1rem; margin-top: 0; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ===== forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); accent-color: var(--sky); min-height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sky); }
.field-error { color: var(--danger); font-size: .82rem; min-height: 1.1em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 1em; font-weight: 600; }
.form-msg.is-error { color: var(--danger); }
.newsletter-form .field-row { display: flex; gap: 8px; }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; }

/* ===== faq ===== */
.faq { max-width: 70ch; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--sky-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: .7em; color: #4a4336; }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__gallery { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); }
.product-detail__meta { display: flex; gap: 10px; flex-wrap: wrap; margin: .8em 0; }
.pill { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .82rem; font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty-stepper button { background: none; border: 0; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }
.qty-stepper input { width: 40px; border: 0; text-align: center; font: inherit; }

/* ===== cart ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: var(--paper-2); border-radius: var(--radius); padding: 24px; max-width: 360px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary .row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; gap: 10px; align-items: flex-start; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 h1 { font-size: clamp(3rem, 10vw, 6rem); }

/* ===== footer ===== */
.site-footer { background: var(--sky-dark); color: #dfe9f0; margin-top: 60px; position: relative; }
.site-footer a { color: #cfe0ea; }
.site-footer a:hover { color: var(--sun); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
@media (max-width: 880px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--paper); font-size: 1rem; margin-bottom: .8em; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-addr, .footer-mail { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.site-footer__bottom { text-align: center; padding: 16px 0 28px; font-size: .82rem; color: #a9c0cf; }

/* ===== cookie banner ===== */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--sky-dark); color: var(--paper); border-radius: 14px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 300; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; flex: 1 1 220px; font-size: .88rem; }
.cookie-banner a { color: var(--sun); }
.cookie-actions { display: flex; gap: 10px; }

/* COMPONENTS: .class - what it is
.container - centered max-width wrapper
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.reveal / .reveal-1..4 - scroll-reveal animation with stagger delay
.site-header / .site-header__inner - sticky page header
.logo__mark - sized SVG logo box
.site-nav - main nav, becomes off-canvas drawer on mobile (.is-open)
.header-actions / .cart-link / .cart-count / .menu-toggle - header utilities
.btn / .btn-sweep / .btn-outline / .btn-ghost / .btn-sm / .btn-full - button variants
.icon - inline SVG icon from sprite
.hero / .hero__inner / .hero__title / .hero__lede / .hero__actions / .hero__art / .badge-rotate / .topo-line - home hero composition
.section-divider / .footer-divider - decorative SVG dividers
.grain-overlay - fixed texture overlay
.card / .card__media / .card__body / .card__price / .card__price-old - product/content card
.product-strip - horizontal scroll-snap product strip (mobile), grid on desktop
.product-grid - catalog grid
.planner / .planner-grid / .planner-controls / .planner-result - signature feature "Herní plán" box
.page-hero - inner page hero/intro band
.breadcrumbs - breadcrumb trail
.notice / .notice-success / .notice-error / .notice-info - alert/notice box
.prose - readable long-form legal text column
.legal-toc - table of contents box for legal pages
.form-grid / .field / .field-wide / .field-error - form layout
.hp - visually hidden honeypot field
.form-msg / .form-msg.is-error - form submit feedback
.newsletter-form / .field-row - footer newsletter form
.faq / .faq-item - details/summary FAQ list
.product-detail / .product-detail__gallery / .product-detail__meta - product page layout
.pill - small tag/meta chip
.qty-stepper - quantity +/- input control
.cart-table / .cart-summary - cart page table and summary box
.contact-layout / .contact-info - contact page two-column layout
.error-404 - 404 page centered block
.site-footer / .site-footer__inner / .footer-col - footer layout
.footer-addr / .footer-mail - footer contact rows
.cookie-banner / .cookie-actions - cookie consent banner
.sr-only - visually hidden, accessible text
.skip-link - keyboard skip-to-content link
*/

/* ===== header logo ===== */
.logo {
  display: inline-flex;
  align-items: center;
}

/* ===== SVG icon sprite ===== */
.icon-sprite {
  display: none;
}

/* ===== footer brand section ===== */
.footer-brand {
  /* inherits from .footer-col */
}

/* ===== footer newsletter section ===== */
.footer-news {
  /* inherits from .footer-col */
}

/* ===== contact form ===== */
.contact-form {
  /* form element */
}

/* ===== order form ===== */
.order-form {
  /* form element */
}

/* ===== quantity input in cart ===== */
.qty-input {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 38px;
}

/* ===== remove item button ===== */
.remove-item {
  /* inherits from .btn, .btn-sm, .btn-ghost */
}
