@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Karla;
  src: url("../assets/fonts/karla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Karla;
  src: url("../assets/fonts/karla-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e6ebf0;
  --paper-2: #f4f7fa;
  --ink: #1c2740;
  --muted: #3e4d63;
  --line: #c5d0db;
  --apricot: #e39a62;
  --apricot-ink: #8d3f14;
  --hero: #1c2740;
  --hero-text: #f4f7fa;
  --radius: 8px;
  --shadow: 0 10px 28px rgb(28 39 64 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141b28;
    --paper-2: #1c2740;
    --ink: #e7eef6;
    --muted: #c5d0e0;
    --line: #314158;
    --apricot-ink: #f0b27a;
    --hero: #0e1522;
    --hero-text: #f4f7fa;
    --shadow: 0 10px 28px rgb(0 0 0 / 28%);
    color-scheme: dark;
  }
  .err { color: #ffb4b4; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Karla, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--apricot-ink); }
h1, h2, h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
p { margin: 0 0 0.8em; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px; max-height: 80px;
}
.logo {
  color: var(--ink); text-decoration: none;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.45rem; letter-spacing: 0.04em;
}
.nav { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--apricot-ink); }
.nav-toggle {
  display: none; margin-left: auto;
  min-height: 44px; padding: 0 0.8rem;
}
.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch button, .btn, .text-btn, button {
  font: inherit; cursor: pointer;
}
.lang-switch button {
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: var(--radius);
}
.lang-switch button.is-active { background: var(--ink); color: var(--paper-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1rem;
  border-radius: var(--radius); border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper-2);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-pay {
  background: var(--paper-2); color: var(--ink);
  border-color: var(--ink);
}
.btn-pay img { height: 18px; width: auto; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100dvh - 68px);
  background: var(--hero); color: var(--hero-text);
}
.hero__copy {
  padding: 3.5rem 6vw 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero .brand-mark {
  margin: 0 0 0.6rem;
  font-size: 0.82rem; letter-spacing: 0.14em;
}
.hero h1 { color: var(--hero-text); max-width: 12ch; }
.hero .lede { max-width: 36ch; color: color-mix(in srgb, var(--hero-text) 86%, var(--apricot)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.hero .btn { background: var(--apricot); color: #1c2740; border-color: var(--apricot); }
.hero .btn-ghost { background: transparent; color: var(--hero-text); border-color: color-mix(in srgb, var(--hero-text) 55%, transparent); }
.hero__media { min-height: 280px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 4.5rem 0; }
.muted { color: var(--muted); max-width: 62ch; }
.cat-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-rail a {
  color: var(--ink); text-decoration: none;
  padding: 1.2rem 0.8rem;
  border-right: 1px solid var(--line);
}
.cat-rail a:last-child { border-right: 0; }
.cat-rail a:hover { background: var(--paper-2); }
.cat-rail strong { display: block; font-family: "EB Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.cat-rail span { color: var(--muted); font-size: 0.92rem; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.hero-tile { min-height: 0; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 1; background: var(--paper); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.card__body h3 { font-size: 1.45rem; }
.card__body h3 a { color: var(--ink); text-decoration: none; }
.card__cat { color: var(--muted); font-size: 0.85rem; margin: 0; }
.card__body p { margin: 0; }
.price { font-weight: 600; margin-top: auto; }
.vat { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.card__actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }

.path-list { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.path-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.catalog-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.4rem; }
.catalog-tools a {
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.45rem 0.75rem; min-height: 44px;
  display: inline-flex; align-items: center;
}
.catalog-tools a.is-active { background: var(--ink); color: var(--paper-2); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
.product-detail img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table input { width: 4.5rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, select, textarea {
  width: 100%; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink);
  padding: 0.55rem 0.7rem; font: inherit;
}
textarea { min-height: 8rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--apricot); outline-offset: 1px; }
.form-grid { display: grid; gap: 0.9rem; max-width: 40rem; }
.phone-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.6rem; }
.err { color: #8d1f1f; min-height: 1.2em; font-size: 0.92rem; }
.help { color: var(--muted); font-size: 0.92rem; }
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6rem; font-size: 1.8rem; }
.preland {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
}
.preland img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 5rem;
  color: var(--muted);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.site-footer a { color: var(--ink); }
.site-footer nav { display: flex; flex-direction: column; gap: 0.35rem; }

.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30;
  display: none; gap: 1rem; align-items: center; justify-content: space-between;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; box-shadow: var(--shadow);
}
.cookie.is-open { display: flex; }
.cookie p { margin: 0; max-width: 62ch; }
.cookie-actions { display: flex; gap: 0.5rem; }

[data-reveal] { opacity: 0; transform: translateY(12px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

@media (max-width: 900px) {
  .hero, .product-detail, .preland, .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__copy { padding: 1.5rem 1rem 1.2rem; }
  .hero__media { max-height: 42dvh; }
  .cat-rail { grid-template-columns: 1fr; }
  .cat-rail a { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .product-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem; margin: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .cookie { flex-direction: column; align-items: stretch; }
  .bar { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:active { transform: none; }
}
