/* Квіточки Христини — premium lilac design tokens */
:root {
  /* Brand */
  --leaf: #507a5f;
  --leaf-deep: #41644d;
  --leaf-soft: #5f9071;
  --moss: #5f9071;
  --moss-deep: #507a5f;
  /* Surfaces */
  --paper: #fbfafe;
  --paper-2: #ffffff;
  --sage: #f9f8f2;
  --lavender: #f9f8f2;
  /* Text */
  --ink: #1f2a23;
  --ink-soft: #4e5651;
  /* Accents */
  --petal: #c92f63;
  --petal-soft: #f3a0b9;
  --accent: #c92f63;
  --soil: #2c3730;
  --gold: #d4a574;
  --danger: #c43d65;
  --ok: #257d5e;
  /* Lines & focus */
  --line: rgba(43, 75, 55, 0.1);
  --focus: 0 0 0 4px rgba(80, 122, 95, 0.18);
  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --radius: var(--radius-md);
  /* Shadows — tight, no soft haze */
  --shadow-sm: 0 1px 2px rgba(43, 75, 55, 0.07), 0 2px 6px rgba(43, 75, 55, 0.06);
  --shadow-md: 0 2px 8px rgba(43, 75, 55, 0.1), 0 6px 16px rgba(43, 75, 55, 0.08);
  --shadow-lg: 0 4px 14px rgba(43, 75, 55, 0.12), 0 12px 28px rgba(43, 75, 55, 0.1);
  --shadow: var(--shadow-md);
  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;
  --dur-slow: 300ms;
  /* Layout */
  --header-h: 56px;
  --banner-h: 48px;
  --dock-h: 0px;
  /* Type — Manrope (headings) + Onest (UI), Cyrillic */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --font-fallback-adjust: 100%;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Сайт завжди світлий — вимикає auto-dark у Chrome (Android: див. скрипт в index.html) */
  color-scheme: light only;
  /* smooth лише на desktop — у WebView (Telegram/IG/Viber) ламає інерцію скролу */
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + var(--banner-h) + var(--safe-top) + var(--vv-top, 0px) + 0.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  /* Місце під скролбар лишається і під час KFScrollLock — інакше сторінка стрибає на 15px при відкритті/закритті модалок */
  scrollbar-gutter: stable;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  /* колір html видно при rubber-band у WebView — збігається з банером */
  background-color: var(--leaf-deep);
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  html {
    scroll-behavior: smooth;
  }
}

/* display:* у компонентах не повинен перебивати [hidden] */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* banner-h already includes safe-area top when measured */
  padding-top: calc(var(--header-h) + var(--banner-h));
  padding-bottom: calc(var(--dock-h) + var(--safe-bottom) + var(--vv-bottom, 0px));
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  /* clip не робить body scroll-container — sticky filters працюють */
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: rgba(80, 122, 95, 0.16);
  /* ізолює фон від html при bounce */
  isolation: isolate;
}
@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

html.is-locked,
body.is-locked {
  overscroll-behavior: none;
}
body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf);
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: max(16px, 1rem);
}

button,
.btn,
.tab,
.cart-btn,
.menu-btn,
.overlay-close,
.qty button,
.cart-dock,
.product__photo,
.faq__q,
.nav-mobile__links a {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--leaf);
  color: #ffffff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}
.wrap--narrow {
  width: min(720px, calc(100% - 2rem));
}

h1,
.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
h3,
.h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head {
  margin-bottom: 1.6rem;
}
.section-head .h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--leaf), var(--petal));
}

/* Buttons */
.btn {
  --btn-lift: 0px;
  --btn-scale: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(var(--btn-lift)) scale(var(--btn-scale));
  transition:
    transform var(--dur) var(--ease),
    background var(--dur-slow) var(--ease),
    background-image var(--dur-slow) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    filter var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}
.btn svg {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-lift: -3px;
    --btn-scale: 1.02;
  }
  .btn:hover::before {
    opacity: 1;
    transform: translateX(120%);
  }
  .btn:hover svg {
    transform: scale(1.12);
  }
}
.btn:active:not(:disabled) {
  --btn-lift: 0px;
  --btn-scale: 0.97;
}
.btn--solid {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #faf8ff;
  box-shadow: 0 2px 6px rgba(43, 75, 55, 0.22);
}
.btn--solid > * {
  position: relative;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover {
    --btn-lift: -2px;
    background: var(--leaf-soft);
    border-color: var(--leaf-soft);
    box-shadow: 0 3px 10px rgba(43, 75, 55, 0.28);
  }
  .btn--ghost:hover {
    border-color: var(--leaf);
    color: var(--leaf-deep);
    box-shadow: var(--shadow-sm);
  }
}
.btn--ghost {
  background: #ffffff;
  border-color: rgba(43, 75, 55, 0.14);
  color: var(--ink);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn--lg {
  min-height: 50px;
  padding-inline: 1.35rem;
}
.btn:disabled,
.btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  --btn-lift: 0px;
  --btn-scale: 1;
  box-shadow: none;
}
.btn:disabled::before,
.btn.is-loading::before {
  display: none;
}
.btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Instagram / Viber / Facebook brand hover — only on real hover devices */
@media (hover: hover) and (pointer: fine) {
  .btn[data-ig]:hover,
  .btn[data-ig-dm]:hover {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(221, 42, 123, 0.24);
  }
  .btn[data-ig]:hover::before,
  .btn[data-ig-dm]:hover::before,
  .btn[data-viber]:hover::before,
  .btn[data-fb]:hover::before {
    display: none;
  }
  .btn[data-ig]:hover svg,
  .btn[data-ig-dm]:hover svg,
  .btn[data-viber]:hover svg,
  .btn[data-fb]:hover svg {
    filter: none;
    transform: none;
  }
  .btn[data-viber]:hover {
    background: #7360f2;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(115, 96, 242, 0.25);
  }
  .btn[data-fb]:hover {
    background: #0866ff;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(8, 102, 255, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before,
  .btn svg,
  .cart-btn,
  .add-cart-btn,
  .nav--desktop a,
  .nav--desktop a::after,
  .nav-mobile__links a {
    transition: none !important;
  }
  .btn:hover {
    --btn-lift: 0px;
    --btn-scale: 1;
  }
  .btn:hover::before {
    transform: none;
  }
}

/* Fixed chrome: banner + header as one stack — no gap between them */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* Season banner */
.season-banner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  justify-content: center;
  align-items: center;
  padding: calc(0.35rem + var(--safe-top)) 0.75rem 0.35rem;
  background: linear-gradient(90deg, var(--leaf-deep), var(--leaf) 50%, #58886a);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
}
.season-banner:empty {
  display: none;
}
.season-banner strong {
  font-weight: 700;
  color: #ffffff;
}
.season-banner__sep {
  opacity: 0.5;
}
@media (max-width: 768px) {
  :root {
    --banner-h: calc(52px + var(--safe-top)); /* до вимірювання JS */
  }
  .season-banner {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 0.1rem 0.4rem;
    padding: calc(0.28rem + var(--safe-top)) 0.65rem 0.28rem;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
  }
  .season-banner strong {
    font-weight: 700;
  }
}
@media (max-width: 520px) {
  :root {
    --banner-h: calc(44px + var(--safe-top));
  }
  .season-banner {
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
    padding: calc(0.22rem + var(--safe-top)) 0.5rem 0.22rem;
    font-size: 11px;
    line-height: 1.3;
  }
  .season-banner > span:not(.season-banner__sep) {
    white-space: nowrap;
  }
  .season-banner__sep {
    display: none !important;
  }
}

/* Header — solid, no glass/blur (blur милить скрол і текст) */
.site-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-chrome.is-scrolled .site-header,
.site-header.is-scrolled {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.site-header__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
/* Brand wordmark — elegant nursery lockup (icon untouched) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  border-radius: 10px;
  outline: none;
  transition: color 250ms var(--ease);
}
.brand:focus-visible {
  box-shadow: var(--focus);
}
.brand__mark {
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  box-shadow: none;
  transition: transform 250ms var(--ease);
}
.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 40px;
}
.brand__name {
  margin: 0;
  margin-left: -0.02em;
  padding-right: 0.12em; /* overflow нижче обрізав нахил останньої курсивної літери */
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #2e4a38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: "liga", "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: color 250ms var(--ease);
}
.brand__name-accent {
  font-family: inherit;
  font-weight: 600;
  font-style: italic;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.brand__sub {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 4px 0 0;
  padding-left: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #557f64; /* #619373 fails AA on white; darkened for WCAG AA */
  line-height: 1;
  white-space: nowrap;
}
.brand__sub::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  align-self: center;
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__name {
    color: #507a5f;
  }
  .brand:hover .brand__mark {
    transform: translateY(-1px);
  }
}

/* Mobile header brand — matches hero Manrope system (≤768px) */
@media (max-width: 768px) {
  :root {
    --header-h: 62px;
  }
  .site-header {
    height: 62px;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(80, 122, 95, 0.12);
    color-scheme: light;
  }
  .site-chrome.is-scrolled .site-header,
  .site-header.is-scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(43, 75, 55, 0.08);
  }
  .site-header__row {
    gap: 0.45rem;
  }
  .brand {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    border-radius: 12px;
    transition: transform 150ms var(--ease);
  }
  .brand:active {
    transform: scale(0.98);
  }
  .brand:focus-visible {
    box-shadow: 0 0 0 3px rgba(80, 122, 95, 0.45);
  }
  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
    min-width: 0;
  }
  .brand__name {
    margin: 0;
    margin-left: -0.02em;
    padding-right: 0;
    font-family: var(--display); /* Manrope — same as hero */
    font-weight: 700;
    font-size: clamp(1rem, 0.85rem + 1.9vw, 1.2rem);
    line-height: 1;
    letter-spacing: -0.01em;
    color: #274733 !important;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-feature-settings: "kern";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  .brand__name-accent {
    font-family: inherit;
    font-weight: inherit;
    font-style: normal;
    font-size: inherit;
    letter-spacing: inherit;
    color: #507a5f !important;
  }
  .brand__sub {
    display: block;
    margin: 3px 0 0;
    margin-left: -0.02em;
    padding: 0;
    font-family: var(--font);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #557f64 !important; /* #619373 fails AA on white */
    line-height: 1;
    white-space: nowrap;
  }
  .brand__sub::before {
    display: none;
  }
}
@media (max-width: 359.98px) {
  .brand__sub {
    display: none;
  }
  .brand__name {
    font-size: 0.9rem; /* вміщує один рядок поруч з кошиком і бургером на 320px */
  }
  .season-banner {
    font-size: 10px;
  }
  .season-banner > span:not(.season-banner__sep) {
    white-space: normal;
    max-width: 100%;
    text-align: center;
  }
}
.nav--desktop {
  display: none;
  gap: 0.35rem;
  margin-left: auto;
}
.nav--desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
  transition: color 0.28s var(--ease);
}
.nav--desktop a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--leaf);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav--desktop a:hover {
    color: var(--leaf-deep);
  }
  .nav--desktop a:hover::after {
    width: calc(100% - 0.7rem);
  }
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.site-header__cta {
  display: none;
}
.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .cart-btn:hover {
    transform: translateY(-2px);
    background: var(--leaf);
    border-color: var(--leaf);
    color: #faf8ff;
    box-shadow: var(--shadow-md);
  }
}
.cart-btn:active {
  transform: scale(0.96);
}
.cart-btn__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(232, 90, 133, 0.4);
}
.cart-btn__badge.is-pulse {
  animation: badgePulse 0.55s var(--ease);
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  gap: 6px;
  place-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease);
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.34s var(--ease),
    background 0.28s var(--ease),
    opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] {
  background: rgba(80, 110, 91, 0.12);
}
.menu-btn[aria-expanded="true"] span {
  background: var(--leaf);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}
