/* Dežniki Zarja — Lantern glow design system */
@media (prefers-color-scheme: dark) {}

:root {
  --c-tomato: #c23b22;
  --c-tomato-dark: #9a2c17;
  --c-navy: #17213a;
  --c-navy-deep: #0e1526;
  --c-cream: #f6ecd9;
  --c-cream-dim: #ecdcc0;
  --c-glow: #ffb347;
  --c-ink: #1a1a1a;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow-paper: 0 10px 30px -10px rgba(14, 21, 38, .35), 0 2px 6px rgba(14, 21, 38, .15);
  --measure: 68ch;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; color: var(--c-navy); line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.icon { stroke: currentColor; }
:focus-visible { outline: 3px solid var(--c-tomato); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-cream); color: var(--c-navy); padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 1em; top: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.section { padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-cream); border-bottom: 1px solid rgba(23,33,58,.1);
  height: var(--header-h); display: flex; align-items: center;
}
.site-header__inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo__word { display: inline-flex; align-items: center; }
.logo__word svg { width: 150px; height: 31px; }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.main-nav__list a { font-size: .95rem; font-weight: 600; color: var(--c-navy); position: relative; padding: .3em 0; }
.main-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--c-tomato);
  transition: right .25s ease;
}
.main-nav__list a:hover::after, .main-nav__list a.is-active::after { right: 0; }
.main-nav__list a.is-active { color: var(--c-tomato); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; display: inline-flex; padding: .4rem; color: var(--c-navy); }
.cart-count {
  position: absolute; top: -2px; right: -4px; background: var(--c-tomato); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-count.is-empty { opacity: .55; }
.cart-count.bump { animation: cartBump .35s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.menu-toggle { display: none; background: none; border: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--c-navy); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(78vw, 320px);
    background: var(--c-navy); padding: 2rem 1.5rem; transform: translateX(100%);
    visibility: hidden; transition: transform .3s ease, visibility .3s ease; z-index: 90;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav__list { flex-direction: column; gap: 1.3rem; }
  .main-nav__list a { color: var(--c-cream); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 2px solid transparent; border-radius: 999px; padding: .75em 1.6em; font-weight: 700; font-size: .95rem;
  min-height: 44px; transition: color .25s ease, border-color .25s ease, transform .15s ease; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: currentColor;
  z-index: -1; transition: left .3s ease;
}
.btn--primary { background: var(--c-tomato); color: #fff; border-color: var(--c-tomato); }
.btn--primary::before { background: var(--c-navy); }
.btn--primary:hover { border-color: var(--c-navy); }
.btn--primary:hover::before { left: 0; }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--ghost::before { background: var(--c-navy); }
.btn--ghost:hover { color: #fff; }
.btn--ghost:hover::before { left: 0; }
.btn--light { background: transparent; color: var(--c-cream); border-color: var(--c-cream); }
.btn--light::before { background: var(--c-cream); }
.btn--light:hover { color: var(--c-navy); }
.btn--light:hover::before { left: 0; }
.btn--sm { padding: .5em 1.1em; font-size: .85rem; min-height: 38px; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero__inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr 1fr; } }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: -.01em; }
.hero__lede { font-size: 1.15rem; max-width: 36ch; color: var(--c-navy); opacity: .85; }
.hero__media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-l); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 500"><path d="M0 60 C 120 0,280 0,400 70 L400 460 C280 500,120 500,0 450 Z"/></svg>'); mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 500"><path d="M0 60 C 120 0,280 0,400 70 L400 460 C280 500,120 500,0 450 Z"/></svg>'); mask-size: cover; -webkit-mask-size: cover; }
.hero__badge { position: absolute; left: -1.2rem; bottom: -1rem; width: 110px; height: 110px; filter: drop-shadow(var(--shadow-paper)); }

/* ---------- Grain overlay ---------- */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; mix-blend-mode: overlay; z-index: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Horizontal scroll story (home, desktop) ---------- */
.story { background: var(--c-navy); color: var(--c-cream); overflow: hidden; }
.story__head { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.story__head h2 { color: var(--c-cream); }
.story-track { display: flex; gap: 1.5rem; padding: 2rem 1.5rem 2.5rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .story-track { padding-left: calc(50vw - 590px); padding-right: calc(50vw - 590px); } }
.story-card { scroll-snap-align: start; flex: 0 0 min(320px, 80vw); background: rgba(246,236,217,.06); border: 1px solid rgba(246,236,217,.15); border-radius: var(--radius-m); padding: 1.6rem; }
.story-card__num { font-family: var(--font-display); color: var(--c-tomato); font-size: 2rem; }
.story-card h3 { color: var(--c-cream); }
.story-card p { opacity: .8; margin-bottom: 0; }

/* ---------- Product/card ---------- */
.card {
  background: #fff; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-paper);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -14px rgba(14,21,38,.4); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 1.1rem 1.2rem 1.4rem; }
.card__price { font-weight: 700; color: var(--c-tomato); font-size: 1.1rem; }
.card__price del { color: #999; font-weight: 400; margin-right: .4em; }

.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .card { scroll-snap-align: start; }
@media (min-width: 720px) { .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); overflow: visible; } }

/* ---------- Dividers / ornaments ---------- */
.divider { display: block; width: 100%; height: auto; margin: 1rem 0; }
.ornament { opacity: .5; }

/* ---------- Signature feature ---------- */
.feature-section { background: linear-gradient(135deg, var(--c-navy), var(--c-navy-deep)); color: var(--c-cream); border-radius: var(--radius-l); padding: clamp(2rem,5vw,3.5rem); position: relative; overflow: hidden; }
.feature-section h2 { color: var(--c-cream); }
.feature-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255,179,71,.25), transparent 70%); top: -150px; right: -150px; pointer-events: none; animation: driftGlow 12s ease-in-out infinite alternate; }
@keyframes driftGlow { from { transform: translate(0,0); } to { transform: translate(-40px, 40px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--c-navy); color: var(--c-cream); padding: clamp(2.5rem,6vw,4rem) 0 clamp(2rem,4vw,3rem); }
.page-hero h1 { color: var(--c-cream); font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { opacity: .85; max-width: var(--measure); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; opacity: .75; display: flex; gap: .4em; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: underline; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose p, .prose li { color: #2c2c2c; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.legal-toc { background: #fff; border-radius: var(--radius-m); padding: 1.2rem 1.4rem; margin-bottom: 2rem; box-shadow: var(--shadow-paper); }
.legal-toc h2 { font-size: 1.1rem; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.3em; }
.legal-toc a { text-decoration: underline; }

/* ---------- Notice ---------- */
.notice { border-radius: var(--radius-s); padding: 1rem 1.2rem; border: 1px solid; margin: 1.2rem 0; }
.notice--info { background: #eef2fb; border-color: #b9c6ea; }
.notice--warn { background: #fdf0e4; border-color: var(--c-tomato); }
.notice--success { background: #e9f5ec; border-color: #4caf6c; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35em; }
.field--inline { flex-direction: row; gap: .5em; }
.field label { font-weight: 600; font-size: .9rem; color: var(--c-navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: .7em .9em; border: 1.5px solid #c9bda2; border-radius: var(--radius-s);
  background: #fff; accent-color: var(--c-tomato);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-tomato); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--c-tomato-dark); font-size: .82rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-weight: 600; margin-top: .4em; }
.form-msg.is-error { color: var(--c-tomato-dark); }
.newsletter-form .field--inline input { flex: 1; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: var(--measure); }
.faq-item { background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow-paper); overflow: hidden; }
.faq-item summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1em; color: var(--c-navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--c-tomato); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.2rem 1.2rem; color: #333; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--c-tomato); }
.product-detail__features { margin: 1.2rem 0; display: flex; flex-direction: column; gap: .5em; }
.product-detail__features li { display: flex; gap: .6em; align-items: flex-start; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid #c9bda2; border-radius: 999px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; background: #fff; border: none; font-size: 1.1rem; }
.qty-control input { width: 46px; text-align: center; border: none; font-size: 1rem; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .8em .6em; border-bottom: 1px solid #e0d6bf; }
.cart-table__product { display: flex; gap: .8em; align-items: center; }
.cart-table__product img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-s); }
.cart-summary { background: #fff; border-radius: var(--radius-m); padding: 1.4rem; box-shadow: var(--shadow-paper); align-self: start; }
.cart-summary__row { display: flex; justify-content: space-between; padding: .4em 0; }
.cart-summary__row--total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid #e0d6bf; margin-top: .6em; padding-top: .8em; }
.cart-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 340px; } }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info__item { display: flex; gap: .8em; align-items: flex-start; }
.contact-info__item .icon { flex-shrink: 0; color: var(--c-tomato); margin-top: .1em; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto;
  background: var(--c-navy); color: var(--c-cream); border-radius: var(--radius-m); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-paper); z-index: 300; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 240px; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }

/* ---------- Toast ---------- */
.toast-box { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--c-navy); color: var(--c-cream); padding: .8em 1.2em; border-radius: var(--radius-s); box-shadow: var(--shadow-paper); opacity: 1; transition: opacity .5s ease, transform .5s ease; }
.toast.is-out { opacity: 0; transform: translateY(10px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy-deep); color: var(--c-cream); padding-top: 0; }
.footer-divider { display: block; margin: 0; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 2.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.4fr .8fr .8fr 1fr; } }
.footer-col h3 { color: var(--c-cream); font-size: 1rem; margin-bottom: .8em; }
.footer-col ul { display: flex; flex-direction: column; gap: .55em; }
.footer-col a { opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-col--brand p { opacity: .75; max-width: 28ch; }
.footer-mail { display: inline-flex; gap: .5em; align-items: center; opacity: .9; margin-top: .4em; }
.site-footer__bottom { border-top: 1px solid rgba(246,236,217,.12); text-align: center; padding: 1.2rem 0; font-size: .85rem; opacity: .65; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.grid / .grid-2 / .grid-3 - responsive grid helpers
.section - vertical page section spacing
.site-header / .main-nav / .logo / .cart-link / .cart-count / .menu-toggle - header & nav
.btn / .btn--primary / .btn--ghost / .btn--light / .btn--sm - button variants with fill-sweep hover
.hero / .hero__title / .hero__lede / .hero__media / .hero__badge - home hero with masked image reveal
.grain-overlay - fixed SVG feTurbulence grain texture overlay
.reveal / .in-view - scroll-reveal animation hook (IntersectionObserver)
.story / .story-track / .story-card - horizontal scroll-snap story section
.card / .card__media / .card__body / .card__price - product/content card with hover lift+zoom
.product-strip - horizontal scroll-snap product strip (mobile) / grid (desktop)
.divider / .ornament - decorative SVG dividers and ornaments
.feature-section / .feature-glow - signature feature highlight block
.page-hero - inner page hero band
.breadcrumbs - breadcrumb trail
.prose - readable-measure long-form legal/article text
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--warn / .notice--success - callout banners
.form-grid / .field / .field--inline / .field-error / .hp-field / .form-msg - form layout and states
.faq / .faq-item - details/summary FAQ accordion
.product-detail / .product-detail__media / .product-detail__features / .qty-control - product page layout
.cart-table / .cart-summary / .cart-layout - cart & checkout layout
.contact-layout / .contact-info - contact page layout
.cookie-banner - cookie consent banner
.toast-box / .toast - transient notification toasts
.site-footer / .footer-col - footer layout
*/

/* ---------- Missing component rules ---------- */
.footer-col--news { background: #fff; padding: 1.2rem 1.4rem; border-radius: var(--radius-m); box-shadow: var(--shadow-paper); }
.footer-col--news h3 { color: var(--c-navy); }
.footer-col--news p { color: #333; }

.logo__mark { stroke: var(--c-tomato); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.product-detail__info { background: #fff; padding: 1.4rem 1.5rem; border-radius: var(--radius-m); box-shadow: var(--shadow-paper); }

.qty-dec, .qty-inc, .qty-rm { }

/* wg-contrast-autofix */
#cookie-decline { color: #ffffff !important; }
