:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --ink: #241a17;
  --ink-soft: #5e524c;
  --line: #e6ddd1;
  --wine: #6b1e2a;
  --wine-deep: #4e1520;
  --gold: #9a6a1c;
  --dark: #2a1418;
  --dark-ink: #f4ece2;
  --dark-soft: #c9b8a8;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(36, 26, 23, 0.04), 0 12px 32px -12px rgba(36, 26, 23, 0.14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--wine);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typografia ---------- */

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-sub {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--ink-soft);
}

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); box-shadow: 0 10px 24px -10px rgba(107, 30, 42, .55); }
.btn-primary:disabled { opacity: .7; cursor: progress; }

.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(248, 245, 239, 0);
  transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 245, 239, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img { width: 132px; height: auto; }

.nav-links { display: flex; gap: 36px; }

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s ease;
}
.cart-btn:hover { border-color: var(--ink); }

.cart-btn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink-soft);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.cart-count.has-items { background: var(--wine); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease;
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.8vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--wine); }

.hero-text {
  margin-top: 24px;
  max-width: 44ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-media {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: #f2efea;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-facts div { padding-right: 16px; }
.hero-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------- Sekcie ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }

/* O nás */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px) clamp(32px, 6vw, 96px);
  align-items: end;
}

.about-text p + p { margin-top: 16px; }
.about-text { color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; }

.pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.pillar {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.pillar h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pillar p { color: var(--ink-soft); }

/* Vína */
.section-wines { background: #f2ede4; }

.wines-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.wines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  perspective: 1400px;
}

.wine-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(230, 221, 209, .7);
  transition: box-shadow .35s ease;
  transform-style: preserve-3d;
}
.wine-card[hidden] { display: none; }
.wine-card:hover { box-shadow: var(--shadow); }

.wine-media {
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: #fff;
}
.wine-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.wine-card:hover .wine-media img { transform: scale(1.05); }

.wine-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 22px;
  border-top: 1px solid var(--line);
}

.wine-style {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.wine-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.wine-desc {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}

.wine-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.variant {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #f2ede4;
}
.variant-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.variant-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(36, 26, 23, .12); }

.variant-single { font-size: 0.88rem; color: var(--ink-soft); }