.menu-btn:active {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .menu-btn:hover {
    background: rgba(255, 255, 255, 0.7);
  }
  .menu-btn:hover span {
    background: var(--leaf);
  }
  .menu-btn[aria-expanded="true"]:hover {
    background: rgba(80, 110, 91, 0.16);
  }
}

@media (min-width: 880px) {
  .nav--desktop {
    display: flex;
  }
  .site-header__cta {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
  .site-header__actions {
    margin-left: 0;
  }
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.nav-mobile.is-open,
.nav-mobile.is-closing {
  visibility: visible;
}
.nav-mobile.is-open {
  pointer-events: auto;
}
.nav-mobile.is-closing {
  pointer-events: none;
}
.nav-mobile__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(34, 54, 41, 0.48);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.36s var(--ease);
}
.nav-mobile.is-open .nav-mobile__backdrop {
  opacity: 1;
}
.nav-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 360px);
  height: auto;
  max-height: none;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-right: var(--safe-right);
  transform: translateX(105%);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.nav-mobile.is-open .nav-mobile__panel {
  transform: translateX(0);
}
.nav-mobile.is-open .nav-mobile__links a {
  animation: navLinkIn 0.4s var(--ease) both;
}
.nav-mobile.is-open .nav-mobile__links a:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile.is-open .nav-mobile__links a:nth-child(2) { animation-delay: 0.09s; }
.nav-mobile.is-open .nav-mobile__links a:nth-child(3) { animation-delay: 0.13s; }
.nav-mobile.is-open .nav-mobile__links a:nth-child(4) { animation-delay: 0.17s; }
.nav-mobile.is-open .nav-mobile__links a:nth-child(5) { animation-delay: 0.21s; }
@keyframes navLinkIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.nav-mobile__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-mobile.is-closing .nav-mobile__backdrop {
  opacity: 0;
}
.nav-mobile.is-closing .nav-mobile__panel {
  transform: translateX(105%);
}
.nav-mobile__links {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.5rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.nav-mobile__links a {
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  display: flex;
  align-items: center;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    padding-left 0.28s var(--ease),
    transform 0.22s var(--ease);
}
.nav-mobile__links a:active,
.nav-mobile__links a.is-tap {
  color: var(--leaf-deep);
  background: rgba(80, 110, 91, 0.12);
  padding-left: 1.5rem;
  transform: scale(0.985);
}
.nav-mobile__links a:focus {
  outline: none;
  background: transparent;
  color: var(--ink);
  padding-left: 1.25rem;
  transform: none;
}
.nav-mobile__links a:focus-visible {
  box-shadow: var(--focus);
  background: rgba(80, 110, 91, 0.1);
}
.nav-mobile__links a.is-tap:focus {
  color: var(--leaf-deep);
  background: rgba(80, 110, 91, 0.12);
  padding-left: 1.5rem;
}
@media (hover: hover) and (pointer: fine) {
  .nav-mobile__links a:hover {
    color: var(--leaf-deep);
    background: rgba(80, 110, 91, 0.1);
    padding-left: 1.5rem;
  }
}

/* Hero — glass card editorial
   Лише svh/vh: dvh на скролі росте разом з URL-баром і «роздуває» фото */
.hero {
  --hero-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  align-items: end;
  color: #ffffff;
  overflow: hidden;
}
.hero__visual {
  position: absolute;
  inset: 0;
}
.hero__video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  background: #263a2d;
}
.hero__photo,
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero__photo {
  display: block;
  height: 100%;
}
.hero__photo img,
.hero__video {
  transform-origin: center center;
}
.hero.is-ready .hero__photo img,
.hero.is-ready .hero__video {
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 42, 28, 0.55) 0%, rgba(20, 42, 28, 0.2) 35%, transparent 60%);
}
@media (min-width: 880px) {
  .hero__visual {
    background: #263a2d url("images/hero/hero-desk-poster-v3.webp") center / cover no-repeat;
  }
  .hero__video {
    display: block;
  }
  .hero__photo {
    display: none;
  }
}
@media (min-width: 880px) and (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none !important;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(5.5rem, 18vh, 9rem) 0 clamp(1.75rem, 4vw, 3rem);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  box-sizing: border-box;
}

