:root {
  --bg: #f7f5f1;
  --bg-soft: #efece6;
  --surface: #ffffff;
  --ink: #141311;
  --ink-2: #3d3b36;
  --mute: #6b6860;
  --line: #ddd8cf;
  --line-soft: #ebe7df;
  --accent: #b40f2a;
  --accent-hover: #8f0b21;
  --accent-soft: rgba(180, 15, 42, 0.08);
  --ok: #1f5a36;
  --ok-bg: #e8f3ec;
  --header: 72px;
  --wrap: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Onest", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(20, 19, 17, 0.04);
  --shadow-md: 0 10px 30px rgba(20, 19, 17, 0.08);
  --shadow-lg: 0 24px 48px rgba(20, 19, 17, 0.12);
  --space-section: clamp(4rem, 9vw, 6.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + env(safe-area-inset-top, 0px) + 16px);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  min-height: 100dvh;
  /* avoid overflow-x:clip — it hides fixed mobile menu + clips header button */
  max-width: 100vw;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, .product__name, .cart-line__name {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible,
.tabs__btn:focus-visible,
.cart-btn:focus-visible,
.menu-btn:focus-visible,
.product__qty-btn:focus-visible,
.icon-x:focus-visible,
.modal__x:focus-visible,
.nav-mobile__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.btn__spinner {
  width: 1.05em;
  height: 1.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.wrap {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap--s {
  width: min(100% - 1.5rem, 700px);
}

.section {
  padding: var(--space-section) 0;
}

.section-head {
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin-bottom: 1rem;
}

.eyebrow--with-np {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  max-width: 100%;
  row-gap: 0.55rem;
}

.eyebrow--with-np > span {
  line-height: 1.35;
}

.eyebrow__np {
  display: block;
  height: clamp(18px, 4.8vw, 26px);
  width: auto;
  flex: 0 0 auto;
  max-width: min(42vw, 118px);
  object-fit: contain;
  object-position: left center;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lead {
  margin-top: 0.85rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    transform 0.28s var(--ease);
}

.btn:active {
  transform: translateY(0.5px);
  filter: brightness(0.96);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(180, 15, 42, 0.22);
}

.btn--solid:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(180, 15, 42, 0.26);
}

.btn--solid:active {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(180, 15, 42, 0.18);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--ghost:active {
  background: #2a2824;
  color: #fff;
}

.btn--facebook {
  gap: 0.55rem;
}

.btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #1877f2;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(24, 119, 242, 0.35);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.btn-fb svg {
  display: block;
}

.btn--ghost.btn--facebook:hover .btn-fb,
.btn--ghost.btn--facebook:active .btn-fb {
  background: #fff;
  color: #1877f2;
  box-shadow: none;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* Product cards — keyframe reveal (reliable on scroll + filter) */
.product.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: none;
}

.product.reveal.is-in {
  animation: productIn 0.65s var(--ease) forwards;
}

@keyframes productIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.site-header__row {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-right: auto;
  min-width: 0;
  transition: opacity 0.25s;
}

.brand:hover {
  opacity: 0.75;
}

.brand__mark {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.25rem 0;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav a:active {
  color: var(--accent);
}

.site-header__cta {
  display: none;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
}

.menu-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s, width 0.35s;
}

.menu-btn span:last-child {
  width: 16px;
}

.menu-btn:hover span:last-child,
.menu-btn[aria-expanded="true"] span:last-child {
  width: 22px;
}

.menu-btn:active {
  background: var(--accent-soft);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile full-screen menu with own top bar + close */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--surface);
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}

.nav-mobile.is-open {
  display: block;
  animation: navIn 0.28s var(--ease);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile.is-open[hidden] {
  display: block !important;
}

.nav-mobile__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-mobile__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header);
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 241, 0.98);
}

.nav-mobile__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}

.nav-mobile__close:hover,
.nav-mobile__close:active {
  background: var(--bg-soft);
  color: var(--accent);
}

.nav-mobile__links {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.5rem 1.25rem 2rem;
}

.nav-mobile__links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.85rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero */
.hero {
  display: grid;
  background: var(--surface);
  margin-bottom: 0;
}

.hero__visual {
  order: -1;
  position: relative;
  height: min(36vh, 320px);
  overflow: hidden;
  background: var(--bg-soft);
  line-height: 0;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 19, 17, 0.12), transparent 40%);
  pointer-events: none;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}

.hero__visual.is-in img {
  transform: scale(1);
}

