:root {
  --black: #1a1a18;
  --cream: #f5f1ea;
  --cream-dark: #e8e1d3;
  --accent: #7a6a53;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

/* Кнопки, инпуты и т.п. по умолчанию не наследуют шрифт страницы в браузере — фиксируем это */
button, input, select, textarea {
  font-family: inherit;
}

body {
  margin: 0;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background: var(--cream);
  line-height: 1.5;
}

body.home-page-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/brand/logo.png');
  background-repeat: no-repeat;
  background-position: center 25%;
  background-size: min(45vw, 420px) auto;
  opacity: 0.035;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

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

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-logo {
  height: 48px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--black);
  border-radius: 2px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--black);
}

.lang-switch button.active {
  background: var(--black);
  color: var(--cream);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--cream);
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.3s ease, transform 0.25s ease;
}

.btn:hover {
  background: var(--cream);
  color: var(--black);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--cream);
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--cream);
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0;
  text-align: center;
  color: var(--black);
  overflow: hidden;
}

.hero-logo-bg {
  background-color: var(--cream-dark);
}

.hero-logo-bg::before {
  content: "";
  position: absolute;
  inset: 20px;
  background-image: url('../images/brand/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
}

.hero-video-bg {
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo {
  height: 180px;
  display: block;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 0.3em;
  color: var(--black);
  letter-spacing: 0.01em;
}

.hero-video-bg h1 {
  color: #fff;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  color: #4a463e;
}

.video-showcase {
  padding: 40px 0;
}

.showcase-video {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

/* Category section */
.category {
  padding: 56px 0;
  border-top: 1px solid var(--cream-dark);
}

.category-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.category-header h2 {
  font-size: 34px;
  letter-spacing: 0.01em;
}

.category-header p {
  color: #5a564c;
}

.category-video-wrap {
  max-width: 360px;
  margin: 0 auto 40px;
}

.category-details {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
}

.category-details p {
  color: #5a564c;
  margin-bottom: 20px;
}

.category-details .product-specs {
  text-align: left;
}

.category-video {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.category-tagline {
  text-align: center;
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin: 40px 0 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 32px;
}

/* Catalog grid (flat, tile-based) */
.catalog-page {
  padding: 72px 0 100px;
}

.group-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.group-banner {
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}

.group-banner-image {
  position: absolute;
  inset: 0;
}

.group-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.group-banner:hover .group-banner-image img {
  transform: scale(1.04);
}

.group-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.45) 100%);
}

.group-banner h2 {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
  font-size: 32px;
  margin: 0;
}

@media (max-width: 700px) {
  .group-banners {
    grid-template-columns: 1fr;
  }
}

.product-strip-wrap {
  margin-top: 88px;
}

.product-strip-wrap h2 {
  margin-bottom: 24px;
}

.product-strip-scroller {
  position: relative;
}

.product-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0;
  scroll-padding-left: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-strip .catalog-tile {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.product-strip::-webkit-scrollbar {
  display: none;
}

.product-strip::-webkit-scrollbar-thumb {
  background: var(--cream-dark);
  border-radius: 3px;
}

.product-strip-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 12px;
  width: 80px;
  background: linear-gradient(90deg, rgba(245, 241, 234, 0), var(--cream) 90%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.product-strip-fade.hidden {
  opacity: 0;
}

.product-strip-arrow {
  position: absolute;
  top: calc(50% - 24px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--black);
  background: var(--cream);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.product-strip-arrow:hover {
  background: var(--black);
  color: var(--cream);
}

.product-strip-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.product-strip-arrow-prev {
  left: -20px;
}

.product-strip-arrow-next {
  right: -20px;
}

@media (max-width: 700px) {
  .product-strip-arrow {
    display: none;
  }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 28px;
}

#catalogGrid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  #catalogGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  #catalogGrid { grid-template-columns: 1fr; }
}

.catalog-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.catalog-tile-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fafafa;
}

.catalog-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-tile:hover .catalog-tile-image img {
  transform: scale(1.035);
}

.catalog-tile-info {
  padding: 16px 4px 8px;
}

.catalog-tile-info h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.catalog-tile-price {
  font-size: 14px;
  color: var(--accent);
}

.catalog-tile-dots {
  display: flex;
  gap: 8px;
  padding: 4px 4px 4px;
}

.tile-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--cream-dark);
  cursor: pointer;
  padding: 0;
}

.tile-dot.active {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--black);
}

/* Product detail page */
.product-page {
  padding: 48px 0 80px;
}

.product-detail {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.product-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-thumbs-col img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  background: #fafafa;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.6;
}

.product-thumbs-col img.active {
  border-color: var(--black);
  opacity: 1;
}

