/* ===========================================================
   ФГ «Династія» — дизайн-система
   Рустик / крафт-папір / штампи. Текстура стримана (~20%).
   Зелений — бренд/CTA, коричневий — текст, бурштин — акценти.
   =========================================================== */

:root {
  /* Крафт-папір база */
  --paper:        #f3e9d2;
  --paper-2:      #efe2c6;   /* трохи темніший крафт для секцій */
  --card:         #faf4e3;   /* світла картка-етикетка */
  --card-edge:    #e6d7b4;

  /* Зелений — бренд / CTA */
  --green-900:    #2c3a1b;   /* темні секції */
  --green-800:    #38491f;
  --green-700:    #4b6128;   /* основний бренд */
  --green-600:    #5d7a32;
  --green-500:    #6f9039;   /* яскравий CTA */
  --green-ink:    #41562a;   /* зелений текст (слогани) */

  /* Коричневий — текст / заголовки */
  --brown-900:    #2f2113;
  --brown-800:    #3e2c19;
  --brown-700:    #4f3a22;
  --brown-500:    #6b513210;

  /* Бурштин — точкові акценти */
  --amber:        #d99a2c;
  --amber-soft:   #e6b94f;
  --amber-ink:    #a9701a;

  /* Нейтральні */
  --line:         #d9c9a3;
  --line-soft:    #e4d6b6;
  --muted:        #8a7350;

  /* Типографіка */
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans:    "Nunito", system-ui, sans-serif;

  /* Розміри */
  --maxw: 1240px;
  --gut:  clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
  --inset: clamp(10px, 1.6vw, 20px);  /* відступ навколо плаваючих блоків (footer/hero/scroll-story/рецепти/хедер) */
  --rcard: clamp(18px, 2.2vw, 28px);  /* радіус заокруглення карток */
  --header-h: 76px;                   /* висота панелі хедера */
  --header-top: clamp(30px, 3vw, 44px); /* відступ капсули хедера від верху екрана (капсула лежить усередині hero) */

  /* Текстура (інтенсивність зерна паперу ~20%) */
  --grain: 0.05;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--brown-800);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

/* Внутрішні сторінки (з банером): суцільне тло #efe2c6 — щоб під плаваючим хедером
   колір збігався з банером, а не світлішим --paper */
body:has(.page-banner) { background: var(--paper-2); }

/* Зерно паперу — тонкий накладений шум на всю сторінку */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----------------------- Лейаут ----------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.section { padding: clamp(64px, 9vw, 130px) 0; }

/* ----------------------- Типографіка ----------------------- */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 6px;
  border: 1.5px solid var(--green-700);
  border-radius: 999px;
  background: transparent;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: var(--brown-900);
  margin: 0;
}

h2.display { font-size: clamp(34px, 5.5vw, 62px); }
h3.display { font-size: clamp(24px, 3vw, 34px); }

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--brown-700);
  line-height: 1.55;
}

.slogan {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--green-ink);
  font-size: 17px;
  line-height: 1.35;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.section-head .titles { max-width: 720px; }
.section-head .kicker { margin-bottom: 20px; }

/* ----------------------- Кнопки ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green-700);
  color: #fbf6e8;
  box-shadow: 0 8px 22px -12px rgba(44,58,27,.7);
}
.btn-primary:hover { background: var(--green-600); }

.btn-amber {
  background: var(--amber-soft);
  color: var(--brown-900);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(168,112,26,.7);
}
/* Блиск, що пробігає по кнопці на ховері */
.btn-amber::before {
  content: ""; position: absolute; top: 0; left: -140%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn-amber:hover { background: var(--amber); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(168,112,26,.6); }
.btn-amber:hover::before { animation: btnShine .8s ease; }
@keyframes btnShine { from { left: -140%; } to { left: 165%; } }

.btn-ghost {
  background: transparent;
  border-color: var(--green-700);
  color: var(--green-ink);
}
.btn-ghost:hover { background: var(--green-700); color: #fbf6e8; }

.btn-light {
  background: var(--paper);
  color: var(--brown-900);
  border-color: var(--card-edge);
}
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(47,33,19,.45); }

.link-arrow {
  font-weight: 800;
  color: var(--green-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid transparent;
  transition: gap .15s ease, border-color .2s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { gap: 13px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ----------------------- Бейдж-штамп ----------------------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--green-ink);
  padding: 6px 12px 5px;
  border: 1.5px solid var(--green-600);
  border-radius: 8px;
  background: rgba(111,144,57,.06);
  line-height: 1;
}
.stamp svg { width: 14px; height: 14px; flex: none; color: var(--green-600); }
.stamp.amber { color: var(--amber-ink); border-color: var(--amber); background: rgba(217,154,44,.08); }
.stamp.amber svg { color: var(--amber-ink); }

/* пунктирна «вирубка» */
.cut {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* ----------------------- Плейсхолдери фото ----------------------- */
.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--paper-2);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(75,97,40,.10) 0 2px,
      transparent 2px 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-ink);
}
.ph::after {
  content: attr(data-label);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-ink);
  opacity: .72;
  background: rgba(243,233,210,.7);
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px dashed var(--green-600);
  text-align: center;
  max-width: 80%;
}
.ph.dark {
  background-color: var(--green-900);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.06) 0 2px,
      transparent 2px 13px);
}
.ph.dark::after {
  color: #e9dcb8;
  background: rgba(44,58,27,.55);
  border-color: rgba(233,220,184,.5);
}

/* ----------------------- Утиліти ----------------------- */
.center { text-align: center; }
.hidden { display: none !important; }

