/* ============================================================
   Quick Picnic — головна. Перенос з Tilda з упорядкованою сіткою.
   Токени → база → компоненти → секції → попапи → адаптив
   ============================================================ */

/* Montserrat зі свого сервера (варіативний: 300–600 в одному файлі) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Кольори з оригіналу */
  --bg: #fcfbf9;
  --white: #ffffff;
  --green: #06543c;
  --gold: #cab486;
  --gold-dark: #b9a273;
  --ink: #000000;
  --ink-70: #333333;
  --grey: #666666;
  --grey-2: #757575;
  --card: #f7f7f7;
  --card-title: #fcf9f9;
  --overlay: rgba(18, 18, 18, .5);

  /* Шрифт: Montserrat — геометричний гротеск із повною українською кирилицею (і, ї, є, ґ) */
  --font: "Montserrat", "Futura PT", Futura, "Century Gothic", Arial, sans-serif;

  /* Сітка Tilda: 1200 контейнер, 20 gutter, колонка 80 */
  --container: 1200px;
  --gutter: 20px;
  --col-6: 560px;

  /* Вертикальний ритм: база 8px */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;

  --section: 56px;               /* відступ секції зверху і знизу (112 між секціями) */
  --title-gap: var(--s-5);       /* заголовок → контент */
  --header-h: 100px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  /* блоки, що в'їжджають збоку (data-anim="right"), до появи стоять за правим краєм: без цього на телефоні сторінка зсувалась убік */
  overflow-x: clip;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;   /* футер завжди внизу, навіть на коротких сторінках */
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.23; text-wrap: balance; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }   /* hidden сильніший за display:flex попапів і меню */
body.is-locked { overflow: hidden; }
/* Поки меню відкрите, шапка притискається до верху над ним */
body.is-menu-open { padding-top: var(--header-h); }
body.is-menu-open .header { position: fixed; top: 0; left: 0; right: 0; }

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

.section-title {
  font-size: 40px;
  color: var(--green);
  text-align: center;
  margin-bottom: var(--title-gap);
}

.divider {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: var(--s-4) auto;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 60px;
  border-radius: 30px;
  background: var(--gold);
  color: var(--card-title);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 rgba(106, 84, 40, 0);
  transition: background-color .2s ease-in-out, color .2s ease-in-out, transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(106, 84, 40, .55); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: 0 4px 12px -8px rgba(106, 84, 40, .5); transition-duration: .08s; }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn__text { position: relative; z-index: 1; }
/* Ефект «світло» з Tilda: відблиск 60px пробігає по кнопці кожні 4 с */
.btn--light::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5) 50%, rgba(255,255,255,0));
  transform: translateX(-60px);
  animation: btn-light 4s ease infinite;
}
@keyframes btn-light {
  30%, 100% { transform: translateX(calc(var(--btn-w, 240px) + 60px)); }
}
@media (prefers-reduced-motion: reduce) { .btn--light::before { animation: none; } }
.btn--square { border-radius: 0; }
.btn--block { width: 100%; padding: 0 24px; }

/* ---------- Шапка ---------- */
.header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  height: var(--header-h);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-5);
}
.header__logo { display: block; transition: opacity .2s; }
.header__logo:hover { opacity: .75; }
.header__logo img { height: 100px; width: auto; }
.header__logo--small img { height: 50px; }            /* маленький логотип каталогу, як на Tilda */
/* Закріплена шапка (на Tilda так зроблено на сторінці «Бокси») */
.header--fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
body.has-fixed-header { padding-top: var(--header-h); }
.header__tools { display: flex; align-items: center; gap: var(--s-5); }

.header__cart {
  position: relative;
  width: 24px; height: 24px;
  color: var(--gold);
  transition: color .2s;
}
.header__cart { transition: color .2s, transform .25s var(--ease); }
.header__cart:hover { color: var(--gold-dark); transform: translateY(-2px); }
.header__cart:active { transform: translateY(0) scale(.92); }
.header__cart svg { width: 24px; height: 24px; }
.header__cart-count {
  position: absolute; top: -8px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}

