/* Medbochki — визуальная система: мёд, дерево, ремесло */
:root {
  --color-honey-950: #2c1810;
  --color-honey-900: #4a3018;
  --color-honey-800: #6b4423;
  --color-honey-600: #a67c2e;
  --color-honey-500: #c9952c;
  --color-honey-400: #e0b04a;
  --color-honey-100: #fdf6e8;
  --color-honey-50: #fffbf3;
  --color-cream: #fff9f0;
  --color-wood: #3d2914;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-soft: 0 4px 24px rgba(74, 48, 24, 0.08);
  --shadow-lift: 0 12px 40px rgba(74, 48, 24, 0.12);
  --radius-card: 1rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-honey-950);
  background-color: var(--color-honey-100);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 192, 120, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(201, 149, 44, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(166, 124, 46, 0.1), transparent 45%);
}

/* Декоративные соты */
.honeycomb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill='%234a3018' fill-rule='evenodd'%3E%3Cpath d='M14 0v17L0 8.5V25l14 8.5 14-8.5V8.5L14 0zm0 49V32l14-8.5v16.5L14 49zM0 41.5V25l14 8.5v16.5L0 41.5z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 98px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-honey-800);
  color: var(--color-cream);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--color-honey-400);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: rgba(255, 251, 243, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 48, 24, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.site-logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-honey-900);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo span {
  color: var(--color-honey-600);
}

.site-nav--desktop {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: flex-end;
  font-size: 0.8125rem;
  font-weight: 500;
}
@media (min-width: 641px) {
  .site-nav--desktop {
    display: flex;
  }
}
.site-nav a {
  color: var(--color-honey-800);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 0.375rem;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover {
  background: rgba(201, 149, 44, 0.15);
  color: var(--color-honey-950);
}
.site-nav a:focus-visible {
  outline: 2px solid var(--color-honey-500);
  outline-offset: 2px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgba(201, 149, 44, 0.15);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-honey-500);
  outline-offset: 2px;
}
.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-honey-900);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 641px) {
  .nav-toggle {
    display: none;
  }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(44, 24, 16, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(20rem, 88vw);
  max-width: 100%;
  padding: calc(env(safe-area-inset-top, 0px) + var(--header-h)) 0 env(safe-area-inset-bottom, 0px);
  background: var(--color-cream);
  border-left: 1px solid rgba(74, 48, 24, 0.12);
  box-shadow: -8px 0 32px rgba(44, 24, 16, 0.15);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  display: flex;
  flex-direction: column;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(74, 48, 24, 0.1);
  flex-shrink: 0;
}
.mobile-nav__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-honey-900);
}
.mobile-nav__close {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(74, 48, 24, 0.08);
  color: var(--color-honey-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.mobile-nav__close:focus-visible {
  outline: 2px solid var(--color-honey-500);
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.mobile-nav__links a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-honey-900);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 48, 24, 0.06);
  touch-action: manipulation;
}
.mobile-nav__links a:active {
  background: rgba(201, 149, 44, 0.12);
}
.mobile-nav__links a:focus-visible {
  outline: 2px solid var(--color-honey-500);
  outline-offset: -2px;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-honey-800);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(74, 48, 24, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-honey-900);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--color-honey-800);
  margin: 0 0 1.75rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(165deg, var(--color-honey-500), var(--color-honey-800));
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(107, 68, 35, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107, 68, 35, 0.4);
}
.hero-cta:focus-visible {
  outline: 3px solid var(--color-honey-400);
  outline-offset: 3px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 48, 24, 0.1);
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-honey-600);
  line-height: 1.2;
}
.hero-stat span {
  font-size: 0.8rem;
  color: var(--color-honey-800);
  opacity: 0.9;
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(74, 48, 24, 0.08);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.toolbar-panel {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.icon-btn {
  width: 3.15rem;
  height: 3.15rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(74, 48, 24, 0.22);
  background: #fff;
  box-shadow: 0 1px 3px rgba(44, 24, 16, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.icon-btn:hover {
  background: var(--color-honey-50);
  border-color: var(--color-honey-600);
  box-shadow: 0 2px 8px rgba(107, 68, 35, 0.15);
}
.icon-btn svg,
.icon-btn .icon-btn__glyph {
  color: var(--color-honey-950);
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  stroke: currentColor;
}
.icon-btn:focus-visible {
  outline: 2px solid var(--color-honey-500);
  outline-offset: 2px;
}
.icon-btn.is-active {
  border-color: var(--color-honey-600);
  background: linear-gradient(180deg, rgba(232, 192, 120, 0.35), rgba(201, 149, 44, 0.2));
  box-shadow: 0 0 0 2px rgba(201, 149, 44, 0.35);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--color-honey-900);
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--color-honey-500), var(--color-honey-400), transparent) 1;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(74, 48, 24, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .hero-cta,
  .toast {
    transition: none;
  }
  .hero-cta:hover {
    transform: none;
  }
  .product-card:not(.is-disabled):hover {
    transform: none;
  }
}
.product-card:not(.is-disabled):hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
  border-color: rgba(201, 149, 44, 0.25);
}
.product-card.is-disabled {
  opacity: 0.62;
  pointer-events: none;
}

.product-card__media {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-radius: 0.65rem;
  background: linear-gradient(160deg, var(--color-honey-50), #fff);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-honey-900);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-honey-800);
  margin: 0 0 0.25rem;
}

.product-card__stock {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}
.product-card__stock--ok {
  color: #2d6a4f;
}
.product-card__stock--no {
  color: #9b2335;
}

.btn-cart {
  margin-top: auto;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  background: linear-gradient(165deg, var(--color-honey-500), var(--color-honey-800));
  color: #fff;
  transition: filter 0.2s, transform 0.15s;
}
.btn-cart:hover:not(:disabled) {
  filter: brightness(1.05);
}
.btn-cart:focus-visible {
  outline: 2px solid var(--color-honey-500);
  outline-offset: 2px;
}
.btn-cart:disabled {
  cursor: not-allowed;
  background: #d4c4b0;
  color: #6b5d4f;
}

.cart-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.cart-panel h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--color-honey-900);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.min-order-wrap {
  margin-bottom: 1.25rem;
}
.min-order-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-honey-800);
  margin-bottom: 0.35rem;
}
.min-order-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(74, 48, 24, 0.1);
  overflow: hidden;
}
.min-order-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-honey-500), #2d6a4f);
  width: 0%;
  transition: width 0.4s ease;
}