/* ===================== АНІМАЦІЇ ===================== */
@media (prefers-reduced-motion: no-preference) {

  /* Базова поява на скрол (різні напрямки) */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
  .reveal.revealed { opacity: 1; transform: none; }
  .reveal-left  { transform: translateX(-34px); }
  .reveal-right { transform: translateX(34px); }
  .reveal-zoom  { transform: scale(.94); }
  .reveal-left.revealed, .reveal-right.revealed, .reveal-zoom.revealed { transform: none; }

  /* Стаґер: затримка за індексом всередині групи */
  .reveal[data-i="0"] { transition-delay: 0s; }
  .reveal[data-i="1"] { transition-delay: .08s; }
  .reveal[data-i="2"] { transition-delay: .16s; }
  .reveal[data-i="3"] { transition-delay: .24s; }
  .reveal[data-i="4"] { transition-delay: .32s; }
  .reveal[data-i="5"] { transition-delay: .40s; }

  /* Hero — фон: повільний кінематографічний зум-аут + поява (до scale 1.1 — база паралаксу) */
  .heroA .hero-photo {
    transform: scale(1.1);
    animation: heroFade 6s cubic-bezier(.16,.84,.3,1) forwards;
  }
  @keyframes heroFade { from { opacity: .3; transform: scale(1.18); } to { opacity: 1; transform: scale(1.1); } }

  /* Hero — преміальний вхід контенту */
  @keyframes heroUp { from { opacity: 0; transform: translateY(30px); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes heroLine { from { transform: translateY(118%); } to { transform: translateY(0); } }
  .heroA .hero-tag { animation: heroUp .85s cubic-bezier(.22,.61,.36,1) .2s both; }
  .heroA h1 .ln-in { transform: translateY(118%); animation: heroLine 1.05s cubic-bezier(.2,.7,.2,1) both; }
  .heroA h1 .ln:nth-child(1) .ln-in { animation-delay: .34s; }
  .heroA h1 .ln:nth-child(2) .ln-in { animation-delay: .48s; }
  .heroA .hero-sub { animation: heroUp .9s cubic-bezier(.22,.61,.36,1) .78s both; }
  .heroA .hero-cta .btn { animation: heroUp .8s cubic-bezier(.22,.61,.36,1) both; }
  .heroA .hero-cta .btn:nth-child(1) { animation-delay: .96s; }
  .heroA .hero-cta .btn:nth-child(2) { animation-delay: 1.06s; }
  /* Затримка рахується з індексу, який проставляє шаблон (--i), а не з
     переліку nth-child: лічильників у hero може бути скільки завгодно,
     їх додають в адмінці. Раніше правил вистачало лише на три, і
     четвертий з'являвся без затримки — раніше за всі попередні. */
  .heroA .hero-stats .stat {
    animation: heroUp .8s cubic-bezier(.22,.61,.36,1) both;
    animation-delay: calc(1.18s + var(--i, 0) * .1s);
  }

  /* Печатка «Родинна справа» — легке погойдування при появі */
  .about-media .seal { transition: transform .8s cubic-bezier(.34,1.56,.64,1) .2s, opacity .6s ease .2s; }
  .reveal:not(.revealed) .seal,
  .about-media.reveal:not(.revealed) .seal { opacity: 0; transform: rotate(-8deg) scale(.6); }

  /* Підкреслення в заголовках секцій (kicker pulse) */
  .kicker::before { animation: dotPulse 2.6s ease-in-out infinite; }
  @keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.45); opacity: .7; }
  }

  /* Стрілки-лінки — ледь помітне «дихання» вже на ховері (підсилює) */
  .btn svg { transition: transform .25s ease; }
  .btn:hover svg { transform: translateX(3px); }
}

/* Стан хедера при скролі (на самій панелі .nav) */
.site-header .nav { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled .nav { box-shadow: 0 18px 40px -22px rgba(47,33,19,.6); background: rgba(243,233,210,.95); }
@media (max-width: 760px) {
  body { font-size: 16px; }
}

/* --- sections --- */
/* ===========================================================
   ФГ «Династія» — секції головної
   =========================================================== */

/* ----------------------- Хедер (плаваюча панель) ----------------------- */
.site-header {
  position: sticky;
  top: var(--header-top);
  margin-top: var(--header-top);
  padding: 0 var(--inset);     /* бічний відступ панелі на вузьких екранах */
  z-index: 100;
  pointer-events: none;        /* порожні краї не ловлять кліки; панель — auto нижче */
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  /* видима панель */
  background: rgba(243,233,210,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: var(--rcard);
  box-shadow: 0 14px 34px -22px rgba(47,33,19,.5);
  pointer-events: auto;
}
/* Капсула: трохи ширша за контентну сітку (~+20px з кожного боку);
   менші внутрішні відступи — логотип ближче до лівого краю, кнопка до правого */
.site-header .nav {
  max-width: 1120px;
  padding-left: clamp(14px, 1.6vw, 20px);
  padding-right: clamp(14px, 1.6vw, 20px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-logo { height: 60px; width: auto; display: block; }
.brand-logo--footer { height: 104px; }
@media (max-width: 860px){ .brand-logo { height: 52px; } }
.emblem {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--green-700);
  display: grid;
  place-items: center;
  background: var(--card);
  flex: none;
  position: relative;
}
.emblem span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--green-700);
  line-height: 1;
}
.emblem::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed var(--green-600);
  opacity: .55;
}
.brand-text b {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 19px;
  color: var(--brown-900);
  display: block;
  line-height: 1;
}
.brand-text small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  font-weight: 700;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 700;
  font-size: 15px;
  color: var(--brown-700);
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width .2s ease;
}
.nav-links a:hover { color: var(--green-ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green-ink); }
.nav-links a.active::after { width: 100%; background: var(--green-700); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
/* Контактний блок меню — лише в мобільному меню (див. @media 860px) */
.nav-extra { display: none; }

/* Швидкі контакти в шапці — тільки на мобільному (див. @media 860px) */
.nav-quick { display: none; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--brown-800); border-radius: 2px; transition: .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------- Hero (спільне) ----------------------- */
/* Hero-картка починається від верху з тим самим відступом --inset, що й з боків;
   капсула хедера лежить УСЕРЕДИНІ hero з відступом зверху (--header-top > --inset).
   Підтягуємо hero рівно на висоту флоу-простору хедера, щоб картка стала на --inset. */
.hero { position: relative; margin-top: calc(-1 * (var(--header-top) + var(--header-h))); }

/* Hero A — велике фонове фото поля */
.heroA {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #faf4e3;
  overflow: hidden;
  margin: var(--inset);
  border-radius: var(--rcard);
}
.heroA .ph,
.heroA .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.heroA .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.heroA::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(28,38,18,.74) 0%, rgba(28,38,18,.40) 38%, rgba(28,38,18,0) 64%),
    linear-gradient(180deg, rgba(28,38,18,.34) 0%, rgba(28,38,18,0) 30%, rgba(28,38,18,.30) 62%, rgba(28,38,18,.82) 100%);
}
/* padding-top гарантує, що контент завжди нижче капсули хедера навіть на низьких
   екранах (де контент переростає картку): низ капсули від верху картки =
   header-top + header-h - inset, плюс проміжок */
