/* Turistika Kvapka - design system
   Single-line art, moss/lichen/stone palette, magazine-cover home. */

:root {
  --moss-900: #202b1c;
  --moss-700: #37472f;
  --moss-500: #4d6140;
  --lichen-400: #8ea36a;
  --lichen-300: #b7c892;
  --stone-200: #e7e3d6;
  --stone-100: #f3f1e8;
  --paper: #faf8f1;
  --ink: #202018;
  --accent: #c96f3e;
  --focus: #1a73e8;
  --radius: 14px;
  --measure: 38em;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .68, .14, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  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); color: var(--moss-900); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--moss-900); color: #fff;
  padding: .6em 1em; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ===== Layout helpers ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 241, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-200);
}
.site-header__inner {
  max-width: 1180px; margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .55rem; color: var(--moss-900); }
.logo__mark { width: 36px; height: 36px; aspect-ratio: 1; color: var(--moss-700); flex: none; }
.logo__word { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; }
.logo__word strong { color: var(--accent); font-weight: 600; }
.logo--footer { color: var(--stone-100); }
.logo--footer .logo__mark { color: var(--lichen-300); }

.main-nav ul { display: flex; gap: 1.5rem; list-style: none; }
.main-nav a { font-size: .95rem; font-weight: 600; color: var(--moss-700); position: relative; padding: .25rem 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--moss-900); }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; display: flex; color: var(--moss-700); width: 44px; height: 44px; align-items: center; justify-content: center; }
.cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-count--bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: none; color: var(--moss-900); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 30%; background: var(--moss-900); padding: 5rem 1.5rem 2rem;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    z-index: 150;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.25rem; }
  .main-nav a { color: var(--stone-100); font-size: 1.1rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid var(--moss-900);
  background: var(--moss-900); color: var(--stone-100); font-weight: 700; font-size: .95rem;
  cursor: pointer; min-height: 44px; position: relative; overflow: hidden;
}
.btn--sweep span { position: relative; z-index: 2; }
.btn--sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--accent); transition: left .3s var(--ease); z-index: 1;
}
.btn--sweep:hover::before, .btn--sweep:focus-visible::before { left: 0; }
.btn--outline { background: transparent; color: var(--moss-900); }
.btn--outline:hover { background: var(--moss-900); color: var(--stone-100); }
.btn--ghost { background: transparent; border-color: var(--stone-100); color: var(--stone-100); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; min-height: 38px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  max-width: 1180px; margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.01em;
}
.hero__lede { max-width: 32em; font-size: 1.15rem; color: var(--moss-700); }
.hero__photo-wrap {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15) sepia(.18) saturate(1.3) hue-rotate(50deg);
  transition: filter .2s linear;
}
.hero__frame { position: absolute; inset: 0; pointer-events: none; color: var(--lichen-300); mix-blend-mode: overlay; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--moss-900); color: var(--stone-100); padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.page-hero h1 { color: var(--stone-100); font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: var(--stone-200); max-width: var(--measure); margin-bottom: 0; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; color: var(--moss-500); margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.breadcrumbs a:hover { text-decoration-color: currentColor; }
.breadcrumbs .sep { margin: 0 .4em; opacity: .6; }

/* ===== Prose (legal text) ===== */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.1rem; }
.prose li { margin-bottom: .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }

/* ===== Legal TOC ===== */
.legal-toc { background: var(--stone-100); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-toc ol { padding-left: 1.2em; }
.legal-toc a { text-decoration: underline; }

/* ===== Notices ===== */
.notice { padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid var(--stone-200); background: var(--stone-100); margin-bottom: 1.5rem; }
.notice--info { border-color: var(--lichen-400); }
.notice--success { border-color: #3f7a3f; background: #eef6ea; }
.notice--error { border-color: #a4473a; background: #fbeeec; }

/* ===== Section index (magazine composition) ===== */
.section-index { border-top: 1px solid var(--stone-200); border-bottom: 1px solid var(--stone-200); }
.section-index__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.section-index__list a {
  display: block; padding: 1.5rem 1rem; border-right: 1px solid var(--stone-200);
  font-family: var(--font-display); font-size: 1.1rem;
}
.section-index__num { display: block; font-family: var(--font-mono); color: var(--accent); font-size: .8rem; margin-bottom: .3em; }
.section-index__list a:hover { background: var(--stone-100); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), clip-path .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ===== Cards / products ===== */
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone-200);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 30px -18px rgba(32,43,28,.35); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.1rem 1.1rem 1.3rem; }
.card__badge {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: var(--lichen-300); color: var(--moss-900);
  padding: .25em .6em; border-radius: 999px; margin-bottom: .5em;
}
.card__price { font-weight: 700; color: var(--moss-900); font-size: 1.05rem; }
.card__rent { font-size: .8rem; color: var(--moss-500); }

.product-strip {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
}
.product-strip .card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
@media (min-width: 860px) {
  .product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; }
}

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.product-detail__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-family: var(--font-display); color: var(--moss-900); }
.product-detail__meta { list-style: none; display: grid; gap: .4rem; font-size: .9rem; color: var(--moss-700); margin: 1rem 0; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--moss-700); }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--stone-200); border-radius: 8px;
  background: #fff; accent-color: var(--accent); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--moss-500); }