.hero__panel {
  display: flex;
  align-items: center;
}

.hero__panel-inner {
  width: min(100% - 1.5rem, 560px);
  margin: 0 auto;
  padding: 1.75rem 0 2.25rem;
}

.hero__brand {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 6.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.hero__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 30rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.hero__actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10.5rem);
  min-height: 52px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.hero__facts li {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  padding-inline: 0.85rem;
}

.hero__facts li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mute);
  transform: translate(50%, -50%);
}

/* Benefits */
.strip {
  background: var(--ink);
  color: #f7f5f1;
  padding: 0.5rem 0;
  margin-top: 0;
  border-top: 0;
}

.strip__grid {
  display: grid;
}

.strip__item {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
  text-align: center;
}

.strip__item:last-child {
  border-bottom: 0;
}

.strip__item strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}

.strip__item p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(247, 245, 241, 0.72);
  max-width: 16.5rem;
  margin-inline: auto;
}

/* Catalog */
.catalog__top {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.catalog .section-head {
  margin-bottom: 0;
}

.tabs {
  position: relative;
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  margin: 0 -0.25rem;
  padding-inline: 0.25rem;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__ink {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
  transition:
    left 0.35s var(--ease),
    width 0.35s var(--ease);
  z-index: 1;
}

.tabs__btn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s, background 0.25s;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tabs__btn:hover {
  color: var(--ink);
}

.tabs__btn:active {
  color: var(--accent);
}

.tabs__btn.is-on {
  color: var(--accent);
}

.tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mute);
  background: var(--bg-soft);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s, background 0.25s;
}

.tabs__btn.is-on .tabs__count {
  color: var(--accent);
  background: var(--accent-soft);
}

.products {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.product:hover {
  border-color: #cdc7bb;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product:active {
  transform: translateY(-1px);
}

.product.is-hidden {
  display: none;
}

.product__photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
}

.product__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.35s var(--ease);
}

.product:hover .product__photo img {
  transform: scale(1.05);
}

.product__stock {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: rgba(34, 120, 72, 0.92);
  box-shadow: 0 4px 12px rgba(20, 19, 17, 0.18);
  pointer-events: none;
}

.product__stock.is-out {
  background: rgba(60, 56, 50, 0.88);
}

.product.is-out .product__photo img {
  filter: grayscale(0.55) brightness(0.92);
}

.product.is-out .product__buy .add-cart-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
}

.product__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.35rem;
}

.product__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.4rem;
}

.product__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.product__ua {
  display: block;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0;
  margin-top: 0.15rem;
}

.product__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
  margin-bottom: 1.15rem;
}

.product__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.product__price {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product__price span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mute);
  margin-right: 0.2rem;
}

.catalog__hint {
  margin-top: 2.25rem;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.975rem;
}

.catalog__hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.catalog__hint a:hover {
  color: var(--accent-hover);
}

/* Steps */
.steps {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.steps__list {
  display: grid;
  gap: 0;
}

.steps__list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}

.steps__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps__num {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.steps__list h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}

.steps__list p {
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Reviews */
.reviews__grid {
  display: grid;
  gap: 1.15rem;
}

.reviews__more {
  margin-top: 1.75rem;
  text-align: center;
}

.reviews__more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews__more a:hover {
  color: var(--accent-hover);
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quote p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.35rem;
  flex: 1;
}

.quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.quote strong {
  font-size: 0.9375rem;
  font-weight: 700;
}

.quote span {
  font-size: 0.8125rem;
  color: var(--mute);
}

/* FAQ */
.faq {
  background: var(--bg-soft);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.faq__item.is-open,
.faq__item[open] {
  border-color: #d0c9bd;
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  font-size: 1.025rem;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  transition: color 0.25s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease);
}

.faq__item.is-open summary::after,
.faq__item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.38s var(--ease);
}

.faq__panel-inner {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.38s var(--ease);
}

.faq__item.is-open .faq__panel-inner {
  opacity: 1;
  transform: translateY(0);
}

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-2);
  font-size: 0.975rem;
  line-height: 1.6;
  max-width: 38rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq__panel,
  .faq__panel-inner,
  .faq__item summary::after {
    transition: none;
  }
}

/* Order */
.order {
  background: var(--surface);
}

.order__grid {
  display: grid;
  gap: 2.5rem;
}