.heroA .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vw, 88px); padding-top: calc(var(--header-top) + var(--header-h) - var(--inset) + 30px); }
.heroA .hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #f3e9d2;
  border: 1.5px solid rgba(243,233,210,.6);
  padding: 7px 14px 6px; border-radius: 999px;
  margin-bottom: 20px;
}
.heroA .hero-tag::before { content:""; width:7px;height:7px;border-radius:50%;background:var(--amber-soft); }
.heroA h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-size: clamp(44px, 7vw, 104px);
  margin: 0 0 16px;
  color: #fcf7ea;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.heroA h1 .amber { color: var(--amber-soft); }
/* Рядки заголовка — обгортки для mask-reveal (текст «виїжджає» з-під краю) */
.heroA h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.heroA h1 .ln-in { display: block; will-change: transform; }
.heroA .hero-sub {
  max-width: 560px;
  font-size: clamp(17px, 2vw, 21px);
  color: #f0e7d0;
  font-weight: 600;
  margin: 0 0 24px;
}
.heroA .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: flex;
  gap: clamp(26px, 4vw, 48px);
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(243,233,210,.28);
  max-width: 620px;
}
.hero-stats .stat b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  color: #fcf7ea;
  line-height: 1;
  display: block;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-stats .stat span { font-size: 13px; color: #e7dcbf; font-weight: 700; }

/* ----------------------- Про нас ----------------------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-media { position: relative; }
.about-media .ph,
.about-media .about-photo {
  aspect-ratio: 5/5.6;
  border-radius: var(--radius-lg);
  border: 10px solid var(--card);
  box-shadow: 0 28px 56px -32px rgba(47,33,19,.45);
}
.about-media .about-photo {
  width: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.about-media .seal {
  position: absolute;
  right: -22px; bottom: -22px;
  width: 124px; height: 124px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--brown-900);
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: 15px;
  border: 2px dashed var(--brown-900);
  transform: rotate(-8deg);
  padding: 10px;
}
.about p { margin: 0 0 18px; color: var(--brown-700); }
.about .lead { margin-bottom: 24px; }
.about-meta {
  display: flex; gap: 34px; flex-wrap: wrap;
  margin: 28px 0 30px;
}
.about-meta .m b {
  font-family: var(--display); font-weight: 700;
  font-size: 40px; color: var(--green-700); line-height: 1; display: block;
}
.about-meta .m span { font-size: 14px; color: var(--muted); font-weight: 700; }

/* ----------------------- Продукція ----------------------- */
.products { background: var(--paper-2); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -26px rgba(47,33,19,.5); }
.product-card .pc-pack { background: var(--card); overflow: hidden; }
.product-card .pc-pack img { width: 100%; display: block; transition: transform .4s ease; }
.product-card:hover .pc-pack img { transform: scale(1.045); }
.product-card .pc-info {
  padding: 0 18px 18px;
  display: flex; flex-direction: column; flex: 1;
  border-top: 1px dashed var(--line);
}
.product-card .pc-cat {
  font-family: var(--sans); font-weight: 800; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-ink); margin: 14px 0 7px;
}
.product-card h3 {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: 21px; line-height: 1.04;
  color: var(--brown-900); margin: 0 0 10px;
}
.product-card .pc-slogan {
  font-size: 14.5px; line-height: 1.42; color: var(--brown-700);
  margin: 0 0 18px;
}
.product-card .pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.product-card .pc-weight { font-size: 13px; color: var(--muted); font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.product-card .pc-go {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-700); color: #fbf6e8;
  display: grid; place-items: center; flex: none;
  transition: background .2s ease, transform .2s ease;
}
.product-card:hover .pc-go { background: var(--green-600); transform: rotate(-45deg); }
.product-card .pc-go svg { width: 16px; height: 16px; }

