/* ============================================
   WoodWave WOOD - Static Site Styles
   Dark Wood Theme Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --wood-950: #1a1008;
  --wood-900: #2d1c0d;
  --wood-800: #4a2e15;
  --wood-700: #6d4420;
  --wood-600: #8b5a2b;
  --wood-500: #a2733f;
  --wood-400: #c48b52;
  --wood-300: #d4a373;
  --wood-200: #e8d0a8;
  --wood-100: #f5ead6;
  --wood-50: #fdf8f0;
  --gold: #d4a373;
  --gold-light: #e8c9a0;
  --cream: #faf6f0;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--wood-950);
  color: var(--wood-100);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--wood-950);
}
::-webkit-scrollbar-thumb {
  background: var(--wood-500);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--wood-400);
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wood-50);
  line-height: 1.2;
}

.gold-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--wood-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, var(--wood-600), var(--gold), var(--gold-light));
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ============================================
   1. HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(26, 16, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* На мобільних хедер з напівпрозорим фоном для видимості лого */
@media (max-width: 1024px) {
  .header {
    background: rgba(26, 16, 8, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  }
  /* При скролі на мобільних фон хедера зникає разом з лого,
     але бургер-меню залишається видимим (він має власний фон) */
  .header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 80px;
  width: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-text .wood {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .wave {
  color: var(--wood-100);
}

/* На мобільних/планшетах лого компактне */
@media (max-width: 1024px) {
  .logo {
    flex-shrink: 0;
    max-width: 160px;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 4px;
  }

  /* Лого зникає при скролі на мобільних/планшетах */
  .header.scrolled .logo {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
  }

  .header {
    top: 0;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 120px;
  }

  .logo img {
    height: 32px;
    max-width: 120px;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wood-200);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s ease;
}

.nav-desktop a:hover {
  color: var(--gold);
}

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

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--wood-200);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--wood-600), var(--gold));
  color: var(--wood-50);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 163, 115, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

/* На мобільних бургер-меню завжди видиме і закріплене справа вгорі */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1002;
    background: rgba(26, 16, 8, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px;
    transition: background 0.3s ease;
  }

  .hamburger:hover {
    background: rgba(26, 16, 8, 0.8);
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wood-100);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 16, 8, 0.98);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wood-200);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* Кнопка закриття мобільного меню (хрестик) */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--wood-200);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold);
  transform: rotate(90deg);
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('original/hero-bg.jpg') center/cover no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(26, 16, 8, 0.7) 0%, rgba(26, 16, 8, 0.3) 40%, rgba(26, 16, 8, 0.5) 70%, rgba(26, 16, 8, 0.9) 100%),
    linear-gradient(to right, rgba(26, 16, 8, 0.5) 0%, transparent 30%, transparent 70%, rgba(26, 16, 8, 0.5) 100%);
}

.hero-blur-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(162, 115, 63, 0.1);
  filter: blur(80px);
  pointer-events: none;
}

.hero-blur-circle.circle-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 10%;
}

.hero-blur-circle.circle-2 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  right: 15%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  color: #f0e6d2;
}

/* Тіні для кнопок */
.hero-content a,
.hero-content button {
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
}

.hero-content a:hover,
.hero-content button:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Тінь для тексту щоб не зливався з фоном */
.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content p,
.hero-content span,
.hero-title-wood,
.hero-title-sub,
.hero-subtitle,
.hero-sub-subtitle,
.hero-badge {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
  .hero-content {
    padding: 20px 15px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(240, 230, 210, 0.4);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0e6d2;
  margin-bottom: 24px;
}

.hero-title-wood {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f0e6d2;
  margin-bottom: 8px;
}

.hero-title-sub {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: #f0e6d2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1rem;
  color: #f0e6d2;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.hero-sub-subtitle {
  font-size: 1.1rem;
  color: #f0e6d2;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  -webkit-text-stroke: 0px white; /* біла обводка 1px */
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--wood-700), var(--wood-500));
  color: var(--wood-50);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(162, 115, 63, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1.5px solid var(--wood-500);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
  background: rgba(162, 115, 63, 0.1);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--wood-400);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-indicator svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ============================================
   2.5. ABOUT US SECTION
   ============================================ */
