/* ============================================================
   BEEECO — МАГАЗИН ИЗДЕЛИЙ ИЗ ФАНЕРЫ · дизайн-система
   Направление: лёгкий премиум (референс — bork.ru).
   Светлый фон, воздух, тонкие линии, сдержанная бронза.
   Тип: Golos Text (единственная гарнитура, нейтральный гротеск).
   ============================================================ */

:root {
  --bg: #111010;
  --bg-soft: #191714;
  --surface: #1E1C19;
  --ink: #F5F3EF;
  --ink-soft: #E4E2DF;
  --text: #F5F3EF;
  --text-muted: rgba(244, 242, 238, 0.58);
  --text-muted-light: rgba(244, 242, 238, 0.50);
  --hairline: rgba(244, 242, 238, 0.10);
  --hairline-strong: rgba(244, 242, 238, 0.22);
  --hairline-light: rgba(244, 242, 238, 0.12);
  --bronze: #D4AF6A;
  --bronze-soft: rgba(212, 175, 106, 0.14);
  --accent: #D4AF6A;
  --accent-bright: #E4C78C;
  --radius: 2px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 11vw, 160px);
  --font: "Golos Text", "Segoe UI", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font); }
::selection { background: var(--bronze-soft); }

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

/* ---------- типографика ---------- */

.display {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1.display { font-size: clamp(36px, 6vw, 78px); font-weight: 500; }
h2.display { font-size: clamp(28px, 3.8vw, 52px); font-weight: 500; }
h3.display { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.65;
  max-width: 58ch;
  color: var(--text-muted);
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.btn-solid { background: var(--accent); color: #111010; }
.btn-solid:hover { background: var(--accent-bright); }

.btn-ghost-light { border-color: var(--hairline-light); color: var(--text-muted-light); background: transparent; }
.btn-ghost-light:hover { border-color: var(--text-muted-light); color: #fff; }

.btn-ghost-dark { border-color: var(--hairline-strong); color: var(--text); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* ---------- хедер ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 16, 0.72) 0%, rgba(17, 16, 16, 0.34) 55%, rgba(17, 16, 16, 0) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: rgba(17, 16, 16, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  color: var(--text);
}
.site-header.scrolled .header-inner { color: var(--text); }
.brand { text-decoration: none; line-height: 1.1; display: flex; align-items: center; gap: 14px; }
.brand-mark { flex: none; height: 42px; width: auto; display: block; }
.brand-name {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 3px;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.header-place { max-width: 240px; color: var(--text-muted-light); line-height: 1.45; }
.site-header.scrolled .header-place { color: var(--text-muted); }
.header-phone { text-decoration: none; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.header-phone:hover { color: var(--bronze); }

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--hairline-light);
  color: inherit;
  border-radius: var(--radius);
  padding: 11px 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.header-cart:hover { border-color: var(--text-muted-light); }
.site-header.scrolled .header-cart { border-color: var(--hairline-strong); }
.site-header.scrolled .header-cart:hover { border-color: var(--ink); }
.header-cart svg { flex: none; }
.cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bronze);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

@media (max-width: 900px) { .header-place { display: none; } }
@media (max-width: 640px) {
  .header-cart span.cart-text { display: none; }
  .header-cart { padding: 11px 13px; }
  .brand-mark { height: 34px; }
}

/* на светлом cover хедер прячем, появляется после свайпа */
body.has-cover .site-header { opacity: 0; pointer-events: none; transform: translateY(-14px); transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.35s ease, box-shadow 0.35s ease; }
body.has-cover.cover-passed .site-header { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- cover: scroll-fade hero (как faneraservice.ru) ---------- */

.cover { position: relative; height: 350vh; }
.cover-bg { position: sticky; top: 0; width: 100%; height: 100vh; overflow: hidden; }
.cover-bg video, .cover-bg .cover-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-bg .cover-poster { z-index: 1; }
.cover-bg video { z-index: 2; opacity: 0; transition: opacity 1.2s ease; }
.cover-bg video.playing { opacity: 1; }

.cover-overlay { position: sticky; top: 0; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 3; }

.cover-logo-fly { position: absolute; top: 18px; left: 24px; z-index: 5; pointer-events: none; display: flex; align-items: center; gap: 12px; will-change: transform, opacity; }
.cover-logo-fly.hide { opacity: 0; transition: opacity 0.6s ease; }
.cover-logo {
  width: 50px;
  height: 49px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(232, 186, 91, 0.3));
  transition: width 0.1s, height 0.1s, filter 0.1s;
}
.cover-brand-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.6s ease, font-size 0.6s ease;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.cover-copy { position: absolute; bottom: 15vh; left: 0; right: 0; text-align: center; z-index: 4; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.cover-copy.visible { opacity: 1; }
.cover-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #111010;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 99px;
  text-shadow: none;
}
.cover-city { margin-top: 10px; font-size: 15px; color: rgba(244, 242, 238, 0.82); text-shadow: 0 1px 12px rgba(0,0,0,.6); }

.cover-particles { position: sticky; top: 0; width: 100%; height: 100vh; z-index: 4; pointer-events: none; }

.cover-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(232, 229, 222, 0.7);
  z-index: 1;
}
.cover-hint-icon {
  width: 22px;
  height: 22px;
  border-left: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
  animation: hint-bounce 1.8s ease-in-out infinite;
}
.cover-hint-text {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 229, 222, 0.66);
}
@keyframes hint-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50% { transform: rotate(45deg) translate(7px, 7px); opacity: 0.35; }
}

@media (max-width: 560px) {
  .cover-scene { width: 250px; height: 280px; }
  .cover-logo { width: 230px; height: 227px; }
}

@media (max-width: 640px) {
  .cover { height: 180vh; }
  .hero-content { padding-top: 96px; }
  .hero-ticker .ticker-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ticker-inner::-webkit-scrollbar { display: none; }
  .hero-ticker .ticker-item { flex: 0 0 auto; padding: 10px 16px 12px; border-left: none; border-right: 1px solid var(--hairline-light); }
  .hero-ticker .ticker-item:last-child { border-right: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #F5F3EF;
  overflow: hidden;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center 50%; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 16, 0.7) 0%, rgba(17, 16, 16, 0.35) 38%, rgba(17, 16, 16, 0.85) 100%);
}