/* ----------------------- Рецепти ----------------------- */
.recipes { background: var(--green-900); color: #f1e7cf; position: relative; margin: var(--inset); border-radius: var(--rcard); }
.recipes .kicker { color: #d7e3b0; border-color: rgba(215,227,176,.5); }
.recipes .kicker::before { background: var(--amber-soft); }
.recipes h2.display { color: #fcf7ea; }
.recipes .lead { color: #d9cfb2; }

/* Та сама секція, але на світлому фоні (сторінка окремого рецепта).
   Кольори вище розраховані на темно-зелений фон, тож тут повертаємо
   звичайні — інакше заголовок і бейдж світлі на світлому й не читаються. */
.recipes.on-paper { background: var(--paper-2); color: var(--brown-800); }
.recipes.on-paper .kicker { color: var(--green-ink); border-color: var(--green-700); }
.recipes.on-paper .kicker::before { background: var(--amber); }
.recipes.on-paper h2.display { color: var(--brown-900); }
.recipes.on-paper .lead { color: var(--brown-700); }
.recipes.on-paper .link-arrow { color: var(--green-ink); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.recipe-card {
  background: rgba(250,244,227,.05);
  border: 1px solid rgba(241,231,207,.16);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.recipe-card:hover { transform: translateY(-5px); border-color: var(--amber-soft); }
.recipe-card .rc-media { position: relative; }
.recipe-card .rc-media .ph { aspect-ratio: 16/10; }
.recipe-card .rc-media .rc-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.recipe-card .rc-time {
  position: absolute; top: 12px; right: 12px;
  background: var(--amber-soft); color: var(--brown-900);
  font-weight: 800; font-size: 12px;
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
.recipe-card .rc-body { padding: 20px 20px 22px; }
.recipe-card .rc-cat { font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #c9d79a; }
.recipe-card h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 21px; line-height: 1.04; color: #fcf7ea; margin: 10px 0 12px;
}
.recipe-card p { font-size: 14.5px; color: #cfc6aa; margin: 0 0 16px; }
.recipes .link-arrow { color: var(--amber-soft); }

/* ----------------------- Сторінка статті ----------------------- */
.post-meta-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.post-meta-top .stamp { text-decoration: none; }
.stamp.draft-mark { color: #8a5b12; border-color: #d9a92c; background: rgba(217,169,44,.14); }

.post-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.post-author .pa-photo {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--card-edge);
}
.post-author .pa-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-author .pa-name { font-weight: 800; color: var(--brown-900); font-size: 16px; }
.post-author .pa-bio { font-size: 14px; color: var(--brown-700); }

.post-faq { margin-top: clamp(34px, 5vw, 52px); }
/* Відступ між кінцем статті й блоком «Інші статті» був завеликий:
   складався з повного нижнього падінгу секції та верхнього — наступної.
   Ділимо обидва навпіл. */
.post-body-section { padding-bottom: clamp(26px, 3.4vw, 48px); }
.post-body-section + .section { padding-top: clamp(26px, 3.4vw, 48px); }
.post-body-section .prose > div:last-child { margin-top: 24px !important; }
.post-faq h2.display { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.faq-item {
  border: 1px solid var(--card-edge); border-radius: 14px;
  background: var(--card); padding: 0 18px; margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; color: var(--brown-900); font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item .faq-answer { padding: 0 0 18px; color: var(--brown-700); line-height: 1.6; }

/* ----------------------- Блог ----------------------- */
.blog { background: var(--paper); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -26px rgba(47,33,19,.4); }
.post .post-media { position: relative; overflow: hidden; }
.post .post-media .ph { aspect-ratio: 16/10; }
.post .post-media .post-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .4s ease; }
.post:hover .post-media .post-photo { transform: scale(1.045); }
.post .post-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--card); color: var(--green-ink);
  font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px; border: 1px solid var(--green-600);
}
.post .post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post .post-date { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 20px; line-height: 1.06; color: var(--brown-900); margin: 9px 0 14px;
}
.post .link-arrow { margin-top: auto; font-size: 14px; }

/* ----------------------- Футер ----------------------- */
.site-footer {
  background-color: var(--green-900);
  background-image: url("footer-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  color: #e7dcbf;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 34px;
  margin: var(--inset);
  border-radius: var(--rcard);
}
.site-footer::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,38,18,.86) 0%, rgba(34,46,22,.74) 42%, rgba(22,30,14,.90) 100%),
    linear-gradient(90deg, rgba(28,38,18,.80) 0%, rgba(28,38,18,.34) 55%, rgba(28,38,18,.62) 100%);
  pointer-events: none;
  z-index: 0;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-word {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(70px, 16vw, 230px);
  line-height: 0.8;
  color: rgba(241,231,207,.10);
  position: absolute;
  left: var(--gut); bottom: 8px;
  pointer-events: none;
  letter-spacing: .01em;
}
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; padding-bottom: 60px; }
.footer-brand .emblem { border-color: var(--amber-soft); background: transparent; }
.footer-brand .emblem span { color: var(--amber-soft); }
.footer-brand .emblem::after { border-color: rgba(230,185,79,.5); }
.footer-brand .brand-text b { color: #fcf7ea; }
.footer-brand .brand-text small { color: var(--amber-soft); }
.footer-brand p { color: #cfc6aa; max-width: 280px; margin: 18px 0 0; font-size: 15px; }
.footer-col h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; color: #fcf7ea; margin: 4px 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #cfc6aa; font-size: 15px; transition: color .18s; }
.footer-col a:hover { color: var(--amber-soft); }
.footer-contact .ci { display: block; font-size: 16px; color: #f1e7cf; font-weight: 700; margin-bottom: 8px; }
.footer-socials { display: flex; gap: 9px; margin-top: 18px; }
.footer-socials a {
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(230,185,79,.4); color: var(--amber-soft);
  transition: .18s;
}
.footer-socials a:hover { background: var(--amber-soft); color: var(--brown-900); }
.footer-bottom {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(241,231,207,.15);
  font-size: 13px; color: #b6ab8c;
}

/* ----------------------- Адаптив ----------------------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: flex; }

  /* На вузьких екранах капсула хедера стояла на 20px нижче за верх
     hero-картки, і над нею визирала смужка фото. Ставимо капсулу врівень
     із карткою і робимо на 2px ширшою (по 1px з кожного боку), щоб з-під
     її заокруглених кутів не проглядало зображення.
     --header-top використовується і у відступі hero, тож картка лишається
     на місці. */
  :root { --header-top: var(--inset); }
  .site-header { padding: 0 calc(var(--inset) - 1px); }

  /* Дзвінок і лист одним дотиком, без відкривання меню */
  .nav-quick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--brown-800);
    transition: color .18s ease, border-color .18s ease;
  }
  .nav-quick svg { width: 21px; height: 21px; }
  .nav-quick:hover, .nav-quick:active { color: var(--green-700); border-color: currentColor; }
  /* Над розгорнутим меню лишаються клікабельними, як логотип і бургер */
  body.menu-open .nav-quick { position: relative; z-index: 95; }
  .nav-actions { gap: 8px; }

  /* --- Мобільне меню на весь екран --- */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--paper);
    padding: calc(76px + 28px) var(--gut) max(32px, env(safe-area-inset-bottom));
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: menuIn .26s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

  /* Пункти навігації */
  .nav-links.open li { width: 100%; }
  .nav-links.open li:not(.nav-extra) { border-bottom: 1px solid var(--line-soft); }
  .nav-links.open li:not(.nav-extra) a {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 23px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--brown-900);
    padding: 17px 2px;
  }
  .nav-links.open li:not(.nav-extra) a::after { display: none; }

  /* Контакти + соцмережі (інжектиться через app.js) */
  .nav-links.open .nav-extra { display: block; margin-top: auto; padding-top: 28px; }
  /* CTA-кнопка: перебиваємо базове .nav-links a (темний колір і вузький padding) */
  .nav-extra .nav-menu-cta {
    display: flex; width: 100%; justify-content: center;
    margin: 6px 0 24px;
    padding: 17px 26px;
    font-size: 16px;
    color: #fff;
  }
  .nav-extra .nav-menu-cta svg { color: #fff; }
  .nav-extra .nav-menu-cta:hover { color: #fff; }
  .nav-contacts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
  .nav-ci {
    display: inline-flex; align-items: center; gap: 12px;
    font-weight: 800; font-size: 17px; color: var(--brown-800);
  }
  .nav-ci svg { width: 20px; height: 20px; flex: none; color: var(--green-700); }
  .nav-socials { display: flex; gap: 12px; }
  .nav-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--card);
    color: var(--brown-800); transition: color .18s ease, border-color .18s ease;
  }
  .nav-socials a svg { width: 21px; height: 21px; }
  .nav-socials a:hover { color: var(--green-700); border-color: var(--green-700); }

  .about-grid { grid-template-columns: 1fr; }
  .recipe-grid, .blog-grid { grid-template-columns: 1fr; }
}

/* Відкрите меню: блокування прокрутки тіла та суцільний хедер поверх меню */
body.menu-open { overflow: hidden; }
/* backdrop-filter на панелі .nav робить її containing-block для fixed-нащадків —
   прибираємо його при відкритому меню, щоб меню розкривалось на весь екран (viewport) */
body.menu-open .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Шапка — sticky, але overflow:hidden на body ламає sticky: якщо меню
   відкрити після скролу, шапка лишається на своєму місці в документі
   й їде за межі екрана разом із логотипом і кнопкою закриття.
   Поки меню відкрите — тримаємо її fixed відносно вікна. */
body.menu-open .site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  margin-top: 0;
}
/* Логотип і кнопка-бургер мають лишатися видимими та клікабельними над меню */
body.menu-open .brand,
body.menu-open .burger { position: relative; z-index: 95; }
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  /* Печатки не повинні виходити за край екрана */
  .about-media .seal { right: 4px; bottom: -16px; width: 96px; height: 96px; font-size: 13px; }
  .pd-seal { top: -12px; right: 4px; width: 92px; height: 92px; font-size: 13px; }
  /* Статистика «Про нас» — в один рядок */
  .about-meta { flex-wrap: nowrap; gap: 16px; }
  .about-meta .m b { font-size: 30px; }
  .about-meta .m span { font-size: 12.5px; }
}



/* ===========================================================
   ФГ «Династія» — ВНУТРІШНІ СТОРІНКИ (спільні компоненти)
   Усі підсторінки використовують цей же файл — без дублювання.
   =========================================================== */

/* ----------------------- Банер підсторінки ----------------------- */
.page-banner {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(40px, 6vw, 74px) 0 clamp(34px, 5vw, 56px);
  position: relative;
}
.crumbs {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  color: var(--muted); margin-bottom: 22px; flex-wrap: wrap;
}
.crumbs a { color: var(--green-ink); transition: color .18s ease; }
.crumbs a:hover { color: var(--green-700); }
.crumbs .sep { color: var(--line); font-weight: 700; }
.crumbs .cur { color: var(--brown-700); }
.banner-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 48px); align-items: flex-end;
}
.page-banner h1.display { font-size: clamp(40px, 6.4vw, 82px); margin: 14px 0 0; }
.page-banner .lead { margin-top: 20px; max-width: 620px; }
.banner-aside { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right; }
.banner-aside .num { font-family: var(--display); font-weight: 700; font-size: clamp(40px,5vw,64px); color: var(--green-700); line-height: .9; }
.banner-aside .num small { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 6px; }

