:root {
  --cream: #f6f2e9;
  --cream-deep: #ece5d6;
  --paper: #fffdf8;
  --ink: #1b2a21;
  --ink-soft: #55635a;
  --green: #1f4a33;
  --green-deep: #10231a;
  --leaf: #4f8a3c;
  --gold: #a8713c;
  --gold-soft: #d8b98b;
  --line: rgba(31, 74, 51, 0.16);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }

h1 em { font-style: italic; font-weight: 500; color: var(--gold); }

button { font: inherit; color: inherit; cursor: pointer; }

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

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

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

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--cream-deep); }
.section-lead { max-width: 62ch; margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }

/* ── Шапка ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; mix-blend-mode: multiply; filter: brightness(1.07); }
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 700; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.06em; }
.brand-aura { color: var(--green); font-size: 1.25rem; }
.brand-harvest { color: var(--gold); font-size: 1.25rem; }

.lang { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.lang button:hover { color: var(--green); }
.lang button.is-active { background: var(--green); color: var(--cream); }

.nav { display: flex; gap: 26px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--gold); border-color: var(--gold); }

/* ── Hero ── */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead { margin-top: 22px; font-size: 1.1rem; color: var(--ink-soft); max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--green);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--cream); }

.stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--green); line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-soft); }

.hero-art { position: relative; padding: 0 9% 9% 9%; }
.arch { object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 24px 60px -24px rgba(16, 35, 26, 0.5); }
.arch-main { width: 100%; aspect-ratio: 3 / 4; }
.arch-a, .arch-b { position: absolute; width: 34%; aspect-ratio: 3 / 4; border: 6px solid var(--cream); }
.arch-a { left: 0; bottom: 0; }
.arch-b { right: 0; top: 12%; }

/* ── Три опори ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 36px; }
.pillar-num { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--gold); }
.pillar h3 { font-size: 1.9rem; margin: 10px 0 14px; color: var(--green); }
.pillar p { color: var(--ink-soft); font-size: 0.95rem; }

.myths { margin-top: 72px; }
.myth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 28px; }
.myth { border-top: 2px solid var(--green); padding-top: 18px; }
.myth-q { font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--green); margin-bottom: 8px; line-height: 1.2; }
.myth p:last-child { font-size: 0.92rem; color: var(--ink-soft); }

/* ── Тарілка ── */
.plate-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.plate-rim {
  width: min(380px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  padding: 9%;
  background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(16, 35, 26, 0.45), inset 0 0 0 1px var(--line);
}
.plate-pie {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--leaf) 0 50%, var(--gold-soft) 50% 75%, #b5553c 75% 100%);
  box-shadow: inset 0 0 0 5px var(--paper);
}
.legend { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.legend li { display: flex; gap: 16px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.legend strong { display: block; color: var(--ink); font-size: 1rem; }
.dot { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; margin-top: 5px; }
.dot-veg { background: var(--leaf); }
.dot-grain { background: var(--gold-soft); }
.dot-protein { background: #b5553c; }
.dot-fat { background: transparent; border: 2px solid var(--green); }

/* ── Продукти ── */
.section-dark { background: var(--green-deep); color: var(--cream); }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-dark .section-lead { color: rgba(246, 242, 233, 0.72); }

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.product {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #000;
  text-align: left;
  color: var(--cream);
}
.product img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s; }
.product-body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 60px 16px 16px;
  background: linear-gradient(to top, rgba(8, 18, 13, 0.94) 35%, rgba(8, 18, 13, 0));
}
.product-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.product-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(246, 242, 233, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s, margin 0.3s;
}
.product-link { margin-top: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); }
.product:hover img, .product:focus-visible img { transform: scale(1.06); opacity: 0.8; }
.product:hover .product-note, .product:focus-visible .product-note { max-height: 9em; opacity: 1; margin-top: 8px; }