.hero-card {
  width: 100%;
  max-width: 640px;
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(28, 58, 39, 0.94), rgba(18, 40, 26, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 36px rgba(14, 34, 21, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-wrap: balance;
  white-space: nowrap;
}
.hero__name-accent {
  color: #dff9e8;
  /* градієнт-текст лише desktop hover — на mobile/force-dark transparent fill зникає */
  background-image: none;
  -webkit-text-fill-color: #dff9e8;
}
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .hero__name-accent {
    color: #caf0d8;
    background-image: linear-gradient(110deg, #d7f4e2 0%, #aadcbc 45%, #d7f4e2 90%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero.is-ready .hero__name-accent {
    animation: heroAccentShift 8s ease-in-out infinite alternate;
  }
}
@keyframes heroAccentShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero-sub,
.hero__title {
  margin: 0 0 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
}
.hero-sub .line {
  display: block;
  white-space: nowrap;
}
.hero-sub em {
  font-style: normal;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 48ch;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}
.hero__place {
  font-weight: 600;
  color: #ffffff;
}
.hero__region {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}
@media (min-width: 380px) {
  .hero__place,
  .hero__region {
    white-space: nowrap;
  }
}
.hero__lead strong {
  font-weight: 600;
  color: #ffffff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.hero-card .hero__actions .btn {
  min-height: 48px;
  height: 48px;
}
.hero-card .hero__actions .btn--lg {
  min-height: 48px;
  height: 48px;
}
.hero-card .btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
@media (hover: hover) and (pointer: fine) {
  .hero-card .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    --btn-lift: -2px;
  }
  .hero-card .btn--solid:hover {
    --btn-lift: -2px;
    box-shadow: var(--shadow-lg);
  }
}
.hero__actions .btn[data-ig]:hover,
.hero__actions .btn[data-viber]:hover,
.hero__actions .btn[data-fb]:hover {
  border-color: transparent;
  color: #ffffff;
}

.hero__np {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
}

.hero__np img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Entrance */
.js .hero:not(.is-ready) .hero-card {
  opacity: 0;
}
.js .hero.is-ready .hero-card {
  animation: heroCardIn 800ms var(--hero-ease) both;
}
.js .hero.is-ready .hero__brand {
  animation: heroItemIn 700ms var(--hero-ease) 250ms both;
}
.js .hero.is-ready .hero-sub .line:nth-child(1) {
  animation: heroItemIn 700ms var(--hero-ease) 470ms both;
}
.js .hero.is-ready .hero-sub .line:nth-child(2) {
  animation: heroItemIn 700ms var(--hero-ease) 560ms both;
}
.js .hero.is-ready .hero__lead {
  animation: heroItemIn 700ms var(--hero-ease) 670ms both;
}
.js .hero.is-ready .hero__actions {
  animation: heroItemIn 700ms var(--hero-ease) 780ms both;
}
.js .hero.is-ready .hero__np {
  animation: heroItemIn 700ms var(--hero-ease) 890ms both;
}
.js .hero:not(.is-ready) .hero__brand,
.js .hero:not(.is-ready) .hero-sub .line,
.js .hero:not(.is-ready) .hero__lead,
.js .hero:not(.is-ready) .hero__actions,
.js .hero:not(.is-ready) .hero__np {
  opacity: 0;
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Мобільний entrance — без scale (менше jank у WebView) */
@keyframes heroCardInSoft {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Без filter:blur — на iOS/WebView blur «залипає» і милить текст */
@keyframes heroItemIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heroItemInSoft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px), (hover: none) {
  .js .hero.is-ready .hero-card {
    animation-name: heroCardInSoft;
    animation-duration: 700ms;
  }
  .js .hero.is-ready .hero__brand,
  .js .hero.is-ready .hero-sub .line,
  .js .hero.is-ready .hero__lead,
  .js .hero.is-ready .hero__actions,
  .js .hero.is-ready .hero__np {
    animation-name: heroItemInSoft;
  }
  .hero-card {
    background: rgba(20, 44, 29, 0.94);
  }
  .hero__name-accent {
    color: #e3faeb !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #e3faeb !important;
    animation: none !important;
  }
  .hero__brand {
    color: #ffffff !important;
  }
  /* Кнопки hero — явні кольори (світла схема) */
  .hero-card .btn--solid {
    background: var(--leaf) !important;
    border-color: var(--leaf) !important;
    color: #faf8ff !important;
  }
  .hero-card .btn--ghost {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
  }
}

@media (max-width: 639.98px) {
  .hero__content {
    width: calc(100% - 32px);
    padding-top: clamp(3.5rem, 12vh, 6rem);
    padding-bottom: 1.25rem;
  }
  .hero-card {
    max-width: none;
    border-radius: 22px;
    padding: 22px;
  }
  .hero__brand {
    font-size: 2rem;
    white-space: normal;
  }
  .hero-sub .line {
    white-space: normal;
  }
  .js .hero.is-ready .hero-card,
  .js .hero.is-ready .hero__brand,
  .js .hero.is-ready .hero-sub .line,
  .js .hero.is-ready .hero__lead,
  .js .hero.is-ready .hero__actions,
  .js .hero.is-ready .hero__np {
    animation-duration: 500ms;
  }
  .hero.is-ready .hero__photo img,
  .hero.is-ready .hero__video {
    animation: none !important;
  }
}

/* no-hero-fx: лише фон (Ken Burns / tilt), entrance картки лишається */
html.no-hero-fx .hero.is-ready .hero__photo img,
html.no-hero-fx .hero.is-ready .hero__video {
  animation: none !important;
  transform: none !important;
}
html.no-hero-fx .hero-card {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-ready .hero__photo img,
  .hero.is-ready .hero__video,
  .hero.is-ready .hero__name-accent {
    animation: none !important;
  }
  .js .hero:not(.is-ready) .hero-card,
  .js .hero:not(.is-ready) .hero__brand,
  .js .hero:not(.is-ready) .hero-sub .line,
  .js .hero:not(.is-ready) .hero__lead,
  .js .hero:not(.is-ready) .hero__actions,
  .js .hero:not(.is-ready) .hero__np {
    opacity: 1;
  }
  .js .hero.is-ready .hero-card,
  .js .hero.is-ready .hero__brand,
  .js .hero.is-ready .hero-sub .line,
  .js .hero.is-ready .hero__lead,
  .js .hero.is-ready .hero__actions,
  .js .hero.is-ready .hero__np {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-card {
    transform: none !important;
  }
}

/* Catalog filters — soft select + chip cloud */
.catalog-filters {
  --filters-sticky-top: calc(var(--header-h) + var(--banner-h) + 0.35rem);
  position: sticky;
  top: var(--filters-sticky-top);
  z-index: 20;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1.35rem;
  background: var(--lavender);
  padding: 0.1rem 0 0.2rem;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.catalog-filters__shell {
  --filter-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --filter-dur: 0.34s;
  position: relative;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(80, 122, 95, 0.14);
  box-shadow: 0 2px 10px rgba(43, 75, 55, 0.06);
  overflow: hidden;
  transition:
    border-color var(--filter-dur) var(--filter-ease),
    box-shadow var(--filter-dur) var(--filter-ease);
}
.catalog-filters.is-open .catalog-filters__shell {
  border-color: rgba(80, 122, 95, 0.28);
  box-shadow: 0 8px 22px rgba(43, 75, 55, 0.1);
}
.catalog-filters__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.75rem 0.85rem 0.75rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.catalog-filters__trigger:active {
  background: rgba(80, 122, 95, 0.03);
}
.catalog-filters__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fdfaf1, #e8fbef);
  color: var(--leaf-deep);
  transition:
    transform 0.32s var(--filter-ease, var(--ease)),
    background 0.28s ease;
}
.catalog-filters.is-open .catalog-filters__icon {
  transform: scale(1.06);
  background: linear-gradient(160deg, #e8fbef, #daf9e5);
}
.catalog-filters__trigger-text {
  min-width: 0;
  flex: 1 1 auto;
}
.catalog-filters__eyebrow {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}
.catalog-filters__value-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.catalog-filters__value {
  display: block;
  min-width: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-filters__value-count {
  flex: 0 0 auto;
  min-width: 1.45rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(80, 122, 95, 0.1);
  color: var(--leaf-deep);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.catalog-filters__chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--leaf-deep);
  background: rgba(80, 122, 95, 0.06);
  transition:
    transform 0.4s var(--filter-ease, var(--ease)),
    background 0.28s ease;
}
.catalog-filters.is-open .catalog-filters__chevron {
  transform: rotate(180deg);
  background: rgba(80, 122, 95, 0.14);
}
/* Плавне відкриття/закриття панелі */
.catalog-filters__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  border-top: 1px solid transparent;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 40%);
  transition:
    grid-template-rows var(--filter-dur, 0.34s) var(--filter-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity 0.22s ease,
    border-color 0.28s ease;
}
.catalog-filters.is-open .catalog-filters__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top-color: rgba(80, 122, 95, 0.1);
  transition:
    grid-template-rows var(--filter-dur, 0.34s) var(--filter-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity 0.28s ease 0.04s,
    border-color 0.28s ease;
}
.catalog-filters__panel[hidden] {
  display: none !important;
}
.catalog-filters__panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 0.75rem;
}
.catalog-filters.is-open .catalog-filters__panel-inner {
  padding-bottom: 0.85rem;
}
.catalog-filters__list,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: visible;
  padding: 0.7rem 0 0;
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(80, 122, 95, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.16s var(--ease),
    opacity 0.28s var(--filter-ease, var(--ease)),
    box-shadow 0.2s ease;
}
.catalog-filters.is-open .tab {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.05s + var(--chip-i, 0) * 0.035s);
}
.catalog-filters.is-closing .tab {
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  transition-delay: 0s;
  transition-duration: 0.16s;
}
.tab__label {
  line-height: 1.2;
}
.tab__count {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  background: rgba(43, 75, 55, 0.06);
  min-width: 1.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .tab:hover:not(.is-active) {
    border-color: rgba(80, 122, 95, 0.32);
    background: rgba(80, 122, 95, 0.05);
    color: var(--leaf-deep);
  }
}
.tab:active {
  transform: scale(0.97);
}
.tab.is-active {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(65, 100, 77, 0.28);
}
.tab.is-active .tab__count {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}
.tab--promo:not(.is-active) {
  border-color: rgba(232, 90, 133, 0.28);
  background: #fff7f9;
  color: #a13d5b;
}
.tab--promo:not(.is-active) .tab__label {
  color: #a13d5b;
}
.tab--promo:not(.is-active) .tab__count {
  color: #a13d5b;
  background: rgba(232, 90, 133, 0.12);
}
.tab--promo.is-active {
  background: var(--petal);
  border-color: var(--petal);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(232, 90, 133, 0.3);
}
.tab--promo.is-active .tab__count {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}
.catalog-grid.is-filtering {
  opacity: 0.35;
  transform: translateY(8px);
}
.catalog-grid.is-ready {
  opacity: 1;
  transform: none;
}
@media (min-width: 900px) {
  .catalog-filters__shell {
    border-radius: 24px;
  }
  .catalog-filters__list,
  .tabs {
    gap: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-filters__shell,
  .catalog-filters__panel,
  .catalog-filters__chevron,
  .catalog-filters__icon,
  .tab,
  .catalog-grid {
    animation: none !important;
    transition: none !important;
  }
  .catalog-filters .tab {
    opacity: 1 !important;
    transform: none !important;
  }
}

.section.catalog {
  background: var(--lavender);
  max-width: 100%;
  min-width: 0;
}

/* Single-tab gate */
.single-tab-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(31, 42, 35, 0.55);
}
.single-tab-gate__card {
  width: min(100%, 360px);
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.single-tab-gate__card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.single-tab-gate__card p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}
.single-tab-gate__actions {
  display: flex;
  justify-content: center;
}
.section.about {
  background: var(--paper-2);
}
.section.reviews {
  background: var(--lavender);
}
.section.faq {
  background: var(--paper-2);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  transition:
    opacity 0.28s var(--ease),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 720px) {
  .catalog-grid {
    /* 260px не вміщає 2 кол. на 360 — тому auto-fill з 720px */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }
}
.catalog-empty {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
  .product:hover .product__photo img {
    transform: scale(1.04);
  }
}
.product__photo {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--sage);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
}
.product__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: transform 600ms var(--ease);
}
.product__stock {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 75, 55, 0.08);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ok);
}
.product__stock.is-low {
  color: #8a5a12;
  background: rgba(255, 248, 235, 0.96);
}
.product__stock.is-preorder {
  color: var(--leaf-deep);
  background: rgba(249, 248, 242, 0.96);
}
.product__stock.is-out {
  color: var(--danger);
}
.product__body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.product__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 600;
}
.product__name button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.product__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.product__price s {
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.product__price strong {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.product__buy {
  position: relative;
  margin-top: auto;
  min-height: 44px;
}
.product__buy .add-cart-btn,
.product__buy .product__qty-ctrl {
  position: absolute;
  inset: 0;
  width: 100%;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.product__buy[data-mode="add"] .product__qty-ctrl {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.product__buy[data-mode="qty"] .add-cart-btn {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.product__buy.no-motion .add-cart-btn,
.product__buy.no-motion .product__qty-ctrl {
  transition: none;
}
.add-cart-btn__full {
  display: none;
}
.add-cart-btn__short {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
@media (min-width: 720px) {
  .add-cart-btn__full {
    display: inline;
  }
  .add-cart-btn__short {
    display: none;
  }
}
.qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
  min-height: 44px;
}
.qty button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .qty button:hover {
    background: color-mix(in srgb, var(--moss) 22%, var(--sage));
    color: var(--leaf-deep);
    transform: scale(1.06);
  }
}
.qty button:active,
.qty button.is-qty-tap {
  transform: scale(0.88);
  background: color-mix(in srgb, var(--moss) 35%, var(--sage));
}
.qty span {
  position: relative;
  min-width: 1.65rem;
  text-align: center;
  font-weight: 700;
  display: inline-block;
  line-height: 1.2;
}
.qty span.is-qty-up {
  animation: qtyBumpUp 0.32s var(--ease);
}
.qty span.is-qty-down {
  animation: qtyBumpDown 0.32s var(--ease);
}
@keyframes qtyBumpUp {
  0% {
    transform: translateY(8px) scale(0.85);
    opacity: 0.35;
  }
  55% {
    transform: translateY(-2px) scale(1.18);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes qtyBumpDown {
  0% {
    transform: translateY(-8px) scale(0.85);
    opacity: 0.35;
  }
  55% {
    transform: translateY(2px) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.product.is-just-added {
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(80, 122, 95, 0.35);
}
.product.is-just-added .add-cart-btn {
  position: relative;
}
.product.is-just-added .add-cart-btn::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--leaf);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: inherit;
  animation: addedPop 1.2s var(--ease) both;
}
@keyframes addedPop {
  0% { opacity: 0; transform: scale(0.92); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* About */
.about__grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 2.5rem;
  }
}
.about__copy p {
  color: var(--ink-soft);
}
.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.about__videos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72%, 1fr);
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* x contain — горизонталь у рейці; y auto — вертикаль іде на сторінку */
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
@media (min-width: 720px) {
  .about__videos {
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
}
.about-vid {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #263a2d;
  aspect-ratio: 9 / 14;
  isolation: isolate;
  scroll-snap-align: start;
}
.about-vid__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #263a2d;
}
.about-vid__sound {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 1rem);
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 44, 33, 0.9);
  color: #faf8ff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s var(--ease), opacity 0.25s;
  pointer-events: none;
}
.about-vid.is-loud .about-vid__sound {
  background: rgba(80, 110, 91, 0.92);
}
.about-vid__sound-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reviews */
.reviews-list {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 760px) {
  .reviews-list {
    grid-template-columns: 1fr 1fr;
  }
}
.review {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.review::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  left: 0.85rem;
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  color: var(--leaf);
  opacity: 0.16;
  pointer-events: none;
}
.review::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sage), var(--leaf-soft));
  box-shadow: var(--shadow-sm);
  opacity: 0.85;
}
.review p {
  position: relative;
  z-index: 1;
  margin: 0 0 0.9rem;
  padding-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.6;
}
.review footer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--leaf-deep);
  font-weight: 600;
  font-size: 0.88rem;
  padding-right: 2.75rem;
}
.reviews-more {
  margin: 1rem 0 0;
}
.reviews-more__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--leaf);
  padding-bottom: 0.15rem;
}
.reviews-more__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease);
}
.reviews-more__link:active::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .reviews-more__link:hover::after {
    transform: scaleX(1);
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
}
.faq__item {
  --faq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --faq-dur: 0.42s;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  overflow: hidden;
  transition:
    border-color var(--faq-dur) var(--faq-ease),
    background var(--faq-dur) var(--faq-ease),
    box-shadow var(--faq-dur) var(--faq-ease),
    transform 0.28s var(--faq-ease);
}
@media (hover: hover) and (pointer: fine) {
  .faq__item:hover {
    border-color: #c6decf;
    border-color: color-mix(in srgb, var(--leaf) 35%, var(--line));
    background: var(--paper-2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }
  .faq__item:hover .faq__q {
    color: var(--leaf-deep);
  }
}
.faq__item.is-open {
  border-color: #b5d3c0;
  border-color: color-mix(in srgb, var(--leaf) 48%, var(--line));
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  box-shadow: 0 6px 20px rgba(43, 75, 55, 0.08);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.05rem 1.1rem;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.3;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.28s var(--faq-ease);
}
.faq__item.is-open .faq__q {
  color: var(--leaf-deep);
}
.faq__icon {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid #d3e4d9;
  border: 1px solid color-mix(in srgb, var(--leaf) 28%, var(--line));
  background: #fdfbf6;
  background: color-mix(in srgb, var(--leaf) 8%, #ffffff);
  position: relative;
  transition:
    transform 0.45s var(--faq-ease),
    background 0.32s var(--faq-ease),
    border-color 0.32s var(--faq-ease),
    box-shadow 0.32s var(--faq-ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.58rem;
  height: 1.5px;
  background: var(--leaf);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition:
    transform 0.4s var(--faq-ease),
    opacity 0.28s ease,
    background 0.28s ease;
}
.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq__item.is-open .faq__icon {
  background: var(--leaf);
  border-color: var(--leaf);
  transform: rotate(90deg);
  box-shadow: 0 2px 8px rgba(80, 122, 95, 0.28);
}
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: #ffffff;
}
.faq__item.is-open .faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}
/* Плавне розкриття: grid 0fr → 1fr + fade/slide тексту */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows var(--faq-dur) var(--faq-ease),
    opacity 0.28s ease;
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows var(--faq-dur) var(--faq-ease),
    opacity 0.32s ease 0.06s;
}
/* Після анімації закриття — повністю ховаємо */
.faq__a[hidden] {
  display: none !important;
}
.faq__a-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.34s var(--faq-ease),
    transform 0.42s var(--faq-ease);
}
.faq__item.is-open .faq__a-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}
.faq__item:not(.is-open) .faq__a-inner,
.faq__item:not(.is-open) .faq__a-inner * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none;
}
.faq__a-inner > p {
  margin: 0;
  padding: 0.1rem 1.15rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .faq__item,
  .faq__q,
  .faq__icon,
  .faq__icon::before,
  .faq__icon::after,
  .faq__a,
  .faq__a-inner {
    transition: none !important;
  }
  .faq__a-inner {
    transform: none !important;
  }
}