.about-section {
  background: var(--wood-950);
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(26, 16, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--wood-700);
}

.about-image-badge .badge-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.about-image-badge .badge-label {
  font-size: 0.75rem;
  color: var(--wood-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wood-50);
  line-height: 1.2;
}

.about-content h2 .gold-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--wood-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-description {
  font-size: 0.95rem;
  color: var(--wood-300);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.about-stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--wood-900);
  border-radius: 12px;
  border: 1px solid var(--wood-800);
}

.about-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat .stat-label {
  font-size: 0.7rem;
  color: var(--wood-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 0;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .about-stat .stat-number {
    font-size: 1.4rem;
  }
}

/* ============================================
   3. MARQUEE STRIP
   ============================================ */
.marquee-strip {
  background: var(--wood-900);
  border-top: 1px solid var(--wood-800);
  border-bottom: 1px solid var(--wood-800);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-300);
  white-space: nowrap;
}

.marquee-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   4. PRODUCT SECTION
   ============================================ */
.product-section {
  background: var(--wood-950);
  padding: 80px 0;
}

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

.product-image-wrapper {
  position: relative;
}

.product-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--wood-900);
  aspect-ratio: 4/3;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.product-image-container img.fading {
  opacity: 0;
}

.product-badge-new {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--wood-600), var(--gold));
  color: var(--wood-50);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 2;
}

.color-selector {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.color-option:hover {
  transform: scale(1.05);
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.color-option.active .color-swatch {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 163, 115, 0.4);
}

.color-label {
  font-size: 0.7rem;
  color: var(--wood-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-option.active .color-label {
  color: var(--gold);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4ade80;
}

.product-stars {
  display: flex;
  gap: 2px;
}

.product-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  color: var(--gold);
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wood-50);
  line-height: 1.2;
}

.product-subtitle-gold {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.product-price-old {
  font-size: 1.2rem;
  color: var(--wood-500);
  text-decoration: line-through;
}

.product-discount {
  font-size: 0.75rem;
  font-weight: 700;
  background: #dc2626;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--wood-900);
  border-radius: 10px;
  border: 1px solid var(--wood-800);
}

.spec-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.spec-item .spec-label {
  font-size: 0.7rem;
  color: var(--wood-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item .spec-value {
  font-size: 0.85rem;
  color: var(--wood-100);
  font-weight: 500;
}

.product-description {
  font-size: 0.95rem;
  color: var(--wood-300);
  line-height: 1.7;
}

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

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--wood-700);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-200);
  transition: background 0.3s ease;
}

.quantity-selector button:hover {
  background: var(--wood-800);
}

.quantity-selector .qty-value {
  width: 44px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wood-100);
  border-left: 1px solid var(--wood-700);
  border-right: 1px solid var(--wood-700);
  height: 40px;
  line-height: 40px;
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--wood-900);
  border-radius: 10px;
  border: 1px solid var(--wood-800);
}

.benefit-card svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.benefit-card .benefit-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wood-200);
}

.benefit-card .benefit-sub {
  font-size: 0.7rem;
  color: var(--wood-500);
}

.payment-methods {
  font-size: 0.8rem;
  color: var(--wood-400);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-methods .divider {
  color: var(--wood-600);
}

/* ============================================
   5. FEATURES SECTION
   ============================================ */
.features-section {
  background: var(--wood-900);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--wood-950);
  border-radius: 14px;
  border: 1px solid var(--wood-800);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--wood-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  background: linear-gradient(135deg, var(--wood-700), var(--gold));
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.feature-card:hover .feature-icon-box svg {
  color: var(--wood-50);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wood-100);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--wood-400);
  line-height: 1.6;
}

.features-showcase {
  position: relative;
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21/9;
}

.features-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 16, 8, 0.8), transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px;
}

.features-showcase-overlay h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wood-50);
  letter-spacing: 0.05em;
}

/* ============================================
   6. HOW IT WORKS SECTION
   ============================================ */