/* ----------------------- Текстова стаття (prose) ----------------------- */
.prose { max-width: 760px; }
.prose > p { margin: 0 0 20px; color: var(--brown-700); font-size: 17.5px; }
.prose.lede > p:first-child::first-letter {
  font-family: var(--display); font-weight: 700; float: left;
  font-size: 72px; line-height: .78; padding: 6px 14px 0 0; color: var(--green-700);
}
.prose h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 30px); color: var(--brown-900);
  margin: 38px 0 14px; letter-spacing: .01em;
}
.prose ul { margin: 0 0 22px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding: 0 0 10px 26px; color: var(--brown-700); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--amber); border: 1px solid var(--amber-ink);
}
.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 26px;
  border-left: 4px solid var(--green-600);
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.12; color: var(--green-ink);
}
.prose figure { margin: 28px 0; }
.prose figure img, .prose figure .ph { border-radius: var(--radius); border: 8px solid var(--card); width: 100%; }
.prose figcaption { font-family: "Courier New", monospace; font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ----------------------- Цінності / фічі ----------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 30px 26px 28px;
}
.feature .ficon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(111,144,57,.10); border: 1.5px solid var(--green-600); color: var(--green-700);
}
.feature .ficon svg { width: 24px; height: 24px; }
/* Своя іконка з медіатеки — той самий розмір, що й стандартна */
.feature .ficon img { width: 24px; height: 24px; object-fit: contain; display: block; }
.feature h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 21px; color: var(--brown-900); margin: 0 0 10px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--brown-700); }

