/* Uzlovka — design system. Soft K-pastel boho: cream, terracotta, deep olive. */
:root {
  --cream: #faf4e9;
  --cream-deep: #efe4d3;
  --terracotta: #b5633c;
  --terracotta-deep: #9c5636;
  --olive: #5a5e3e;
  --olive-deep: #3f432b;
  --ink: #332a22;
  --paper: #fffdf8;
  --line: #e2d4bb;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 40px -20px rgba(63, 43, 23, 0.35);
  --shadow-card: 0 10px 24px -14px rgba(63, 43, 23, 0.3);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 68ch;
}

* { 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(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.12; color: var(--olive-deep); }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .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; }
.center { text-align: center; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; clip-path: inset(0 0 12% 0); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--olive-deep); }
.logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-link { display: inline-block; padding: 10px 12px; min-height: 44px; display: flex; align-items: center; border-radius: 999px; color: var(--ink); font-size: 0.95rem; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; background: var(--terracotta); transform: scaleX(0); transition: transform .3s ease; transform-origin: left; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--terracotta-deep); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; border-radius: 999px; background: var(--olive); color: var(--paper); }
.cart-link svg { width: 20px; height: 20px; }
[data-cart-count] { font-weight: 700; }
.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-toggle { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 24px; transform: translateX(-100%); visibility: hidden; transition: transform .35s ease; overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 2px; }
}

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; border: 2px solid transparent; cursor: pointer; isolation: isolate; transition: color .3s ease, border-color .3s ease, transform .15s ease; }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--olive-deep); transition: left .35s ease; z-index: -1; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--terracotta); color: var(--paper); }
.btn-primary::before { background: var(--terracotta-deep); }
.btn-primary:hover::before { left: 0; }
.btn-secondary { background: transparent; border-color: var(--olive); color: var(--olive-deep); }
.btn-secondary::before { background: var(--olive); }
.btn-secondary:hover { color: var(--paper); }
.btn-secondary:hover::before { left: 0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost::before { left: -100%; background: transparent; }
.btn-ghost:hover { border-color: var(--olive); }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 80px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.hero-lede { font-size: 1.15rem; max-width: 42ch; color: var(--ink); }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-route-path { stroke-dasharray: 6 10; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -160; } }
.pin-drop { transform-origin: bottom center; animation: pinDrop 2.2s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pinDrop { 0% { transform: translateY(-40px) scale(0.6); opacity: 0; } 60% { transform: translateY(6px) scale(1.05); opacity: 1; } 100% { transform: translateY(0) scale(1); } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); background: linear-gradient(160deg, var(--cream-deep), var(--cream)); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero p { max-width: 60ch; color: var(--ink); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--olive); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--olive-deep); }
.breadcrumbs span[aria-hidden] { color: var(--line); }

/* ---------- cards & collage ---------- */
.collage { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.collage-item { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collage-item:hover img { transform: scale(1.06); }
.collage-caption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,253,248,.92); padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--olive-deep); }

.card { background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 22px; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.product-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-card-tag { position: absolute; top: 10px; left: 10px; background: var(--terracotta); color: var(--paper); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-body h3 { font-size: 1.05rem; margin: 0; }
.product-card-price { font-weight: 700; color: var(--terracotta-deep); font-size: 1.1rem; }
.product-card-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }

/* horizontal scroll-snap strip on mobile */
.product-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) {
  .product-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; }
  .product-strip > * { scroll-snap-align: start; flex: 0 0 78%; }
}