.how-section {
  background: var(--wood-950);
  padding: 80px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-step {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.how-step-image {
  aspect-ratio: 4/3;
  position: relative;
}

.how-step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-step-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 16, 8, 0.85) 0%, rgba(26, 16, 8, 0.2) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.how-step-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--wood-600), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wood-50);
}

.how-step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wood-50);
  margin-bottom: 6px;
}

.how-step-desc {
  font-size: 0.85rem;
  color: var(--wood-300);
  line-height: 1.5;
}

.how-video {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--wood-800);
}

.how-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   7. GALLERY SECTION
   ============================================ */

/* --- Desktop Video (above gallery) --- */
.desktop-video-wrapper {
  padding: 60px 0 0;
  background: var(--wood-900);
}

@media (max-width: 768px) {
  .desktop-video-wrapper {
    display: none;
  }
}

.gallery-section {
  background: var(--wood-900);
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.span-2-col {
  grid-column: span 2;
}

.gallery-item.span-2-row {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 8, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  z-index: 2;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--wood-300);
  z-index: 2;
}

/* ============================================
   8. TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: var(--wood-950);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  background: var(--wood-900);
  border-radius: 14px;
  border: 1px solid var(--wood-800);
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--wood-600);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  color: var(--gold);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--wood-200);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wood-600), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wood-50);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wood-100);
}

.testimonial-location {
  font-size: 0.75rem;
  color: var(--wood-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.testimonial-location svg {
  width: 12px;
  height: 12px;
}

/* ============================================
   9. CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--wood-900);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--wood-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.contact-info-text .ci-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-500);
  margin-bottom: 4px;
}

.contact-info-text .ci-value {
  font-size: 0.95rem;
  color: var(--wood-100);
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wood-400);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: var(--wood-950);
  border: 1px solid var(--wood-700);
  border-radius: 10px;
  color: var(--wood-100);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a2733f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--wood-950);
  color: var(--wood-100);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--wood-600), var(--gold));
  color: var(--wood-50);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(162, 115, 63, 0.3);
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  color: #4ade80;
  font-size: 0.9rem;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* ============================================
   10. FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg, var(--wood-950));
  padding: 60px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--wood-300), var(--gold), transparent);
  opacity: 0.6;
}

.footer-brand {
  padding-bottom: 32px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: var(--footer-fs, 0.9rem);
  color: var(--footer-text, var(--wood-400));
  line-height: 1.8;
  margin-top: 16px;
  max-width: 340px;
}

.footer-col {
  padding-bottom: 32px;
}

.footer-col h4 {
  font-size: var(--footer-hs, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--footer-heading, var(--wood-200));
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  list-style: none;
}

.footer-col ul li a {
  font-size: var(--footer-fs, 0.85rem);
  color: var(--footer-link, var(--wood-400));
  transition: color 0.3s ease, padding-left 0.3s ease;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--footer-link-hover, var(--gold));
  padding-left: 6px;
}

/* Legal links */
.footer-legal {
  padding: 0 0 24px;
  margin-bottom: 0;
}

.footer-legal-title {
  font-size: var(--footer-hs, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--footer-heading, var(--wood-200));
  margin-right: 16px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-legal-link {
  font-size: var(--footer-ls, 0.85rem);
  color: var(--footer-legal, var(--wood-400));
  transition: color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.footer-legal-link:hover {
  color: var(--footer-link-hover, var(--gold));
}

/* Newsletter */
.footer-newsletter {
  padding-bottom: 32px;
}

.footer-newsletter h4 {
  font-size: var(--footer-hs, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--footer-heading, var(--wood-200));
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.footer-newsletter h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-newsletter > p {
  font-size: var(--footer-fs, 0.85rem);
  color: var(--footer-text, var(--wood-400));
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--wood-900);
  border: 1px solid var(--wood-700);
  border-radius: 8px;
  color: var(--wood-100);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.footer-newsletter-input:focus {
  border-color: var(--gold);
}

.footer-newsletter-input::placeholder {
  color: var(--wood-600);
}

.footer-newsletter-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold), var(--wood-400));
  color: var(--wood-950);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.footer-newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 163, 115, 0.3);
}