.order__meta {
  margin: 1.75rem 0 1.5rem;
  display: grid;
  gap: 1.15rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.order__meta li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.order__meta span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.order__meta strong {
  font-size: 1.025rem;
  font-weight: 600;
}

.order__meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order__meta a:hover {
  color: var(--accent-hover);
}

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form--modal {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0.75rem;
  border-radius: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  resize: vertical;
  font-size: 1rem; /* prevents iOS zoom on focus */
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field textarea {
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a968c;
}

.field input:hover,
.field textarea:hover {
  border-color: #c9c3b7;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(20, 19, 17, 0.06);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form__ok {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  background: var(--ok-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--ok);
  color: var(--ok);
  font-size: 0.9375rem;
  line-height: 1.45;
  transform: translateY(6px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    max-height 0.45s var(--ease),
    margin-top 0.35s var(--ease),
    padding 0.35s var(--ease);
}

.form__ok.is-show {
  margin-top: 1rem;
  max-height: 8rem;
  opacity: 1;
  padding: 0.9rem 1rem;
  transform: translateY(0);
}

.form__ok[hidden] {
  display: block !important;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.form__ok[hidden].is-show {
  pointer-events: auto;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247, 245, 241, 0.68);
  padding: 1.75rem 0;
  font-size: 0.875rem;
}

.site-footer__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand--foot .brand__name {
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 640px) {
  .modal {
    place-items: center;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
}

.modal[hidden] {
  display: none;
}

.modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.58);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.modal__box {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem 1.15rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  animation: modalUp 0.4s var(--ease);
}

@media (min-width: 640px) {
  .modal__box {
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem 1.5rem;
    max-height: calc(100svh - 2rem);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mute);
  border-radius: 50%;
  transition: color 0.25s, background 0.25s, transform 0.3s;
}

.modal__x:hover {
  color: var(--ink);
  background: var(--bg);
  transform: rotate(90deg);
}

.modal__box h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
  line-height: 1.25;
}

.modal__note {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

html.is-locked,
body.is-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

body.is-locked .cart-drawer,
body.is-locked .cart-drawer__body,
body.is-locked .modal__box,
body.is-locked .nav-mobile__links {
  overscroll-behavior: contain;
}

/* Tablet */
@media (min-width: 640px) {
  .wrap {
    width: min(100% - 2.5rem, var(--wrap));
  }

  .wrap--s {
    width: min(100% - 2.5rem, 700px);
  }

  .hero__panel-inner {
    width: min(100% - 2.5rem, 560px);
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }

  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip__item {
    padding: 2rem 1.25rem;
    border-bottom: 0;
    border-right: 1px solid rgba(247, 245, 241, 0.12);
  }

  .strip__item:nth-child(2n) {
    border-right: 0;
  }

  .strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(247, 245, 241, 0.12);
  }

  .order__meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .site-footer__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .form {
    padding: 1.85rem;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .nav--desktop {
    display: flex;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .menu-btn,
  .nav-mobile {
    display: none !important;
  }

  .hero {
    grid-template-columns: minmax(380px, 0.92fr) 1.18fr;
    min-height: calc(100svh - var(--header));
    max-height: 860px;
  }

  .hero__visual {
    order: 0;
    height: auto;
    min-height: 100%;
  }

  .hero__visual::after {
    background: linear-gradient(to right, rgba(20, 19, 17, 0.08), transparent 30%);
  }

  .hero__panel-inner {
    width: auto;
    max-width: 500px;
    margin: 0;
    margin-left: max(0px, calc((100vw - var(--wrap)) / 2));
    padding: 3.5rem 2.75rem 3.5rem 1.5rem;
  }

  .catalog__top {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .tabs {
    margin: 0;
    padding-inline: 0;
  }

  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .product__info {
    padding: 1.4rem 1.4rem 1.5rem;
  }

  .strip {
    padding: 0.25rem 0;
  }

  .strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .strip__item,
  .strip__item:nth-child(2n),
  .strip__item:nth-child(-n + 2) {
    padding: 2.5rem 1.25rem;
    border-bottom: 0;
    border-right: 1px solid rgba(247, 245, 241, 0.12);
  }

  .strip__item:last-child {
    border-right: 0;
  }

  .steps__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .steps__list li {
    grid-template-columns: 1fr;
    border: 0 !important;
    padding: 0;
    gap: 0.85rem;
  }

  .steps__num {
    font-size: 2.25rem;
  }

  .order__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
    align-items: start;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1100px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }

  .product__name {
    font-size: 1.35rem;
  }

  .product__desc {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .product.reveal,
  .product.reveal.is-in {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hero__visual img {
    transform: none;
  }
}

/* ===== Cart / Checkout ===== */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s;
}

.cart-btn:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.cart-btn:active {
  background: var(--accent-soft);
  color: var(--accent);
}

.cart-btn.has-added {
  color: var(--accent);
  background: var(--accent-soft);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.cart-btn__badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.cart-btn__badge[hidden] {
  display: none !important;
}

.cart-btn__badge.has-added {
  animation: badgeReveal 0.65s var(--ease);
}

@keyframes badgeReveal {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.product.is-just-added {
  border-color: #d4a3ab;
  box-shadow: 0 0 0 1px rgba(180, 15, 42, 0.12), var(--shadow-md);
  transition:
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.add-cart-btn {
  gap: 0.4rem;
}

.add-cart-btn__icon {
  flex-shrink: 0;
}

.add-cart-btn__short {
  display: none;
}

.product__buy {
  --buy-h: 44px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--buy-h);
  align-items: stretch;
  justify-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
  min-height: var(--buy-h);
}

.product__buy > .add-cart-btn,
.product__buy > .product__qty-ctrl {
  grid-area: 1 / 1;
  width: 100%;
  height: var(--buy-h);
  min-height: var(--buy-h);
  box-sizing: border-box;
  transform-origin: center center;
  transition:
    opacity 0.32s ease,
    transform 0.4s cubic-bezier(0.33, 1, 0.32, 1),
    visibility 0.32s;
}

/* default / add mode */
.product__buy[data-mode="add"] .add-cart-btn,
.product__buy:not([data-mode]) .add-cart-btn {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.product__buy[data-mode="add"] .product__qty-ctrl,
.product__buy:not([data-mode]) .product__qty-ctrl {
  opacity: 0;
  transform: scale(0.82);
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

/* qty mode — add button shrinks away, qty grows in */
.product__buy[data-mode="qty"] .add-cart-btn {
  opacity: 0;
  transform: scale(0.78);
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.product__buy[data-mode="qty"] .product__qty-ctrl {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.product__buy.no-motion > .add-cart-btn,
.product__buy.no-motion > .product__qty-ctrl {
  transition: none !important;
}

.product__qty-ctrl {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: var(--buy-h, 44px);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.product__qty-btn {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.product__qty-btn:active {
  background: var(--accent-soft);
}

.product__qty-val {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.product.is-in-cart {
  border-color: #d4a3ab;
}

.product__bar .btn--sm {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
}

.order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 19, 17, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(100%, 420px);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
}

.cart-drawer.is-open {
  transform: none;
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.icon-x {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--mute);
  border-radius: 50%;
  transition: background 0.25s, color 0.25s;
}

.icon-x:hover {
  background: var(--bg);
  color: var(--ink);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-empty {
  color: var(--ink-2);
  padding: 2rem 0.5rem;
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.cart-line__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.cart-line__name {
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.cart-line__price {
  font-size: 0.85rem;
  color: var(--mute);
  margin-bottom: 0.5rem;
}

.cart-line__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty button {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  color: var(--ink);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.qty button:hover {
  background: var(--bg);
}

.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-line__remove {
  font-size: 0.8rem;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-line__remove:hover {
  color: var(--accent);
}

.cart-line__sum {
  grid-column: 2;
  justify-self: start;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  align-self: start;
  padding-top: 0.15rem;
}

@media (min-width: 400px) {
  .cart-line {
    grid-template-columns: 72px 1fr auto;
  }

  .cart-line__img {
    width: 72px;
    height: 72px;
  }

  .cart-line__sum {
    grid-column: auto;
    justify-self: end;
  }
}

.cart-drawer__foot {
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.cart-drawer__total strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  color: var(--ink);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.5s var(--ease);
  max-width: min(92vw, 360px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.cart-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-toast__mark {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .product.is-just-added,
  .cart-btn__badge.has-added,
  .product__buy > .add-cart-btn,
  .product__buy > .product__qty-ctrl {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 639px) {
  .add-cart-btn__full {
    display: none;
  }

  .add-cart-btn__short {
    display: inline;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero__actions .btn {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 52px;
  }
}

.modal__box--wide {
  width: min(100%, 640px);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
}

.form-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}

.pay-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.pay-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-2);
}

.pay-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.25rem;
  cursor: pointer;
}

.pay-option + .pay-option {
  border-top: 1px solid var(--line-soft);
}

.pay-option input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.pay-option strong {
  display: block;
  font-size: 0.95rem;
}

.pay-option small {
  display: block;
  color: var(--mute);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.np-block {
  margin-bottom: 0.25rem;
}

.np-block .field {
  position: relative;
}

.np-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 5;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
}

.np-list li button {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}

.np-list li button:hover {
  background: var(--bg);
}

.np-list li button small {
  color: var(--mute);
  margin-left: 0.35rem;
}

.np-list__empty {
  padding: 0.85rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--mute);
  line-height: 1.4;
}

.phone-field {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.phone-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(20, 19, 17, 0.06);
}

.phone-field.is-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.phone-field__prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  border-right: 1px solid var(--line);
  user-select: none;
  white-space: nowrap;
}

.phone-field input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  background: transparent;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.phone-field input:focus {
  outline: none;
}

.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(20, 19, 17, 0.06);
}

.field select.is-invalid,
.field input.is-invalid {
  border-color: var(--accent);
}

.checkout-sum {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.15rem;
}

.checkout-sum__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-sum__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.checkout-sum__total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

/* Checkout success */
#checkout-form-wrap {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

#checkout-form-wrap.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.checkout-success {
  text-align: center;
  padding: 0.5rem 0 0.15rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.checkout-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.checkout-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.15rem;
  color: var(--ok, #1f5a36);
}

.checkout-success__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.checkout-success.is-animate .checkout-success__circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: successCircle 0.55s var(--ease) forwards;
}

.checkout-success.is-animate .checkout-success__check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successCheck 0.4s var(--ease) 0.35s forwards;
}

.checkout-success__title {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.checkout-success.is-animate .checkout-success__title {
  animation: successFade 0.45s var(--ease) 0.15s both;
}

.checkout-success__thanks {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.checkout-success.is-animate .checkout-success__thanks {
  animation: successFade 0.45s var(--ease) 0.25s both;
}

.checkout-success__note {
  font-size: 0.975rem;
  color: var(--ink-2);
  margin-bottom: 1.35rem;
}

.checkout-success.is-animate .checkout-success__note {
  animation: successFade 0.45s var(--ease) 0.35s both;
}

.checkout-success__number {
  font-size: 0.875rem;
  color: var(--mute);
  line-height: 1.45;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.checkout-success.is-animate .checkout-success__number {
  animation: successFade 0.45s var(--ease) 0.45s both;
}

.checkout-success__number strong {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.checkout-success.is-animate .btn {
  animation: successFade 0.45s var(--ease) 0.55s both;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes successFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 900px) {
  .site-header__row {
    gap: 1.5rem;
  }

  .brand {
    margin-right: auto;
  }

  .site-header__actions {
    margin-left: 0;
  }

  .hero__actions .btn {
    flex: 0 0 auto;
    min-width: 0;
  }
}

/* ===== Mobile optimization pack ===== */
@media (max-width: 359px) {
  .wrap {
    width: min(100% - 1rem, var(--wrap));
  }

  .hero__panel-inner {
    width: min(100% - 1rem, 560px);
    padding: 1.35rem 0 1.85rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
  }

  .eyebrow--with-np {
    gap: 0.4rem 0.55rem;
  }

  .eyebrow__np {
    height: 17px;
    max-width: 96px;
  }

  .hero__title {
    font-size: clamp(1.7rem, 8vw, 2rem);
  }

  .hero__facts li {
    font-size: 0.78rem;
  }

  .product__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .product__buy,
  .product__buy .add-cart-btn,
  .product__qty-ctrl {
    width: 100%;
  }

  .product__bar .btn--sm {
    width: 100%;
  }
}

/* Compact 2-column catalog on phones */
@media (min-width: 360px) and (max-width: 639px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .product__info {
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .product__cat {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
  }

  .product__name {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .product__ua {
    font-size: 0.72rem;
  }

  .product__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }

  .product__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-top: 0.7rem;
  }

  .product__price {
    font-size: 1.05rem;
  }

  .product__buy,
  .product__buy .add-cart-btn,
  .product__qty-ctrl {
    width: 100%;
  }

  .product__bar .btn--sm {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.55rem 0.5rem;
  }

  .product:hover {
    transform: none;
  }

  .product:hover .product__photo img {
    transform: none;
  }
}

@media (max-width: 899px) {
  :root {
    --header: 56px;
  }

  /* reserve space so content isn't under the fixed bar */
  body {
    padding-top: calc(var(--header) + env(safe-area-inset-top, 0px));
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  /* same look while scrolling — no style flip */
  .site-header.is-scrolled {
    background: var(--surface);
    border-bottom-color: var(--line);
    box-shadow: none;
  }

  .site-header__row {
    gap: 0.5rem;
    width: min(100% - 1.25rem, var(--wrap));
  }

  .site-header__actions {
    margin-left: 0;
    gap: 0.15rem;
    flex-shrink: 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.4rem;
  }

  .brand__mark {
    font-size: 1.05rem;
    flex-shrink: 0;
  }

  .brand__name {
    font-size: 1.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cart-btn,
  .menu-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  /* keep bar at viewport top even when body is scroll-locked */
  body.is-locked .site-header {
    position: fixed;
    top: 0;
  }

  .eyebrow {
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
  }

  .eyebrow__np {
    height: 20px;
    max-width: 102px;
  }

  .hero__text {
    font-size: 0.975rem;
    margin-bottom: 1.25rem;
  }

  .hero__facts {
    justify-content: center;
    gap: 0.45rem 0;
    padding-top: 1.1rem;
  }

  .hero__facts li {
    padding-inline: 0.7rem;
  }

  .tabs {
    margin-inline: -0.15rem;
    scroll-padding-inline: 0.5rem;
    overscroll-behavior-x: contain;
  }

  .lead {
    font-size: 0.975rem;
  }

  .section {
    padding: clamp(3rem, 8vw, 4.5rem) 0;
  }

  .cart-line__row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cart-line__remove {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
  }

  .pay-option {
    min-height: 48px;
    padding: 0.75rem 0.25rem;
  }

  .modal__x,
  .icon-x {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 639px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .modal__box--wide {
    width: 100%;
    max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    border-radius: 14px 14px 0 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .order__actions {
    flex-direction: column;
  }

  .order__actions .btn {
    width: 100%;
  }

  .steps__list li {
    gap: 0.75rem;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .hero__visual {
    height: min(42vh, 380px);
  }

  .hero__panel-inner {
    padding: 2.25rem 0 2.75rem;
  }
}

/* Landscape phones: keep CTA reachable */
@media (max-height: 500px) and (orientation: landscape) {
  .hero__visual {
    height: min(55vh, 220px);
  }

  .hero__panel-inner {
    padding: 1.25rem 0 1.5rem;
  }

  .hero__text {
    display: none;
  }

  .hero__facts {
    display: none;
  }

  .nav.is-open {
    padding-top: 0.25rem;
  }
}

/* Touch: visible press without hover dependency */
@media (hover: none) {
  .product:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .product:hover .product__photo img {
    transform: none;
  }

  .btn--solid:hover,
  .btn--ghost:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(180, 15, 42, 0.22);
  }

  .btn--ghost:hover {
    background: var(--surface);
    color: var(--ink);
  }

  .btn:active:not(:disabled) {
    filter: brightness(0.94);
    transform: none;
  }

  .tabs__btn:active {
    background: var(--accent-soft);
  }

  .cart-btn:active,
  .menu-btn:active,
  .product__qty-btn:active {
    background: var(--accent-soft);
  }
}

/* ========== Акції / розпродаж / хіти (дані — js/stock-ui.js + js/promo.js) ========== */
.tabs__btn--promo {
  color: var(--accent);
}

.tabs__btn--promo .tabs__count {
  color: #fff;
  background: var(--accent);
}

.tabs__btn--promo.is-on .tabs__count {
  color: #fff;
  background: var(--accent);
}

.product.is-deal {
  border-color: rgba(180, 15, 42, 0.28);
}

.product__tags {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.product__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* з бейджами акції «В наявності» переїжджає вниз фото, щоб не накладались */
.product.has-tags .product__stock {
  top: auto;
  bottom: 0.7rem;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 19, 17, 0.18);
  animation: promoBadgeIn 250ms var(--ease) both;
}

.promo-badge__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-badge--sale {
  background: var(--accent);
}

.promo-badge--clearance {
  background: linear-gradient(135deg, #8f0b21, #5c0614);
  animation: promoBadgeIn 250ms var(--ease) both, clearancePulse 3.2s var(--ease) 0.6s infinite;
}

.promo-badge--hit {
  background: #f2c14e;
  color: var(--ink);
}

.promo-badge--new {
  background: var(--ink);
}

.product__discount {
  flex: 0 0 auto;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(20, 19, 17, 0.18);
  animation: promoBadgeIn 250ms var(--ease) both;
}

.ktv-flame {
  flex-shrink: 0;
  display: block;
  width: 14px;
  height: 14px;
  overflow: visible;
  transform-origin: 50% 92%;
  animation: ktvFlameSway 2s ease-in-out infinite;
}

.ktv-flame__tongue--l {
  transform-origin: 20px 24px;
  animation: ktvTongueL 1.25s ease-in-out infinite;
}

.ktv-flame__tongue--r {
  transform-origin: 28px 22px;
  animation: ktvTongueR 1.45s ease-in-out infinite;
}

.ktv-flame__body {
  transform-origin: 24px 44px;
  animation: ktvFlameBody 1.7s ease-in-out infinite;
}

.ktv-flame__core {
  transform-origin: 24px 38px;
  animation: ktvFlameCore 1.05s ease-in-out infinite;
}

@keyframes ktvFlameSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) translateY(-0.5px); }
}

@keyframes ktvTongueL {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-8deg) scale(1.08, 0.95); }
}

@keyframes ktvTongueR {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(9deg) scale(1.06, 0.96); }
}

@keyframes ktvFlameBody {
  0%, 100% { transform: scale(1); }
  50% { transform: scaleY(1.05) scaleX(0.96); }
}

@keyframes ktvFlameCore {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.14, 0.92); opacity: 1; }
}

@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(143, 11, 33, 0.3); }
  50% { box-shadow: 0 6px 18px rgba(143, 11, 33, 0.55); }
}

.product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.45rem;
}

.product__price-old {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mute);
  text-decoration: line-through;
}

.product__price strong {
  font-weight: 700;
}

.product__price strong.is-promo-price {
  color: var(--accent);
}

.product__promo-note {
  margin: -0.6rem 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.product__stock.is-low {
  background: rgba(154, 103, 0, 0.92);
}

.cart-line__old {
  margin-right: 0.15rem;
  opacity: 0.8;
}

.section.promo-rail {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.promo-rail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.promo-rail__head .section-head {
  margin-bottom: 0;
}

.promo-rail__head .eyebrow {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

@media (max-width: 719px) {
  .promo-rail__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 78%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  .promo-rail__track .product {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-badge,
  .promo-badge--clearance,
  .product__discount,
  .ktv-flame,
  .ktv-flame__tongue--l,
  .ktv-flame__tongue--r,
  .ktv-flame__body,
  .ktv-flame__core {
    animation: none !important;
  }
}

/* display у .tabs__btn / .section перебиває атрибут hidden — вкладка «Акції» і блок акцій без знижок мають зникати */
.tabs__btn[hidden],
.promo-rail[hidden] {
  display: none;
}

/* ───────── Повний опис товару ───────── */
.product .product__photo,
.product .product__name {
  cursor: pointer;
}

.product .product__name {
  transition: color 0.2s;
}

.product .product__name:hover {
  color: var(--accent);
}

.product .product__photo::after {
  content: "Детальніше";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 6px));
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(20, 19, 17, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (hover: hover) {
  .product:hover .product__photo::after,
  .product .product__photo:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.pd {
  z-index: 140;
}

.pd__cart[hidden],
.pd__stock[hidden],
.pd__specs[hidden] {
  display: none;
}

.pd .pd__box {
  width: min(100%, 1040px);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem));
  outline: none;
  overscroll-behavior: contain;
  animation: pdUp 0.42s var(--ease);
}

.pd.is-leaving .pd__box {
  animation: pdDown 0.2s ease forwards;
}

.pd.is-leaving .modal__dim {
  animation: fadeOut 0.2s ease forwards;
}

@keyframes pdUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes pdDown {
  to { opacity: 0; transform: translateY(30px); }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

.pd__x {
  position: absolute;
  z-index: 3;
  top: 0.6rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.pd__media {
  position: relative;
  flex: 0 0 auto;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pd__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pdImg 0.5s var(--ease);
}

@keyframes pdImg {
  from { opacity: 0.4; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}

.pd__nav {
  position: absolute;
  inset: 50% 0.5rem auto;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.pd__nav .pd__arrow {
  pointer-events: auto;
}

.pd__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.2s;
}

.pd__arrow:hover {
  background: #fff;
  transform: scale(1.06);
}

.pd__body {
  padding: 1.25rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.pd__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.35rem;
}

.pd .pd__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  padding-right: 0;
}

.pd__ua {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mute);
  margin-top: 0.2rem;
}

.pd__deal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 1rem 0 0.9rem;
}

.pd .pd__price {
  font-size: 1.6rem;
}

.pd__stock {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--ok);
  background: var(--ok-bg);
}

.pd__stock.is-low {
  color: #8a5300;
  background: #fff3dc;
}

.pd__stock.is-out {
  color: var(--mute);
  background: var(--bg-soft);
}

.pd__buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.pd__buy .btn {
  flex: 1 1 12rem;
  min-height: 50px;
}

.pd__text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.pd__text p + p {
  margin-top: 0.75rem;
}

.pd__specs {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) 1fr;
  gap: 0.55rem 1rem;
  margin: 1.4rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.pd__specs dt {
  color: var(--mute);
  font-weight: 600;
}

.pd__specs dd {
  color: var(--ink);
}

.pd__note {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff6e6;
  border: 1px solid #f0dcb4;
  color: #5c4310;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pd__care {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.9rem;
}

.pd__care summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.pd__care summary::-webkit-details-marker {
  display: none;
}

.pd__care summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--mute);
  transition: transform 0.25s var(--ease);
}

.pd__care[open] summary::after {
  transform: rotate(45deg);
}

.pd__care ul {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.55rem;
}

.pd__care li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.pd__care li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 639px) {
  .pd .pd__box {
    overflow-y: auto;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .pd .pd__box {
    width: min(100%, 620px);
    overflow-y: auto;
  }

  .pd__body {
    padding: 1.5rem 1.75rem 1.75rem;
  }
}

@media (min-width: 900px) {
  .pd .pd__box {
    width: min(100%, 1120px);
    flex-direction: row;
    height: min(86vh, 640px);
    overflow: hidden;
  }

  /* фото — квадрат на всю висоту вікна, щоб картка з назвою й вставкою не обрізалась */
  .pd__media {
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .pd__body {
    flex: 1;
    overflow-y: auto;
    padding: 2.2rem 2.2rem 2rem;
    overscroll-behavior: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd .pd__box,
  .pd.is-leaving .pd__box,
  .pd.is-leaving .modal__dim,
  .pd__img {
    animation: none;
  }

  .product .product__photo::after {
    transition: none;
  }
}

/* ───────── Пошук і «Показати ще» в каталозі ───────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.catalog__search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 460px);
  color: var(--mute);
}

.catalog__search svg {
  position: absolute;
  left: 0.95rem;
  pointer-events: none;
}

.catalog__search input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog__search input::placeholder {
  color: var(--mute);
}

.catalog__search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.catalog__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.catalog__more-btn {
  min-width: min(100%, 280px);
  min-height: 50px;
}

.catalog__more-btn[hidden],
.catalog__empty[hidden] {
  display: none;
}

.catalog__empty {
  text-align: center;
  color: var(--ink-2);
}

.catalog__empty a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ───────── Тач-екрани: швидкий відгук на дотик, легші ефекти ───────── */
.product .product__photo,
.product .product__name,
.pd__arrow,
.pd__x,
.tabs__btn,
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pd__media {
  touch-action: pan-y pinch-zoom;
}

@media (hover: none) {
  .product:hover {
    transform: none;
    box-shadow: none;
  }

  .product:hover .product__photo img {
    transform: none;
  }

  .product .product__photo:active img {
    filter: brightness(0.94);
  }
}

@media (max-width: 899px) {
  /* розмиття під вікнами на телефоні гальмує прокрутку — лише затемнення */
  .modal__dim {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ───────── Вікно оформлення на телефоні: без стрибків, зуму й звуження ───────── */
.modal {
  /* ширина вікна не залежить від найдовшої назви відділення чи міста */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.modal__box {
  max-width: 100%;
  min-width: 0;
  scroll-padding: 1rem 0 6rem;
}

.field select {
  /* < 16px — iOS збільшує сторінку при фокусі, і вікно «з'їжджає» */
  font-size: 1rem;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}

.field select,
.field input,
.field textarea {
  max-width: 100%;
}

.np-block .field,
.np-block {
  min-width: 0;
}

@media (max-width: 639px) {
  /* стабільна висота (svh не змінюється від панелей браузера й клавіатури) — вікно не смикається,
     коли підвантажуються відділення чи з'являються підказки */
  #checkout-modal .modal__box--wide {
    height: min(92svh, calc(100svh - env(safe-area-inset-top, 0px) - 0.5rem));
    max-height: none;
    overscroll-behavior: contain;
  }

  #checkout-modal .modal__box--wide:has(#checkout-success:not([hidden])) {
    height: auto;
    max-height: min(92svh, calc(100svh - env(safe-area-inset-top, 0px) - 0.5rem));
  }

  .np-list {
    max-height: min(220px, 34svh);
  }
}