/* Social */
.social__card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(65, 100, 77, 0.98), rgba(80, 122, 95, 0.96) 52%, rgba(232, 90, 133, 0.72)),
    var(--leaf);
  color: #faf8ff;
  box-shadow: var(--shadow-lg);
}
.social__card .h2 {
  color: #ffffff;
}
.social__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}
.social__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.social__card .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.social__card .btn[data-ig]:hover,
.social__card .btn[data-ig-dm]:hover,
.social__card .btn[data-viber]:hover,
.social__card .btn[data-fb]:hover {
  border-color: transparent;
  color: #ffffff;
}
.phone-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #ffffff;
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.muted {
  opacity: 0.85;
}
.site-footer__legal,
.site-footer__cats {
  flex-basis: 100%;
  margin: 0;
  line-height: 1.9;
}
.site-footer__cats a,
.site-footer__legal a,
.consent__text a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(31, 42, 35, 0.55);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.34s var(--ease),
    visibility 0.34s var(--ease);
}
.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.cart-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  width: min(100%, 420px);
  height: auto;
  max-height: none;
  background: var(--paper-2);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.38s var(--ease);
  overscroll-behavior: contain;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-right: var(--safe-right);
  touch-action: pan-y;
  will-change: transform;
}
.cart-drawer.is-open {
  transform: none;
}
.cart-drawer.is-closing {
  transform: translateX(105%);
  pointer-events: none;
}
.cart-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-drawer__bar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}
/* Shared green close for overlays */
.overlay-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--leaf);
  color: #faf8ff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 6px 16px rgba(80, 110, 91, 0.36);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.28s var(--ease),
    background 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    opacity 0.28s var(--ease);
}
.overlay-close svg {
  display: block;
  transition: transform 0.28s var(--ease);
}
.overlay-close:active {
  transform: scale(0.9);
  background: var(--leaf-deep);
}
.overlay-close--sheet {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 5;
  width: 46px;
  height: 46px;
}
.modal.sheet-modal.is-open .overlay-close--sheet {
  animation: overlayCloseIn 0.42s var(--ease) both;
}
.modal.sheet-modal.is-closing .overlay-close--sheet {
  animation: overlayCloseOut 0.28s var(--ease) both;
}
@keyframes overlayCloseIn {
  from {
    opacity: 0;
    transform: scale(0.65) rotate(-55deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes overlayCloseOut {
  from {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: scale(0.75) rotate(55deg);
  }
}
@media (hover: hover) and (pointer: fine) {
  .overlay-close:hover {
    background: var(--leaf-deep);
    transform: scale(1.06);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.95),
      0 10px 24px rgba(80, 110, 91, 0.46);
  }
  .overlay-close:hover svg {
    transform: rotate(90deg);
  }
}
.cart-drawer__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.cart-empty {
  margin: 0;
  padding: 1rem;
  color: var(--ink-soft);
  text-align: center;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #ddeae2;
}
.cart-line__name {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
}
.cart-line__price {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.cart-line__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.cart-line__row .qty {
  min-height: 44px;
  padding: 0.15rem;
  gap: 0.15rem;
}
.cart-line__row .qty button {
  width: 44px;
  height: 44px;
  min-width: 44px;
}
.cart-line__remove {
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}
.cart-line__sum {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.cart-drawer__footer {
  padding: 0.9rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-min {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: #8a5a12;
}
.cart-min.is-ok {
  color: var(--ok);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.cart-ship-hint {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.cart-fallback {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.cart-fallback a {
  color: var(--ink-soft);
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + var(--safe-bottom));
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  background: var(--ink);
  color: #ffffff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease),
    bottom 0.28s var(--ease);
}
.cart-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* Above sticky cart dock on mobile */
body.has-cart-dock .cart-toast {
  bottom: calc(0.75rem + var(--safe-bottom) + var(--dock-h) + 0.7rem);
}

/* Modal — показується лише без [hidden] */
.modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(16, 22, 18, 0.5);
  display: none;
  place-items: end center;
  padding: 0;
  overscroll-behavior: contain;
}
.modal:not([hidden]) {
  display: grid;
}
.modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(94vh, 900px);
  max-height: min(94dvh, 900px);
  overflow: auto;
  overflow-x: hidden;
  background: var(--paper-2);
  border-radius: 18px 18px 0 0;
  padding: 1.25rem 1.15rem calc(1.5rem + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
}

/* Bottom sheets (product + checkout) — dialog is the scrollport */
.modal.sheet-modal {
  background: rgba(16, 22, 18, 0);
  transition: background 0.28s var(--ease);
}
.modal.sheet-modal:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
}
.modal.sheet-modal.is-open {
  background: rgba(31, 42, 35, 0.55);
}
.modal.sheet-modal.is-closing {
  background: rgba(31, 42, 35, 0);
}
.modal.sheet-modal .modal__dialog {
  width: 100%;
  max-width: 100%;
  max-height: calc(100% - 0.35rem);
  max-height: calc(100dvh - var(--safe-top) - 0.35rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  flex: 0 1 auto;
  transform: translateY(110%);
  opacity: 0.96;
  transition:
    transform 0.34s var(--ease),
    opacity 0.28s var(--ease);
}
.modal.sheet-modal.is-open .modal__dialog {
  transform: translateY(0);
  opacity: 1;
}
.modal.sheet-modal.is-closing .modal__dialog {
  transform: translateY(110%);
  opacity: 0.96;
}
@media (min-width: 720px) {
  .modal.sheet-modal:not([hidden]) {
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  .modal.sheet-modal .modal__dialog {
    width: min(100%, 560px);
    max-height: min(94dvh, 900px);
  }
  #product-modal.sheet-modal .modal__dialog {
    width: min(100%, 900px);
  }
}
@media (min-width: 720px) {
  .modal:not([hidden]) {
    place-items: center;
    padding: 1rem;
  }
  .modal__dialog {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
}

.field,
.field-set {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.field span,
.field-set legend {
  font-size: 0.82rem;
  font-weight: 650;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: var(--focus);
}
.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.phone-field:focus-within {
  border-color: var(--leaf);
  box-shadow: var(--focus);
}
.phone-field__prefix {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 4.5rem;
  padding: 0 0.85rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
  background: var(--sage);
  user-select: none;
  white-space: nowrap;
}
.phone-field input[name="phone"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 400;
  color: #5a5a5a;
  letter-spacing: 0.02em;
}
.phone-field input[name="phone"]::placeholder {
  color: #9a9a9a;
  letter-spacing: 0.02em;
}
.phone-field input[name="phone"]:focus {
  outline: none;
  box-shadow: none;
}
.field textarea {
  min-height: 72px;
  resize: vertical;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.field-error {
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 600;
}

.cart-dock {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + var(--safe-bottom) + var(--vv-bottom, 0px));
  z-index: 55;
  transform: translate3d(-50%, 120%, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 1.5rem), 420px);
  min-height: 52px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: var(--leaf);
  color: #faf8ff;
  box-shadow: 0 4px 14px rgba(43, 75, 55, 0.28);
  font-weight: 650;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s var(--ease),
    opacity 0.28s var(--ease);
}
.cart-dock.is-visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}
.cart-dock:active {
  transform: translate3d(-50%, 0, 0) scale(0.98);
}
.cart-dock__sum {
  font-variant-numeric: tabular-nums;
}
body.has-cart-dock {
  --dock-h: 68px;
}
/* Hide dock while any overlay holds scroll-lock */
body.is-locked .cart-dock {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 120%, 0);
}
@media (min-width: 900px) {
  .cart-dock {
    display: none;
  }
  body.has-cart-dock {
    --dock-h: 0px;
  }
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    border-color 0.28s var(--ease),
    background 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.consent:has(input:focus-visible) {
  box-shadow: var(--focus);
}
.consent:has(input:checked) {
  border-color: rgba(80, 110, 91, 0.42);
  background: rgba(232, 242, 236, 0.7);
}
.consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.consent__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(80, 110, 91, 0.38);
  border-radius: 7px;
  background: #ffffff;
  color: #f7faf6;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.22s var(--ease);
}
.consent__check {
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.22s var(--ease),
    transform 0.28s var(--ease);
}
.consent input:checked + .consent__box {
  background: var(--leaf);
  border-color: var(--leaf);
}
.consent input:checked + .consent__box .consent__check {
  opacity: 1;
  transform: scale(1);
}
.consent:active .consent__box {
  transform: scale(0.94);
}
.consent__text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 550;
}
.np-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.np-suggest {
  text-align: left;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.np-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}
.checkout-summary {
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.checkout-lines li strong {
  white-space: nowrap;
  flex-shrink: 0;
}
.checkout-sum {
  margin: 0.5rem 0 0.25rem;
}
.checkout-ship-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.checkout-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.checkout-success.is-visible {
  opacity: 1;
  transform: none;
}
.checkout-order-id strong {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.35rem;
  animation: orderPop 0.55s var(--ease);
}
@keyframes orderPop {
  0% {
    transform: scale(0.92);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Product modal */
.modal__dialog.pmodal {
  padding: 1rem 1rem calc(1.25rem + var(--safe-bottom));
}
.modal__dialog.checkout {
  padding: 3.1rem 1.1rem calc(1.35rem + var(--safe-bottom));
}
.pmodal #product-modal-body {
  display: grid;
  gap: 1.15rem;
}
@media (max-width: 719px) {
  .pmodal__media img {
    max-height: min(38vh, 300px);
    min-height: 180px;
  }
  .pmodal__actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0.75rem -0.15rem 0;
    padding: 0.85rem 0.15rem calc(0.35rem + var(--safe-bottom));
    background: linear-gradient(
      to top,
      var(--paper-2) 72%,
      rgba(255, 255, 255, 0)
    );
  }
}
@media (min-width: 720px) {
  .modal__dialog.pmodal {
    padding: 1.15rem 1.15rem 1.25rem;
    border-radius: 18px;
  }
  .modal.sheet-modal .modal__dialog.pmodal,
  .modal.sheet-modal .modal__dialog.checkout {
    transform: translateY(18px) scale(0.98);
    opacity: 0;
  }
  .modal.sheet-modal.is-open .modal__dialog.pmodal,
  .modal.sheet-modal.is-open .modal__dialog.checkout {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .modal.sheet-modal.is-closing .modal__dialog.pmodal,
  .modal.sheet-modal.is-closing .modal__dialog.checkout {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
  .pmodal #product-modal-body {
    grid-template-columns: 1.05fr 1fr;
    gap: 1.35rem;
    align-items: stretch;
  }
}
.pmodal__media {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #ddeae2;
  align-self: stretch;
}
.pmodal__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: min(42vh, 360px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
@media (min-width: 720px) {
  .pmodal__media img {
    max-height: none;
    min-height: 280px;
  }
}
/* Галерея в картці товару: фото цілком (колажі з текстом), гортання свайпом або стрілками */
.pgallery {
  position: relative;
  height: 100%;
}
.pgallery__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.pgallery__track::-webkit-scrollbar {
  display: none;
}
.pgallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.pgallery__slide img {
  object-fit: contain;
}
.pgallery__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.pgallery__arrow[hidden] {
  display: none;
}
.pgallery__arrow--prev {
  left: 8px;
}
.pgallery__arrow--next {
  right: 8px;
}
.pgallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.pgallery__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(31, 42, 35, 0.25);
}
.pgallery__dots .is-active {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(31, 42, 35, 0.45);
}
.pmodal__info {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0;
}
.pmodal__content {
  flex: 1 1 auto;
  min-height: 0;
}
.pmodal__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(45, 138, 106, 0.12);
  color: var(--ok);
  margin: 0 0 0.65rem;
}
.pmodal__badge.is-out {
  color: var(--danger);
  background: rgba(155, 59, 88, 0.1);
}
.pmodal__badge.is-preorder {
  color: #355f8a;
  background: rgba(53, 95, 138, 0.12);
}
.pmodal__badge.is-low {
  color: #8a5a12;
  background: rgba(138, 90, 18, 0.12);
}
.pmodal h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.pmodal__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  width: 100%;
  max-width: 320px;
}
.pmodal__price-label {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.pmodal__price strong {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pmodal__price s {
  color: var(--ink-soft);
}
.specs {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.15rem 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  overflow: hidden;
}
.spec {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.spec:last-child {
  border-bottom: 0;
}
.spec dt {
  color: var(--ink-soft);
  margin: 0;
}
.spec dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}
.pmodal__note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
  line-height: 1.45;
}
.pmodal__actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.pmodal__buy {
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  justify-content: center;
}
.pmodal__share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: -0.35rem 0 0.6rem -0.6rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--leaf-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.pmodal__share:hover,
.pmodal__share:focus-visible {
  background: var(--sage);
}

@media (max-width: 359.98px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .product:hover,
  .product:hover .product__photo img,
  .btn:hover,
  .faq__item:hover {
    transform: none !important;
  }
  .hero__photo img,
  .hero__video {
    animation: none !important;
    transform: none !important;
  }
  .cart-dock {
    transition: none;
  }
  .nav-mobile__panel,
  .nav-mobile__backdrop,
  .menu-btn span {
    transition: none !important;
  }
  .nav-mobile.is-open .nav-mobile__links a {
    animation: none !important;
  }
  .cart-btn__badge.is-pulse,
  .product.is-just-added .add-cart-btn::after {
    animation: none !important;
  }
}

/* Checkout primary CTAs */
#cart-checkout-btn,
#checkout-submit {
  box-shadow: var(--shadow-md);
  min-height: 52px;
  font-weight: 700;
}
#cart-checkout-btn:hover,
#checkout-submit:hover:not(:disabled) {
  box-shadow: var(--shadow-lg);
}

.pmodal__badge {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 75, 55, 0.08);
}

.about-vid {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  background: var(--lavender);
}
/* ========== Promo / sale badges & rail ========== */
.product.is-promo {
  border: 1px solid rgba(214, 51, 100, 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .product.is-promo:hover {
    box-shadow: var(--shadow-lg), 0 8px 28px rgba(214, 51, 100, 0.12);
  }
}

/* Одна смуга зверху: лейбли зліва, % справа — без накладання */
.product__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.product__badges {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 52px);
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #ffffff;
  animation: promoBadgeIn 250ms var(--ease) both;
}
/* Вогник: бічні язики + корал/персик/крем, живе мерехтіння */
.kf-flame {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 20px;
  overflow: visible;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 1px 3px rgba(255, 180, 120, 0.55));
  animation: kfFlameSway 2s ease-in-out infinite;
}
.kf-flame__tongue--l {
  transform-origin: 20px 24px;
  animation: kfTongueL 1.25s ease-in-out infinite;
}
.kf-flame__tongue--r {
  transform-origin: 28px 22px;
  animation: kfTongueR 1.45s ease-in-out infinite;
}
.kf-flame__body {
  transform-origin: 24px 44px;
  animation: kfFlameBody 1.7s ease-in-out infinite;
}
.kf-flame__mid {
  transform-origin: 24px 40px;
  animation: kfFlameMid 1.3s ease-in-out infinite;
}
.kf-flame__core {
  transform-origin: 24px 38px;
  animation: kfFlameCore 1.05s ease-in-out infinite;
}
@keyframes kfFlameSway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-0.5px); }
}
@keyframes kfTongueL {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-8deg) scale(1.08, 0.95); }
}
@keyframes kfTongueR {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(9deg) scale(1.06, 0.96); }
}
@keyframes kfFlameBody {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  50% { transform: scaleY(1.05) scaleX(0.96); }
}
@keyframes kfFlameMid {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.06, 0.96); }
}
@keyframes kfFlameCore {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.14, 0.92); opacity: 1; }
}
.promo-badge__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promo-badge--sale {
  background: linear-gradient(135deg, #e04573, #f0628d);
  box-shadow: 0 4px 12px rgba(224, 69, 115, 0.35);
}
.promo-badge--clearance {
  background: linear-gradient(135deg, #d63364, #b02a52);
  box-shadow: 0 4px 12px rgba(214, 51, 100, 0.35);
  animation: promoBadgeIn 250ms var(--ease) both, clearancePulse 3.2s var(--ease) 0.6s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .kf-flame,
  .kf-flame__tongue--l,
  .kf-flame__tongue--r,
  .kf-flame__body,
  .kf-flame__mid,
  .kf-flame__core {
    animation: none !important;
  }
}
.promo-badge--hit {
  background: #f5b73a;
  color: #2e4a38;
  box-shadow: 0 4px 12px rgba(245, 183, 58, 0.35);
}
.promo-badge--new {
  background: #507a5f;
  box-shadow: 0 4px 12px rgba(80, 122, 95, 0.3);
}
@keyframes promoBadgeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes clearancePulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(214, 51, 100, 0.35); }
  50% { box-shadow: 0 6px 18px rgba(214, 51, 100, 0.55); }
}