/* анимированные соты поверх фото — многослойный канвас */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(120px, 18vh, 190px) var(--gutter) clamp(56px, 8vh, 96px);
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: #E4C78C; }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero-sub {
  margin-top: 26px;
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted-light);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

.hero-ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline-light);
  background: rgba(17, 16, 16, 0.55);
  backdrop-filter: blur(8px);
}
.ticker-inner { display: flex; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; }
.ticker-item {
  flex: 1 1 180px;
  padding: 24px 28px;
  border-left: 1px solid var(--hairline-light);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ticker-item:first-child { border-left: none; }
.ticker-num {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ticker-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted-light); }

/* ---------- секции: базовое ---------- */

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 880px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head .lead { margin-top: 22px; }
.section-head .section-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ---------- каталог ---------- */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 4vw, 72px) clamp(28px, 3vw, 56px);
}
@media (max-width: 840px) { .catalog-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.5);
}

/* медиа / слайдер */
.product-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.product-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
}
.product-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.product-slide.active { opacity: 1; }

.product-media > img:not(.product-slide) {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
  padding: 7px 12px;
  background: rgba(17, 16, 16, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}
.slider-dot {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(244, 242, 238, 0.45);
  cursor: pointer;
  transition: background-color 0.25s ease, width 0.25s ease;
}
.slider-dot.active { background: #E4C78C; width: 22px; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hairline-light);
  background: rgba(17, 16, 16, 0.65);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.gallery-arrow:hover { background: var(--ink); color: #E4C78C; }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

/* бейдж и кнопка добавления */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17, 16, 16, 0.82);
  backdrop-filter: blur(6px);
  padding: 6px 11px;
  border-radius: 999px;
}

.product-plus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.85);
  color: #111010;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.product-plus:hover { background: var(--accent-bright); transform: scale(1.06); }

/* информация о товаре */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 4px 6px;
  flex: 1;
}
.product-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.product-info h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product-price {
  margin-top: auto;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* rich-контент внутри карточки: редакционные блоки */
.rich-content {
  margin-top: 18px;
  padding: 0 4px;
  border-top: 1px solid var(--hairline);
}
.rich-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2vw, 30px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.rich-section:last-child { border-bottom: none; }
.rich-section.reverse .rich-text { order: 2; }
.rich-section:not(:has(img)) { grid-template-columns: 1fr; }
.rich-text h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 10px;
}
.rich-text p { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.rich-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 640px) {
  .rich-section { grid-template-columns: 1fr; }
  .rich-section.reverse .rich-text { order: 0; }
}

/* ---------- о бренде ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}
@media (max-width: 840px) { .about-grid { grid-template-columns: 1fr; } }

.about-hero p { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; color: var(--text); }
.about-hero p + p { margin-top: 18px; color: var(--text-muted); font-size: 15.5px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.stat-item { padding: 26px 22px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }
.stat-num {
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- доставка ---------- */

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .delivery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .delivery-grid { grid-template-columns: 1fr; } }
.delivery-item {
  background: var(--surface);
  padding: clamp(24px, 2.4vw, 36px);
}
.delivery-item h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.delivery-item p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.delivery-item a { color: var(--bronze); text-decoration: none; border-bottom: 1px solid var(--bronze-soft); }
.delivery-item a:hover { color: var(--accent-bright); border-color: var(--hairline-strong); }

