/* Незламні історії смаку
   Молочна основа, «світло-чорний» графіт для тексту й темних блоків, масло як єдиний теплий акцент.
   Alegreya: заголовки й ціни. Onest: усе інше. */

/* ── ПЕРЕХОДИ МІЖ СТОРІНКАМИ (як у ds-solutions) ─────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both vt-out; }
::view-transition-new(root) { animation: .25s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
/* Фото товару перелітає з картки на сторінку товару */
::view-transition-group(product-photo) { animation-duration: .42s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
::view-transition-old(product-photo), ::view-transition-new(product-photo) { animation-duration: .42s; height: 100%; object-fit: cover; }

/* ── ТОКЕНИ ──────────────────────────────────────────────────────── */
:root {
  --milk: #F5F3EE;
  --flour: #EAE6DD;
  --flour-2: #DFD9CD;
  --ink: #2A2825;
  --ink-2: #3A3733;
  --ash: #6B665E;
  --ash-2: #8F897F;
  --butter: #E7B547;
  --butter-soft: #F4E3B3;
  --dill: #4E6A3B;
  --danger: #A23F2B;
  --line: rgba(42, 40, 37, .12);
  --line-2: rgba(42, 40, 37, .2);

  --serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --w: 1200px;
  --pad: 24px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --ease: cubic-bezier(.3, .7, .2, 1);
  --header-h: 72px;
}

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); scrollbar-gutter: stable; }
body {
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background-color: var(--milk);
  /* легке «зерно», щоб молочний фон не був пластиковим */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--milk); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
.container { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }

/* ── ТИПОГРАФІКА ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 68px); overflow-wrap: break-word; }
/* 320 px: «конфіденційності» в 40 px не влазить у рядок, тож на вузьких екранах шрифт іде від ширини. */
@media (max-width: 400px) { h1 { font-size: clamp(32px, 10.6vw, 40px); } }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 24px; font-weight: 700; line-height: 1.15; }
p { text-wrap: pretty; }

/* ── КНОПКИ ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--milk);
  font: 600 16px/1 var(--sans); white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(42, 40, 37, .55); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--milk); box-shadow: none; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--ink); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--ash); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-btn:hover { color: var(--ink); }

.price { font-size: 15px; color: var(--ash); white-space: nowrap; }
.price b { font: 700 25px/1 var(--serif); color: var(--ink); letter-spacing: -.01em; margin-right: 2px; }
.price--lg b { font-size: 40px; }

/* ── ШАПКА ───────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 243, 238, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo__mark { color: var(--ink); flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__top { font: italic 500 15px/1 var(--serif); color: var(--ash); margin-bottom: 3px; }
.logo__name { font: 800 22px/1 var(--serif); letter-spacing: -.01em; }
.logo--light { color: var(--milk); }
.logo--light .logo__mark { color: #45413B; }
.logo--light .logo__top { color: rgba(245, 243, 238, .6); }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link { padding: 8px 14px; border-radius: 999px; font-size: 16px; color: var(--ash); transition: color .2s, background .2s; }
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); background: var(--flour); }
.nav__phone-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.header__phone svg { color: var(--ash); }
.header__phone:hover svg { color: var(--ink); }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--milk); font-weight: 600;
  transition: background .2s, transform .2s var(--ease);
}
.cart-btn:hover { background: #000; }
.cart-btn__count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--butter); color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-btn.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 999px; background: var(--flour); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* ── ГЕРОЙ ───────────────────────────────────────────────────────── */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero__title { font-size: clamp(46px, 6.4vw, 88px); line-height: .98; letter-spacing: -.02em; margin-bottom: 28px; }
.hero__line { display: block; }
.hero__line + .hero__line { color: var(--ash); font-style: italic; font-weight: 700; }
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 30em; margin-bottom: 36px; }
.hero__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__call { font-size: 14px; line-height: 1.35; color: var(--ash); }
.hero__call b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero__call:hover b { text-decoration: underline; text-underline-offset: 3px; }