.form-input {
  width: 100%;
  border: 1px solid rgba(74, 48, 24, 0.2);
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-honey-500);
  box-shadow: 0 0 0 3px rgba(201, 149, 44, 0.2);
}

.btn-submit {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.65rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(165deg, var(--color-honey-500), var(--color-honey-800));
  box-shadow: 0 4px 16px rgba(107, 68, 35, 0.3);
  transition: filter 0.2s, transform 0.15s;
}
.btn-submit:hover {
  filter: brightness(1.05);
}
.btn-submit:focus-visible {
  outline: 3px solid var(--color-honey-400);
  outline-offset: 2px;
}

.video-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.video-panel h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--color-honey-900);
  margin: 0 0 1rem;
}

.video-shell {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(74, 48, 24, 0.1);
}
.video-shell iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(74, 48, 24, 0.06), rgba(44, 24, 16, 0.12));
  border-top: 1px solid rgba(74, 48, 24, 0.1);
  color: var(--color-honey-900);
}
.footer-grid {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}
.footer-grid h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--color-honey-800);
}
.footer-grid p,
.footer-grid a {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-grid a {
  color: var(--color-honey-800);
  font-weight: 500;
}
.footer-grid a:hover {
  color: var(--color-honey-600);
}
.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(74, 48, 24, 0.1);
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Toast */
#toastHost {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
  max-width: min(90vw, 24rem);
}
.toast {
  pointer-events: auto;
  padding: 0.75rem 1.15rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  animation: toast-in 0.35s ease;
}
.toast--info {
  background: var(--color-honey-900);
  color: var(--color-cream);
}
.toast--error {
  background: #7f1d1d;
  color: #fff;
}
.toast--success {
  background: #14532d;
  color: #fff;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Таблица */
.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}
.table-wrap thead th {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.table-wrap tbody tr:hover {
  background: rgba(253, 246, 232, 0.8);
}

/* Фильтры select */
.filter-select {
  border: 1px solid rgba(74, 48, 24, 0.2) !important;
  border-radius: 0.65rem !important;
  padding: 0.6rem 0.85rem !important;
  font-family: var(--font-body) !important;
  background: #fff !important;
  min-width: 10rem;
}
.filter-select:focus {
  outline: none !important;
  border-color: var(--color-honey-500) !important;
  box-shadow: 0 0 0 3px rgba(201, 149, 44, 0.2) !important;
}

.empty-cart-msg {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-honey-800);
  font-size: 0.95rem;
}
.empty-cart-msg svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  opacity: 0.35;
}