.product__tags .product__discount {
  position: static;
  flex: 0 0 auto;
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #d63364;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  animation: promoBadgeIn 250ms var(--ease) both;
}
.product__discount--inline {
  position: static;
  width: auto;
  height: auto;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  background: #ffffff;
  color: #d63364;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.product__photo .product__stock {
  top: auto;
  bottom: 12px;
  left: 12px;
}
/* Кнопка «Поділитися» в правому нижньому куті фото: шар тієї ж висоти, що й фото 4:5 */
.product {
  position: relative;
}
.product__share-layer {
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 4 / 5;
  pointer-events: none;
}
.product__share {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(43, 75, 55, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--leaf-deep);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: auto;
}
.product__share:hover,
.product__share:focus-visible {
  background: #ffffff;
  color: var(--leaf);
}

.product__price {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}
.product__price-old,
.pmodal__price-old {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: 0.7;
}
.product__price strong.is-promo-price,
.pmodal__price strong.is-promo-price {
  color: #d63364;
  font-weight: 700;
}
.product__promo-note,
.pmodal__promo-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #b02a52;
  line-height: 1.3;
}
.product__promo-note svg,
.pmodal__promo-note svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.pmodal__promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}

.section.promo-rail {
  background: var(--paper-2);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.promo-rail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.promo-rail__head .section-head {
  margin-bottom: 0;
}
.promo-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 72%);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  padding: 0.25rem 0.15rem 0.75rem;
  scrollbar-width: thin;
}
.promo-rail__track .product {
  scroll-snap-align: start;
}
@media (min-width: 720px) {
  .promo-rail__track {
    grid-auto-columns: minmax(240px, 280px);
    gap: 1.25rem;
  }
}
@media (min-width: 1020px) {
  .promo-rail__track {
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-badge,
  .promo-badge--clearance,
  .kf-flame,
  .kf-flame__tongue--l,
  .kf-flame__tongue--r,
  .kf-flame__body,
  .kf-flame__mid,
  .kf-flame__core,
  .product__discount {
    animation: none !important;
  }
}

/* —— In-app + touch: стабільний скрол (Instagram / Telegram / Viber / WebView) —— */
/* Корінь на Android заявляє dark: фон полотна лишаємо світлим */
html.is-android {
  background: var(--paper);
}
html.is-inapp,
html.is-touch-ui {
  scroll-behavior: auto !important;
  min-height: 100%;
  min-height: 100svh;
  overflow-x: hidden;
}
html.is-inapp,
html.is-inapp body,
html.is-touch-ui body {
  overscroll-behavior: none;
}
html.is-inapp body,
html.is-touch-ui body {
  min-height: 100svh;
  /* без layout-jump від dynamic toolbar */
  overflow-anchor: none;
}

/* Chrome / header — суцільні, без transition на скролі */
html.is-inapp .site-chrome,
html.is-touch-ui .site-chrome,
html.is-inapp .site-header,
html.is-touch-ui .site-header {
  transition: none !important;
  background: #ffffff !important;
}
html.is-inapp .site-header,
html.is-touch-ui .site-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
}
html.is-inapp .site-chrome.is-scrolled .site-header,
html.is-touch-ui .site-chrome.is-scrolled .site-header {
  box-shadow: 0 1px 0 rgba(43, 75, 55, 0.08);
}

