:root {
  --cream: #f9f3e8;
  --sand: #ede0c8;
  --terracotta: #a68469;
  --burnt: #a05a30;
  --umber: #6b3f22;
  --sage: #8a9e7a;
  --gold: #c9a84c;
  --warm-white: #fffcf6;
  --text-dark: #3c2a1a;
  --text-mid: #7a5a3c;
  --text-light: #b0896a;
}
body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  overflow-x: clip;
  min-height: 100vh;
}

/* фон */
#leafCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    rgba(107, 63, 34, 0.07) 100%
  );
}

/* шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 30px 6px;
  background: rgba(249, 243, 232, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 125, 78, 0.15);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-center {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo {
  text-align: left;
}
.logo h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--burnt);
  text-transform: uppercase;
  margin: 0;
}
.logo-subtitle {
  font-family: "Jost", sans-serif;
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* четверть-круг видео */
.video-quarter-wrap {
  width: 150px;
  height: 150px;
  border-radius: 100% 0 0 0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--cream);
  align-self: flex-start;
  margin-top: -6px;
}
.video-quarter {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  transform-origin: right top;
  transform: scale(1.25);
}
.video-quarter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(249, 243, 232, 0.12);
  pointer-events: none;
}
.video-quarter-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100% 0 0 0;
  border: 3px solid var(--burnt);
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

/* корзина-пилюля (PC) */
.cart-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.cart-pill:hover {
  background: rgba(166, 132, 105, 0.06);
  transform: translateY(-2px);
}
.cart-pill-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("/assets/img/shoppingcart-terracotta.png") center / contain
    no-repeat;
  background-size: 20px 20px;
}
.cart-pill-count {
  font-weight: 400;
}
.cart-pill-sep {
  opacity: 0.5;
}
.cart-pill-total {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}

/* навигация */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 100px;
  transition: all 0.3s;
  white-space: nowrap;
}
.main-nav a:hover {
  background: rgba(201, 125, 78, 0.1);
  color: var(--burnt);
}

/* корзина FAB (mobile) */
.cart-fab {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(166, 132, 105, 0.25);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  overflow: visible;
}
.cart-fab .cart-fab-icon {
  width: 26px;
  height: 26px;
  background: url("/assets/img/shoppingcart-terracotta.png") center / contain
    no-repeat;
  background-size: 26px 26px;
}
.cart-fab .cart-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--terracotta);
  color: var(--warm-white);
  border: 2px solid var(--cream);
  border-radius: 100px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 400;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-fab.has-items .cart-fab-badge {
  display: flex;
}
.cart-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(166, 132, 105, 0.35);
}
.cart-fab.bump {
  animation: cartBump 0.4s ease;
}
@keyframes cartBump {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* hero */
.hero-section {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px 20px;
}
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}
.ornament-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.ornament-line.right {
  background: linear-gradient(to left, transparent, var(--gold));
}
.ornament-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.main-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: var(--terracotta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.main-title em {
  font-style: normal;
  color: var(--terracotta);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* фильтры */
.filters-section {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 16px 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.filter-select-wrap {
  position: relative;
}
.filter-select {
  appearance: none;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(201, 125, 78, 0.2);
  border-radius: 100px;
  padding: 8px 30px 8px 14px;
  font-family: "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  min-width: 110px;
  text-align: left;
  position: relative;
}
.filter-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-light);
  pointer-events: none;
}
.filter-select-wrap.open::after {
  transform: translateY(-50%) rotate(180deg);
}
.filter-dropdown {
  position: fixed;
  z-index: 100000;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 160px;
  background: var(--warm-white);
  border: 1px solid rgba(201, 125, 78, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(107, 63, 34, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  pointer-events: none;
}
.filter-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.filter-dropdown li {
  padding: 9px 14px;
  border-radius: 100px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-dropdown li:hover {
  background: rgba(201, 125, 78, 0.1);
  color: var(--burnt);
}
.filter-dropdown li.selected {
  background: rgba(201, 125, 78, 0.16);
  color: var(--burnt);
  font-weight: 400;
}
.find-btn {
  background: var(--terracotta);
  color: var(--warm-white);
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.find-btn:hover {
  background: var(--burnt);
  transform: translateY(-2px);
}

/* контент */
.main-content {
  display: block;
  max-width: 1400px;
  padding: 20px 30px 40px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* карточки товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.product-card {
  position: relative;
  background: rgba(255, 252, 246, 0.92);
  border-radius: 4px 20px 4px 20px;
  border: 1px solid rgba(201, 125, 78, 0.15);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(107, 63, 34, 0.12);
  border-color: rgba(201, 125, 78, 0.3);
}
.product-card {
  animation: cardIn 0.35s ease backwards;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--sand);
  flex-shrink: 0;
}

/* Карусель фото в карточке товара */
.product-photo-carousel {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sand);
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.carousel-img.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(201,125,78,0.2);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0;
}
.product-photo-carousel:hover .carousel-btn {
  opacity: 1;
}
.carousel-prev {
  left: 6px;
}
.carousel-next {
  right: 6px;
}
.carousel-btn:hover {
  background: #fff;
  color: var(--burnt);
}
.carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: scale(1.3);
}
.product-info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-art {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--burnt);
  margin-bottom: 4px;
  min-height: 28px;
}
.product-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dark);
  min-height: 32px;
}
.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  min-height: 28px;
}
.product-tags .tag {
  background: rgba(201, 125, 78, 0.08);
  border: 1px solid rgba(201, 125, 78, 0.18);
  border-radius: 100px;
  padding: 2px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.product-actions .btn-outline {
  flex: 1;
  background: none;
  border: 1px solid rgba(201, 125, 78, 0.3);
  border-radius: 100px;
  padding: 8px 10px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.3s;
}
.product-actions .btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--burnt);
  background: rgba(201, 125, 78, 0.05);
}
.product-actions .btn-filled {
  flex: 1.2;
  background: var(--terracotta);
  border: none;
  border-radius: 100px;
  padding: 8px 10px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-white);
  cursor: pointer;
  transition: all 0.3s;
}
.product-actions .btn-filled:hover {
  background: var(--burnt);
  transform: translateY(-1px);
}
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 90, 43, 0.2);
  font-size: 0;
  color: #8b5a2b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.fav-btn::before {
  font-size: 20px;
  content: "☆";
}
.fav-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}
.fav-btn.active {
  color: #d4a574;
  background: #fff;
  border-color: #d4a574;
}
.fav-btn.active::before {
  content: "★";
}
.no-products {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  padding: 80px 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: var(--text-light);
  animation: fadeIn 0.4s ease;
}