/* ----------------------- Таймлайн ----------------------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-700); border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--green-700);
}
.tl-item .tl-year { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--green-700); line-height: 1; }
.tl-item h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 19px; color: var(--brown-900); margin: 8px 0 8px; }
.tl-item p { margin: 0; color: var(--brown-700); font-size: 15.5px; max-width: 520px; }

/* ----------------------- Стрічка-статистика (темна) ----------------------- */
.stat-band { background: var(--green-900); color: #f1e7cf; }
.stat-band .kicker { color: #d7e3b0; border-color: rgba(215,227,176,.5); }
.stat-band .kicker::before { background: var(--amber-soft); }
.stat-band h2.display { color: #fcf7ea; }
.stat-band .lead { color: #d9cfb2; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.stat-row .s b { font-family: var(--display); font-weight: 700; font-size: clamp(40px,5vw,62px); color: var(--amber-soft); line-height: 1; display: block; }
.stat-row .s span { font-size: 14.5px; color: #d9cfb2; font-weight: 700; }

/* ----------------------- CTA-смуга ----------------------- */
.cta-band { background: var(--paper-2); }
.cta-box {
  background: var(--green-900); color: #f1e7cf;
  border-radius: var(--radius-lg); padding: clamp(36px,5vw,60px) clamp(28px,5vw,64px);
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-box h2.display { color: #fcf7ea; font-size: clamp(30px,4vw,50px); margin: 0 0 12px; }
.cta-box p { margin: 0; color: #d9cfb2; max-width: 520px; }
.cta-box .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----------------------- Фільтр-чіпи ----------------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(30px,4vw,46px); }
.chip {
  font-family: var(--sans); font-weight: 800; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--card-edge); background: var(--card);
  color: var(--brown-700); transition: .18s ease; white-space: nowrap;
}
.chip:hover { border-color: var(--green-600); color: var(--green-ink); }
.chip.on { background: var(--green-700); border-color: var(--green-700); color: #fbf6e8; }

/* ----------------------- Картки з реальними фото ----------------------- */
.post-media .post-photo, .rc-media .rc-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Пакшоти продукції — показуємо ВСЮ упаковку, фон під колір фото пакування */
.product-card .pc-pack { position: relative; aspect-ratio: 4 / 4.5; background: #f3eede; }
/* Подяка замість форми після успішної відправки */
.contact-form.form-sent {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  justify-content: center;
}
.contact-form.form-sent h3 { margin: 0 0 10px; }
.contact-form.form-sent p {
  margin: 0 auto 26px;
  max-width: 42ch;
  color: var(--brown-700);
  font-size: 16px;
  line-height: 1.6;
}
.contact-form.form-sent .btn { min-width: 210px; justify-content: center; }
.contact-form.form-sent .btn svg { width: 18px; height: 18px; }

/* Помилка над формою — у стилі сайту, а не типовий червоний прямокутник */
.form-alert {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px; padding: 13px 16px;
  border: 1px solid rgba(179,38,30,.35);
  background: rgba(179,38,30,.06);
  border-radius: 14px;
  color: #8c2f26; font-size: 15px; font-weight: 600; line-height: 1.45;
}
.form-alert svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* Підказки валідації у формах */
.field { position: relative; }
.field-error {
  display: block; margin-top: 6px;
  font-size: 13px; font-weight: 600; line-height: 1.35;
  color: #b3261e;
}
.field input.has-error,
.field textarea.has-error {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179,38,30,.10);
}

/* Позначка «Хіт» — перемикач «Хіт / виділений» у картці товару */
.product-card .pc-hit {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center;
  padding: 7px 13px; border-radius: 999px;
  font-family: var(--sans); font-weight: 800; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: var(--amber-ink); background: rgba(217,154,44,.16);
  border: 1px solid var(--amber);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.product-card .pc-pack img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

/* ----------------------- Рецепт-картки на світлому фоні ----------------------- */
.recipe-grid.on-paper .recipe-card { background: var(--card); border-color: var(--card-edge); }
.recipe-grid.on-paper .recipe-card:hover { border-color: var(--amber); }
.recipe-grid.on-paper .recipe-card .rc-cat { color: var(--green-ink); }
.recipe-grid.on-paper .recipe-card h3 { color: var(--brown-900); }
.recipe-grid.on-paper .recipe-card p { color: var(--brown-700); }
.recipe-grid.on-paper .recipe-card .link-arrow { color: var(--green-ink); }

/* ----------------------- Деталь продукту ----------------------- */
.pd-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px,5vw,68px); align-items: start; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius-lg); padding: clamp(20px,4vw,44px);
  position: relative; box-shadow: 0 28px 56px -36px rgba(47,33,19,.4);
}
.pd-main img { width: 100%; object-fit: contain; aspect-ratio: 4/4.6; display: block; }
.pd-seal {
  position: absolute; top: -18px; right: -18px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--amber-soft); color: var(--brown-900);
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: 1.05; font-size: 14px; border: 2px dashed var(--brown-900);
  transform: rotate(-9deg); padding: 8px;
}
.pd-cat { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); }
.pd-info h1.display { font-size: clamp(36px,5vw,60px); margin: 12px 0 18px; }
.pd-slogan { font-size: clamp(18px,2vw,21px); color: var(--brown-700); font-weight: 600; margin: 0 0 22px; max-width: 480px; }
.pd-stamps { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; }
.pd-buy {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 30px;
}
.pd-price { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--green-700); line-height: 1; }
.pd-price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 700; display: block; }
.pd-specs { width: 100%; border-collapse: collapse; margin: 6px 0 28px; }
.pd-specs th, .pd-specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
.pd-specs th { color: var(--muted); font-weight: 700; width: 42%; }
.pd-specs td { color: var(--brown-800); font-weight: 700; }
.pd-desc p { color: var(--brown-700); margin: 0 0 16px; }

/* ----------------------- Деталь рецепту ----------------------- */
.rd-hero img, .rd-hero .ph { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius-lg); border: 10px solid var(--card); display: block; }
.rd-meta { display: flex; gap: 30px; flex-wrap: wrap; margin: 28px 0; padding: 22px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.rd-meta .m b { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--green-700); display: block; line-height: 1; }
.rd-meta .m span { font-size: 13px; color: var(--muted); font-weight: 700; }
.rd-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px,5vw,60px); align-items: start; }
.ingredients { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 28px 26px; position: sticky; top: 100px; }
.ingredients h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; color: var(--brown-900); margin: 0 0 18px; }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); font-size: 15.5px; color: var(--brown-800); }
.ingredients li:last-child { border-bottom: none; }
.ingredients li span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.steps { counter-reset: step; }
.steps .step { position: relative; padding: 0 0 26px 64px; }
.steps .step:last-child { padding-bottom: 0; }
.steps .step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-700); color: #fbf6e8;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 21px;
}
.steps .step h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 18px; color: var(--brown-900); margin: 6px 0 8px; }
.steps .step p { margin: 0; color: var(--brown-700); }