/* Hero: стабільний min-height (не ріже картку на малих екранах) */
html.is-inapp .hero,
html.is-touch-ui .hero {
  min-height: var(--hero-lock-h, 88svh);
  height: auto;
  max-height: none;
  overflow: hidden;
  overflow-anchor: none;
  align-items: safe end;
}
html.is-inapp .hero.is-locked,
html.is-touch-ui .hero.is-locked {
  min-height: var(--hero-lock-h, 88svh) !important;
  height: auto !important;
}
html.is-inapp .hero__visual,
html.is-touch-ui .hero__visual {
  inset: 0;
  transform: none !important;
}
/* Фон без Ken Burns; картка — з м’яким entrance */
html.is-inapp .hero__photo img,
html.is-inapp .hero__video,
html.is-touch-ui .hero__photo img,
html.is-touch-ui .hero__video,
html.is-inapp .hero.is-ready .hero__photo img,
html.is-inapp .hero.is-ready .hero__video,
html.is-inapp .hero.is-ready .hero__name-accent,
html.is-touch-ui .hero.is-ready .hero__photo img,
html.is-touch-ui .hero.is-ready .hero__video,
html.is-touch-ui .hero.is-ready .hero__name-accent {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}
html.is-inapp .hero-card,
html.is-touch-ui .hero-card {
  background: rgba(20, 44, 29, 0.96) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
  filter: none !important;
  transform-style: flat;
}
html.is-inapp .js .hero.is-ready .hero-card,
html.is-touch-ui .js .hero.is-ready .hero-card {
  animation: heroCardInSoft 700ms var(--hero-ease) both;
}
html.is-inapp .js .hero.is-ready .hero__brand,
html.is-inapp .js .hero.is-ready .hero-sub .line,
html.is-inapp .js .hero.is-ready .hero__lead,
html.is-inapp .js .hero.is-ready .hero__actions,
html.is-inapp .js .hero.is-ready .hero__np,
html.is-touch-ui .js .hero.is-ready .hero__brand,
html.is-touch-ui .js .hero.is-ready .hero-sub .line,
html.is-touch-ui .js .hero.is-ready .hero__lead,
html.is-touch-ui .js .hero.is-ready .hero__actions,
html.is-touch-ui .js .hero.is-ready .hero__np {
  animation-name: heroItemInSoft !important;
}
/* Sticky / overlays */
html.is-inapp .catalog-filters,
html.is-touch-ui .catalog-filters {
  /* менше композитор-джанку на sticky */
  contain: layout style;
}
html.is-inapp .catalog-filters .tab,
html.is-touch-ui .catalog-filters .tab {
  /* без scale-stagger — у WebView милить sticky-шар */
  opacity: 1 !important;
  transform: none !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}