/* ---------- signature feature: cord calculator ---------- */
.calc-feature { background: var(--olive-deep); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.calc-feature h2 { color: var(--cream); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-feature .field label { color: var(--cream); }
.calc-feature select, .calc-feature input { background: var(--paper); }
.calc-result { background: rgba(255,253,248,.1); border: 1px solid rgba(255,253,248,.25); border-radius: var(--radius-md); padding: 20px; }
.calc-result strong { font-size: 2rem; display: block; color: var(--cream); font-family: var(--font-display); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); min-height: 44px; accent-color: var(--terracotta);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--terracotta) 35%, transparent); outline-offset: 1px; border-color: var(--terracotta); }
.field-error { color: #9c2b2b; font-size: 0.85rem; min-height: 1.1em; }
.form-error { color: #9c2b2b; font-size: 0.9rem; }
.form-thanks { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 16px; font-weight: 600; color: var(--olive-deep); }
.website-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- notices / prose / legal ---------- */
.notice { border-radius: var(--radius-sm); padding: 16px 18px; border: 1.5px solid var(--line); background: var(--cream-deep); margin-bottom: 1.5rem; }
.notice-warn { border-color: var(--terracotta); background: color-mix(in srgb, var(--terracotta) 10%, var(--cream)); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

.legal-toc { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 18px 20px; list-style: none; margin: 0 0 2rem; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--olive-deep); font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: var(--measure); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta); transition: transform .3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 18px 18px; margin: 0; color: var(--ink); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-card); }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-price { font-size: 1.8rem; color: var(--terracotta-deep); font-weight: 700; font-family: var(--font-display); }
.qty-input { width: 80px; }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row-main { display: flex; gap: 12px; align-items: center; }
.cart-summary { background: var(--cream-deep); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cart-summary .line { display: flex; justify-content: space-between; }
.cart-summary .total { font-weight: 700; font-size: 1.3rem; color: var(--olive-deep); }
.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-item svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--terracotta); }

/* ---------- dividers / decorative ---------- */
.divider { width: 100%; height: auto; display: block; margin: 0; }
.ornament { position: absolute; }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0.05; z-index: 1; mix-blend-mode: multiply; }

/* ---------- footer ---------- */
.site-footer { background: var(--olive-deep); color: var(--cream); padding: clamp(48px, 7vw, 80px) 0 32px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--cream); font-size: 1rem; }
.site-footer a { color: color-mix(in srgb, var(--cream) 85%, transparent); }
.site-footer a:hover { color: var(--cream); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(250,244,233,.15); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; color: color-mix(in srgb, var(--cream) 70%, transparent); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 160px; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: var(--olive-deep); color: var(--cream); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-soft); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; max-width: 820px; margin: 0 auto; }
.cookie-banner a { color: var(--cream); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner .btn-ghost { color: var(--cream); border-color: rgba(250,244,233,.5); }
.cookie-banner .btn-ghost::before { background: rgba(250,244,233,.15); }
.cookie-banner .btn-ghost:hover { color: var(--cream); border-color: var(--cream); }

/* ---------- icon sprite usage ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* COMPONENTS:
.wrap - centered max-width content container
.section - vertical page section padding
.grid / .grid-2 / .grid-3 / .grid-4 - responsive CSS grid layouts
.reveal / .in-view - scroll reveal animation hook
.site-header - sticky top header bar
.logo - brand mark + wordmark
.site-nav / .nav-link / .is-active - main navigation and active state
.header-actions / .cart-link / [data-cart-count] / .bump - header cart indicator + bump animation
.menu-toggle - mobile hamburger button
.btn / .btn-primary / .btn-secondary / .btn-ghost / .btn-sm - button variants with fill-sweep hover
.hero / .hero-grid / .hero-lede / .hero-art / .hero-route-path / .pin-drop - home hero + motion
.page-hero - inner page hero band
.breadcrumbs - breadcrumb trail
.collage / .collage-item / .collage-caption - asymmetric photo collage
.card - generic elevated content card
.product-card / .product-card-media / .product-card-tag / .product-card-body / .product-card-price / .product-card-foot - catalog product card
.product-strip - responsive grid / mobile scroll-snap strip for products
.calc-feature / .calc-grid / .calc-result - signature cord-length calculator feature
.form-grid / .field / .field-error / .form-error / .form-thanks / .website-field - form components incl. honeypot
.notice / .notice-warn - callout boxes
.prose - readable long-form legal/text content
.legal-toc - table of contents for legal pages
.faq / .faq-item - accordion FAQ using details/summary
.product-detail / .product-detail-media / .product-detail-price / .qty-input - product detail page
.cart-table / .cart-row-main / .cart-summary / .checkout-layout - cart and checkout page
.contact-layout / .contact-info / .contact-info-item - contact page split layout
.divider / .ornament / .grain-overlay - decorative SVG elements
.site-footer / .footer-grid / .footer-links / .footer-bottom / .newsletter-form - site footer
.cookie-banner / .cookie-banner-actions - GDPR cookie consent banner
.icon - inline sprite icon sizing
*/

/* wg-contrast-autofix */
div.footer-grid div form.newsletter-form button.btn.btn-secondary { color: #ffffff !important; }