.burger {
  position: relative;
  width: 28px; height: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px; margin: -10px; box-sizing: content-box;  /* більша зона натискання */
}
.burger:hover span { background: var(--gold-dark); }
.burger:hover span:nth-child(1) { transform: translateY(-2px); }
.burger:hover span:nth-child(3) { transform: translateY(2px); }
.burger[aria-expanded="true"]:hover span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"]:hover span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.burger span {
  display: block; height: 3px; width: 100%;
  background: var(--gold);
  transition: transform .3s var(--ease), opacity .2s;
  transform-origin: center;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Меню ---------- */
.menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  z-index: 15;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s-4) var(--gutter) var(--s-6);
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu__list { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; }
.menu__list a {
  position: relative;
  display: inline-block;
  padding: 4px 2px;
  font-size: 19px; font-weight: 600; line-height: 1.17;
  color: var(--green);
  transition: color .2s;
}
.menu__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.menu__list a:hover, .menu__list a:focus-visible { color: var(--gold-dark); }
.menu__list a:hover::after, .menu__list a:focus-visible::after { transform: scaleX(1); }
.menu__list a:active { transform: translateY(1px); }
.menu__social {
  margin-top: auto;
  padding-top: var(--s-6);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  box-sizing: content-box;
}
.menu__social svg, .footer__social svg, .contacts__social svg { width: 30px; height: 30px; fill: var(--green); transition: fill .2s, transform .25s var(--ease); }
.menu__social:hover svg, .footer__social:hover svg, .contacts__social:hover svg { fill: var(--gold-dark); transform: translateY(-2px) scale(1.08); }
.menu__social:active svg, .footer__social:active svg, .contacts__social:active svg { transform: scale(.94); }