/* кабинет */
.cabinet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 42, 26, 0.35);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cabinet-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cabinet-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--warm-white);
  border-left: 1px solid rgba(201, 125, 78, 0.2);
  z-index: 1000;
  padding: 0;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}
.cabinet-panel.open {
  right: 0;
}
.cabinet-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid rgba(201, 125, 78, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cabinet-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--burnt);
  letter-spacing: 0.05em;
}
.cabinet-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}
.cabinet-body {
  padding: 24px 30px;
  overflow-y: auto;
  flex: 1;
}
.cabinet-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(201, 125, 78, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(201, 125, 78, 0.1);
}
.cabinet-avatar {
  width: 44px;
  height: 44px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: #fff;
}
.cabinet-uname {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--burnt);
}
.cabinet-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-item {
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: "Jost", sans-serif;
}
.menu-item:hover {
  background: rgba(201, 125, 78, 0.08);
  color: var(--burnt);
  padding-left: 22px;
}
.cabinet-auth-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.cabinet-auth-btns a {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.auth-primary {
  background: var(--terracotta);
  color: #fff;
}
.auth-primary:hover {
  background: var(--burnt);
  transform: translateY(-2px);
}
.auth-secondary {
  border: 1px solid rgba(201, 125, 78, 0.3);
  color: var(--text-mid);
}
.auth-secondary:hover {
  border-color: var(--terracotta);
  color: var(--burnt);
}

/* футер */
.footer-ornament {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 30px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-line {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-line span {
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-light);
}
.footer-motif {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 10px;
  opacity: 0.5;
}

/* splash */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  padding: 20px;
}
.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100vh;
}
.splash-video-wrap {
  position: relative;
  width: min(90vw, 560px);
  max-height: 60vh;
  border-radius: 32px;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 12px 40px rgba(107, 63, 34, 0.12);
  background: var(--sand);
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.splash-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}
.splash-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 32px;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(249, 243, 232, 0.05) 50%,
    rgba(249, 243, 232, 0.15) 60%,
    rgba(249, 243, 232, 0.4) 75%,
    rgba(249, 243, 232, 0.7) 88%,
    rgba(249, 243, 232, 0.9) 95%,
    rgba(249, 243, 232, 0.98) 100%
  );
  pointer-events: none;
}
.splash-video-vignette-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 32px;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    rgba(107, 63, 34, 0.02) 65%,
    rgba(107, 63, 34, 0.05) 85%,
    rgba(107, 63, 34, 0.08) 100%
  );
  pointer-events: none;
}
.splash-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 32px;
  border: 1px solid rgba(201, 125, 78, 0.1);
  pointer-events: none;
  box-sizing: border-box;
}
.splash-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 300;
  color: var(--burnt);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 auto;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}