/* Social links */
.footer-social {
  display: flex;
  gap: 12px;
  padding-bottom: 32px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--wood-900);
  border: 1px solid var(--wood-800);
  color: var(--footer-text, var(--wood-400));
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--gold);
  color: var(--wood-950);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(212, 163, 115, 0.25);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: var(--footer-cs, 0.8rem);
  color: var(--wood-600);
}

.footer-back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wood-900);
  border: 1px solid var(--wood-700);
  color: var(--wood-400);
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-back-top:hover {
  background: var(--gold);
  color: var(--wood-950);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Footer: blocks stacked vertically (one under another) */
.footer > .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Legal, social & newsletter full width by default */
.footer-legal,
.footer-social,
.footer-newsletter {
  width: 100%;
}

/* Block alignment: full = center text + full width, others = auto */
.footer-block-align[data-align-desktop="full"] {
  width: 100%;
}

.footer-block-align[data-align-desktop="left"] {
  align-self: flex-start;
}
.footer-block-align[data-align-desktop="center"] {
  align-self: center;
}
.footer-block-align[data-align-desktop="right"] {
  align-self: flex-end;
}

/* Mobile overrides for footer */
@media (max-width: 768px) {
  .footer > .container {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .footer > .container {
    gap: 0;
  }
  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .footer-legal-link {
    padding: 8px 0;
  }
  .footer-legal-title {
    display: block;
    margin-bottom: 8px;
    margin-right: 0;
  }
  .footer-newsletter-form {
    flex-direction: column;
  }
  .footer-newsletter-btn {
    width: 100%;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   10.4 FOOTER BLOCK ALIGNMENT SYSTEM
   ============================================ */

/* Базові класи для вирівнювання блоків підвалу */
.footer-block-align {
  transition: text-align 0.3s ease;
}

/* === DESKTOP alignment via data-align-desktop attribute === */

/* Left (default — no extra styles needed) */

/* Center */
.footer-block-align[data-align-desktop="center"] {
  text-align: center;
  align-self: center;
}
.footer-brand[data-align-desktop="center"] .logo { justify-content: center; }
.footer-brand[data-align-desktop="center"] p { margin-left: auto; margin-right: auto; }
.footer-col[data-align-desktop="center"] h4::after { left: 50%; transform: translateX(-50%); }
.footer-col[data-align-desktop="center"] ul { align-items: center; }
.footer-newsletter[data-align-desktop="center"] h4::after { left: 50%; transform: translateX(-50%); }
.footer-legal[data-align-desktop="center"] .footer-legal-links { justify-content: center; }
.footer-social[data-align-desktop="center"] { justify-content: center; }

/* Right */
.footer-block-align[data-align-desktop="right"] {
  text-align: right;
  align-self: flex-end;
}
.footer-col[data-align-desktop="right"] h4::after { left: auto; right: 0; }
.footer-col[data-align-desktop="right"] ul { align-items: flex-end; }
.footer-newsletter[data-align-desktop="right"] h4::after { left: auto; right: 0; }
.footer-legal[data-align-desktop="right"] .footer-legal-links { justify-content: flex-end; }
.footer-social[data-align-desktop="right"] { justify-content: flex-end; }

/* Full width */
.footer-block-align[data-align-desktop="full"] {
  text-align: center;
  width: 100%;
}
.footer-brand[data-align-desktop="full"] .logo { justify-content: center; }
.footer-brand[data-align-desktop="full"] p { margin-left: auto; margin-right: auto; max-width: 100%; }
.footer-col[data-align-desktop="full"] h4::after { left: 50%; transform: translateX(-50%); }
.footer-col[data-align-desktop="full"] ul { align-items: center; }
.footer-newsletter[data-align-desktop="full"] h4::after { left: 50%; transform: translateX(-50%); }
.footer-legal[data-align-desktop="full"] .footer-legal-links { justify-content: center; }
.footer-social[data-align-desktop="full"] { justify-content: center; }

/* === MOBILE alignment override via data-align-mobile attribute === */
@media (max-width: 768px) {
  /* Reset desktop alignment */
  .footer-block-align {
    text-align: left !important;
    align-self: auto !important;
    width: auto !important;
  }

  /* Mobile: Left (default — just reset above) */

  /* Mobile: Center */
  .footer-block-align[data-align-mobile="center"] {
    text-align: center !important;
    align-self: center !important;
  }
  .footer-brand[data-align-mobile="center"] .logo { justify-content: center; }
  .footer-brand[data-align-mobile="center"] p { margin-left: auto; margin-right: auto; }
  .footer-col[data-align-mobile="center"] h4::after { left: 50%; transform: translateX(-50%); }
  .footer-col[data-align-mobile="center"] ul { align-items: center; }
  .footer-newsletter[data-align-mobile="center"] h4::after { left: 50%; transform: translateX(-50%); }
  .footer-legal[data-align-mobile="center"] .footer-legal-links { justify-content: center; }
  .footer-social[data-align-mobile="center"] { justify-content: center; }

  /* Mobile: Right */
  .footer-block-align[data-align-mobile="right"] {
    text-align: right !important;
    align-self: flex-end !important;
  }
  .footer-col[data-align-mobile="right"] h4::after { left: auto; right: 0; }
  .footer-col[data-align-mobile="right"] ul { align-items: flex-end; }
  .footer-newsletter[data-align-mobile="right"] h4::after { left: auto; right: 0; }
  .footer-legal[data-align-mobile="right"] .footer-legal-links { justify-content: flex-end; }
  .footer-social[data-align-mobile="right"] { justify-content: flex-end; }

  /* Mobile: Full width */
  .footer-block-align[data-align-mobile="full"] {
    text-align: center !important;
    width: 100% !important;
  }
  .footer-brand[data-align-mobile="full"] .logo { justify-content: center; }
  .footer-brand[data-align-mobile="full"] p { margin-left: auto; margin-right: auto; max-width: 100%; }
  .footer-col[data-align-mobile="full"] h4::after { left: 50%; transform: translateX(-50%); }
  .footer-col[data-align-mobile="full"] ul { align-items: center; }
  .footer-newsletter[data-align-mobile="full"] h4::after { left: 50%; transform: translateX(-50%); }
  .footer-legal[data-align-mobile="full"] .footer-legal-links { justify-content: center; }
  .footer-social[data-align-mobile="full"] { justify-content: center; }
}

/* ============================================
   10.5 LEGAL MODAL
   ============================================ */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.legal-modal {
  background: var(--wood-900);
  border: 1px solid var(--wood-700);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.legal-modal-overlay.open .legal-modal {
  transform: translateY(0);
}

.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: var(--wood-200);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold);
  transform: rotate(90deg);
}

.legal-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--wood-800);
  position: relative;
  flex-shrink: 0;
}

.legal-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wood-50);
  line-height: 1.3;
  padding-right: 50px;
}