/* ---------- Hero: про засновницю ---------- */
.hero { padding: var(--s-5) 0 var(--s-8); background: var(--bg); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
}
.hero__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero__text {
  text-align: center;
  padding: 0 var(--s-3);
}
.hero__title { font-size: 40px; color: var(--green); }
.hero__lead {
  max-width: 440px;
  margin: var(--s-2) auto 0;
  font-size: 20px; line-height: 1.5;
}
.hero__descr { display: flex; flex-direction: column; gap: var(--s-3); font-size: 18px; }
.hero__descr a { white-space: nowrap; }
.hero__descr a { color: inherit; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.hero__descr a:hover { color: var(--green); border-color: var(--gold); }

/* ---------- Instagram-стрічка ---------- */
.insta {
  display: block;
  background: var(--gold);
  color: var(--white);
  min-height: 165px;
  transition: background-color .2s;
}
.insta:hover { background: #9a8455; }  /* при наведенні — темніше золото (вибір клієнта) */
.insta__inner { transition: transform .3s var(--ease); }
.insta:hover .insta__inner { transform: translateY(-2px); }
.insta:active .insta__inner { transform: translateY(0); }
.insta__inner {
  min-height: 165px;
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--gutter);
}
.insta__word { height: 72px; width: auto; }
.insta__icon { height: 68px; width: auto; }
.insta__handle {
  display: inline-block;
  min-width: 7.2em;              /* місце під повний текст, щоб логотипи не стрибали */
  font-size: 30px; font-weight: 400; line-height: 1;
  text-align: left;
  white-space: nowrap;
}
.insta__cursor { display: inline-block; animation: blink .7s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- Наші послуги ---------- */
.services { padding: var(--section) 0; background: var(--white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  color: var(--card-title);
  isolation: isolate;
}
.card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease-in-out;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--overlay);
}
.card:hover .card__img, .card:focus-visible .card__img { transform: scale(1.05); }
.card::after { transition: background-color .45s ease-in-out; }
.card:hover::after, .card:focus-visible::after { background: rgba(18, 18, 18, .42); }
.card__title { transition: transform .45s ease-in-out; }
.card:hover .card__title { transform: translateY(-4px); }
.card:active .card__img { transform: scale(1.02); transition-duration: .1s; }
.card__title {
  position: absolute; z-index: 1;
  left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
  font-size: 20px; font-weight: 600; line-height: 1.2;
}
.card__arrow {
  position: absolute; z-index: 1;
  top: var(--s-3); right: var(--s-3);
  width: 14px; height: 24px;
  transition: transform .45s ease-in-out;
}
.card:hover .card__arrow, .card:focus-visible .card__arrow { transform: translateX(5px); }

/* ---------- Quick Picnic ---------- */
.promo { padding: var(--section) 0; background: var(--bg); }
.promo__grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--s-8);
  align-items: center;
}
.promo__title { font-size: 40px; color: var(--green); }
.promo__sub { margin-top: var(--s-2); font-size: 22px; font-weight: 600; line-height: 1.4; }
.promo__descr { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); font-size: 18px; }
.promo__descr ul { display: flex; flex-direction: column; gap: 4px; }
.promo__descr li::before { content: "— "; }
.promo__hours { font-size: 22px; }
.promo__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}
.promo__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Відгуки ---------- */
.reviews { padding: var(--section) 0; background: var(--white); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.review {
  background: var(--card);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  display: flex; flex-direction: column;
}
.review__name { font-size: 16px; font-weight: 600; line-height: 1.35; }
.review__role { margin-top: 2px; font-size: 14px; color: var(--grey-2); }
.review__text { margin-top: var(--s-2); font-size: 15px; line-height: 1.55; }
.reviews__cta { margin-top: var(--s-5); text-align: center; }

/* ---------- Контакти ---------- */
.contacts { padding: var(--section) 0; background: var(--white); }
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.contacts__map { background: var(--card); aspect-ratio: 580 / 500; }
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.15); }
.contacts__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); max-width: 460px; }
.contacts__title { font-size: 26px; color: var(--green); }
.contacts__phone { font-size: 24px; font-weight: 600; line-height: 1.3; }
.contacts__phone { transition: color .2s, transform .2s var(--ease); display: inline-block; }
.contacts__phone:hover { color: var(--green); transform: translateX(2px); }
.contacts__text { font-size: 17px; line-height: 1.55; }
.contacts__social {
  display: inline-flex; align-items: center; gap: var(--s-1);
  margin-top: var(--s-1);
  font-size: 16px; font-weight: 500; color: var(--green);
  transition: color .2s;
}
.contacts__social:hover { color: var(--gold-dark); }
.contacts__social svg { width: 24px; height: 24px; }

/* ---------- Підвал ---------- */
.footer { background: var(--bg); padding: var(--s-4) 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
}
.footer__logo img { height: 60px; width: auto; }
.footer__center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer__center a {
  font-size: 14px; font-weight: 600; color: var(--green);
  border-bottom: 1px solid var(--green);
  line-height: 1.3;
  transition: opacity .2s;
}
.footer__center a:hover { color: var(--gold-dark); border-color: var(--gold-dark); }
.footer__logo { transition: opacity .2s; }
.footer__logo:hover { opacity: .75; }
.footer__copy { margin-top: var(--s-1); font-size: 14px; font-weight: 600; color: var(--green); }
.footer__social { justify-self: end; width: 30px; height: 30px; }

/* ---------- Попапи ---------- */
.popup { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: var(--s-5) var(--gutter); }
.popup__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.popup__window {
  position: relative;
  width: 100%;
  background: var(--white);
  padding: var(--s-6) var(--s-5);
  opacity: 0; transform: translateY(16px);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.popup.is-open .popup__backdrop, .popup.is-open .popup__window { opacity: 1; transform: none; }
.popup__window--review { max-width: 504px; }
.popup__window--cart { max-width: 560px; }
.popup__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background-color .2s, transform .3s var(--ease);
}
.popup__close:hover { background: var(--card); transform: rotate(90deg); }
.popup__close:active { transform: rotate(90deg) scale(.9); }
.popup__close::before, .popup__close::after {
  content: ""; position: absolute; left: 8px; top: 17px;
  width: 20px; height: 2px; background: var(--ink);
}
.popup__close::before { transform: rotate(45deg); }
.popup__close::after { transform: rotate(-45deg); }
.popup__title { font-size: 32px; text-align: center; margin-bottom: var(--s-4); }
.popup__title--left { text-align: left; font-size: 26px; color: var(--green); }