.splash-title-inner {
  display: inline-block;
  opacity: 0;
  animation: titleReveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
}
@keyframes titleReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-8px);
  }
  40% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    transform: translateX(0);
  }
}
.splash-subtitle {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--text-light);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: subtitleSlideUp 1s ease forwards;
  animation-delay: 1.8s;
}
@keyframes subtitleSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes splashFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}
.splash-overlay.fade-out {
  animation: splashFadeOut 0.8s ease forwards;
}
.site-header,
.hero-section,
.filters-section,
.main-content,
.top-banner,
.footer-ornament {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.splash-overlay.hidden ~ .site-header,
.splash-overlay.hidden ~ .hero-section,
.splash-overlay.hidden ~ .filters-section,
.splash-overlay.hidden ~ .main-content,
.splash-overlay.hidden ~ .top-banner,
.splash-overlay.hidden ~ .footer-ornament {
  opacity: 1;
}

/* отзывы */
.reviews-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(60, 42, 26, 0.5);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.reviews-modal.visible {
  display: flex;
}
.reviews-modal-content {
  background: var(--warm-white);
  border-radius: 4px 20px 4px 20px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modalIn 0.35s forwards;
}
.reviews-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(201, 125, 78, 0.12);
  padding-bottom: 16px;
}
.reviews-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--burnt);
  letter-spacing: 0.05em;
}
.reviews-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  transition: all 0.3s;
}
.reviews-modal-close:hover {
  color: var(--burnt);
  transform: rotate(90deg);
}
.review-form-group {
  margin-bottom: 18px;
}
.review-form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.review-form-group .required {
  color: var(--terracotta);
}
.review-form-group input,
.review-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(201, 125, 78, 0.2);
  border-radius: 12px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  background: var(--warm-white);
  transition: all 0.3s;
  outline: none;
}
.review-form-group input:focus,
.review-form-group textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(166, 132, 105, 0.1);
}
.review-stars {
  display: flex;
  gap: 6px;
  font-size: 32px;
  cursor: pointer;
}
.review-stars .star {
  color: var(--text-light);
  transition: all 0.2s;
  user-select: none;
}
.review-stars .star:hover {
  transform: scale(1.15);
}
.review-stars .star.active {
  color: var(--gold);
}
.review-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--terracotta);
  color: var(--warm-white);
  border: none;
  border-radius: 100px;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.review-submit-btn:hover {
  background: var(--burnt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 90, 48, 0.25);
}
.review-form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}
.reviews-feed {
  margin-top: 40px;
  padding: 0 30px 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.reviews-feed-header h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--burnt);
  text-align: center;
  margin-bottom: 24px;
}
.reviews-feed-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  background: rgba(255, 252, 246, 0.85);
  border: 1px solid rgba(201, 125, 78, 0.12);
  border-radius: 16px;
  padding: 18px 22px;
  transition: all 0.3s;
}
.review-item:hover {
  border-color: rgba(201, 125, 78, 0.25);
}
.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.review-item-name {
  font-weight: 500;
  color: var(--burnt);
  font-size: 15px;
}
.review-item-rating {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 1px;
}
.review-item-text {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
}
.review-item-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== TOP-БАННЕР ===== */
.top-banner {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 30px 20px;
}

.top-banner-media-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107,63,34,0.08);
}

.top-banner-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.top-banner-video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: none;
  border-radius: 16px;
}

.top-banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  background: rgba(255,252,246,0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(201,125,78,0.15);
  border-radius: 16px;
  text-align: center;
}

.top-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--burnt);
  letter-spacing: 0.05em;
}