.product-main-image {
  aspect-ratio: 4/5;
  background: #fafafa;
  cursor: zoom-in;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.how-it-works-link {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  text-decoration: none;
  color: var(--accent);
}

.product-back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

@media (max-width: 800px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-thumbs-col {
    flex-direction: row;
  }
  .product-thumbs-col img {
    width: 70px;
    flex-shrink: 0;
  }
}

.sticky-order-bar {
  display: none;
}

@media (max-width: 800px) {
  .sticky-order-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.2s ease;
  }
  .sticky-order-bar.visible {
    transform: translateY(0);
  }
  .sticky-order-name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sticky-order-bar .order-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 13px;
  }
}

.product-card {
  background: transparent;
  border: none;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fafafa;
  cursor: zoom-in;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease;
}

.thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 10px 0;
}

.thumb {
  width: 48px;
  height: 60px;
  object-fit: contain;
  background: #fafafa;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.6;
}

.thumb.active {
  border-color: var(--black);
  opacity: 1;
}

.product-info {
  padding: 20px 4px;
}

.product-info h3 {
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-price {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--black);
}

.product-description {
  font-size: 14px;
  color: #5a564c;
  margin-bottom: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.product-specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--cream-dark);
  padding-top: 12px;
}

.product-specs li {
  font-size: 13px;
  color: #5a564c;
  padding: 3px 0 3px 14px;
  position: relative;
}

.product-specs li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.bell-teaser {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--cream-dark);
  border-radius: 40px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bell-teaser:hover {
  border-color: var(--black);
  background-color: var(--cream-dark);
}

.bell-teaser video {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bell-teaser-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #5a564c;
}

.color-label {
  font-size: 13px;
  color: #5a564c;
  margin-bottom: 6px;
}

.color-description {
  font-size: 13px;
  color: #5a564c;
  font-style: italic;
  margin: 10px 0 0;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.swatch {
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 20px;
}

.swatch.active {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--swatch-color, var(--black));
}

.order-btn {
  width: 100%;
}

/* How it works */
.how-it-works {
  padding: 56px 0;
  background: var(--cream-dark);
  text-align: center;
}

.how-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.how-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  background: #fafafa;
  cursor: zoom-in;
}

.how-item p {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #2a2822;
}

.how-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  text-align: left;
  counter-reset: step;
}

.how-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #4a463e;
  margin-bottom: 8px;
}

.how-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--black);
  color: var(--cream);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reviews */
.reviews {
  padding: 56px 0;
  border-top: 1px solid var(--cream-dark);
}

.reviews h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  padding: 24px;
}

.review-stars {
  color: #D9A441;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 15px;
  color: #3a3830;
  margin-bottom: 16px;
}

.review-meta {
  font-size: 13px;
  color: #8a8578;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--cream-dark);
  padding-top: 12px;
}

/* Contact */
.contact {
  padding: 64px 0;
  text-align: center;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-note {
  font-size: 14px;
  color: #8a8578;
  margin-top: 16px;
}

.packaging-block {
  max-width: 440px;
  margin: 56px auto 0;
}

.packaging-image {
  width: 100%;
  display: block;
  background: #fff;
}

.packaging-caption {
  font-size: 13px;
  color: #8a8578;
  margin-top: 16px;
  line-height: 1.5;
}

.legal-consent-note {
  font-size: 13px;
  color: #8a8578;
  margin-top: 20px;
}

.legal-consent-note a {
  color: #5a564c;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #8a8578;
  line-height: 1.4;
  cursor: pointer;
  margin: 4px 0;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.consent-label a {
  color: #5a564c;
}

/* Footer */
.site-footer {
  padding: 56px 0 0;
  border-top: 1px solid var(--cream-dark);
  font-size: 14px;
  color: #5a564c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  padding: 5px 0;
  color: #5a564c;
}

.footer-col a:hover {
  color: var(--black);
}

.footer-logo {
  height: 40px;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 320px;
  color: #8a8578;
}

.footer-bottom {
  border-top: 1px solid var(--cream-dark);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: #8a8578;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

/* Buy one-click modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.6);
  z-index: 150;
  align-items: center;
  justify-content: center;
}

.modal.open { display: flex; }

.modal-box {
  position: relative;
  background: var(--cream);
  padding: 32px;
  max-width: 360px;
  width: 90%;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.modal-box input {
  padding: 10px 12px;
  border: 1px solid var(--cream-dark);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
}

.modal-note {
  font-size: 12px;
  color: #8a8578;
  text-align: center;
  margin: 4px 0 0;
}

.order-btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Legal pages */
.legal-page {
  padding: 56px 0 80px;
  max-width: 760px;
}

.legal-page h1 {
  font-size: 34px;
}

.legal-updated {
  color: #8a8578;
  font-size: 13px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 18px;
  margin-top: 32px;
}

.legal-page p {
  color: #3a3830;
  font-size: 15px;
  margin-bottom: 12px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--black);
  color: var(--cream);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  max-width: 640px;
}

.cookie-banner a {
  text-decoration: underline;
}

.cookie-banner button {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 2px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--black);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 30px; }
}