/* ---------- Форми ---------- */
.form { display: flex; flex-direction: column; gap: var(--s-3); }
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field__label { font-size: 18px; font-weight: 300; line-height: 1.3; }
.input {
  width: 100%;
  height: 60px;
  padding: 0 var(--s-3);
  border: 1px solid var(--green);
  border-radius: 5px;
  background: transparent;
  font: inherit; font-size: 16px; font-weight: 400;
  color: var(--ink);
  transition: box-shadow .2s;
}
.input:hover { border-color: var(--gold-dark); }
.input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(6, 84, 60, .15); }
.input::placeholder { color: var(--grey-2); }
.input--area { height: 140px; padding: var(--s-2) var(--s-3); resize: vertical; }
select.input { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2306543c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 20px center; padding-right: 48px; }
.phone { display: flex; }
.phone__code { display: flex; align-items: center; padding: 0 12px 0 var(--s-2); height: 60px; border: 1px solid var(--green); border-right: 0; border-radius: 5px 0 0 5px; font-size: 16px; font-weight: 400; white-space: nowrap; }
.phone .input { border-radius: 0 5px 5px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; border: 1px solid var(--green); border-radius: 3px; position: relative; transition: background-color .2s, border-color .2s; }
.check:hover .check__box { border-color: var(--gold-dark); }
.check input:checked + .check__box { background: rgba(6, 84, 60, .06); }
.check input:checked + .check__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + .check__box { outline: 2px solid var(--green); outline-offset: 2px; }
.check a, .form__note a { color: var(--green); border-bottom: 1px solid currentColor; transition: color .2s; }
.check a:hover, .form__note a:hover { color: var(--gold-dark); }
.form__submit { text-align: center; }
.form__note { font-size: 15px; text-align: center; line-height: 1.55; }
.form__error { color: #b3261e; font-size: 15px; font-weight: 400; }
.form__success { background: var(--card); padding: var(--s-3); text-align: center; font-size: 18px; }

/* ---------- Кошик ---------- */
.cart { margin-bottom: var(--s-3); }
.cart__empty { font-size: 14px; color: var(--grey-2); }
.cart__list { display: flex; flex-direction: column; gap: var(--s-2); }
.cart__item { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-2); align-items: center; font-size: 16px; padding-bottom: var(--s-2); border-bottom: 1px solid rgba(0,0,0,.08); }
.cart__qty { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.cart__qty button { width: 26px; height: 26px; border: 1px solid var(--green); border-radius: 50%; color: var(--green); line-height: 1; transition: background-color .2s, color .2s, transform .15s; }
.cart__qty button:hover { background: var(--green); color: #fff; }
.cart__qty button:active { transform: scale(.9); }
.cart__total { margin-top: var(--s-2); font-size: 18px; }
.cart__info { font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; gap: var(--s-2); }
.cart__info strong { font-weight: 600; }

/* ---------- Анімація появи (параметри Tilda: 100px, 1s, cubic-bezier(.19,1,.22,1)) ---------- */
[data-anim] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] {
    opacity: 0;
    backface-visibility: hidden;
    transition: opacity 1s cubic-bezier(.19, 1, .22, 1) var(--d, 0s), transform 1s cubic-bezier(.19, 1, .22, 1) var(--d, 0s);
  }
  .js [data-anim="left"]  { transform: translateX(100px); }   /* fadeinleft: приходить справа */
  .js [data-anim="right"] { transform: translateX(-100px); }  /* fadeinright: приходить зліва */
  .js [data-anim="down"]  { transform: translateY(-100px); }
  .js [data-anim="zoom"]  { transform: scale(.9); }
  .js [data-anim].is-visible { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
  :root { --section: var(--s-6); --title-gap: var(--s-4); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .promo__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .hero__text { padding: 0 var(--s-2); }
}

@media (max-width: 959px) {
  :root { --section: var(--s-5); --title-gap: var(--s-4); --header-h: 80px; }
  body { font-size: 18px; }
  .header__inner { padding: 0 var(--gutter); }
  .header__logo img { height: 80px; }
  .header__logo--small img { height: 44px; }
  .header__tools { gap: var(--s-3); }
  .section-title, .hero__title, .promo__title { font-size: 32px; }

  .hero { padding-top: var(--s-4); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__photo { max-width: 560px; margin: 0 auto; }
  .hero__text { padding: 0; }
  .hero__lead { font-size: 19px; }
  .hero__descr { font-size: 17px; }

  .insta, .insta__inner { min-height: 120px; }
  .insta__word { height: 52px; }
  .insta__icon { height: 48px; }
  .insta__handle { font-size: 24px; }

  .promo__grid { grid-template-columns: 1fr; }
  .promo__sub { font-size: 20px; }
  .promo__descr { font-size: 17px; }
  .promo__photos { max-width: 460px; }

  .reviews__grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .review { padding: var(--s-4); }

  .contacts__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .contacts__info { max-width: none; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; gap: var(--s-3); text-align: center; }
  .footer__social { justify-self: center; }

  .popup { padding: var(--s-3) var(--gutter); }
  .popup__window { padding: var(--s-5) var(--s-3); }
  .popup__title { font-size: 28px; }
}

@media (max-width: 639px) {
  :root { --section: var(--s-4); }
  .header__logo img { height: 64px; }
  .header__logo--small img { height: 40px; }
  .section-title, .hero__title, .promo__title { font-size: 28px; }
  .services__grid { grid-template-columns: 1fr; gap: var(--s-2); }
  .card__title { font-size: 19px; }
  .insta__inner { gap: var(--s-2); flex-wrap: wrap; }
  .insta__word { height: 40px; }
  .insta__icon { height: 40px; }
  .insta__handle { font-size: 20px; width: 100%; min-width: 0; text-align: center; }
  .promo__photos { gap: var(--s-2); }
  .btn { padding: 0 40px; min-height: 56px; }
  .contacts__map { aspect-ratio: 1; }
}

/* ---------- Сторінка-заглушка (поки розділ не перенесено) ---------- */
.stub { padding: var(--s-10) 0 var(--s-12); text-align: center; background: var(--white); }
.stub__title { font-size: 42px; color: var(--green); }
.stub__text { max-width: 560px; margin: var(--s-3) auto 0; font-size: 20px; color: var(--grey); }
.stub__actions { margin-top: var(--s-5); display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }
.btn--ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
@media (max-width: 959px) { .stub__title { font-size: 34px; } }

/* ============================================================
   Внутрішні сторінки: обкладинка, каталог, попап товару, FAQ,
   галерея, корпоративні пропозиції, доставка, юридичні тексти
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: var(--section) 0; background: var(--white); }
.section--tint { background: var(--bg); }
.container.narrow { max-width: 1000px; }

/* ---------- Обкладинка ---------- */
.cover {
  position: relative; isolation: isolate;
  min-height: 450px;
  display: grid; place-items: center;
  background: var(--ink) var(--cover) center / cover no-repeat;
  color: var(--white);
}
.cover::before { content: ""; position: absolute; inset: 0; background: rgba(24, 24, 24, .5); z-index: -1; }
.cover__inner { text-align: center; padding: var(--s-8) var(--gutter); }
.cover__title { font-size: 64px; line-height: 1.1; color: var(--white); text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }

/* ---------- Текстові блоки ---------- */
.textblock { max-width: 860px; margin: 0 auto var(--s-6); text-align: center; font-size: 18px; display: flex; flex-direction: column; gap: var(--s-2); }
.textblock:last-child { margin-bottom: 0; }
.textblock a { color: var(--green); border-bottom: 1px solid var(--gold); }
.preface { text-align: center; color: var(--green); opacity: .75; font-size: 16px; margin: -8px 0 var(--s-4); }

/* ---------- Вкладки меню ---------- */
.tabs { margin-bottom: var(--s-6); }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; border-bottom: 1px solid var(--gold); }
.tabs__btn {
  position: relative; padding: 14px 16px 16px;
  font-size: 18px; font-weight: 400; line-height: 1.25; color: var(--ink);
  transition: color .2s;
}
.tabs__btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs__btn:hover { color: var(--gold-dark); }
.tabs__btn.is-active { color: var(--gold-dark); font-weight: 600; }
.tabs__btn.is-active::after { transform: scaleX(1); }
.tabs__select { display: none; }
.tabs__panel { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Сітка товарів ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4) var(--s-3); align-items: stretch; }
.pcard {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0, 0, 0, .16); }
.pcard__img { display: block; width: 100%; aspect-ratio: 13 / 10; overflow: hidden; background: var(--card); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { flex: 1; padding: 20px 20px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.pcard--noimg .pcard__body { padding-top: 28px; }   /* заголовки в ряду на одній лінії, ціна притиснута донизу */
.pcard__title { font-size: 16px; font-weight: 600; line-height: 1.35; text-align: center; transition: color .2s; }
.pcard__title:hover { color: var(--green); }
.pcard__meta { font-size: 13px; font-weight: 500; color: var(--grey-2); letter-spacing: .02em; }
.pcard__note { font-size: 13.5px; font-weight: 300; color: var(--ink-70); line-height: 1.4; margin-top: 2px; }
.ingr { text-align: left; display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px; font-size: 13.5px; font-weight: 300; line-height: 1.4; color: var(--ink-70); }
.ingr li { position: relative; padding-left: 14px; }
.ingr li::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.pcard__price { margin-top: auto; padding-top: 10px; font-size: 24px; font-weight: 600; line-height: 1.2; }
.pcard__cur { font-size: 14px; font-weight: 400; }
.pcard__actions { padding: 0 20px 20px; display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.pcard__actions .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
.pcard__actions .btn--ghost { grid-column: 1 / -1; }

.btn--sm { min-height: 36px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn--ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; box-shadow: none; }

.qty { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 10px; height: 36px; overflow: hidden; background: var(--white); }
.qty__btn { width: 32px; height: 100%; font-size: 18px; line-height: 1; color: var(--ink-70); transition: background-color .2s, color .2s; }
.qty__btn:hover { background: var(--card); color: var(--green); }
.qty__input { width: 38px; height: 100%; border: 0; text-align: center; font: inherit; font-size: 14px; font-weight: 500; background: transparent; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: 0; background: var(--card); }

/* ---------- Розділи напівфабрикатів ---------- */
.section--menu { padding-bottom: var(--s-4); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-block; padding: 10px 18px; border-radius: 30px;
  background: var(--gold); color: var(--white);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: background-color .2s, transform .2s var(--ease), box-shadow .25s;
}
.chip:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(106, 84, 40, .6); }
.chip.is-active { background: var(--green); }
.section--cat { scroll-margin-top: 24px; }
.cat-title { font-size: 28px; color: var(--green); text-align: center; margin-bottom: var(--s-5); }

/* ---------- Попап товару ---------- */
.popup__window--product { max-width: 960px; padding: 0; overflow: hidden; }
.product { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.product__gallery { background: var(--card); padding: var(--s-4); display: flex; flex-direction: column; gap: 12px; }
.product__main { aspect-ratio: 13 / 10; border-radius: 16px; overflow: hidden; background: var(--white); }
.product__main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product__thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.product__thumbs button.is-active, .product__thumbs button:hover { border-color: var(--gold); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product--noimg .product__gallery { display: none; }
.product--noimg { grid-template-columns: 1fr; }
.product__info { padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.product__section { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-2); font-weight: 500; }
.product__title { font-size: 26px; line-height: 1.2; }
.product__descr { font-size: 15px; font-weight: 300; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.product__meta { font-size: 13px; font-weight: 500; color: var(--grey-2); letter-spacing: .02em; }
.product__note { font-size: 15px; font-weight: 300; color: var(--ink-70); }
.product__descr .ingr { font-size: 15px; gap: 6px; margin: 4px 0; }
.product__descr .ingr li { padding-left: 16px; }
.product__descr .ingr li::before { width: 6px; height: 6px; }
.product__price { font-size: 28px; font-weight: 600; margin-top: var(--s-1); }
.product__cur { font-size: 15px; font-weight: 400; }
.product__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: var(--s-1); }
.product__buy .qty { height: 48px; border-radius: 30px; }
.product__buy .qty__btn { width: 42px; }
.product__buy .btn { min-height: 48px; padding: 0 40px; }
.product__text { font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--ink-70); padding-top: var(--s-2); border-top: 1px solid rgba(0, 0, 0, .06); }
.product__text:empty { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; border-bottom: 1px solid #e6e6e6; }
.faq__item { border-top: 1px solid #e6e6e6; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 22px 0; text-align: left; font-size: 20px; font-weight: 600; line-height: 1.3; transition: color .2s; }
.faq__q:hover { color: var(--green); }
.faq__icon { flex: 0 0 24px; width: 24px; height: 24px; position: relative; transition: transform .35s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.faq__icon::before { width: 22px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 22px; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); color: var(--gold-dark); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 var(--s-6) 22px 0; font-size: 16px; font-weight: 300; line-height: 1.6; }

/* ---------- Галерея ---------- */
.gallery { columns: 4 220px; column-gap: 12px; }
.gallery li { break-inside: avoid; margin-bottom: 12px; }
.gallery__item { display: block; width: 100%; overflow: hidden; border-radius: 6px; background: var(--card); cursor: zoom-in; }
.gallery__item img { width: 100%; display: block; transition: transform .6s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 8, .9); opacity: 0; transition: opacity .25s; }
.lightbox__img { position: relative; max-width: min(92vw, 1200px); max-height: 88vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.96); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.lightbox.is-open .lightbox__backdrop, .lightbox.is-open .lightbox__img { opacity: 1; transform: none; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s, transform .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; left: 14px; top: 23px; width: 20px; height: 2px; background: #fff; }
.lightbox__close::before { transform: rotate(45deg); } .lightbox__close::after { transform: rotate(-45deg); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; }
.lightbox__nav::before { content: ""; position: absolute; top: 17px; left: 19px; width: 12px; height: 12px; border: solid #fff; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.lightbox__nav--prev::before { transform: rotate(-135deg); left: 20px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 14px;
  background: var(--green); color: #fff;
  font-size: 15px; box-shadow: 0 16px 40px rgba(6, 84, 60, .35);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }
.toast__link { color: var(--gold); font-weight: 600; border-bottom: 1px solid currentColor; }
.toast__link:hover { color: #fff; }

/* ---------- Корпоративне ---------- */
.special { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.special__text { background: var(--bg); padding: var(--s-8) var(--s-8); display: flex; flex-direction: column; gap: var(--s-2); font-size: 18px; }
.special__eyebrow { font-family: inherit; font-size: 38px; font-weight: 600; line-height: 1.15; color: var(--green); text-transform: uppercase; }
.divider--left { margin: var(--s-1) 0 var(--s-2); }
.special__img img { width: 100%; border-radius: 6px; }
.offers__title { font-size: 26px; text-align: center; }
.offers__intro { text-align: center; font-size: 18px; margin-top: var(--s-2); }
.offers { margin-top: var(--s-5); border-bottom: 1px solid #eee; }
.offer { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid #eee; align-items: start; }
.offers--price .offer { grid-template-columns: 300px 1fr 150px; }
.offer__name { font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.25; }
.offer__list { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 300; line-height: 1.45; }
.offer__list li::before { content: "— "; color: var(--gold-dark); }
.offer__price { text-align: right; display: flex; flex-direction: column; }
.offer__price strong { font-size: 24px; line-height: 1.2; }
.offer__price span { font-size: 13px; font-weight: 600; color: var(--ink-70); }

/* ---------- Оплата і доставка ---------- */
.twocol { display: grid; grid-template-columns: 1fr 1fr; max-width: 1100px; margin: 0 auto; }
.twocol__item { padding: var(--s-4) var(--s-8); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); font-size: 18px; }
.twocol__item + .twocol__item { border-left: 1px solid #e6e6e6; }
.twocol__icon { width: 100px; height: 100px; object-fit: contain; margin-bottom: var(--s-2); }
.twocol__title { font-size: 26px; }
.twocol a { color: var(--green); border-bottom: 1px solid var(--gold); }

/* ---------- Юридичні тексти ---------- */
.legal { max-width: 900px; }
.legal__text { font-size: 16px; line-height: 1.7; display: flex; flex-direction: column; gap: var(--s-2); }
.legal__text a { color: var(--green); border-bottom: 1px solid var(--gold); }

/* ---------- Адаптив внутрішніх ---------- */
@media (max-width: 1199px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .offer, .offers--price .offer { grid-template-columns: 220px 1fr; }
  .offers--price .offer__price { grid-column: 2; text-align: left; flex-direction: row; gap: 8px; align-items: baseline; }
}
@media (max-width: 959px) {
  .cover { min-height: 320px; }
  .cover__title { font-size: 40px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-2); }
  .tabs__list { display: none; }
  .tabs__select { display: block; max-width: 420px; margin: 0 auto; }
  .product { grid-template-columns: 1fr; }
  .product__info { padding: var(--s-4) var(--s-3); }
  .special { grid-template-columns: 1fr; }
  .special__text { padding: var(--s-5) var(--s-4); }
  .special__eyebrow { font-size: 30px; }
  .offer, .offers--price .offer { grid-template-columns: 1fr; gap: 10px; }
  .offers--price .offer__price { grid-column: auto; }
  .twocol { grid-template-columns: 1fr; }
  .twocol__item { padding: var(--s-4) 0; }
  .twocol__item + .twocol__item { border-left: 0; border-top: 1px solid #e6e6e6; }
  .gallery { columns: 3 160px; column-gap: 8px; }
  .gallery li { margin-bottom: 8px; }
  .faq__q { font-size: 18px; padding: 18px 0; }
  .cat-title { font-size: 24px; }
}
@media (max-width: 639px) {
  .cover { min-height: 260px; }
  .cover__title { font-size: 30px; }
  .pgrid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .gallery { columns: 2 140px; }
  .textblock { font-size: 17px; }
  .product__buy .btn { flex: 1; padding: 0 20px; }
}

/* Перший екран (блок «Я, Анна», обкладинки сторінок) анімується з першого кадру засобами CSS,
   не чекаючи на main.js: ті самі 100px / 1s / cubic-bezier(.19,1,.22,1) і затримки --d.
   Без цього фото спочатку малювалось, потім гасло і в'їжджало заново після завантаження скрипта. */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-anim], .cover [data-anim] { animation: qp-in 1s cubic-bezier(.19, 1, .22, 1) var(--d, 0s) both; transition: none; }
  .hero [data-anim="left"], .cover [data-anim="left"] { --from: translateX(100px); }
  .hero [data-anim="right"], .cover [data-anim="right"] { --from: translateX(-100px); }
  .hero [data-anim="down"], .cover [data-anim="down"] { --from: translateY(-100px); }
  .hero [data-anim="zoom"], .cover [data-anim="zoom"] { --from: scale(.9); }
}
@keyframes qp-in { from { opacity: 0; transform: var(--from, none); } to { opacity: 1; transform: none; } }

/* приманка для ботів у формах */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