.legal-modal-body {
  padding: 28px 32px 32px;
  overflow-y: auto;
  flex: 1;
  color: var(--wood-200);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-modal-body h1,
.legal-modal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wood-50);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wood-800);
}

.legal-modal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wood-100);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-body ul,
.legal-modal-body ol {
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-modal-body ul {
  list-style: disc;
}

.legal-modal-body ol {
  list-style: decimal;
}

.legal-modal-body li {
  margin-bottom: 6px;
}

.legal-modal-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 163, 115, 0.3);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.legal-modal-body a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.legal-modal-body hr {
  border: none;
  border-top: 1px solid var(--wood-800);
  margin: 20px 0;
}

.legal-modal-body strong {
  color: var(--wood-100);
  font-weight: 600;
}

.legal-modal-body em {
  font-style: italic;
  color: var(--wood-300);
}

.legal-modal-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--wood-300);
  font-style: italic;
}

.legal-modal-loader {
  text-align: center;
  padding: 40px;
  color: var(--wood-500);
  font-size: 1rem;
}

/* Legal modal responsive */
@media (max-width: 768px) {
  .legal-modal-overlay {
    padding: 10px;
  }

  .legal-modal {
    max-height: 90vh;
    border-radius: 16px;
  }

  .legal-modal-header {
    padding: 20px 20px 16px;
  }

  .legal-modal-title {
    font-size: 1.25rem;
  }

  .legal-modal-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .legal-modal-body h2 {
    font-size: 1.15rem;
  }

  .legal-modal-body h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .legal-modal-overlay {
    padding: 0;
  }

  .legal-modal {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .legal-modal-header {
    padding: 16px 16px 12px;
  }

  .legal-modal-title {
    font-size: 1.1rem;
  }

  .legal-modal-body {
    padding: 16px;
    font-size: 0.88rem;
  }
}

/* ============================================
   11. FLOATING CTA
   ============================================ */
.sticky-blocks {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn-order {
  background: linear-gradient(135deg, #d4a373, #8b5a2b);
  color: #fdf8f0;
  box-shadow: 0 4px 20px rgba(212, 163, 115, 0.4);
  animation: pulse-glow 2s infinite;
}

.float-btn-scroll-order {
  background: linear-gradient(135deg, #8b5a2b, #5c3a1e);
  color: #fdf8f0;
  box-shadow: 0 4px 20px rgba(139, 90, 43, 0.5);
  animation: pulse-glow 2s infinite;
}

.float-btn-call {
  background: linear-gradient(135deg, var(--wood-600), var(--gold));
  color: var(--wood-50);
  box-shadow: 0 4px 20px rgba(162, 115, 63, 0.4);
  animation: pulse-glow 2s infinite;
}

.float-btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.float-btn svg {
  color: inherit;
  flex-shrink: 0;
}

/* Кнопка з текстом — продовгувата (pill-подібна) */
.float-btn.float-btn-has-text {
  width: auto;
  min-width: 56px;
  height: 48px;
  border-radius: 28px;
  padding: 0 18px 0 14px;
  gap: 8px;
}

.float-btn-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.floating-cta {
  position: relative;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(162, 115, 63, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(212, 163, 115, 0.6); }
}

.floating-modal {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: var(--wood-900);
  border: 1px solid var(--wood-700);
  border-radius: 14px;
  padding: 24px;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-modal.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.floating-modal h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wood-100);
  margin-bottom: 12px;
}

.floating-modal .fm-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-modal .fm-phone svg {
  width: 18px;
  height: 18px;
}

.floating-modal input,
.floating-modal textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--wood-950);
  border: 1px solid var(--wood-700);
  border-radius: 8px;
  color: var(--wood-100);
  font-size: 0.85rem;
  margin-bottom: 10px;
  outline: none;
  font-family: var(--font-family);
}

.floating-modal input:focus,
.floating-modal textarea:focus {
  border-color: var(--gold);
}

.floating-modal textarea {
  min-height: 70px;
  resize: vertical;
}

.floating-modal button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--wood-600), var(--gold));
  color: var(--wood-50);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.floating-modal button:hover {
  transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .header .btn-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header .container {
    justify-content: flex-start;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }

  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-item.span-2-col {
    grid-column: span 1;
  }

  .gallery-item.span-2-row {
    grid-row: span 1;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .benefits-row {
    grid-template-columns: 1fr;
  }

  .hero-title-wood {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-title-sub {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-solid, .btn-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .features-showcase {
    aspect-ratio: 16/9;
  }

  .features-showcase-overlay h3 {
    font-size: 1.3rem;
  }

  .floating-modal {
    right: -12px;
    width: 280px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-auto-rows: 130px;
  }

  .color-selector {
    gap: 10px;
  }

  .color-swatch {
    width: 30px;
    height: 30px;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quantity-selector {
    justify-content: center;
  }

  .btn-solid, .btn-outline {
    max-width: 100%;
  }

  .sticky-blocks {
    right: 16px;
    bottom: 16px;
    gap: 10px;
    align-items: flex-end;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-btn.float-btn-has-text {
    height: 44px;
    border-radius: 22px;
    padding: 0 14px 0 12px;
  }

  .float-btn-label {
    font-size: 0.78rem;
  }
}

/* Додати для fade при зміні кольору */
.product-image-container img.fading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.how-video video {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