.facts { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.facts svg { color: var(--ash); flex: none; }

.hero__visual { position: relative; }
.hero__plate {
  display: block; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden;
  background: var(--flour);
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.hero__plate:hover img { transform: scale(1.025); }

.timer {
  position: absolute; left: -36px; bottom: 36px;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 18px 22px 18px 18px; border-radius: 20px; max-width: 250px;
  background: var(--ink); color: var(--milk);
  box-shadow: 0 24px 48px -24px rgba(42, 40, 37, .6);
}
.timer__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--butter); color: var(--ink); }
.timer__value { font: 800 38px/1 var(--serif); letter-spacing: -.02em; }
.timer__value small { font: 600 16px/1 var(--sans); margin-left: 4px; color: rgba(245, 243, 238, .7); }
.timer__text { font-size: 13.5px; line-height: 1.3; color: rgba(245, 243, 238, .72); }

/* Єдиний оркестрований момент: заголовок рядками, потім таймер */
@media (prefers-reduced-motion: no-preference) {
  .page-home .hero__line, .page-home .hero__lead, .page-home .hero__cta, .page-home .facts { animation: rise .7s var(--ease) both; }
  .page-home .hero__line:nth-child(2) { animation-delay: .08s; }
  .page-home .hero__lead { animation-delay: .16s; }
  .page-home .hero__cta { animation-delay: .22s; }
  .page-home .facts { animation-delay: .28s; }
  .page-home .hero__plate { animation: plate .9s var(--ease) .05s both; }
  .page-home .timer { animation: pop .6s var(--ease) .55s both; }
  .is-back .page-home .hero * { animation: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes plate { from { opacity: 0; transform: scale(.97); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* ── СЕКЦІЇ ──────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section--tight { padding-top: 24px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }

/* Категорії: список рядків, а не сітка однакових карток */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.cat { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .2s; }
.cat__img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--flour); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.35); transition: transform .5s var(--ease); }
.cat__name { font: 700 26px/1.1 var(--serif); letter-spacing: -.01em; }
.cat__meta { font-size: 14px; line-height: 1.35; color: var(--ash); text-align: right; }
.cat:hover .cat__img img { transform: scale(1.5); }
.cat:hover .cat__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

/* ── КАРТКА ТОВАРУ ───────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard__link { display: block; }
.pcard__media {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden;
  background: var(--flour); margin-bottom: 14px;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.pcard__link:hover .pcard__media img { transform: scale(1.04); }
.pcard__cook {
  position: absolute; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(245, 243, 238, .92); font-size: 13px; font-weight: 600; color: var(--ink);
}
.pcard__name { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.pcard__link:hover .pcard__name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pcard__meta { font-size: 14px; color: var(--ash); margin-bottom: 6px; }
.pcard__comp {
  font-size: 13.5px; line-height: 1.4; color: var(--ash); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }

.buy__add {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: var(--milk); transition: background .2s, transform .2s var(--ease);
}
.buy__add:hover { background: #000; transform: rotate(90deg); }
.stepper {
  display: inline-flex; align-items: center; height: 44px; border-radius: 999px;
  background: var(--ink); color: var(--milk);
}
.stepper button { width: 40px; height: 44px; display: grid; place-items: center; border-radius: 999px; transition: background .2s; }
.stepper button:hover { background: rgba(255, 255, 255, .1); }
.stepper [data-qty] { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--lg { height: 56px; }
.stepper--lg button { width: 52px; height: 56px; }
.stepper--lg [data-qty] { min-width: 32px; font-size: 18px; }

/* ── ТЕМНА СМУГА «ЯК ЗАМОВИТИ» ───────────────────────────────────── */
.band { background: var(--ink); color: var(--milk); padding: 80px 0 88px; }
.band h2 { margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: none; }
.steps li { border-top: 1px solid rgba(245, 243, 238, .16); padding-top: 24px; }
.steps__n { display: block; font: 800 64px/1 var(--serif); color: var(--butter); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: rgba(245, 243, 238, .72); max-width: 28em; }

/* ── «СКЛАД» + ЕТИКЕТКА ──────────────────────────────────────────── */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.story__copy h2 { margin-bottom: 22px; }
.story__copy p { color: var(--ink-2); margin-bottom: 16px; max-width: 32em; }
.story__copy .link-arrow { margin-top: 10px; }
.label {
  position: relative; background: #FBFAF7; border-radius: 6px; padding: 36px 36px 30px;
  box-shadow: 0 1px 0 rgba(42, 40, 37, .06), 0 30px 60px -36px rgba(42, 40, 37, .45);
  transform: rotate(-1.6deg); max-width: 480px; justify-self: center; overflow: hidden;
}
/* Кутова стрічка під 45°: займає лише трикутник у куті (катет ≈74 px), а текст тримає відступ справа. */
.label__flag { position: absolute; right: -40px; top: 18px; width: 140px; height: 22px; transform: rotate(45deg);
  background: linear-gradient(#3A6FB5 0 50%, #F2C63B 50% 100%); opacity: .9; }
.label__brand { font: 800 14px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; padding-right: 44px; }
.label__name { font: 800 30px/1.1 var(--serif); margin-bottom: 22px; max-width: 12em; }
.label__rows div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line-2); font-size: 15px; }
.label__rows dt { color: var(--ash); }

/* ── ФІНАЛЬНИЙ ЗАКЛИК ────────────────────────────────────────────── */
.cta { padding: 16px 0 96px; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px 52px; border-radius: var(--r-l); background: var(--flour); }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.cta p { color: var(--ink-2); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── ЗАГОЛОВОК СТОРІНКИ ──────────────────────────────────────────── */
.page-head { padding: 48px 0 28px; }
.page-head__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 12px; }
.page-head__lead { font-size: 18px; color: var(--ash); max-width: 36em; }

.search {
  position: relative; display: flex; align-items: center; width: min(380px, 100%);
  height: 52px; border-radius: 999px; background: #FBFAF7; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s;
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.search svg { position: absolute; left: 18px; color: var(--ash); pointer-events: none; }
.search input { width: 100%; height: 100%; border: 0; background: none; padding: 0 20px 0 50px; font-size: 16px; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--ash-2); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* Липка стрічка категорій */
.chips { position: sticky; top: var(--header-h); z-index: 30; background: rgba(245, 243, 238, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.chips__inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.chips__inner::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.chip span { font-size: 13px; color: var(--ash-2); font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--flour); }
.chip.is-active { background: var(--ink); color: var(--milk); }
.chip.is-active span { color: rgba(245, 243, 238, .6); }

.catalog { padding-bottom: 96px; }
.catalog__group { padding-top: 48px; }
.catalog__head { display: flex; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.catalog__head p { color: var(--ash); font-size: 16px; max-width: 40em; }
.catalog__empty { padding: 72px 0; text-align: center; color: var(--ash); }
.catalog__empty-title { font: 800 32px/1.1 var(--serif); color: var(--ink); margin-bottom: 10px; }

/* ── СТОРІНКА ТОВАРУ ─────────────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 10px; padding: 28px 0 20px; font-size: 15px; color: var(--ash); }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 64px; }
.product__media { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: var(--flour); }
.product__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.product__info { padding-top: 8px; }
.product__title { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 12px; }
.product__pack { font-size: 18px; color: var(--ash); margin-bottom: 32px; }
.product__buy { display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap; padding: 24px 0; margin-bottom: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy--wide { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.cook { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px; border-radius: var(--r-m); background: var(--ink); color: var(--milk); margin-bottom: 36px; }
.cook__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--butter); color: var(--ink); }
.cook__title { font: 700 24px/1.15 var(--serif); margin: 4px 0 8px; }
.cook p { color: rgba(245, 243, 238, .76); font-size: 16px; }

.spec { margin-bottom: 28px; }
.spec h2 { font: 700 15px/1.3 var(--sans); color: var(--ash); letter-spacing: 0; margin-bottom: 8px; }
.spec p { font-size: 17px; max-width: 36em; }

/* ── КОНТАКТИ / ТЕКСТ ────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-bottom: 96px; align-items: start; }
.contacts__card { background: #FBFAF7; border-radius: var(--r-l); padding: 36px; box-shadow: inset 0 0 0 1px var(--line); }
.contacts__who { font: 800 32px/1 var(--serif); margin-bottom: 20px; }
.contacts__list li a, .contacts__addr { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.contacts__list li a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.contacts__list svg { color: var(--ash); flex: none; }
.contacts__side { padding: 36px 0; }
.contacts__side h2 { margin-bottom: 14px; }
.contacts__side p { color: var(--ink-2); margin-bottom: 24px; max-width: 30em; }

.prose { max-width: 720px; padding-bottom: 96px; }
.prose h2 { font-size: 26px; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.notfound { padding: 96px 0 120px; }
.notfound__code { font: 800 140px/1 var(--serif); color: var(--flour-2); margin-bottom: 8px; }
.notfound h1 { margin-bottom: 16px; }
.notfound p { color: var(--ash); max-width: 32em; margin-bottom: 32px; }

/* ── ПІДВАЛ ──────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(245, 243, 238, .78); padding: 40px 0 0; }
.footer__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 64px; align-items: start; padding-bottom: 32px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.footer__links a { color: rgba(245, 243, 238, .8); transition: color .2s; }
.footer__links a:hover { color: var(--milk); }
.footer__links--muted { font-size: 14px; }
.footer__links--muted a { color: rgba(245, 243, 238, .5); }
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.footer__phone { font: 700 22px/1.15 var(--serif); color: var(--milk); font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__who { font-size: 14px; color: rgba(245, 243, 238, .5); }
.footer__chats { display: flex; gap: 8px; margin-top: 8px; }
.chat-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(245, 243, 238, .08); color: var(--milk); font-size: 14px; font-weight: 600; transition: background .2s;
}
.chat-btn:hover { background: rgba(245, 243, 238, .16); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid rgba(245, 243, 238, .1); font-size: 13px; color: rgba(245, 243, 238, .45); }

/* Плашка ds solutions (з Blago Spa) */
.footer-credit { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(245, 243, 238, .6); white-space: nowrap; }
.footer-credit:hover { color: rgba(245, 243, 238, .9); }
.footer-credit svg { flex: none; vertical-align: middle; }
.footer-credit__label { transition: color .2s; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .footer-credit__label {
    background: linear-gradient(100deg, rgba(245, 243, 238, .55) 0%, rgba(245, 243, 238, .55) 35%, #fff 50%, rgba(245, 243, 238, .55) 65%, rgba(245, 243, 238, .55) 100%) 100% 0 / 250% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: creditShine 4.5s ease-in-out infinite;
  }
  .footer-credit:hover .footer-credit__label { background: none; -webkit-text-fill-color: #fff; animation: none; }
}
@keyframes creditShine { to { background-position: 0 0; } }

/* ── КОШИК: ШУХЛЯДА ──────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(28, 27, 25, .42); opacity: 0; transition: opacity .3s; }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(460px, 100%);
  display: flex; flex-direction: column; background: var(--milk);
  transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(42, 40, 37, .35);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 14px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 30px; margin-right: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: var(--flour); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 28px 28px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 28px 24px; border-top: 1px solid var(--line); background: #FBFAF7; }


.cart-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 64px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--flour); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart-line__name { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; margin-bottom: 3px; }
.cart-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line__meta { font-size: 13.5px; color: var(--ash); }
.cart-line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line__sum { font: 700 19px/1 var(--serif); white-space: nowrap; }
.cart-lines .stepper { height: 36px; background: var(--flour); color: var(--ink); }
.cart-lines .stepper button { width: 34px; height: 36px; }
.cart-lines .stepper button:hover { background: var(--flour-2); }
[data-cart-clear] { margin-top: 18px; }

.cart-empty { padding: 48px 0; text-align: center; }
.cart-empty__title { font: 800 30px/1.1 var(--serif); margin-bottom: 10px; }
.cart-empty p { color: var(--ash); margin: 0 auto 24px; max-width: 22em; }

.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ash); padding: 3px 0; }
.totals dd { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.totals .totals__sum { padding: 10px 0 16px; color: var(--ink); font-weight: 600; font-size: 17px; }
.totals .totals__sum dd { font: 800 28px/1 var(--serif); }
.drawer__warn { font-size: 14px; color: var(--danger); margin-bottom: 12px; }

/* Форма */
.order-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field__label small { font-weight: 400; color: var(--ash-2); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 0;
  background: #FBFAF7; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px;
  transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 72px; }
/* Фокус поля: одна рамка. Загальний :focus-visible тут вимкнено, інакше поверх рамки малюється ще й контур. */
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ash-2); }
.field__error { font-size: 13.5px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px var(--danger); }

.seg { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { grid-column: 1 / -1; margin-bottom: 6px; }
.seg__item { position: relative; cursor: pointer; }
.seg__item input { position: absolute; opacity: 0; pointer-events: none; }
.seg__item span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px;
  background: #FBFAF7; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 15px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg__item input:checked + span { background: var(--ink); color: var(--milk); box-shadow: none; }
.seg__item input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--ash); margin-top: -6px; }
.form-legal { font-size: 13px; color: var(--ash); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { font-size: 14.5px; color: var(--danger); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 48px 0; }
.done__mark { width: 76px; height: 76px; border-radius: 999px; display: grid; place-items: center; margin: 0 auto 22px; background: var(--dill); color: #fff; animation: pop .5s var(--ease) both; }
.done__title { font: 800 32px/1.1 var(--serif); margin-bottom: 12px; }
.done p { color: var(--ash); margin: 0 auto 10px; max-width: 24em; }
.done__phone a { color: var(--ink); font-weight: 600; }
.done .btn { margin-top: 18px; }

/* Нижня панель кошика на телефоні */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; display: none;
  align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--milk); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  animation: rise .35s var(--ease) both;
}
.cartbar__count { font-size: 14px; color: rgba(245, 243, 238, .7); }
.cartbar__sum { font: 700 20px/1 var(--serif); margin-right: auto; }
.cartbar__go { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 14px 0 18px; border-radius: 999px; background: var(--butter); color: var(--ink); font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--milk); font-size: 15px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  animation: rise .3s var(--ease) both;
}

/* ── ПОЯВА ПРИ ПРОКРУТЦІ (як у ds-solutions) ─────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.no-reveal .reveal, .no-reveal .reveal.in { opacity: 1; transform: none; transition: none; transition-delay: 0s; }

/* ── АДАПТИВ ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header__phone span { display: none; }
  .header__phone { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 999px; background: var(--flour); }
  .timer { left: -16px; }
  .footer__top { grid-template-columns: minmax(0, 1fr) auto; }
  .footer__nav { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; --pad: 18px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .header__phone { display: none; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 14px; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 39;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px;
    background: var(--milk); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__link { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font: 700 24px/1.1 var(--serif); color: var(--ink); }
  .nav__link.is-active { background: none; }
  .nav__phone-mobile { display: inline-flex; align-items: center; gap: 10px; padding: 18px 4px 0; font-weight: 600; }

  .hero { padding: 28px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 440px; width: 100%; justify-self: center; }
  .timer { left: 12px; bottom: 16px; }
  .cats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .band { padding: 64px 0; }
  .story { grid-template-columns: 1fr; gap: 40px; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product__media { position: relative; top: 0; max-width: 460px; }
  .contacts { grid-template-columns: 1fr; gap: 16px; }
  .cta__inner { padding: 36px 28px; }
  .section { padding: 56px 0; }
  .section--tight { padding-top: 16px; }

  body.has-cart .cartbar { display: flex; }
  body.has-cart .footer { padding-bottom: 84px; }
  body.has-cart .toast { bottom: 84px; }
  .toast { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 560px) {
  .logo__name { font-size: 19px; }
  .logo__top { font-size: 13px; }
  .logo__mark svg { width: 34px; height: 34px; }
  .hero__title { font-size: clamp(40px, 11.5vw, 56px); }
  .hero__lead { font-size: 17px; }
  .facts { flex-direction: column; gap: 12px; }
  .cat { grid-template-columns: 52px 1fr auto; gap: 14px; }
  .cat__img { width: 52px; height: 52px; }
  .cat__name { font-size: 22px; }
  .pcard__name { font-size: 15.5px; }
  .pcard__cook { font-size: 12px; padding: 4px 8px 4px 6px; }
  .pcard__cook svg { width: 14px; height: 14px; }
  .price b { font-size: 22px; }
  .buy__add, .stepper { height: 40px; }
  .buy__add { width: 40px; }
  .stepper button { width: 34px; height: 40px; }
  .label { padding: 28px 22px 22px; }
  .label__rows div { grid-template-columns: 1fr; gap: 2px; }
  .drawer__body, .drawer__foot { padding-left: 20px; padding-right: 20px; }
  .drawer__head { padding-left: 20px; }
  .footer__top { grid-template-columns: 1fr; gap: 20px; }
  .footer__nav { grid-row: auto; }
  .footer__contact { align-items: flex-start; text-align: left; }
  .footer-credit { white-space: normal; flex-wrap: wrap; font-size: .75rem; }
  .footer-credit svg { width: 100px; height: 30px; }
  .notfound__code { font-size: 96px; }
}

/* ── МЕНШЕ РУХУ ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