.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(74, 48, 24, 0.08);
  text-align: left;
}
.cart-line:last-of-type {
  border-bottom: none;
}
.cart-line__name {
  font-weight: 600;
  color: var(--color-honey-900);
  flex: 1 1 100%;
  min-width: 0;
  text-align: left;
}
@media (min-width: 520px) {
  .cart-line {
    align-items: center;
    justify-content: space-between;
  }
  .cart-line__name {
    flex: 1 1 auto;
    min-width: 8rem;
  }
}
.cart-line__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  justify-content: flex-start;
}
@media (min-width: 520px) {
  .cart-line__controls {
    justify-content: flex-end;
    margin-left: auto;
  }
}
.cart-line__sum {
  min-width: 4.25rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 520px) {
  .cart-line__sum {
    text-align: right;
    width: 5.5rem;
    min-width: 5.5rem;
  }
}
.cart-qty-input {
  width: 4rem;
  text-align: center;
  border: 1px solid rgba(74, 48, 24, 0.2);
  border-radius: 0.375rem;
  padding: 0.35rem;
  font-family: inherit;
}
.btn-remove {
  background: transparent;
  border: none;
  color: #9b2335;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
}
.btn-remove:hover {
  background: rgba(155, 35, 53, 0.1);
}
.btn-remove:focus-visible {
  outline: 2px solid #9b2335;
}

/* Touch: меньше задержки тапа */
button,
.icon-btn,
.nav-toggle,
.mobile-nav__close,
.cart-dock__btn,
a.cart-dock__btn {
  touch-action: manipulation;
}

/* Полоса доверия */
.trust-strip {
  padding: 1.5rem 0 2rem;
  margin-top: -0.5rem;
}
.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(74, 48, 24, 0.08);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-honey-800);
}
.trust-card strong {
  font-size: 0.95rem;
  color: var(--color-honey-900);
}
.trust-card__icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

/* FAQ */
.faq-section {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  border: 1px solid rgba(74, 48, 24, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  min-height: 3.25rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-honey-900);
  cursor: pointer;
  touch-action: manipulation;
}
.faq-trigger:hover {
  background: rgba(201, 149, 44, 0.08);
}
.faq-trigger:focus-visible {
  outline: 2px solid var(--color-honey-500);
  outline-offset: -2px;
}
.faq-trigger__icon {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--color-honey-600);
  border-bottom: 2px solid var(--color-honey-600);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -0.25rem;
}
.faq-trigger[aria-expanded="true"] .faq-trigger__icon {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}
.faq-answer {
  padding: 0 1.1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-honey-800);
}
.faq-answer p {
  margin: 0;
}

/* Таблица: подсказка + скролл
   Важно: не задавать display на .table-view-wrap без :not(.hidden) —
   иначе перебивается Tailwind .hidden и таблица всегда на экране. */
.table-view-wrap:not(.hidden) {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
}
.table-scroll-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--color-honey-800);
  text-align: center;
  margin: 0 0 0.65rem;
  padding: 0 0.5rem;
  line-height: 1.4;
}
/* Подсказка про скролл — только если таблица шире экрана (десктоп) */
@media (min-width: 768px) {
  #tableView:not(.hidden) .table-scroll-hint {
    display: block;
  }
}
.table-wrap--scroll {
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
.table-catalog {
  min-width: 32rem;
}

/* Ноутбук и шире: таблица по центру, если уже контейнера */
@media (min-width: 768px) {
  .table-view-wrap:not(.hidden) {
    align-items: stretch;
  }
  .table-view-wrap:not(.hidden) .table-scroll-hint {
    width: 100%;
    text-align: center;
  }
  .table-view-wrap:not(.hidden) .table-wrap--scroll {
    width: 100%;
    overflow-x: auto;
  }
  .table-catalog {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Таблица на телефоне — без горизонтального скролла, колонки ужаты */
@media (max-width: 767px) {
  .table-view-wrap .table-wrap--scroll {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .table-catalog {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.7rem;
  }
  .table-catalog thead th,
  .table-catalog tbody td {
    padding: 0.35rem 0.2rem !important;
    vertical-align: middle;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .table-catalog thead th {
    font-size: 0.62rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .table-catalog thead th:nth-child(1) {
    width: 26%;
  }
  .table-catalog thead th:nth-child(2) {
    width: 14%;
  }
  .table-catalog thead th:nth-child(3) {
    width: 18%;
  }
  .table-catalog thead th:nth-child(4) {
    width: 14%;
  }
  .table-catalog thead th:nth-child(5) {
    width: 28%;
  }
  .table-catalog tbody td:nth-child(5) button {
    padding: 0.28rem 0.2rem !important;
    font-size: 0.62rem !important;
    line-height: 1.15;
    white-space: normal;
    max-width: 100%;
  }
}

/* Нижняя панель корзины (телефоны) */
.cart-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0.65rem max(1rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(255, 251, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(74, 48, 24, 0.12);
  box-shadow: 0 -4px 24px rgba(44, 24, 16, 0.1);
}
.cart-dock.is-visible {
  display: block;
}
@media (min-width: 768px) {
  .cart-dock,
  .cart-dock.is-visible {
    display: none !important;
  }
}
.cart-dock__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}
.cart-dock__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.cart-dock__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-honey-800);
}
.cart-dock__total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-honey-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-dock__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(165deg, var(--color-honey-500), var(--color-honey-800));
  border-radius: 0.65rem;
  box-shadow: 0 3px 14px rgba(107, 68, 35, 0.35);
}
.cart-dock__btn:focus-visible {
  outline: 3px solid var(--color-honey-400);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body.has-cart-dock .site-main {
    padding-bottom: 5.5rem;
  }
}
body.has-cart-dock #toastHost {
  bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
}

/* Тип покупателя — колонка на узких экранах */
.customer-type__options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .customer-type__options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
}
.customer-type__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  margin: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
}
.customer-type__radio {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* Мобильные отступы каталога и карточек */
@media (max-width: 640px) {
  #filtersContainer:not(.hidden) {
    width: 100%;
  }
  #filtersContainer:not(.hidden) .filter-select {
    width: 100%;
    min-width: 0 !important;
  }
  .toolbar-panel {
    padding: 0.85rem 1rem;
  }
  .toolbar-inner {
    gap: 0.5rem;
  }
  .icon-btn {
    width: 3.1rem;
    height: 3.1rem;
  }
  .icon-btn svg,
  .icon-btn .icon-btn__glyph {
    width: 1.55rem;
    height: 1.55rem;
  }
  .product-card {
    padding: 0.65rem;
  }
  .product-card__title {
    font-size: 0.875rem;
  }
  .product-card__price {
    font-size: 0.95rem;
  }
  .btn-cart {
    min-height: 2.75rem;
    font-size: 0.875rem;
    padding: 0.6rem 0.5rem;
  }
  .section-heading {
    font-size: 1.35rem;
  }
  .hero {
    padding-top: 1.75rem;
  }
  .hero-cta {
    min-height: 2.75rem;
    width: 100%;
    max-width: 20rem;
    justify-content: center;
  }
  .btn-submit {
    width: 100%;
    min-height: 3rem;
  }
  .cart-line__controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Очень узкий экран — одна колонка товаров */