html.is-inapp .catalog-filters__panel,
html.is-touch-ui .catalog-filters__panel {
  transition:
    grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease !important;
}
html.is-inapp .catalog-grid.is-filtering,
html.is-touch-ui .catalog-grid.is-filtering {
  opacity: 0.55;
  transform: none !important;
}
html.is-inapp .reveal,
html.is-touch-ui .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  filter: none !important;
}
html.is-inapp .product,
html.is-inapp .product__photo img,
html.is-inapp .btn,
html.is-touch-ui .product,
html.is-touch-ui .product__photo img,
html.is-touch-ui .btn {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}
html.is-inapp .product:hover,
html.is-inapp .product:hover .product__photo img,
html.is-touch-ui .product:hover,
html.is-touch-ui .product:hover .product__photo img {
  transform: none !important;
}

/* Горизонтальні треки — pan-x + pan-y (не блокувати вертикальний скрол сторінки) */
html.is-inapp .promo-rail__track,
html.is-inapp .about__videos,
html.is-touch-ui .promo-rail__track,
html.is-touch-ui .about__videos {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

/* Модалки / меню / drawer — svh замість dvh (не стрибає з toolbar) */
html.is-inapp .nav-mobile__panel,
html.is-touch-ui .nav-mobile__panel,
html.is-inapp .cart-drawer,
html.is-touch-ui .cart-drawer {
  top: 0;
  bottom: 0;
  height: auto;
  max-height: none;
  will-change: auto;
}
html.is-inapp .cart-overlay,
html.is-touch-ui .cart-overlay {
  background: rgba(31, 42, 35, 0.55);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.is-inapp .modal.sheet-modal.is-open,
html.is-touch-ui .modal.sheet-modal.is-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(31, 42, 35, 0.55);
}
html.is-inapp .modal.sheet-modal .modal__dialog,
html.is-touch-ui .modal.sheet-modal .modal__dialog {
  max-height: calc(100svh - var(--safe-top) - var(--vv-bottom, 0px) - 0.35rem);
}
html.is-inapp .cart-dock,
html.is-touch-ui .cart-dock {
  /* vv-bottom лише коли реально клавіатура (>80px уже в JS); інакше 0 */
  bottom: calc(0.75rem + var(--safe-bottom) + var(--vv-bottom, 0px));
  transition: opacity 0.2s ease, transform 0.28s ease !important;
}

/* FAQ: без важких transform на in-app */
html.is-inapp .faq__a-inner,
html.is-touch-ui .faq__a-inner {
  transform: none !important;
}
html.is-inapp .faq__item,
html.is-touch-ui .faq__item {
  transform: none !important;
}

@media (max-width: 900px) {
  .hero.is-ready .hero__photo img,
  .hero.is-ready .hero__video,
  .hero.is-ready .hero__name-accent {
    animation: none !important;
  }
  .hero-card {
    will-change: auto !important;
  }
  .site-chrome,
  .site-header {
    transition: none !important;
  }
}

/* Навіть якщо ОС у dark mode — тримаємо світлий UI сайту */
@media (prefers-color-scheme: dark) {
  html {
    color-scheme: light only;
    /* html лишає --leaf-deep для overscroll; фон сторінки — body */
  }
  body {
    color-scheme: light;
    background-color: var(--paper);
    color: var(--ink);
  }
  .site-header {
    background: #ffffff !important;
  }
}

/* Site-wide: жодного glass/blur — інакше iOS лишає «мило» після анімацій */
.site-header,
.hero-card,
.btn--ghost,
.cart-overlay,
.modal,
.modal.sheet-modal,
.about-vid__sound,
.catalog-filters,
.catalog-filters__shell,
.catalog-filters__trigger,
.catalog-filters__panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hero__brand,
.hero-sub .line,
.hero__lead,
.hero__actions,
.hero__np,
.hero-card,
.h2,
.catalog-filters__value,
.tab__label {
  filter: none !important;
}

/* Темний режим Samsung робить фіолетовий колір тла темно-синім, а картинку лише притемнює */
html.is-samsung a[data-href] {
  cursor: pointer;
}
html.is-samsung .btn--solid,
html.is-samsung .cart-dock,
html.is-samsung .season-banner,
html.is-samsung .tab.is-active,
html.is-samsung .product.is-just-added .add-cart-btn::after,
html.is-samsung .faq__item.is-open .faq__icon,
html.is-samsung .overlay-close,
html.is-samsung .consent input:checked + .consent__box,
html.is-samsung .promo-badge--new {
  background-image: url("images/garden.png") !important;
}