/* ----------------------- Блог: featured + пагінація ----------------------- */
.post-featured {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(26px,4vw,46px);
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(34px,5vw,52px);
}
.post-featured .pf-media { position: relative; min-height: 320px; }
.post-featured .pf-media img, .post-featured .pf-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-featured .pf-body { padding: clamp(28px,4vw,48px); display: flex; flex-direction: column; justify-content: center; }
.post-featured .pf-body h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px,3.4vw,40px); line-height: 1.02; color: var(--brown-900); margin: 14px 0 16px; }
.post-featured .pf-body p { color: var(--brown-700); margin: 0 0 22px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: clamp(40px,5vw,60px); }
.pagination a { min-width: 46px; height: 46px; padding: 0 14px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--card-edge); background: var(--card); font-weight: 800; color: var(--brown-700); transition: .18s; }
.pagination a:hover { border-color: var(--green-600); color: var(--green-ink); }
.pagination a.on { background: var(--green-700); border-color: var(--green-700); color: #fbf6e8; }

/* ----------------------- Стаття: обкладинка + поділитись ----------------------- */
.article-cover img, .article-cover .ph { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius-lg); border: 10px solid var(--card); display: block; }
.article-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px dashed var(--line); }
.share { display: flex; gap: 9px; align-items: center; }
.share span { font-weight: 800; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* ----------------------- Контакти ----------------------- */
.contacts-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .cicon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(111,144,57,.10); border: 1.5px solid var(--green-600); color: var(--green-700); }
.contact-item .cicon svg { width: 21px; height: 21px; }
.contact-item h4 { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.contact-item .cval { font-size: 18px; font-weight: 800; color: var(--brown-900); }
.contact-item .csub { font-size: 14px; color: var(--brown-700); margin-top: 3px; }
.contact-form {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius-lg); padding: clamp(28px,4vw,42px);
}
.contact-form h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 24px; color: var(--brown-900); margin: 0 0 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--brown-700); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--brown-900);
  background: var(--paper); border: 1.5px solid var(--card-edge); border-radius: 12px;
  padding: 14px 16px; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(111,144,57,.14); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.map-wrap { margin-top: clamp(34px,5vw,52px); }
.map-wrap .ph { aspect-ratio: 21/7; border-radius: var(--radius-lg); border: 8px solid var(--card); }
.map-wrap .map-frame {
  position: relative; aspect-ratio: 21/8;
  border-radius: var(--radius-lg); border: 8px solid var(--card);
  overflow: hidden; box-shadow: 0 26px 50px -32px rgba(47,33,19,.45);
}
.map-wrap .map-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(.18) sepia(.26) saturate(1.12) contrast(.96) brightness(1.02);
  transition: filter .4s ease;
}
.map-wrap .map-frame:hover iframe { filter: none; }
.map-wrap .map-pin {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  background: var(--paper); color: var(--brown-900);
  font-family: var(--sans); font-weight: 800; font-size: 14px;
  padding: 11px 16px 11px 13px; border-radius: 999px;
  border: 1.5px solid var(--card-edge); box-shadow: 0 8px 22px -10px rgba(47,33,19,.5);
  pointer-events: none;
}
.map-wrap .map-pin svg { width: 18px; height: 18px; color: var(--green-700); flex: none; }
@media (max-width: 700px) {
  .map-wrap .map-frame { aspect-ratio: 4/3; }
  .map-wrap .map-pin { font-size: 12.5px; left: 12px; bottom: 12px; }
}

/* ----------------------- Адаптив внутрішніх сторінок ----------------------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .banner-grid { grid-template-columns: 1fr; }
  .banner-aside { align-items: flex-start; text-align: left; }
  .pd-grid, .rd-grid, .contacts-grid, .post-featured, .cta-box { grid-template-columns: 1fr; }
  .pd-gallery, .ingredients { position: static; }
  .post-featured .pf-media { min-height: 240px; }
  .cta-box { text-align: left; }
}
@media (max-width: 560px) {
  .feature-grid, .stat-row, .form-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   ФГ «Династія» — ПОПАП-ЗАЯВКА (Замовити / Прайс)
   =========================================================== */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(34,24,12,.55); backdrop-filter: blur(3px);
  animation: modalFade .2s ease;
}
.modal-card {
  position: relative; width: min(460px, 100%);
  background: var(--paper); border: 1px solid var(--card-edge);
  border-radius: var(--radius-lg); padding: clamp(28px,4vw,40px);
  box-shadow: 0 40px 90px -34px rgba(34,24,12,.65);
  animation: modalPop .26s cubic-bezier(.34,1.56,.64,1);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--card-edge); background: var(--card);
  color: var(--brown-700); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: .18s ease;
}
.modal-close:hover { border-color: var(--green-600); color: var(--green-ink); transform: rotate(90deg); }
.modal-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px,3vw,30px); color: var(--brown-900);
  margin: 12px 0 7px; line-height: 1.05;
}
.modal-sub { color: var(--brown-700); margin: 0 0 22px; font-size: 15px; max-width: 36ch; }
.modal-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* Попап-подяка */
.modal-success { text-align: center; }
.modal-success .modal-title { font-size: clamp(26px, 3.4vw, 32px); margin: 4px 0 10px; }
.modal-success .modal-sub { margin: 0 auto 26px; max-width: 40ch; }
.modal-success .btn { min-width: 170px; width: auto; justify-content: center; }
.success-icon {
  width: 78px; height: 78px; border-radius: 50%; margin: 4px auto 22px;
  background: rgba(111,144,57,.14); border: 2px solid var(--green-600);
  color: var(--green-700); display: grid; place-items: center;
  animation: successPop .42s cubic-bezier(.34,1.56,.64,1);
}
.success-icon svg { width: 38px; height: 38px; }
@keyframes successPop { from { opacity: 0; transform: scale(.5); } }

/* ===========================================================
   ФГ «Династія» — 404 + футер-легал
   =========================================================== */
.footer-legal { display: inline-flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: inherit; opacity: .82; transition: opacity .18s ease, color .18s ease; }
.footer-legal a:hover { opacity: 1; color: var(--amber-soft); }