@media (max-width: 380px) {
  #whiteProducts.grid,
  #brownProducts.grid,
  #spoonProducts.grid {
    grid-template-columns: 1fr !important;
  }
}

/* Футер: нижний отступ под safe area, если видна dock */
.site-footer {
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}
body.has-cart-dock .site-footer {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  body.has-cart-dock .site-footer {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
}

/* Баннер загрузки каталога */
.catalog-banner {
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid rgba(74, 48, 24, 0.1);
}
.catalog-banner.is-loading {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-honey-800);
}
.catalog-banner.is-error {
  background: #fff8f6;
  border-color: rgba(155, 35, 53, 0.28);
  color: var(--color-honey-900);
}
.catalog-banner.is-hidden {
  display: none !important;
}
.catalog-banner__msg {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.catalog-banner__msg:last-child {
  margin-bottom: 0;
}
.catalog-banner__btn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(165deg, var(--color-honey-500), var(--color-honey-800));
  color: #fff;
  touch-action: manipulation;
}
.catalog-banner__btn:focus-visible {
  outline: 2px solid var(--color-honey-500);
  outline-offset: 2px;
}

/* Заголовок корзины + очистить */
.cart-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.cart-heading-row h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.link-button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9b2335;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem 0;
  touch-action: manipulation;
  align-self: center;
}
.link-button:focus-visible {
  outline: 2px solid #9b2335;
  outline-offset: 2px;
}

.footer-contact {
  line-height: 1.75;
}

/* Наверх */
.back-to-top {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 44;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-honey-900);
  background: rgba(255, 251, 243, 0.95);
  border: 1px solid rgba(74, 48, 24, 0.15);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease;
  touch-action: manipulation;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--color-honey-400);
  outline-offset: 2px;
}
body.has-cart-dock .back-to-top {
  bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  body.has-cart-dock .back-to-top {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* Печать */
@media print {
  .skip-link,
  .site-header,
  .nav-backdrop,
  .mobile-nav,
  .nav-toggle,
  .toolbar-panel,
  #catalogBanner,
  .catalog-banner,
  .cart-dock,
  .back-to-top,
  #toastHost,
  .hero-cta,
  .link-button,
  #clearCartBtn,
  #catalogRetryBtn,
  .btn-remove,
  .btn-submit,
  .btn-cart,
  .icon-btn,
  #toggleFiltersBtn,
  #toggleTableView,
  .video-shell {
    display: none !important;
  }
  body.nav-open {
    overflow: visible !important;
  }
  .site-body {
    background: #fff !important;
    color: #000 !important;
  }
  .panel,
  .trust-card,
  .product-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  a {
    text-decoration: underline;
    color: #000 !important;
  }
}