/* ---------- контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}
@media (max-width: 840px) { .contacts-grid { grid-template-columns: 1fr; } }

.contacts-links { display: flex; flex-direction: column; gap: 4px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 13px 4px;
  font-size: 15px;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--bronze); }
.contact-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze);
}

.contact-block {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.contact-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
}
.contact-block address { font-style: normal; font-size: 15px; line-height: 1.55; }
.contact-block-hours { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* форма */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.contact-form h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 14px; }

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px var(--bronze-soft);
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 18px 0 20px;
  cursor: pointer;
}
.form-consent input { margin-top: 3px; accent-color: var(--bronze); flex: none; }
.form-consent a { color: var(--bronze); text-decoration: underline; text-underline-offset: 2px; }

.contact-form .btn { width: 100%; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

.form-success,
.form-error {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
}
.form-success.show, .form-error.show { display: block; }
.form-success { background: rgba(98, 134, 90, 0.18); border: 1px solid rgba(98, 134, 90, 0.35); color: #98c48c; }
.form-error { background: rgba(166, 71, 47, 0.16); border: 1px solid rgba(166, 71, 47, 0.35); color: #d4856f; }
.form-error a { color: inherit; font-weight: 600; }

/* ---------- футер ---------- */

.site-footer { background: #0a0909; color: var(--text-muted-light); border-top: 1px solid var(--hairline); }
.footer-inner {
  padding: clamp(40px, 5vw, 64px) var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 4vw, 64px);
}
@media (max-width: 840px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { display: inline-flex; }
.footer-logo img { height: 48px; width: auto; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 600px) { .footer-nav { grid-template-columns: 1fr; } }
.footer-nav-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}
.footer-nav-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted-light);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer-nav-col a:hover { color: #E4C78C; }
.footer-bottom {
  border-top: 1px solid var(--hairline-light);
  padding: 22px var(--gutter);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(244, 242, 238, 0.45);
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- корзина ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  width: min(440px, 100vw);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.25);
}
.cart-panel.open { transform: none; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.cart-header h3 { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }
.cart-close {
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cart-close:hover { background: var(--hairline-strong); color: var(--text); }

.cart-items { flex: 1; overflow-y: auto; padding: 10px var(--gutter) 20px; }
.cart-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-item-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.cart-item-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); }
.cart-item-price { display: block; margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: none;
  font-size: 14px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cart-qty-btn:hover { background: var(--bronze-soft); border-color: var(--bronze); }
.cart-qty-val { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  padding: 6px;
  align-self: start;
  line-height: 1;
}
.cart-item-remove:hover { color: #8a3a24; }

.cart-footer { padding: 18px var(--gutter) 26px; border-top: 1px solid var(--hairline); background: var(--bg); }
.cart-footer .btn { width: 100%; }

/* ---------- модалка товара ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-content {
  position: relative;
  width: min(1020px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transform: translateY(14px);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.modal-overlay.open .modal-content { transform: none; }
@media (max-width: 840px) { .modal-content { grid-template-columns: 1fr; max-height: none; } }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(17, 16, 16, 0.75);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.modal-close:hover { background: var(--ink); }

.modal-gallery {
  position: relative;
  background: #0a0909;
  min-height: 320px;
}
.modal-slider { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.modal-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.modal-slide.active { opacity: 1; pointer-events: auto; }
.modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.modal-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
  padding: 7px 12px;
  background: rgba(17, 16, 16, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}
.modal-dot {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(244, 242, 238, 0.45);
  cursor: pointer;
  transition: background-color 0.25s ease, width 0.25s ease;
}
.modal-dot.active { background: #E4C78C; width: 22px; }

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--hairline-light);
  background: rgba(17, 16, 16, 0.65);
  backdrop-filter: blur(6px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.modal-arrow:hover { background: var(--ink); color: #E4C78C; }
.modal-prev { left: 14px; }
.modal-next { right: 14px; }

.modal-info { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.modal-category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.modal-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.modal-desc { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }

.modal-variants-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.modal-variants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-variant-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.modal-variant-btn:hover { border-color: var(--bronze); }
.modal-variant-btn.selected { border-color: var(--accent); background: rgba(212, 175, 106, 0.18); color: var(--accent-bright); }
.modal-variant-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex: none;
}

.modal-price { font-size: 22px; font-weight: 600; letter-spacing: 0.01em; margin-top: 4px; }
.modal-add-btn { width: 100%; margin-top: 6px; }

.modal-rich { border-top: 1px solid var(--hairline); padding-top: 18px; }
.modal-rich .rich-section { padding: 14px 0; }
.modal-rich .rich-text h4 { font-size: 10.5px; }
.modal-rich .rich-text p { font-size: 13.5px; }

/* ---------- reveal-анимации ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* каскадные задержки для секций */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* parallax на изображениях */
.parallax-wrap { overflow: hidden; }
.parallax-wrap img { transition: transform 0.1s linear; will-change: transform; }

/* ---------- вспомогательное ---------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