.error-page {
  background: var(--paper-2);
  min-height: 80vh; display: grid; align-items: center;
  text-align: center;
}
.error-inner { max-width: 700px; margin: 0 auto; }
.error-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(130px, 27vw, 300px); line-height: .82;
  color: var(--green-700); letter-spacing: .01em; margin-bottom: 30px;
  text-shadow: 0 6px 0 rgba(111,144,57,.14);
}
.error-kicker { display: flex; justify-content: center; margin-bottom: 26px; }
.error-page h1.display { font-size: clamp(34px, 6vw, 60px); margin: 0 0 24px; }
.error-page .lead { margin: 0 auto 36px; max-width: 540px; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.error-links {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center;
  font-size: 14px; padding-top: 26px; border-top: 1px dashed var(--line);
  max-width: 460px; margin: 0 auto;
}
.error-links span { color: var(--muted); font-weight: 700; }
.error-links a { color: var(--green-ink); font-weight: 800; transition: color .18s ease; }
.error-links a:hover { color: var(--green-700); }

/* ===========================================================
   Scroll-story — покадрова скрол-анімація «Від зернини до столу»
   =========================================================== */
.scroll-story { position: relative; height: 420vh; }
.ss-sticky {
  position: sticky;
  top: var(--inset);
  height: calc(100vh - 2 * var(--inset));
  margin: 0 var(--inset);
  overflow: hidden;
  border-radius: var(--rcard);
  background: var(--green-900);
}
.ss-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
/* Loop-відео (старт/кінець): «живі» кадри поверх canvas, замінюють статичний перший/останній кадр */
.ss-loop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; opacity: 0; pointer-events: none;
  background: var(--green-900); transition: opacity .28s ease;
}
/* зернистість поверх кадрів — маскує м'якість апскейлу, в естетиці сайту */
.ss-sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.ss-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.ss-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,42,16,.35) 0%, transparent 30%, transparent 62%, rgba(29,42,16,.72) 100%); }
/* top опущено нижче sticky-хедера (76px), щоб заголовок не ховався під ним */
.ss-head { position: absolute; top: clamp(88px, 12vh, 116px); left: 0; right: 0; text-align: center; z-index: 2; }
.ss-head .kicker { color: #d7e3b0; border-color: rgba(215,227,176,.5); }
.ss-head .kicker::before { background: var(--amber-soft); }
.ss-head h2.display { color: #fcf7ea; font-size: clamp(28px, 4vw, 54px); margin: 14px 0 0; text-shadow: 0 2px 18px rgba(29,42,16,.5); }
/* Та сама контентна сітка, що й .wrap (max-width + gut), щоб підписи не вилазили за межі */
.ss-captions { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) clamp(40px, 8vh, 84px); display: grid; }
.ss-caption {
  grid-area: 1 / 1; max-width: 480px;
  opacity: 0;
  transition: opacity .5s ease, transform .55s cubic-bezier(.22,.61,.36,1);
}
/* непарні кроки — зліва, парні — справа: відчуття руху при скролі */
.ss-caption:nth-child(odd)  { justify-self: start; text-align: left;  transform: translateX(-80px) translateY(14px); }
.ss-caption:nth-child(even) { justify-self: end;   text-align: right; transform: translateX(80px) translateY(14px); }
.ss-caption.on { opacity: 1; transform: none; }
.ss-caption .ss-step {
  display: inline-block; font-family: var(--sans); font-weight: 800; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber-soft);
  border: 1.5px dashed rgba(232,191,96,.6); border-radius: 999px; padding: 7px 16px; margin-bottom: 14px;
}
.ss-caption h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.08; color: #fcf7ea; margin: 0 0 10px; }
.ss-caption p { color: #e3d9bc; font-size: clamp(15px, 1.6vw, 18px); margin: 0; }
@media (max-width: 700px) {
  .scroll-story { height: 340vh; }
  /* сильніше затемнення знизу — щоб підписи читалися на світлих кадрах */
  .ss-overlay::after { background: linear-gradient(180deg, rgba(29,42,16,.14) 0%, transparent 22%, rgba(29,42,16,.5) 54%, rgba(29,42,16,.9) 100%); }
  .ss-caption .ss-step { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
  .ss-caption h3 { text-shadow: 0 2px 14px rgba(0,0,0,.62); }
  .ss-caption p  { text-shadow: 0 1px 10px rgba(0,0,0,.66); }
  .ss-caption:nth-child(odd), .ss-caption:nth-child(even) {
    justify-self: center; text-align: center;
    transform: translateY(24px);
  }
  .ss-caption.on { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-story { height: auto; }
  .ss-sticky { position: relative; height: 70vh; }
  .ss-caption { opacity: 1; transform: none; }
  .ss-captions { display: flex; flex-direction: column; gap: 18px; }
}

/* ===========================================================
   Логотипи торгових мереж (АТБ / Сільпо / Фора / Novus)
   =========================================================== */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-logo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; height: 54px; padding: 0 18px;
  background: #fff; border: 1px solid var(--card-edge); border-radius: 12px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  box-shadow: 0 8px 18px -14px rgba(47,33,19,.5);
}
.store-atb   { color: #e2231a; }
.store-silpo { color: #1f7a3d; }
.store-fora  { color: #e87a1e; }
.store-novus { color: #00529b; }
a.store-logo { transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease; }
a.store-logo:hover { transform: translateY(-2px); border-color: currentColor; box-shadow: 0 12px 22px -14px rgba(47,33,19,.55); }

/* Секція «Шукайте у мережах» під зображенням товару */
.pd-stores { margin-top: clamp(20px, 3vw, 28px); }
.pd-stores-title {
  display: block; font-weight: 800; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

/* Магазини в попапі «Оформити замовлення» */
.modal-stores { margin: 2px 0 18px; }
.modal-stores-title {
  display: block; font-weight: 800; font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.modal-stores .stores { gap: 10px; }
.modal-stores .store-logo { min-width: 0; flex: 1 1 calc(50% - 5px); height: 50px; font-size: 16px; }
.modal-or {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.modal-or::before, .modal-or::after { content: ""; flex: 1; height: 1px; background: var(--card-edge); }
.modal-or span { flex: none; }

/* Категорія в картці статті */
.post .post-cat {
  color: var(--green-ink);
  font-weight: 800;
  margin-right: 10px;
}

/* Контакт-посилання, що відкривається в новій вкладці (адреса → карти) */
.cval-external { display: inline-flex; align-items: center; gap: 7px; }
.cval-ext-icon { width: 14px; height: 14px; flex: none; opacity: .55; transition: opacity .18s ease; }
.cval-external:hover .cval-ext-icon { opacity: 1; }

/* Шапка статті: категорія — той самий чіп, що й у фільтрі блогу,
   дата поруч спокійним текстом (раніше вона мала стиль .kicker
   і виглядала помітніше за заголовок). */
.chip.chip-sm { font-size: 13px; padding: 7px 15px; }
.post-date-inline {
  font-family: var(--sans);
  font-size: 14px; font-weight: 700;
  color: var(--muted);
  letter-spacing: .01em;
}
.blog-empty {
  margin: 0;
  font-size: 17px;
  color: var(--brown-700);
}
/* Чіпи — посилання, а не кнопки: без підкреслення й вирівняні по центру */
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