/* ── Банер ── */
.banner { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); height: clamp(220px, 32vw, 380px); }
.banner img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.banner::after { content: ''; position: absolute; inset: 0; background: rgba(16, 35, 26, 0.5); }
.banner p {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0 24px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  color: var(--cream);
  text-wrap: balance;
}

/* ── Рецепти ── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--cream); }

.active-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--cream-deep);
  font-size: 0.88rem;
}
.active-product[hidden] { display: none; }
.active-product button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--green); color: var(--cream); font-size: 0.75rem; line-height: 1; }

.recipe-count { margin-top: 18px; font-size: 0.82rem; color: var(--ink-soft); }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.recipe {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.recipe:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(16, 35, 26, 0.5); }
.recipe-open { position: relative; display: block; padding: 0; border: 0; background: none; }

.media { display: grid; gap: 3px; aspect-ratio: 5 / 4; background: var(--paper); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; min-height: 0; min-width: 0; }
.media-2 { grid-template-columns: 1fr 1fr; }
.media-3 { grid-template-columns: 1fr 1fr 1fr; }

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(246, 242, 233, 0.94);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.recipe-meta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.recipe-body h3 { margin: 8px 0 10px; color: var(--green); }
.recipe-desc { color: var(--ink-soft); font-size: 0.92rem; }
.link {
  align-self: flex-start;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}
.link:hover { color: var(--gold); }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--ink-soft); }

/* ── Кроки ── */
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.step-list li { counter-increment: step; position: relative; padding: 24px 0 24px 68px; border-top: 1px solid var(--line); }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.step-list h3 { font-size: 1.4rem; color: var(--green); }
.step-list p { margin-top: 6px; font-size: 0.93rem; color: var(--ink-soft); }

/* ── Підвал ── */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 56px 0; }
.footer-inner { display: flex; align-items: center; gap: clamp(28px, 6vw, 72px); }
.footer-logo { width: 180px; flex-shrink: 0; mix-blend-mode: multiply; filter: brightness(1.07); }
.footer-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--green); line-height: 1.2; }
.footer-note { margin-top: 14px; max-width: 70ch; font-size: 0.82rem; color: var(--ink-soft); }
.footer-copy { margin-top: 18px; font-size: 0.78rem; color: var(--ink-soft); }

/* ── Вікно рецепта ── */
dialog {
  width: min(860px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}
dialog::backdrop { background: rgba(16, 35, 26, 0.72); backdrop-filter: blur(3px); }
.dialog-close {
  position: sticky;
  top: 14px;
  z-index: 2;
  float: right;
  margin: 14px 14px -54px 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  color: var(--green);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
dialog .media { aspect-ratio: 16 / 9; }
.dialog-text { padding: 30px clamp(22px, 5vw, 44px) 40px; }
.dialog-text h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--green); margin: 8px 0 12px; }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 24px 0 0; padding: 18px 0; border-block: 1px solid var(--line); font-weight: 600; }
.facts span { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--cream-deep); font-size: 0.78rem; }

.cols { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; margin-top: 30px; }
.cols h4 { font-size: 1.4rem; color: var(--green); margin-bottom: 12px; }
.ing { list-style: none; padding: 0; margin: 0; font-size: 0.93rem; }
.ing li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.steps { margin: 0; padding-left: 1.3em; font-size: 0.95rem; }
.steps li { padding: 0 0 12px 6px; }
.steps li::marker { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--gold); }

.tip { margin-top: 26px; padding: 16px 20px; border-left: 3px solid var(--leaf); background: var(--cream); border-radius: 0 12px 12px 0; font-size: 0.92rem; }

/* ── Адаптив ── */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .myth-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hero-inner, .plate-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .step-list { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 4px 16px; padding: 10px 0 8px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 22px; }
  html { scroll-padding-top: 120px; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-note { display: none; }
  .recipe-grid { grid-template-columns: 1fr; }
  .myth-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .banner { grid-template-columns: repeat(3, 1fr); }
  .banner img:nth-child(n + 4) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