.field-error { color: #a4473a; font-size: .8rem; min-height: 1em; }
.form-msg { padding: .75rem 1rem; border-radius: 8px; margin-top: 1rem; }
.form-msg--ok { background: #eef6ea; color: #2f5c2f; }
.form-msg--error { background: #fbeeec; color: #8a3326; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .5rem; border-bottom: 1px solid var(--stone-200); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table .qty-input { width: 60px; padding: .4rem; border: 1.5px solid var(--stone-200); border-radius: 6px; }
.cart-summary { background: var(--stone-100); border-radius: var(--radius); padding: 1.5rem; max-width: 360px; margin-left: auto; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-bottom: 1rem; }
.cart-summary dt { color: var(--moss-700); }
.cart-summary dd { margin: 0; font-weight: 700; text-align: right; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { background: var(--stone-100); border-radius: var(--radius); padding: 1.75rem; }
.contact-info ul { list-style: none; display: grid; gap: 1rem; }
.contact-info li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info svg { flex: none; color: var(--moss-700); }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--stone-200); padding: .25rem 0; }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1rem .25rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 .25rem 1.1rem; color: var(--moss-700); }

/* ===== Gear advisor (signature feature) ===== */
.advisor {
  background: var(--moss-900); color: var(--stone-100); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem); position: relative; overflow: hidden;
}
.advisor__form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1.5rem; }
.advisor__form label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--lichen-300); display: block; margin-bottom: .4rem; }
.advisor__form select {
  width: 100%; padding: .7rem .8rem; border-radius: 8px; border: 1.5px solid var(--moss-500);
  background: var(--moss-700); color: var(--stone-100); min-height: 44px;
}
.advisor__result { background: rgba(250,248,241,.06); border-radius: 10px; padding: 1.25rem; }
.advisor__list { list-style: none; display: grid; gap: .6rem; }
.advisor__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed rgba(250,248,241,.2); font-size: .95rem; }
.advisor__tag { font-size: .7rem; background: var(--accent); color: #fff; padding: .15em .5em; border-radius: 999px; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto;
  background: var(--moss-900); color: var(--stone-100); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; z-index: 300; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 220px; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; }

/* ===== Toast ===== */
.tk-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--moss-900); color: var(--stone-100);
  padding: .9rem 1.4rem; border-radius: 999px; z-index: 400; opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s; font-size: .9rem;
}
.tk-toast--show { opacity: 1; transform: translateY(0); }

/* ===== Dividers / decorative ===== */
.divider { display: block; width: 100%; height: auto; color: var(--lichen-400); margin: 0 auto; }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 1; mix-blend-mode: multiply; }

footer.site-footer { background: var(--moss-900); color: var(--stone-200); }
.site-footer__grid {
  max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.25rem 2rem;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem;
}
.footer-brand p { color: var(--stone-200); max-width: 26em; }
.footer-mail { display: inline-flex; gap: .5rem; align-items: center; text-decoration: underline; }
.footer-nav h2, .footer-newsletter h2 { color: var(--stone-100); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; display: grid; gap: .6rem; }
.footer-nav a:hover { text-decoration: underline; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 160px; padding: .7rem .9rem; border-radius: 8px; border: none; min-height: 44px;
}
.site-footer__bottom { border-top: 1px solid rgba(250,248,241,.15); padding: 1.25rem; text-align: center; font-size: .85rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* COMPONENTS:
.wrap - centered max-width content container
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 - responsive grid helpers
.stack - vertical flex stack with gap
.cluster - horizontal wrapping flex row with gap
.btn / .btn--sweep / .btn--outline / .btn--ghost / .btn--sm - button variants
.hero / .hero__grid / .hero__title / .hero__lede / .hero__photo-wrap / .hero__photo / .hero__frame - home hero
.page-hero - inner page header band (dark)
.breadcrumbs - small trail of links above a page title
.prose - readable long-form legal/article text block
.legal-toc - boxed table of contents for legal pages
.notice / .notice--info / .notice--success / .notice--error - callout boxes
.section-index / .section-index__list / .section-index__num - magazine-style numbered section index
.reveal / .reveal.in-view / .reveal-stagger - scroll reveal animation hooks
.card / .card__media / .card__body / .card__badge / .card__price / .card__rent - product/service card
.product-strip - horizontal scroll-snap card strip on mobile, grid on desktop
.product-detail / .product-detail__media / .product-detail__price / .product-detail__meta - product page layout
.form-grid / .field / .field--full / .field-error / .form-msg / .hp-field - form building blocks
.cart-table / .cart-summary - cart/checkout table and summary box
.contact-layout / .contact-info - contact page two-column layout
.faq / .faq-item - FAQ accordion (details/summary)
.advisor / .advisor__form / .advisor__result / .advisor__list / .advisor__tag - Kvapkomer gear advisor widget
.cookie-banner / .cookie-banner__actions - cookie consent banner
.tk-toast / .tk-toast--show - transient notification toast
.divider - decorative inline SVG divider
.grain-overlay - fixed full-viewport texture overlay
.cart-count / .cart-count--bump - header cart badge and bump animation
.skip-link - accessibility skip-to-content link
*/