.wine-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.btn-buy {
  margin-top: 16px;
  width: 100%;
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}
.btn-buy:hover, .btn-buy.is-added { background: var(--wine); color: #fff; }

/* Kvíz */
.section-quiz { padding-top: 0; }
.quiz {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 168, 90, .22), transparent 45%),
    radial-gradient(circle at 90% 110%, rgba(0, 0, 0, .35), transparent 55%),
    var(--wine);
  color: #fff;
}
.quiz .kicker { color: #e2bd78; }
.quiz .section-sub { color: rgba(255, 255, 255, .78); }
.quiz-intro { position: relative; }

.quiz-card {
  position: relative;
  min-height: 420px;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}

.quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.quiz-count { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.quiz-back {
  border: 0;
  background: none;
  padding: 6px 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.quiz-back:hover { color: var(--wine); }

.quiz-progress { height: 4px; margin: 12px 0 24px; border-radius: 999px; background: #f2ede4; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine), var(--gold)); transition: width .5s cubic-bezier(.22, 1, .36, 1); }

.quiz-q { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 20px; outline: none; }

.quiz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-answers.is-five .quiz-answer:last-child { grid-column: 1 / -1; }
.quiz-answer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  text-align: left;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.quiz-answer:hover { border-color: var(--wine); background: #fbf6f4; transform: translateY(-2px); }
.quiz-answer.is-picked { border-color: var(--wine); background: var(--wine); color: #fff; }
.quiz-answer.is-picked small { color: rgba(255, 255, 255, .75); }
.quiz-letter {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 700;
  color: var(--wine);
}
.quiz-answer.is-picked .quiz-letter { background: rgba(255, 255, 255, .15); border-color: transparent; color: #fff; }
.quiz-label strong { display: block; font-size: .98rem; font-weight: 700; letter-spacing: -0.01em; }
.quiz-label small { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }

.quiz-result { display: grid; grid-template-columns: 150px 1fr; gap: 24px; margin-top: 16px; align-items: start; }
.quiz-bottle {
  aspect-ratio: 3 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.quiz-bottle img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.25); }
.quiz-match { font-size: .85rem; color: var(--ink-soft); }
.quiz-wine { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; margin: 2px 0 6px; outline: none; }
.quiz-desc { font-size: .92rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }
.quiz-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.quiz-picks li { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f2ede4; color: var(--ink-soft); }
.quiz-buy { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }

.quiz-alts { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.quiz-alts > p { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.quiz-alt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-alt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.quiz-alt:hover { border-color: var(--wine); background: #fbf6f4; }
.quiz-alt-thumb { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.quiz-alt-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(2.1); }
.quiz-alt strong { display: block; font-size: .9rem; letter-spacing: -0.01em; }
.quiz-alt small { display: block; font-size: .76rem; color: var(--ink-soft); }

.quiz-link {
  display: inline-block;
  margin-top: 14px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.wine-card.is-highlight { animation: highlight 1.6s ease; }
@keyframes highlight { 0%, 100% { box-shadow: 0 0 0 0 rgba(107, 30, 42, 0); } 25% { box-shadow: 0 0 0 4px rgba(107, 30, 42, .55); } }

/* Párovanie s jedlom */
.section-pairing { position: relative; overflow: hidden; }
.pairing-glow {
  position: absolute;
  width: 720px; height: 720px;
  right: -200px; top: 50%;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 30, 42, .16), rgba(154, 106, 28, .08) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.pairing {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.food-tabs { display: grid; gap: 8px; margin-top: 36px; }

.food-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.food-tab:hover { border-color: var(--ink); }
.food-tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }

.food-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #f2ede4;
  color: var(--wine);
  transition: background-color .25s ease, color .25s ease;
}
.food-tab[aria-selected="true"] .food-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.food-icon svg, .food-big-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.food-tab-arrow { margin-left: auto; opacity: .5; transition: transform .25s ease, opacity .25s ease; }
.food-tab[aria-selected="true"] .food-tab-arrow { opacity: 1; transform: translateX(4px); }

.pairing-panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.pairing-head { display: flex; gap: 18px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.food-big-icon {
  flex: none;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--wine);
  color: #fff;
}
.food-big-icon svg { width: 30px; height: 30px; }
.pairing-head h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.pairing-head p { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }

.pair-list { display: grid; }
.pair-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pair-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pair-thumb {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.pair-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(2.1); }
.pair-name { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; }
.pair-style { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.pair-why { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.pair-buy { text-align: right; display: grid; gap: 8px; justify-items: end; }
.pair-price { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .85rem; }

/* Tlačidlo späť na začiatok */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 40;
  width: 56px; height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--wine);
  box-shadow: 0 10px 30px -8px rgba(36, 26, 23, .35);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.8);
  transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1), visibility .35s, background-color .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--wine); color: #fff; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--wine); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.to-top:hover .ring-fg { stroke: #fff; }
.to-top-arrow {
  position: relative;
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.to-top:hover .to-top-arrow { transform: translateY(-2px); }

/* Vinice */
.section-dark {
  background: var(--dark);
  color: var(--dark-ink);
}
.section-dark .kicker { color: #d4a85a; }

.vineyard {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.vineyard-lead {
  margin: 24px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.vineyard-copy > p:last-child { color: var(--dark-soft); max-width: 58ch; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(244, 236, 226, .14);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: 32px 28px; background: var(--dark); }
.stat dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-soft);
}
.stat dd {
  margin: 8px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat dd small { font-size: 0.5em; font-weight: 500; }
.stat p { font-size: 0.88rem; color: var(--dark-soft); }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-list { margin-top: 36px; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-list a, .contact-list span:not(.contact-label) {
  font-size: 1.1rem;
  font-weight: 500;
}
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); width: fit-content; transition: border-color .2s ease; }
.contact-list a:hover { border-color: var(--ink); }

.map {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: #ece6dc;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

.contact-form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--wine);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(107, 30, 42, .12);
}

.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.is-success { color: #2f6b3a; }
.form-status.is-error { color: #a12b2b; }

/* Pätička */
.site-footer {
  background: var(--dark);
  color: var(--dark-soft);
  padding-block: 56px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-inner img { width: 120px; }

/* ---------- Efekty pri scrollovaní ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header { transition: background-color .3s ease, box-shadow .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header.is-hidden { transform: none; }

.nav-links a.is-current::after { transform: scaleX(1); }

/* Nadpisy rozdelené na slová */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-word > span { display: inline-block; will-change: transform; }

/* Bežiaci text vo viniciach */
.section-dark { position: relative; overflow: hidden; }
.marquee {
  margin-bottom: clamp(40px, 6vw, 80px);
  white-space: nowrap;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 226, .28);
  user-select: none;
}
.marquee-track { display: inline-block; will-change: transform; }

/* Linka pred kickerom */
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1.5px;
  background: currentColor;
  transition: width .9s cubic-bezier(.22, 1, .36, 1);
}
.motion-ready .kicker::before { width: 0; }
.motion-ready .kicker.is-in::before { width: 28px; }

.scroll-word { transition: opacity .15s linear; }

.pillars { perspective: 1200px; }

/* Veľký nápis v pätičke */
.footer-word {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(244, 236, 226, .12);
  font-size: clamp(2.6rem, 11.5vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  color: var(--dark-ink);
}
.footer-char { display: inline-block; }

/* ---------- Košík ---------- */

.cart-count.bump { animation: bump .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 40% { transform: scale(1.4); } }

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(36, 26, 23, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.cart-open .cart-overlay { opacity: 1; visibility: visible; }
.cart-open { overflow: hidden; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 90;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -24px 0 60px -20px rgba(36, 26, 23, .35);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s;
}
.cart-open .cart-drawer { transform: none; visibility: visible; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.cart-close {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.cart-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.cart-foot:empty { display: none; }

.cart-empty { display: grid; justify-items: center; gap: 20px; padding: 64px 0; text-align: center; color: var(--ink-soft); }

.cart-items { display: grid; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 64px; height: 80px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(1.7); }
.cart-name { font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.cart-unit { font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.cart-line { display: grid; justify-items: end; gap: 8px; font-weight: 700; white-space: nowrap; }
.cart-remove { border: 0; background: none; padding: 4px 0; font-size: .8rem; font-weight: 500; color: var(--ink-soft); text-decoration: underline; }
.cart-remove:hover { color: var(--wine); }

.qty {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; border-radius: 50%; }
.qty button:hover { background: #f2ede4; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total span { color: var(--ink-soft); }
.cart-total strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.cart-note { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }

/* Objednávkový formulár */
.order-form { display: grid; gap: 20px; padding-top: 16px; }
.order-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f2ede4;
  font-size: .92rem;
}
.order-summary strong { font-weight: 700; }
.link-btn { margin-left: auto; border: 0; background: none; padding: 4px 0; font-size: .85rem; font-weight: 600; color: var(--wine); text-decoration: underline; }

.order-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.order-form legend { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; padding: 0; }
.order-form .field input,
.order-form .field textarea { background: var(--surface); }
.field-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field [aria-invalid="true"], .check input[aria-invalid="true"] { border-color: #a12b2b; outline-color: #a12b2b; }
.address { display: grid; gap: 12px; }
.address[hidden] { display: none; }

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice:has(input:checked) { border-color: var(--wine); background: #fbf6f4; }
.choice[hidden] { display: none; }
.choice.is-disabled { opacity: .45; cursor: not-allowed; }
.choice input, .check input { margin-top: 3px; accent-color: var(--wine); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; font-size: .95rem; }
.choice small { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.5; cursor: pointer; }

/* Potvrdenie */
.done { display: grid; gap: 16px; padding-top: 20px; }
.done-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #e8f1ea;
  color: #2f6b3a;
}
.done-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done-lead { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.done-text, .done-note { color: var(--ink-soft); font-size: .92rem; }
.done-note strong { color: var(--ink); }

.pay-box { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 6px 18px; }
.pay-title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 12px 0 6px; }
.pay-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.pay-row span { color: var(--ink-soft); }
.pay-row strong { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; word-break: break-all; }
.pay-row button {
  border: 1px solid var(--line);
  background: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
}
.pay-row button:hover { border-color: var(--ink); }
.pay-row:not(:has(button)) strong { grid-column: 2 / 4; }

.done-items { display: grid; gap: 6px; font-size: .88rem; color: var(--ink-soft); padding-top: 4px; }
.done-items li { display: flex; justify-content: space-between; gap: 12px; }

/* Oznámenie po pridaní */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 14px 40px -12px rgba(36, 26, 23, .5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1), visibility .3s;
}
.cart-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cart-toast button {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
}

/* ---------- Animácie: počiatočný stav ---------- */

.motion-ready [data-reveal],
.motion-ready .wine-card { opacity: 0; transform: translateY(24px); }
.motion-ready .hero-media { opacity: 0; }
.motion-ready .footer-char { opacity: 0; }
.motion-ready .split-word > span { transform: translateY(110%); }
.motion-ready .split-title[data-reveal] { opacity: 1; transform: none; }

/* ---------- Responzívnosť ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .about, .vineyard, .contact, .pairing, .quiz { grid-template-columns: 1fr; }
  .about { align-items: start; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .menu-btn { display: block; }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(36, 26, 23, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-links a {
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: var(--bg); }

  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 20px; }
  .wines-head { margin-bottom: 28px; }
  .wine-media { aspect-ratio: 4 / 3; }
  .quiz-answers { grid-template-columns: 1fr; }
  .quiz-answer { min-height: 60px; }
  .quiz-card { min-height: 0; }
  .quiz { padding: 28px 14px 14px; border-radius: 24px; }
  .quiz-intro { padding-inline: 8px; }
  .quiz-card { padding: 20px 16px; border-radius: 18px; }
  .quiz-result { grid-template-columns: 1fr; gap: 14px; }
  .quiz-bottle { width: 120px; aspect-ratio: 3 / 4; }
  .quiz-buy .btn { flex: 1; }
  .quiz-alt-list { grid-template-columns: 1fr; }
  .food-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .food-tabs::-webkit-scrollbar { display: none; }
  .food-tab { flex: none; min-height: 52px; padding-right: 18px; font-size: .95rem; }
  .food-icon { width: 34px; height: 34px; }
  .food-tab-arrow { display: none; }
  .pair-item { grid-template-columns: 56px 1fr; }
  .pair-thumb { width: 56px; height: 56px; }
  .pair-buy { grid-column: 2; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .pairing-glow { width: 420px; height: 420px; right: -160px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