.top-banner-subtitle {
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

/* ===== АДАПТИВНАЯ СЕТКА ТОВАРОВ ===== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 12px 25px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card {
    min-height: 360px;
  }
  .product-card img {
    height: 220px;
  }
}

.main-content--empty {
  grid-template-columns: 1fr;
}

.main-content--empty .sidebar-right {
  display: none;
}

/* ===== АДАПТИВ (остальные элементы) ===== */
@media (max-width: 1024px) {
  .main-content {
    padding: 0 20px 30px;
  }
}
@media (max-width: 768px) {
  .site-header {
    padding: 10px 8px 2px;
  }
  .header-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-left {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }
  .header-center {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-center::-webkit-scrollbar {
    display: none;
  }
  .header-right {
    flex-shrink: 0;
  }
  .logo h1 {
    font-size: 20px;
    letter-spacing: 0.12em;
  }
  .logo-subtitle {
    font-size: 7px;
  }
  .video-quarter-wrap {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 100% 0 0 0;
    margin-top: 0;
    flex-shrink: 0;
  }
  .logo {
    padding-left: 6px;
  }
  .cart-pill {
    display: none;
  }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px 0 2px;
    width: 100%;
  }
  .main-nav a {
    font-size: 8px;
    padding: 4px 6px;
    text-align: center;
    background: rgba(255, 252, 246, 0.4);
    border: 1px solid rgba(201, 125, 78, 0.08);
    border-radius: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.05em;
    color: var(--text-mid);
    text-decoration: none;
    transition: all 0.2s;
  }
  .main-nav a:hover {
    background: rgba(201, 125, 78, 0.1);
  }
  .cart-fab {
    display: flex;
    bottom: 48px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.5);
  }
  .cart-fab .cart-fab-icon {
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
  }
  .cart-fab .cart-fab-badge {
    min-width: 19px;
    height: 19px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
  .hero-section {
    padding: 20px 12px 14px;
  }
  .hero-ornament {
    gap: 10px;
    margin-bottom: 8px;
  }
  .ornament-line {
    width: 30px;
  }
  .ornament-diamond {
    width: 5px;
    height: 5px;
  }
  .main-title {
    font-size: 24px;
  }
  .filters-section {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    padding: 0 6px 14px;
    max-width: none;
  }
  .filter-select-wrap {
    flex: 0 0 auto;
  }
  .filter-select {
    font-size: 8px;
    letter-spacing: 0;
    padding: 7px 16px 7px 8px;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }
  .filter-select-wrap::after {
    right: 6px;
    font-size: 7px;
  }
  .find-btn {
    flex: 0 0 auto;
    align-self: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("/assets/img/loupe.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
  }
  .find-btn:hover {
    background-color: var(--burnt);
    transform: none;
  }
  .main-content {
    padding: 0 12px 25px;
  }
  .info-card-arrow {
    display: inline-block;
  }
  .product-art {
    font-size: 16px;
    min-height: 24px;
  }
  .product-price {
    font-size: 20px;
    min-height: 28px;
  }
  .product-tags {
    min-height: 24px;
  }
  .product-tags .tag {
    font-size: 8px;
    padding: 2px 8px;
  }
  .product-actions .btn-outline,
  .product-actions .btn-filled {
    font-size: 9px;
    padding: 6px 8px;
  }
  .info-card {
    padding: 14px 16px;
  }
  .info-card h3 {
    font-size: 16px;
  }
  .info-card-body {
    max-height: 0;
    opacity: 0;
  }
  .info-card.open .info-card-body {
    max-height: 600px;
    opacity: 1;
  }
  .cabinet-panel {
    width: 100%;
    right: -100%;
  }
  .footer-ornament {
    padding: 20px 16px 25px;
  }
  .footer-motif {
    font-size: 12px;
    letter-spacing: 6px;
  }
  .footer-line span {
    font-size: 8px;
    letter-spacing: 0.3em;
  }
  .reviews-modal-content {
    padding: 24px;
    border-radius: 4px 16px 4px 16px;
  }
  .reviews-modal-title {
    font-size: 22px;
  }
  .review-stars {
    font-size: 28px;
  }
  .reviews-feed {
    padding: 0 16px 30px;
  }
  .reviews-feed-header h3 {
    font-size: 22px;
  }
  .review-item {
    padding: 14px 16px;
  }
}
@media (max-width: 480px) {
  .splash-video-wrap {
    width: min(85vw, 320px);
    max-height: 45vh;
    border-radius: 20px;
    margin-bottom: 14px;
  }
  .splash-video-vignette,
  .splash-video-vignette-inner,
  .splash-video-wrap::after {
    border-radius: 20px;
  }
  .splash-title {
    font-size: 32px;
    letter-spacing: 0.1em;
  }
  .splash-subtitle {
    font-size: 14px;
    margin-top: 10px;
  }
}
@media (max-width: 380px) {
  .splash-video-wrap {
    max-height: 35vh;
    border-radius: 16px;
  }
  .splash-title {
    font-size: 26px;
  }
  .splash-subtitle {
    font-size: 12px;
  }
}
