/* ===== MODERN DESIGN SYSTEM ===== */
:root {
  --font-primary: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Цветовая палитра - СВЕТЛАЯ НЕЙТРАЛЬНАЯ */
  --bg: #fbfcfe;                   /* Светлый фон, не чисто белый */
  --bg-gradient: linear-gradient(135deg, #f7f9fc 0%, #f5f8fb 52%, #f2f5f8 100%);
  --panel: #f7f9fc;                /* Светло-серые панели */
  --panel-2: #eef2f7;              /* Чуть темнее панели */
  --panel-hover: #e6ecf3;          /* Цвет при наведении */
  --text: #222222;                 /* ЧЕРНЫЙ текст */
  --text-muted: #4f5863;           /* Темно-серый текст */
  --muted: #66707c;                /* Серый текст */

  /* Брендовые цвета - черно-белая палитра */
  --brand: #222222;                /* Темно-серый */
  --brand-2: #222222;              /* Чёрный */
  --brand-3: #434c57;              /* Темно-серый */
  --accent: #5f6b78;               /* Серый акцент */
  --accent-2: #9eabb8;             /* Светло-серый акцент */
  --success: #1f7a45;              /* Зеленый статус */
  --error: #b33a45;                /* Красный статус */

  /* Улучшенные градиенты - черно-белые */
  --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --gradient-panel: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(52, 58, 64, 0.15) 0%, rgba(33, 37, 41, 0.15) 100%);

  /* Размеры и отступы */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Тени - для светлой темы */
  --shadow: 0 20px 40px rgba(34, 34, 34,.1);
  --shadow-lg: 0 25px 50px rgba(34, 34, 34,.15);
  --shadow-glow: 0 0 40px rgba(52, 58, 64, 0.15);
  --shadow-brand: 0 8px 32px rgba(52, 58, 64, 0.2);

  /* Анимации */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* ===== ENHANCED ANIMATIONS FOR LIVELY HOMEPAGE ===== */

/* Page load animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(52, 58, 64, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(52, 58, 64, 0);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(52, 58, 64, 0.3);
  }
  50% {
    text-shadow: 0 0 30px rgba(52, 58, 64, 0.4), 0 0 40px rgba(52, 58, 64, 0.2);
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px) rotateY(0deg);
  }
  50% {
    transform: translateY(-15px) rotateY(5deg);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-text-reveal {
  animation: textReveal 1.2s ease-out;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.rotate-animation {
  animation: rotate 3s linear infinite;
}

.bounce-animation {
  animation: bounce 2s infinite;
}

.float-animation {
  animation: floatUp 3s ease-in-out infinite;
}

.glow-text {
  animation: glow 2s ease-in-out infinite;
}

.floating-card {
  animation: cardFloat 4s ease-in-out infinite;
}

/* ===== PHOTO CAROUSEL ===== */
.photo-carousel {
  margin: 0;
}

.hero-intro {
  padding: 36px 0 28px;
  text-align: center;
}

.hero-intro-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.hero-intro .hero-text {
  max-width: 900px;
  margin: 0 auto;
}

.hero-intro .hero-actions {
  margin-top: 20px;
  justify-content: center;
}

.hero-intro .hero-description {
  max-width: 760px;
  margin: 0 auto 32px;
}

.photo-carousel.full-bleed {
  width: 100%;
  padding: 0;
}

.photo-carousel .section-header {
  max-width: 1200px;
  margin: 0 auto 22px;
  padding: 0 20px;
}

.carousel-shell {
  position: relative;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible; /* Allow overflow for the 3D effect */
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 0;
  background: #0f0f10;
  border: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 20px; /* Add gap between slides */
}

.carousel-slide {
  min-width: 33.333%; /* Show 3 slides at a time with one centered */
  position: relative;
  padding: 0 10px; /* Add some spacing between slides */
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide-image-container {
  width: 100%;
  height: 550px; /* Fixed height as requested */
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(34, 34, 34, 0.3);
  transition: all 0.6s ease;
  position: relative;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio without distortion */
  display: block;
  transition: transform 0.6s ease;
}

/* Active slide - larger and brighter */
.carousel-slide.active-slide {
  transform: scale(1.1); /* Active slide is slightly larger */
  z-index: 2;
  opacity: 1;
}

.carousel-slide.active-slide .slide-image-container {
  box-shadow: 0 15px 40px rgba(34, 34, 34, 0.4);
  transform: translateY(-10px);
}

/* Inactive slides - smaller and dimmer */
.carousel-slide.inactive-slide {
  opacity: 0.5;
  z-index: 1;
}

.carousel-slide.inactive-slide .slide-image-container {
  box-shadow: 0 8px 20px rgba(34, 34, 34, 0.2);
}

/* Hover effect on images */
.carousel-slide:hover .slide-image-container {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(34, 34, 34, 0.35);
}

.carousel-slide:hover .carousel-image {
  transform: scale(1.05);
}

/* Adjust viewport to accommodate multiple visible slides */
.carousel-viewport {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 80px 0; /* Add vertical padding to accommodate lifted center slide */
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.carousel-shell:hover .carousel-slide img {
  transform: scale(1);
  filter: none;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px 0 20px;
  background: transparent;
}

/* Стрелки поверх карусели — полупрозрачный круг как на референсе */
.carousel-arrows {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 28px);
  pointer-events: none;
  z-index: 4;
}

.carousel-arrows .carousel-arrow {
  pointer-events: auto;
}

.carousel-arrow {
  border: none;
  background: transparent;
  color: inherit;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-size: 0;
}

.carousel-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(34, 34, 34, 0.2);
}

.carousel-arrow:hover .carousel-arrow-circle {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(34, 34, 34, 0.3);
}

.carousel-arrow:active .carousel-arrow-circle {
  transform: scale(0.95);
}

.carousel-arrow-icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
}
.carousel-arrow-num {
  font-variant-numeric: tabular-nums;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-dot {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  width: 46px;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.12);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 4vw, 56px);
  color: #ffffff;
}

.carousel-title {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(34, 34, 34,0.35);
}

.carousel-caption {
  max-width: 680px;
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 10px 30px rgba(34, 34, 34,0.45);
  background: rgba(34, 34, 34,0.3);
  padding: 12px 16px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

@media (max-width: 1024px) {
  .carousel-slide {
    min-width: 50%;
    padding: 0 8px;
  }
  
  .slide-image-container {
    height: 400px;
  }
  
  .carousel-track {
    gap: 15px;
  }
  
  .carousel-arrow-circle {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    min-width: 100%;
    padding: 0 5px;
  }
  
  .slide-image-container {
    height: 300px;
  }
  
  .carousel-track .carousel-slide:nth-child(2) {
    transform: scale(1); /* Remove extra scale on mobile */
  }
  
  .carousel-controls {
    gap: 12px;
    padding: 14px 0 20px;
  }

  .carousel-arrow-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 13px;
  }

  .carousel-dot {
    width: 24px;
  }

  .carousel-dot.active {
    width: 36px;
  }

  .carousel-title {
    text-transform: none;
  }
}

/* Hover animations */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(34, 34, 34, 0.1);
}

.hover-scale {
  transition: var(--transition);
}

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

/* Enhanced hero animations */
.hero-badge {
  animation-delay: 0.2s;
}

.hero-title {
  animation-delay: 0.4s;
}

.hero-description {
  animation-delay: 0.6s;
}

.hero-actions {
  animation-delay: 0.8s;
}

.hero-features {
  animation-delay: 1s;
}

.hero-visual {
  animation-delay: 0.5s;
}

/* Portfolio card stagger animation */
.showcase-card {
  animation: slideUp 0.6s ease-out;
}

.showcase-card:nth-child(1) { animation-delay: 0.1s; }
.showcase-card:nth-child(2) { animation-delay: 0.2s; }
.showcase-card:nth-child(3) { animation-delay: 0.3s; }

/* Process timeline animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.process-step:nth-child(odd) {
  animation: slideInLeft 0.6s ease-out;
}

.process-step:nth-child(even) {
  animation: slideInRight 0.6s ease-out;
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }
.process-step:nth-child(4) { animation-delay: 0.8s; }

/* Review cards animation */
.review-card {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

/* Scroll-triggered animations */
.section {
  animation: fadeIn 0.8s ease-out;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced decorative elements */
.decorative-elements {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #222;
  border-radius: 50%;
  box-shadow: 0 0 10px #222, 0 0 20px var(--accent);
  animation: sparkle-animation 3s infinite;
}

.sparkle-1 {
  top: 15%;
  left: 25%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 70%;
  left: 80%;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 40%;
  left: 70%;
  animation-delay: 2s;
}

@keyframes sparkle-animation {
  0%, 100% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }
}

.floating-emoji {
  position: absolute;
  font-size: 24px;
  opacity: 0.8;
  animation: float-emoji 8s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(34, 34, 34, 0.5));
}

.emoji-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.emoji-2 {
  top: 60%;
  left: 85%;
  animation-delay: 2s;
}

.emoji-3 {
  top: 80%;
  left: 25%;
  animation-delay: 4s;
}

.emoji-4 {
  top: 30%;
  left: 80%;
  animation-delay: 6s;
}

@keyframes float-emoji {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(10deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-10deg);
  }
}

/* Новые декоративные формы */
.floating-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.2;
  animation: morph-shape 15s infinite ease-in-out;
  filter: blur(2px);
}

.shape-1 {
  top: 10%;
  left: 10%;
  width: 40px;
  height: 40px;
  background: var(--brand);
  animation-delay: 0s;
}

.shape-2 {
  top: 75%;
  right: 15%;
  width: 30px;
  height: 30px;
  background: var(--accent);
  animation-delay: 3s;
}

.shape-3 {
  bottom: 20%;
  left: 20%;
  width: 25px;
  height: 25px;
  background: #495057;
  animation-delay: 6s;
}

@keyframes morph-shape {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: rotate(90deg) scale(1.2);
  }
  50% {
    border-radius: 30% 30% 70% 70% / 70% 70% 30% 30%;
    transform: rotate(180deg) scale(0.8);
  }
  75% {
    border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    transform: rotate(270deg) scale(1.1);
  }
}

/* Пульсирующие круги */
.pulse-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.3;
  animation: pulse-circle 4s infinite ease-in-out;
}

.circle-1 {
  top: 40%;
  right: 20%;
  width: 60px;
  height: 60px;
  border-color: var(--brand);
  animation-delay: 0s;
}

.circle-2 {
  bottom: 30%;
  left: 40%;
  width: 40px;
  height: 40px;
  border-color: var(--accent);
  animation-delay: 2s;
}

@keyframes pulse-circle {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(34, 34, 34, 0.1) 100%);
  pointer-events: none;
}

/* Эффект глубины */
.depth-effect {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(52, 58, 64, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(108, 117, 125, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 50% 20%, rgba(173, 181, 189, 0.05) 0%, transparent 25%);
  opacity: 0.7;
  animation: depth-shift 20s infinite linear;
  pointer-events: none;
}

@keyframes depth-shift {
  0% {
    background-position:
      30% 30%,
      70% 70%,
      50% 20%;
  }
  25% {
    background-position:
      35% 35%,
      65% 65%,
      45% 25%;
  }
  50% {
    background-position:
      40% 30%,
      60% 70%,
      55% 15%;
  }
  75% {
    background-position:
      35% 25%,
      65% 75%,
      45% 25%;
  }
  100% {
    background-position:
      30% 30%,
      70% 70%,
      50% 20%;
  }
}

/* Enhanced floating elements */
.floating-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(34, 34, 34,0.1));
  transition: all 0.3s ease;
}

.floating-element:hover {
  animation-duration: 2s;
  filter: drop-shadow(0 8px 20px rgba(34, 34, 34,0.2));
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(-10px) rotate(-5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Стили для SVG иконок */
.furniture-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(34, 34, 34,0.1));
  transition: all 0.3s ease;
  animation: icon-rotate 8s linear infinite;
}

@keyframes icon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.chair-icon {
  color: #343a40; /* Темно-серый цвет для стула */
  text-shadow: 0 0 20px rgba(52, 58, 64, 0.3);
  animation-delay: 0s;
}

.bed-icon {
  color: #495057; /* Темно-серый цвет для кровати */
  text-shadow: 0 0 20px rgba(73, 80, 87, 0.3);
  animation-delay: 1s;
}

.cabinet-icon {
  color: #6c757d; /* Серый цвет для шкафа */
  text-shadow: 0 0 20px rgba(108, 117, 125, 0.3);
  animation-delay: 2s;
}

.floating-element:hover .furniture-icon {
  transform: scale(1.3) rotate(15deg);
  filter: drop-shadow(0 8px 20px rgba(34, 34, 34,0.2)) brightness(0.9);
}

.element-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.element-2 {
  top: 50%;
  right: 20%;
  animation-delay: 1s;
}

.element-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
}

.hero {
  min-height: 90vh; /* Further reduced height */
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible; /* Changed from hidden to visible to prevent clipping */
  padding: 20px 0 20px; /* Reduced top padding to move hero higher */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(52, 58, 64, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 58, 64, 0.1);
  border: 1px solid rgba(52, 58, 64, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.badge-icon {
  animation: sparkle 2s infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
}

.hero-title {
  font-size: clamp(32px, 6vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 24px 0;
  color: var(--text);
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-brand);
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(52, 58, 64, 0.3);
}

.btn-outline {
  background: rgba(34, 34, 34, 0.03);
  color: var(--text);
  border: 1px solid rgba(34, 34, 34, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  opacity: 0.1;
}

.btn-outline:hover {
  background: rgba(34, 34, 34, 0.08);
  border-color: rgba(34, 34, 34, 0.2);
  transform: translateY(-2px);
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.feature-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 400px;
  height: 500px;
  background: var(--gradient-panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(34, 34, 34, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  position: relative;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}







/* Улучшенные анимации для плавающих элементов */




/* Стили для SVG иконок */


















/* Process Timeline */
.delivery-hero {
  background: rgba(34, 34, 34, 0.02);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(34, 34, 34, 0.05);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-brand);
}

.step-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Hero Visual */


.hero-card {
  width: 400px;
  height: 500px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(34, 34, 34, 0.1);
  position: relative;
  overflow: hidden;
  animation: glow-pulse 3s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 20px rgba(52, 58, 64, 0.3), 0 0 40px rgba(52, 58, 64, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(108, 117, 125, 0.4), 0 0 60px rgba(73, 80, 87, 0.3);
  }
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(34, 34, 34, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(34, 34, 34, 0.1) 0%,
    rgba(34, 34, 34, 0.05) 100%);
  position: relative;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 34, 34, 0.2) 0%, transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(34, 34, 34, 0.1) 0%, transparent 15%);
  opacity: 0.3;
}



/* Добавим декоративные элементы */
.hero-card::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(34, 34, 34, 0.2);
  border-radius: 50%;
  animation: orbit 15s linear infinite;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

.hero-card .orbit-dot {
  position: absolute;
}

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


/* ===== ENHANCED WORKS PAGE STYLES ===== */
.works-hero {
  background: rgba(34, 34, 34, 0.02);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(34, 34, 34, 0.05);
  margin-bottom: 60px;
}

.works-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(34, 34, 34, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 34, 34, 0.1);
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(34, 34, 34, 0.05);
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.filter-tab:hover {
  background: rgba(34, 34, 34, 0.08);
  color: var(--text);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.tab-icon {
  font-size: 16px;
}

/* Enhanced Portfolio Grid */
.portfolio-enhanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* Улучшенная сетка для равномерного распределения */
@media (min-width: 1200px) {
  .portfolio-enhanced-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .portfolio-enhanced-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .portfolio-enhanced-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background: rgba(34, 34, 34, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 34, 34, 0.05);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 350px; /* Ensure consistent height */
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 34, 34, 0.1);
}

.card-image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-image-placeholder {
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.06), rgba(34, 34, 34, 0.12));
}

.portfolio-card-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.portfolio-card:hover .image-overlay {
  opacity: 1;
}

.quick-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(34, 34, 34, 0.9);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.quick-view-btn:hover {
  background: #222;
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.badge-category {
  background: rgba(34, 34, 34, 0.7);
  color: white;
}

.badge-featured {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

.portfolio-card .card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card .card-main-content {
  flex: 1;
}

/* Default card title styles */
.portfolio-card .card-title,
.showcase-card .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  position: static;
}

.portfolio-card .card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px 0;
  min-height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-details {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.detail-icon {
  font-size: 14px;
}

/* Card Footer */
.showcase-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.details-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(52, 58, 64, 0.1);
  color: var(--brand);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.details-btn:hover {
  background: rgba(52, 58, 64, 0.2);
  transform: translateX(4px);
}



.view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(52, 58, 64, 0.1);
  color: var(--brand);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.view-btn:hover {
  background: rgba(52, 58, 64, 0.2);
  transform: translateX(4px);
}

.btn-arrow {
  transition: var(--transition);
}

.view-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.card-badges {
}

/* Portfolio CTA */
.works-cta {
  background: var(--gradient-panel);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  border: 1px solid rgba(34, 34, 34, 0.1);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.works-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(52, 58, 64, 0.08) 0%, transparent 70%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px 0;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.btn-icon {
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-card {
    width: 100%;
    max-width: 350px;
    height: 400px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-enhanced-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: center;
  }

  .works-hero {
    padding: 40px 30px;
  }

  .delivery-hero {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

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

  .btn {
    justify-content: center;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-btn {
    justify-content: center;
  }
}
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Improved scroll offset for anchor links */
  overflow-x: hidden;
  padding-top: 50px; /* Optimal padding - not too much, not too little */
}

button,
input,
select,
textarea {
  font-family: var(--font-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* ===== УТИЛИТЫ ===== */
.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
  position: relative;
}

.section + .section {
  margin-top: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
  margin: 0;
}

.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 84px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(1.2) blur(20px);
  -webkit-backdrop-filter: saturate(1.2) blur(20px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(34, 34, 34, 0.05);
  height: 70px;
  box-shadow: 0 5px 20px rgba(34, 34, 34, 0.1);
}

.navbar.scrolled .nav-inner {
  height: 70px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 20px;
  flex-shrink: 0;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(34, 34, 34,0.2) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

/* New logo image styles */
.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: var(--shadow-brand);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(34, 34, 34, 0.2);
}

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

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: rgba(34, 34, 34, 0.04);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  padding: 12px 20px;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  position: relative;
}

.nav a:hover {
  color: var(--text);
  background: rgba(34, 34, 34, 0.08);
  transform: translateY(-2px);
}

/* Индикатор активной страницы */
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(52, 58, 64, 0.3);
  animation: indicator-pulse 2s infinite;
}

@keyframes indicator-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(52, 58, 64, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(52, 58, 64, 0.5);
  }
}

.nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(52, 58, 64, 0.3);
  animation: indicator-grow 0.3s ease-out;
}

@keyframes indicator-grow {
  from {
    width: 0;
  }
  to {
    width: 40%;
  }
}

/* Улучшенный эффект при наведении */
.nav a {
  position: relative;
  transition: color 0.3s ease;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 3px;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.nav a:hover::before {
  width: 40%;
  box-shadow: 0 0 10px rgba(52, 58, 64, 0.3);
}

/* Right side container for navigation actions */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 14px;
  background: var(--brand-2);
  color: #fff;
  border-radius: 10px;
  z-index: 1100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-brand);
  color: white;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow-brand);
  border: 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(52, 58, 64, 0.3);
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(34, 34, 34,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.nav-cta:hover::before {
  transform: translateX(100%);
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 20px 24px;
    background: #ffffff;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 20px 50px rgba(34, 34, 34, 0.18);
    z-index: 999;
  }

  .nav.open a {
    padding: 12px 16px;
    border-radius: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    width: 100%;
  }

  .nav.open .mega-dropdown {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 0;
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav.open .mega-column {
    min-width: 140px;
    padding-right: 0;
  }

  .nav-right {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .nav-right {
    gap: 8px;
  }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 34, 34, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--gradient-panel);
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(50px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(34, 34, 34, 0.1);
  transform: scale(1.1);
}

.modal-body {
  padding: 24px 28px 28px;
}

.modal-subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ===== ФОРМЫ ===== */
.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(34, 34, 34, 0.05);
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.1);
  background: rgba(34, 34, 34, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(52, 58, 64, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(34, 34, 34, 0.08);
  color: var(--text);
  border: 1px solid rgba(34, 34, 34, 0.15);
}

.btn-secondary:hover {
  background: rgba(34, 34, 34, 0.12);
  transform: translateY(-1px);
}

.btn-loading,
.btn-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(34, 34, 34, 0.3);
  border-top: 2px solid var(--text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-result {
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.form-result.success {
  background: rgba(34, 34, 34, 0.05);
  border: 1px solid rgba(34, 34, 34, 0.16);
  color: var(--success);
}

.form-result.error {
  background: rgba(34, 34, 34, 0.05);
  border: 1px solid rgba(34, 34, 34, 0.16);
  color: var(--error);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 0; /* Removed all padding to move hero higher */
  margin-top: -20px; /* Negative margin to pull hero up */
}

/* ===== ENHANCED PORTFOLIO SHOWCASE ===== */
.portfolio-hero {
  background: rgba(34, 34, 34, 0.02);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(34, 34, 34, 0.05);
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(52, 58, 64, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.portfolio-hero > * {
  position: relative;
  z-index: 1;
}

.portfolio-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(52, 58, 64, 0.1);
  border: 1px solid rgba(52, 58, 64, 0.2);
  border-radius: var(--radius);
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.portfolio-view-all:hover {
  background: rgba(52, 58, 64, 0.2);
  border-color: rgba(52, 58, 64, 0.3);
  transform: translateY(-2px);
}

.arrow {
  transition: var(--transition);
}

.portfolio-view-all:hover .arrow {
  transform: translateX(4px);
}

/* Portfolio Showcase Grid */
.portfolio-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 60px 0 40px;
}

.showcase-card {
  background: rgba(34, 34, 34, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 34, 34, 0.05);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Ensure minimum height for consistent layout */
}

.showcase-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(34, 34, 34, 0.2);
  border-color: rgba(52, 58, 64, 0.2);
  background: rgba(34, 34, 34, 0.05);
}

/* Image Wrapper */
.card-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.showcase-card:hover .showcase-image {
  transform: scale(1.08);
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 34, 34, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.showcase-card:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition);
}

.showcase-card:hover .overlay-content {
  transform: translateY(0);
}

.quick-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(34, 34, 34, 0.95);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.quick-preview:hover {
  background: #222;
  transform: scale(1.05);
}

.preview-icon {
  font-size: 16px;
}

/* Category Badge */
.card-category {
  position: absolute;
  top: 16px;
  right: 16px;
}

.category-badge {
  padding: 6px 12px;
  background: rgba(34, 34, 34, 0.8);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Card Content */
.showcase-card .card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  margin-bottom: 16px;
}

.card-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-main-content {
  flex: 1;
}

.showcase-card .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

/* Card meta styles */
.card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* Ensure titles in new card structure are properly positioned */
.card-main-content .card-title,
.card-content .card-title {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-shadow: none !important;
}

.meta-date,
.meta-material {
  display: flex;
  align-items: center;
  gap: 4px;
}

.showcase-card .card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px 0;
  min-height: 42px; /* Use min-height instead of fixed height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Allow 3 lines */
  -webkit-box-orient: vertical;
}

/* Card Footer */




.details-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Portfolio CTA */
.portfolio-cta {
  text-align: center;
  padding: 40px;
  background: rgba(34, 34, 34, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 34, 34, 0.05);
  margin-top: 40px;
}

.cta-text {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}



/* No Works State */
.no-works {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-works h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-hero {
    padding: 40px 30px;
  }

  .portfolio-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0 30px;
  }

  .showcase-card .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .details-btn {
    justify-content: center;
  }

  .portfolio-cta {
    padding: 30px 20px;
  }

  /* Fix for works page cards */
  .portfolio-enhanced-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    padding: 30px 20px;
  }

  .showcase-card .card-content {
    padding: 20px;
  }

  .card-meta {
    flex-direction: column;
    gap: 8px;
  }

  /* Ensure our button styles are consistent on mobile */
  .portfolio-card .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-btn {
    justify-content: center;
    width: 100%;
  }
}


.feature {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(34, 34, 34, 0.2);
  border-color: rgba(52, 58, 64, 0.3);
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
}

.feature .icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 12px 24px rgba(52, 58, 64, 0.2);
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-brand);
}

.feature .icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(34, 34, 34,0.2) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.feature h4 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
  transition: var(--transition);
}

.feature:hover h4 {
  color: var(--brand);
}

.feature p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  transition: var(--transition);
  font-size: 16px;
}

.feature:hover p {
  color: var(--text);
}

/* ===== ПОРТФОЛИО ===== */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  background: var(--gradient-panel);
  border: 1px solid rgba(34, 34, 34,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(52,58,64,.2), rgba(173,181,189,.15), rgba(108,117,125,.15));
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 34, 34,.14);
}

.portfolio-item:hover::before {
  opacity: .25;
}

.portfolio-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

/* Portfolio item styles (old card system) */
.portfolio-item .card-title {
  position: absolute;
  left: 16px;
  bottom: 64px;
  z-index: 2;
  font-weight: 800;
  font-size: 18px;
  color: #222;
  text-shadow: 0 4px 16px rgba(34, 34, 34,.2);
}

/* New card system styles */
.portfolio-card .card-title,
.showcase-card .card-title {
  position: static;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-shadow: none;
}

.card-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: saturate(1.2) blur(6px);
  border: 1px solid rgba(34, 34, 34,.14);
  background: rgba(255,255,255,.35);
}

.card-meta {
  color: #495057cc;
  font-size: 13px;
}

.card-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.card-tags .badge {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  font-size: 12px;
  padding: 6px 10px;
}

.hover-panel {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(34, 34, 34,.65), rgba(34, 34, 34,.35) 40%, rgba(34, 34, 34,.2));
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-item:hover .hover-panel {
  opacity: 1;
}

.hover-desc {
  color: #e9ecef;
  max-width: 70%;
  line-height: 1.45;
  font-size: 14px;
}

.hover-meta {
  margin-top: 8px;
  font-size: 0.9em;
  opacity: 0.8;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ===== ОТЗЫВЫ - НОВЫЙ СОВРЕМЕННЫЙ ДИЗАЙН ===== */
.reviews {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.reviews .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 30px;
}

.reviews-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(34, 34, 34, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 34, 34, 0.08);
  min-width: 140px;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 8px;
}

.stars-display {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.star {
  font-size: 20px;
  color: #ffc107;
  transition: var(--transition);
}

.star.filled {
  color: #fd7e14;
  text-shadow: 0 0 10px rgba(253, 126, 20, 0.3);
}



.reviews-container {
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
  margin-bottom: 40px;
}

.reviews-track {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.reviews-track:active {
  cursor: grabbing;
}

.review-card {
  min-width: 380px;
  max-width: 420px;
  background: var(--gradient-panel);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.review-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(52, 58, 64, 0.2), rgba(173, 181, 189, 0.15), rgba(108, 117, 125, 0.15));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 34, 34, 0.15);
}

.review-card:hover::before {
  opacity: 0.3;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

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

.avatar-wrapper {
  position: relative;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  box-shadow: 0 8px 24px rgba(52, 58, 64, 0.2);
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  animation: shimmer 3s ease-in-out infinite;
}

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

.avatar-initial {
  position: relative;
  z-index: 1;
}

.verified-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.2);
  border: 2px solid var(--bg);
}

.verified-icon {
  font-size: 12px;
  color: white;
  font-weight: 900;
}

.client-details {
  flex: 1;
}

.client-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.separator {
  opacity: 0.5;
}

.client-type {
  color: var(--brand);
  font-weight: 600;
}

.review-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

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

.review-content {
  margin-bottom: 24px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px 0;
  font-style: italic;
  position: relative;
}

.review-text::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -20px;
  font-size: 60px;
  color: var(--brand);
  opacity: 0.3;
  font-family: var(--font-primary);
}

.review-project {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(34, 34, 34, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 34, 34, 0.08);
}

.project-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(34, 34, 34, 0.08);
}

.helpful-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 34, 34, 0.03);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.helpful-btn:hover {
  background: rgba(34, 34, 34, 0.08);
  border-color: rgba(34, 34, 34, 0.15);
  color: var(--text);
  transform: translateY(-2px);
}

.helpful-icon {
  font-size: 14px;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.source-icon {
  font-size: 14px;
}

/* Навигация карусели */
.reviews-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.05);
  border: 1px solid rgba(34, 34, 34, 0.1);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(34, 34, 34, 0.1);
  border-color: var(--brand);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-icon {
  font-size: 20px;
  font-weight: 900;
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--brand);
  box-shadow: 0 0 16px rgba(52, 58, 64, 0.3);
}

/* Призыв к действию */
.reviews-cta {
  background: var(--gradient-panel);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.reviews-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(52, 58, 64, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-visual {
  position: relative;
  z-index: 1;
}

.trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(34, 34, 34, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 34, 34, 0.08);
  transition: var(--transition);
}

.trust-item:hover {
  background: rgba(34, 34, 34, 0.08);
  transform: translateX(8px);
}

.trust-icon {
  font-size: 24px;
}

.trust-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Состояние без отзывов */
.no-reviews {
  text-align: center;
  padding: 80px 40px;
  background: rgba(34, 34, 34, 0.02);
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(34, 34, 34, 0.1);
  min-width: 100%;
}

.no-reviews-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.no-reviews h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 16px;
}

.no-reviews p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .reviews .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .review-card {
    min-width: 340px;
    max-width: 380px;
    padding: 24px;
  }

  .reviews-cta {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 40px;
  }

  .trust-indicators {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

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

  .review-card {
    min-width: 300px;
    max-width: 320px;
    padding: 20px;
  }

  .client-info {
    gap: 12px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .client-name {
    font-size: 16px;
  }

  .review-text {
    font-size: 15px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 16px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .trust-indicators {
    flex-direction: column;
  }
}

.review {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(34, 34, 34, 0.06);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(34, 34, 34,.1);
  display: grid;
  gap: 8px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 150px;
  max-height: 250px;
  min-width: 280px;
}

.review::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 34, 34, 0.08), transparent);
  transition: left 0.6s ease;
}

.review:hover::before {
  left: 100%;
}

.review:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(34, 34, 34,.2);
  border-color: rgba(52, 58, 64, 0.3);
}

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(34, 34, 34, 0.08);
  background: linear-gradient(270deg, var(--brand), var(--brand-2), #495057, #6c757d, #adb5bd, #343a40);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite, glowPulse 4s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(34, 34, 34,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.review:hover .avatar::before {
  transform: translateX(100%);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(52,58,64,.3), 0 0 14px rgba(108,117,125,.2); }
  50% { box-shadow: 0 0 14px rgba(52,58,64,.4), 0 0 22px rgba(108,117,125,.25); }
}

.avatar:hover {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 0 20px rgba(52,58,64,.6), 0 0 35px rgba(108,117,125,.4);
}

.review .name {
  font-weight: 800;
  transition: all 0.3s ease;
}

.review:hover .name {
  color: var(--brand);
  transform: translateX(4px);
}

.review .date {
  color: var(--muted);
  font-size: 12px;
  transition: all 0.3s ease;
}

.review:hover .date {
  color: var(--brand-2);
  transform: translateX(4px);
}

.review .body {
  color: var(--text);
  opacity: .9;
  transition: all 0.3s ease;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.review:hover .body {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--text);
}

/* ===== ДОСТАВКА ===== */
.delivery {
  background: var(--gradient-glow);
  border: 1px solid rgba(52, 58, 64, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.delivery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.05;
}

.delivery .section-title {
  margin-bottom: 12px;
}

/* ===== MINI MAP FOR CONTACTS ===== */
.contact-map {
  margin: 15px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  height: 200px;
}

.map-link {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.mini-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.mini-map {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--radius);
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #ff0000;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.map-overlay {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(34, 34, 34, 0.7);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.map-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.map-link:hover .map-overlay {
  background: rgba(34, 34, 34, 0.9);
}


/* ===== КОНТАКТЫ ===== */
.contacts-section {
  padding-top: 44px;
}

.contacts-hero {
  position: relative;
  display: block;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.contacts-hero::after {
  content: none;
}

.contacts-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.contacts-hero .section-title {
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.contacts-description {
  max-width: 44rem;
  line-height: 1.65;
  color: var(--furniture-text);
}

.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .contacts-hero {
    margin-bottom: 18px;
  }
}

.branch {
  background: var(--gradient-panel);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.branch:hover::before {
  transform: scaleX(1);
}

.branch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.branch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.branch-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.branch-icon {
  font-size: 20px;
}

.branch-name {
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 500;
}

.opening-hours {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.opening-hours-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.opening-hours-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hours-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(34, 34, 34, 0.04);
  border: 1px solid rgba(34, 34, 34, 0.08);
  font-size: 13px;
  transition: var(--transition-fast);
}

.hours-item:hover {
  background: rgba(34, 34, 34, 0.06);
  border-color: rgba(34, 34, 34, 0.12);
}

.hours-item .day {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.hours-item .time {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hours-item.closed {
  background: rgba(34, 34, 34, 0.02);
}

.hours-item.closed .time {
  color: var(--muted);
  font-weight: 500;
}

.contact-details-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
}

.contact-detail-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 6px 0;
  color: #222222;
  font-size: clamp(15px, 0.98vw, 18px);
  line-height: 1.35;
}

.contact-detail-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-text {
  min-width: 0;
  color: #222222;
  font-weight: 500;
  word-break: break-word;
}

.contact-detail-text a {
  color: #222222;
  text-decoration: none;
  font-weight: 500;
}

.contact-detail-item:hover .contact-detail-icon {
  color: #222222;
}

.contact-detail-item:hover .contact-detail-text a {
  text-decoration: underline;
  text-decoration-color: rgba(34, 34, 34, 0.35);
  text-underline-offset: 2px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  row-gap: 4px;
  color: var(--muted);
  font-size: 17px;
  transition: var(--transition-fast);
}

.contact-row-main {
  align-items: baseline;
  gap: 8px;
  color: #222222;
  font-size: clamp(14px, 0.96vw, 16px);
  font-weight: 500;
  line-height: 1.3;
}

.contact-row-main .contact-label {
  min-width: 72px;
  color: #222222;
  font-weight: 600;
}

.contact-row-main .contact-value {
  color: #222222;
  font-weight: 500;
}

.contact-row-main .contact-value a {
  color: #222222;
  text-decoration: none;
}

.contact-row-main .contact-value-phone,
.contact-row-main .contact-value-phone a {
  font-size: clamp(15px, 1.02vw, 17px);
  font-weight: 600;
}

.contact_row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  transition: var(--transition-fast);
}

.contact-row:hover {
  color: var(--text);
}

.contact-row a {
  color: var(--brand);
  font-weight: 600;
}

.contact-row a:hover {
  color: var(--brand-2);
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}

.contact-social-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-divider {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 640px) {
  .contacts-section {
    padding-top: 32px;
  }

  .contacts-hero {
    margin-bottom: 16px;
  }

  .branches {
    margin-top: 10px;
  }

  .opening-hours-grid {
    grid-template-columns: 2fr;
  }

  .contact-details-list {
    gap: 8px;
  }

  .contact-detail-item {
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 10px;
    padding: 5px 0;
    font-size: 14px;
  }

  .contact-detail-icon,
  .contact-detail-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-row-main {
    font-size: 14px;
    gap: 6px;
  }

  .contact-row-main .contact-label {
    min-width: 66px;
  }

  .contact-row-main .contact-value-phone,
  .contact-row-main .contact-value-phone a {
    font-size: 16px;
  }
}

/* ===== ФУТЕР ===== */
.footer {
  margin-top: 60px;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
  padding: 30px 0 20px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 20px;
}

.foot-col {
  display: flex;
  flex-direction: column;
}

.foot-col h5 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.foot-col a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
  font-size: 14px;
  transition: var(--transition-fast);
}

.foot-col a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.copyright {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-brand);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}

/* Product Details Button - Top Position */
.product-details-toggle-top {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 16px 0 24px 0;
    font-family: var(--font-primary);
}

.product-details-toggle-top:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 34, 34, 0.06);
}

.toggle-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arrow-top {
    color: var(--text);
    transition: transform 0.3s ease;
}

.arrow-bottom {
    color: var(--text);
    transition: transform 0.3s ease;
}

.product-details-toggle-top.active .arrow-top {
    transform: translateY(2px);
}

.product-details-toggle-top.active .arrow-bottom {
    transform: translateY(-2px);
}

/* Product Status Info Section */
.product-status-info {
    margin: 20px 0;
    padding: 16px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(233, 236, 239, 0.5);
}

.product-status-info .product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Logo Image Navbar */
.logo-image-navbar {
    width: 160px;
    height: auto;
    object-fit: contain;
}

/* 404 Page Styles */
.bm-404-space {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.bm-404-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    text-align: center;
    z-index: 10;
}

.bm-404-code {
    font-size: 140px;
    font-weight: 900;
    letter-spacing: 8px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    text-shadow: 0 0 30px rgba(67, 97, 238, 0.3);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(67, 97, 238, 0.2));
}

.bm-404-title {
    font-size: 36px;
    font-weight: 800;
    margin: 30px 0 15px;
    color: var(--text);
}

.bm-404-subtitle {
    color: var(--text-muted);
    margin: 0 0 40px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.bm-404-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary, .btn-outline {
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(67, 97, 238, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 2px solid rgba(67, 97, 238, 0.3);
    backdrop-filter: blur(20px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 97, 238, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(67, 97, 238, 0.2);
}

/* 404 Responsive Styles */
@media (max-width: 1200px) {
    .bm-404-code { font-size: 120px; letter-spacing: 6px; }
    .bm-404-title { font-size: 32px; }
    .bm-404-subtitle { font-size: 17px; }
}

@media (max-width: 1024px) {
    .bm-404-code { font-size: 100px; letter-spacing: 4px; }
    .bm-404-title { font-size: 28px; }
    .bm-404-subtitle { font-size: 16px; }
}

@media (max-width: 768px) {
    .bm-404-code { font-size: 80px; letter-spacing: 2px; }
    .bm-404-title { font-size: 24px; }
    .bm-404-subtitle { font-size: 15px; }
    .bm-404-actions { flex-direction: column; align-items: center; gap: 16px; }
    .btn-primary, .btn-outline { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
    .bm-404-code { font-size: 60px; letter-spacing: 1px; }
    .bm-404-title { font-size: 20px; }
    .bm-404-subtitle { font-size: 14px; }
    .btn-primary, .btn-outline { padding: 14px 28px; font-size: 15px; }
}

/* Improved features section layout */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
}

.feature {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 1px solid rgba(34, 34, 34, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Original Mega Dropdown Menu Styles */
.mega-dropdown {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    transform: translateY(12px);
    background: #ffffff;
    padding: 24px 28px;
    display: flex;
    gap: 32px;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(34, 34, 34, 0.18);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Show dropdown on hover */
.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-column {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    position: relative;
    align-self: stretch;
    padding-right: 16px;
}

/* Vertical separator line between columns */
.mega-column:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #e0e0e0;
}

.mega-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    cursor: default;
    letter-spacing: 0.3px;
}

.mega-column a {
    position: relative;
    padding: 9px 10px;
    margin-left: 0;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    color: #4a4a4a;
    transition: all 0.25s ease;
}

.mega-column a:hover {
    background: #f4f6f8;
    color: #222;
    text-decoration: none !important;
}

/* Simplified Recommendations section */
.dropdown-recommendations {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recommendation-item {
    flex: 1;
    min-width: 180px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.recommendation-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    font-size: 13px;
}

.recommendation-text {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .review {
    min-width: 260px;
  }

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

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

  .nav {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }

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

  .review {
    min-width: 240px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Адаптивность модального окна */
  .modal-content {
    width: 95%;
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

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

  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

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

  .section {
    padding: 40px 0;
  }

  .review {
    min-width: 220px;
  }

  .slide-content {
    padding: 24px 16px;
  }

  .consultation-form {
    gap: 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px; /* Предотвращает zoom на iOS */
  }
}

/* ===== SCROLLBAR ===== */








/* ===== WORKS PAGE & WORK DETAIL STYLES ===== */

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 16px 0;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--brand);
  font-weight: 600;
  transition: var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--brand-2);
  transform: translateX(2px);
}

.breadcrumb-separator {
  color: var(--muted);
  font-size: 16px;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* Portfolio All Grid - Works Page */
.portfolio-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

/* ========================================
   PRODUCT DETAIL PAGE - PREMIUM FURNITURE STYLE
   ======================================== */

/* Product Detail Section */
.product-detail-section {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  min-height: calc(100vh - 200px);
  position: relative;
}

.product-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 34, 34,0.05), transparent);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6c757d;
  font-weight: 400;
}

.breadcrumb-link {
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.breadcrumb-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #212529;
  transition: width 0.3s ease;
}

.breadcrumb-link:hover {
  color: #212529;
}

.breadcrumb-link:hover::after {
  width: 100%;
}

.breadcrumb-separator {
  color: #adb5bd;
  font-weight: 300;
}

.breadcrumb-current {
  color: #212529;
  font-weight: 500;
}

/* Product Layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: start;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Image Section */
.product-image-section {
  position: sticky;
  top: 140px;
  z-index: 10;
}

.product-image-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(34, 34, 34, 0.08), 0 2px 8px rgba(34, 34, 34, 0.04);
  aspect-ratio: 4/3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.product-image-wrapper:hover {
  box-shadow: 0 12px 48px rgba(34, 34, 34, 0.12), 0 4px 16px rgba(34, 34, 34, 0.08);
  transform: translateY(-4px);
}

.product-image-wrapper:hover::before {
  opacity: 1;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-wrapper:hover .product-main-image {
  transform: scale(1.02);
}

.image-zoom-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.product-image-wrapper:hover .image-zoom-btn {
  opacity: 1;
}

.image-zoom-btn:hover {
  background: #ffffff;
  transform: scale(1.1) rotate(90deg);
}

.image-zoom-btn svg {
  color: #212529;
  stroke-width: 2.5;
}

/* Product Info Section */
.product-info-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(34, 34, 34, 0.06), 0 2px 8px rgba(34, 34, 34, 0.04);
  border: 1px solid rgba(34, 34, 34, 0.04);
  position: relative;
  overflow: hidden;
}

.product-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #212529, #495057, #212529);
  opacity: 0.1;
}

.product-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.product-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #212529;
  border-radius: 2px;
}

.product-category-badge {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.product-category-badge:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.product-title {
  font-size: 42px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-family: var(--font-primary);
}

.product-subtitle {
  font-size: 17px;
  color: #6c757d;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

/* Inline Dimensions Under Title */
.product-dimensions-inline {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e9ecef;
  font-size: 15px;
  color: #495057;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-dimensions-inline .dimensions-label {
  font-weight: 700;
  color: #212529;
}

.product-dimensions-inline .dimensions-value {
  font-weight: 600;
}

/* Product Badges */
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.info-badge:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 34, 34, 0.08);
}

.info-badge.status-badge {
  background: rgba(34, 34, 34, 0.06);
  border-color: rgba(34, 34, 34, 0.2);
  color: var(--text);
}

.info-badge.status-badge:hover {
  background: rgba(34, 34, 34, 0.1);
  box-shadow: 0 4px 12px rgba(34, 34, 34, 0.12);
}

.badge-icon {
  font-size: 16px;
  line-height: 1;
}

.badge-text {
  font-size: 14px;
  font-weight: 500;
}

/* Action Buttons */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-primary-large,
.btn-secondary-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
}

.btn-primary-large::before,
.btn-secondary-large::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary-large:hover::before,
.btn-secondary-large:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary-large {
  background: #212529;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(33, 37, 41, 0.2);
}

.btn-primary-large:hover {
  background: #222222;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.25);
}

.btn-secondary-large {
  background: #f8f9fa;
  color: #212529;
  border: 1px solid #e9ecef;
}

.btn-secondary-large:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 34, 34, 0.08);
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

/* Product Details Toggle */
.product-details-toggle {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #212529;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-primary);
}

.product-details-toggle:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  border-color: #dee2e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 34, 34, 0.06);
}

.toggle-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #6c757d;
}

.product-details-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

/* Product Details Modal */
.product-details-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
}

.product-details-modal.active {
  display: flex;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content-wrapper {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(34, 34, 34, 0.3), 0 8px 24px rgba(34, 34, 34, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.modal-title {
  font-size: 26px;
  font-weight: 700;
  color: #212529;
  margin: 0;
  letter-spacing: -0.5px;
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: #e9ecef;
  transform: rotate(90deg) scale(1.1);
}

.modal-close-btn svg {
  color: #212529;
  stroke-width: 2.5;
}

.modal-body {
  padding: 36px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #dee2e6 #f8f9fa;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

.details-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.details-section:nth-child(1) { animation-delay: 0.1s; }
.details-section:nth-child(2) { animation-delay: 0.2s; }
.details-section:nth-child(3) { animation-delay: 0.3s; }
.details-section:nth-child(4) { animation-delay: 0.4s; }

.details-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e9ecef;
  position: relative;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #212529;
  border-radius: 2px;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.2s ease;
}

.detail-item:hover {
  padding-left: 8px;
  background: linear-gradient(90deg, rgba(34, 34, 34,0.02), transparent);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #343a40;
  font-size: 14px;
}

.detail-value {
  font-weight: 700;
  color: #222222;
  font-size: 15px;
  text-align: right;
}

.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.2s ease;
}

.advantage-item:hover {
  padding-left: 8px;
}

.advantage-item:last-child {
  border-bottom: none;
}

.advantage-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.08) 0%, rgba(34, 34, 34, 0.15) 100%);
  color: var(--text);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.12);
}

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

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-color: #dee2e6;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(34, 34, 34, 0.06);
}

.info-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.info-content strong {
  font-size: 15px;
  font-weight: 600;
  color: #212529;
}

.info-content span {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

.description-content {
  font-size: 15px;
  line-height: 1.75;
  color: #495057;
}

.description-content p {
  margin: 0 0 18px;
}

.description-content p:last-child {
  margin-bottom: 0;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(34, 34, 34, 0.97);
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
}

.image-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal-content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(34, 34, 34, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  line-height: 1;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .product-image-section {
    position: static;
  }

  .modal-content-wrapper {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .product-title {
    font-size: 32px;
  }

}

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

  .product-info-section {
    padding: 32px;
  }

  .modal-body {
    padding: 28px;
  }

  .modal-header {
    padding: 24px 28px;
  }

  .product-title {
    font-size: 28px;
  }

  .product-detail-layout {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .product-info-section {
    padding: 24px;
  }

  .modal-body {
    padding: 24px;
  }

  .product-title {
    font-size: 24px;
  }

  .modal-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }
}

/* ========================================
   END OF PRODUCT DETAIL PAGE STYLES
   ======================================== */

/* Responsive Design for Works Pages */
@media (max-width: 1024px) {
  .portfolio-all-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .product-image-section {
    position: static;
  }

  .product-title {
    font-size: 32px;
  }

}

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

  .product-info-section {
    padding: 32px;
  }

  .modal-body {
    padding: 28px;
  }

  .modal-header {
    padding: 24px 28px;
  }

  .product-title {
    font-size: 28px;
  }

  .product-detail-layout {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .product-info-section {
    padding: 24px;
  }

  .modal-body {
    padding: 24px;
  }

  .product-title {
    font-size: 24px;
  }

  .modal-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }
}

/* Portfolio Styles */
.portfolio-item.enhanced {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.work-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  transition: var(--transition);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.image-zoom-btn {
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

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

.work-info {
  min-width: 0;
  background: var(--gradient-panel);
  border: 1px solid rgba(34, 34, 34, 0.1);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: fit-content;
}

/* Work Header */
.work-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.work-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(52, 58, 64, 0.2);
  position: relative;
}

.work-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(52, 58, 64, 0.3);
}

.work-meta-header {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 8px 16px;
  background: rgba(34, 34, 34, 0.05);
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Work Description */
.work-description {
  margin-bottom: 32px;
}

.work-description h3 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-description p {
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

/* Specifications Grid */
.specifications {
  margin-bottom: 32px;
}

.specifications h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.spec-item {
  text-align: center;
  padding: 20px 16px;
  background: rgba(34, 34, 34, 0.03);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.spec-item:hover {
  background: rgba(34, 34, 34, 0.08);
  transform: translateY(-2px);
  border-color: rgba(52, 58, 64, 0.3);
}

.spec-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
  display: block;
}

.spec-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Work Badges */
.work-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.work-badge {
  max-width: 100%;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gradient-brand);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(52, 58, 64, 0.2);
  transition: var(--transition);
}

.work-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 58, 64, 0.3);
}

.work-badge.material {
  background: var(--gradient-accent);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.work-badge.material:hover {
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.work-badge.status {
  background: var(--gradient-brand);
  box-shadow: 0 4px 12px rgba(34, 34, 34, 0.2);
}

.work-badge.status:hover {
  box-shadow: 0 8px 20px rgba(34, 34, 34, 0.3);
}

/* Work detail badge styling (soft furniture look) */
.work-detail .work-badge {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(34, 34, 34, 0.14);
  box-shadow: none;
  font-weight: 600;
}

.work-detail .work-badge:hover {
  transform: none;
  box-shadow: none;
}

.work-detail .work-badge.material {
  background: rgba(34, 34, 34, 0.04);
  border-color: rgba(34, 34, 34, 0.14);
  color: var(--text);
  box-shadow: none;
}

.work-detail .work-badge.material:hover {
  box-shadow: none;
}

.work-detail .work-badge.status {
  background: rgba(34, 34, 34, 0.06);
  border-color: rgba(34, 34, 34, 0.18);
  color: var(--text);
  box-shadow: none;
}

.work-detail .work-badge.status:hover {
  box-shadow: none;
}


/* Features Grid */
.work-features {
  margin-bottom: 32px;
}

.work-features h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: rgba(34, 34, 34, 0.02);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(34, 34, 34, 0.06);
  transform: translateY(-2px);
  border-color: rgba(52, 58, 64, 0.3);
}

.feature-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

/* Timeline */
.work-timeline {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.work-timeline h3 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-brand);
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(52, 58, 64, 0.2);
}

.timeline-content {
  flex: 1;
  padding-top: 6px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Delivery & Payment Info */
.delivery-payment {
  margin: 32px 0;
  padding: 24px;
  background: var(--gradient-glow);
  border: 1px solid rgba(52, 58, 64, 0.2);
  border-radius: var(--radius-lg);
}

.delivery-payment h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.delivery-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-info p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Contact Block for Work Detail */
.contact-block {
  margin-top: 32px;
  padding: 24px;
  background: var(--gradient-panel);
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-block h4 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.contact-block p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}



.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-btn.primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-brand);
}

.contact-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(52, 58, 64, 0.3);
}

.contact-btn.secondary {
  background: rgba(34, 34, 34, 0.08);
  color: var(--text);
  border: 1px solid rgba(34, 34, 34, 0.15);
}

.contact-btn.secondary:hover {
  background: rgba(34, 34, 34, 0.12);
  transform: translateY(-1px);
}

/* Enhanced Portfolio Item for Works Page */
.portfolio-item.enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.enhanced:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(34, 34, 34, 0.3);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

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

.portfolio-btn {
  padding: 14px 28px;
  background: var(--gradient-brand);
  color: white;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-brand);
  margin-bottom: 12px;
}

.portfolio-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(52, 58, 64, 0.3);
}

.portfolio-info {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--gradient-panel);
}

.portfolio-title {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

.portfolio-date {
  opacity: 0.8;
}

/* Responsive Design for Works Pages */
@media (max-width: 1024px) {
  .portfolio-all-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

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

  .work-media {
    position: static;
  }

  .work-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .portfolio-all-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-media {
    padding: 20px;
  }

  .work-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .work-info {
    padding: 22px;
  }

  .work-image {
    height: 300px;
  }
}

@media (max-width: 1024px) {
  .mega-dropdown {
    padding: 20px 25px !important;
  }

  .dropdown-recommendations {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .logo-image-navbar {
    width: 140px;
  }

  .product-details-toggle-top {
    padding: 10px 16px;
    font-size: 13px;
  }

  .product-status-info .product-badges {
    justify-content: flex-start;
  }

  .feature {
    min-width: 100%;
    max-width: 100%;
  }

  .specs-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

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

  .contact-actions {
    flex-direction: column;
  }

  .contact-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .work-media {
    padding: 16px;
  }

  .work-info {
    padding: 18px;
  }

  .work-image {
    height: 250px;
  }

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

  .meta-item {
    width: 100%;
  }

  .work-badge {
    width: 100%;
    justify-content: center;
  }
}
/* New logo image styles */




/* Hero logo styles */
.hero-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: var(--shadow-brand);
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(34, 34, 34, 0.3);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }


/* === Nav item === */

}
.nav-item {
    position: relative;
}
.nav-item::after {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    height: 35px;
}

/* === Mega dropdown === */
.navbar {
  --nav-height: 84px;
}

.navbar.scrolled {
  --nav-height: 70px;
}

.mega-dropdown {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    transform: translateY(12px);
    background: #ffffff;
    padding: 24px 28px;
    display: flex;
    gap: 32px;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(34, 34, 34, 0.18);
    z-index: 1000;

    /* Анимация */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Показываем dropdown */
.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* === Колонки === */
.mega-column {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    position: relative; /* для псевдоэлемента вертикальной линии */
    align-self: stretch; /* растягиваем колонку на всю высоту */
    padding-right: 16px; /* чтобы текст не прилипал к линии */
}

/* Вертикальная разделительная линия между колонками */
.mega-column:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;             /* толщина линии */
    height: 100%;           /* на всю высоту колонки */
    background-color: #e0e0e0; /* светло-серая линия */
}

/* === Заголовки === */
.mega-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    cursor: default;
    letter-spacing: 0.3px;
}

/* === Ссылки === */
.mega-column a {
    position: relative;
    padding: 9px 10px;
    margin-left: 0;
    border-radius: 8px;
    text-decoration: none !important;
    text-decoration-line: none !important;
    font-size: 14px;
    color: #4a4a4a;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

/* Hover стиль */
.mega-column a:hover {
    background: rgba(52, 58, 64, 0.08);
    border-color: rgba(52, 58, 64, 0.18);
    color: #222;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.mega-column a:visited,
.mega-column a:active,
.mega-column a:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.mega-column a:hover::before,
.mega-column a:focus-visible::before {
    opacity: 1;
}

.mega-column a:focus-visible {
    outline: 2px solid rgba(34, 34, 34,0.2);
    outline-offset: 2px;
}

/* === Dropdown Works === */
.dropdown-works {
    margin-left: auto;
    min-width: 320px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dropdown-works-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-works-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.dropdown-works-sub {
    font-size: 12px;
    color: #6c757d;
}

.dropdown-works-grid {
    display: grid;
    gap: 10px;
}

.dropdown-work-card {
    display: none;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.dropdown-work-card.is-visible {
    display: grid;
}

.dropdown-work-card:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 58, 64, 0.2);
    box-shadow: 0 12px 30px rgba(34, 34, 34, 0.12);
    background: #ffffff;
}

.work-thumb {
    width: 72px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.2), rgba(33, 37, 41, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-thumb-placeholder {
    font-size: 22px;
}

.work-info {
    display: grid;
    gap: 6px;
}

.work-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #6c757d;
}

.dropdown-works-empty {
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px dashed #d5d5d5;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
}




/* Раздел мебели стили */

/* Mobile navigation and CTA fixes */
body.menu-open {
  overflow-y: hidden;
}

@media (max-width: 768px) {
  .nav {
    display: flex !important;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: 0;
    right: auto;
    width: 50vw;
    max-width: 50vw;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 20px 24px;
    background: #ffffff;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
    border-right: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 20px 50px rgba(34, 34, 34, 0.18);
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 8999;
  }

  .nav-inner {
    gap: 10px;
    padding: 0 12px;
  }

  .logo-image-navbar {
    width: clamp(100px, 30vw, 128px);
  }

  .nav-toggle {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .nav-right {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
  }

  .nav-cta {
    max-width: 46vw;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav.open {
    top: var(--nav-height);
    bottom: 0;
    left: 0;
    right: auto;
    width: 50vw;
    max-width: 50vw;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav.open .mega-dropdown {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nav.open .mega-column {
    width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  }

  .nav.open .mega-column:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .nav.open .mega-column:not(:last-child)::after {
    display: none;
  }

  .nav.open .dropdown-works {
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 8px;
    padding: 0 10px;
  }

  .logo-image-navbar {
    width: 96px;
  }

  .nav-toggle {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .nav-cta {
    max-width: 44vw;
    padding: 9px 11px;
    font-size: 13px;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    max-width: 100%;
    font-size: 15px;
    padding: 12px 14px;
  }

  .form-actions .btn-text {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Mobile performance overrides to improve first paint/LCP */
@media (max-width: 768px) {
  .animate-fade-in,
  .animate-slide-up,
  .animate-text-reveal,
  .pulse-animation,
  .rotate-animation,
  .bounce-animation,
  .float-animation,
  .glow-text,
  .floating-card {
    animation: none !important;
  }

  .navbar,
  .filter-tab,
  .quick-view-btn,
  .image-overlay,
  .lang-current,
  .lang-dropdown {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .carousel-slide img,
  .portfolio-image {
    transition: none !important;
    filter: none !important;
  }

  .carousel-shell:hover .carousel-slide img {
    transform: none !important;
    filter: none !important;
  }
}

/* Navigation layering and mobile submenu toggle */
.navbar {
  z-index: 9000 !important;
}

@media (max-width: 768px) {
  .nav.open {
    z-index: 8999 !important;
  }

  .nav-parent-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-parent-link::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    color: var(--text);
  }

  .nav-item.mobile-open > .nav-parent-link::after {
    content: "-";
  }

  .nav.open .nav-item > .mega-dropdown {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
  }

  .nav.open .nav-item.mobile-open > .mega-dropdown {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
    padding-top: 8px;
    margin-top: 4px;
  }
}

/* ===== UI REFINEMENT: FURNITURE BRAND CONSISTENCY ===== */
:root {
  --ui-btn-radius: 14px;
}

/* 1) Navbar fixed size (no shrinking) */
.navbar,
.navbar.scrolled {
  height: 84px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08) !important;
  box-shadow: none !important;
}

.navbar.scrolled .nav-inner,
.nav-inner {
  height: 100% !important;
}

/* 5) Cleaner nav highlight without double effects */
.nav a,
.nav-parent-link,
.nav a:hover,
.nav a:focus {
  text-shadow: none !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.nav a::before,
.nav a::after,
.nav a:hover::before,
.nav a:hover::after {
  display: none !important;
  content: none !important;
}

.nav a.active {
  color: var(--brand) !important;
  box-shadow: inset 0 -2px 0 var(--brand) !important;
}

.mega-column a:hover,
.nav-parent-link:hover,
.nav-parent-link:focus {
  background: transparent !important;
  transform: none !important;
}

/* 2) Unified button style in logo palette, no blue glow/shadows */
.nav-cta,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-primary-large,
.btn-secondary-large,
.product-details-toggle,
.product-details-toggle-top,
.quick-view-btn,
.view-btn,
.filter-tab,
.form-actions .btn-primary,
.form-actions .btn-secondary {
  border-radius: var(--ui-btn-radius) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.nav-cta,
.btn-primary,
.btn-primary-large,
.quick-view-btn,
.view-btn,
.form-actions .btn-primary {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
}

.btn-secondary,
.btn-outline,
.btn-secondary-large,
.product-details-toggle,
.product-details-toggle-top,
.form-actions .btn-secondary {
  background: rgba(34, 34, 34, 0.03) !important;
  color: var(--text) !important;
  border: 1px solid rgba(34, 34, 34, 0.16) !important;
}

.nav-cta:hover,
.btn-primary:hover,
.btn-primary-large:hover,
.quick-view-btn:hover,
.view-btn:hover,
.form-actions .btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-secondary-large:hover,
.product-details-toggle:hover,
.product-details-toggle-top:hover,
.form-actions .btn-secondary:hover {
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.nav-cta:hover,
.btn-primary:hover,
.btn-primary-large:hover,
.quick-view-btn:hover,
.view-btn:hover,
.form-actions .btn-primary:hover {
  background: var(--gradient-brand) !important;
  color: #fff !important;
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-secondary-large:hover,
.product-details-toggle:hover,
.product-details-toggle-top:hover,
.form-actions .btn-secondary:hover {
  background: rgba(34, 34, 34, 0.03) !important;
  color: var(--text) !important;
}

.nav-cta::before,
.btn-primary::before,
.btn-outline::before,
.btn-primary-large::before,
.btn-secondary-large::before {
  display: none !important;
}

/* 4) Better request form, no hover effects on form buttons */
.modal-content {
  border-radius: 18px !important;
  box-shadow: 0 16px 34px rgba(34, 34, 34, 0.14) !important;
}

.consultation-form {
  gap: 16px !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fff !important;
  border: 1px solid rgba(34, 34, 34, 0.16) !important;
  border-radius: 12px !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(33, 37, 41, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(33, 37, 41, 0.1) !important;
  background: #fff !important;
}

.consultation-form .btn-primary:hover,
.consultation-form .btn-secondary:hover,
.form-actions .btn-primary:hover,
.form-actions .btn-secondary:hover {
  transform: none !important;
  box-shadow: none !important;
  background-position: initial !important;
}

/* Remove blue glowing aura in CTA blocks */
.reviews-cta,
.portfolio-cta {
  box-shadow: none !important;
}

.reviews-cta::before,
.portfolio-cta::before {
  display: none !important;
}

/* 7) Hero slider readability and in-image indicators */
.carousel-shell {
  position: relative;
}

.carousel-track {
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.carousel-slide::after {
  background: transparent !important;
}

.carousel-overlay {
  justify-content: flex-end !important;
  align-items: flex-start !important;
  gap: 12px;
  padding: clamp(24px, 4vw, 56px) !important;
}

.carousel-title {
  font-size: clamp(34px, 4.4vw, 64px) !important;
  font-weight: 800 !important;
  line-height: 1.03 !important;
  text-transform: none !important;
  text-shadow: 0 8px 24px rgba(34, 34, 34, 0.55) !important;
}

.carousel-caption {
  max-width: 760px !important;
  font-size: clamp(16px, 1.5vw, 22px) !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(34, 34, 34, 0.38) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  backdrop-filter: none !important;
}

.carousel-controls {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 5;
  padding: 0 !important;
  background: transparent !important;
}

.carousel-dots {
  gap: 8px !important;
}

.carousel-dot {
  width: 28px !important;
  height: 3px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5) !important;
}

.carousel-dot.active {
  width: 44px !important;
  background: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .carousel-controls {
    bottom: 12px;
  }

  .carousel-title {
    font-size: clamp(28px, 7.5vw, 40px) !important;
  }

  .carousel-caption {
    font-size: 15px !important;
  }
}

/* 8) Additional furniture-like visual block */
.furniture-showcase {
  margin-top: 8px;
}

.showcase-head {
  margin-bottom: 18px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.showcase-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 34, 34, 0.08);
  min-height: 220px;
}

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

.showcase-tile-large {
  min-height: 320px;
}

.showcase-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.04) 0%, rgba(34, 34, 34, 0.62) 100%);
}

.showcase-tile-placeholder {
  background: var(--gradient-panel);
}

.showcase-tile-placeholder .showcase-tile-caption {
  top: 0;
  display: flex;
  align-items: flex-end;
}

.showcase-tile:hover img {
  transform: scale(1.03);
}

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

  .showcase-tile-large {
    grid-column: 1 / -1;
  }
}

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

  .showcase-tile,
  .showcase-tile-large {
    min-height: 220px;
  }
}

/* ===== 2026 Furniture Redesign Layer ===== */
:root {
  --furniture-page-bg: var(--bg);
  --furniture-panel: #ffffff;
  --furniture-surface: var(--panel);
  --furniture-border: rgba(34, 34, 34, 0.12);
  --furniture-title: var(--text);
  --furniture-text: var(--text-muted);
  --furniture-accent: var(--brand);
  --furniture-accent-strong: var(--brand-2);
  --furniture-shadow: var(--shadow);
}

html,
body {
  background: var(--bg-gradient);
}

.section-title {
  color: var(--furniture-title);
}

.section-sub,
.section-subtitle {
  color: var(--furniture-text);
}

/* Dropdown returned to legacy structure/styles */
.mega-nav-header,
.mega-nav-list,
.mega-nav-link,
.mega-kicker,
.mega-nav-title,
.mega-nav-meta {
  display: none !important;
}

/* Furniture identity blocks */
.furniture-identity-section {
  padding-top: 22px;
}

.furniture-identity-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.identity-shot {
  margin: 0;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(140deg, #6c757d 0%, #343a40 100%);
  box-shadow: var(--furniture-shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  min-height: 190px;
}

.identity-shot-large {
  grid-row: span 2;
  min-height: 398px;
}

.identity-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.9) contrast(1.02);
}

.identity-shot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.05) 35%, rgba(34, 34, 34, 0.54) 100%);
}

.identity-shot-label {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Hover tiles (non-clickable) */
.category-cards-section {
  padding-top: 18px;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.furniture-category-card {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #868e96, #495057);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 16px 34px rgba(34, 34, 34, 0.16);
  transition: transform 260ms ease, box-shadow 260ms ease;
  cursor: default;
  user-select: none;
}

.furniture-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 260ms ease;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.18) 32%, rgba(14, 11, 8, 0.64) 100%);
  opacity: 0.46;
  transition: opacity 260ms ease;
}

.category-card-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.category-card-content h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 700;
}

.category-hover-indicator {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transform: translateY(9px) scale(0.92);
  transition: transform 240ms ease, opacity 240ms ease;
}

.furniture-category-card:hover,
.furniture-category-card:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 24px 46px rgba(34, 34, 34, 0.22);
}

.furniture-category-card:hover img,
.furniture-category-card:focus-visible img {
  transform: scale(1.07);
}

.furniture-category-card:hover .category-card-overlay,
.furniture-category-card:focus-visible .category-card-overlay {
  opacity: 0.62;
}

.furniture-category-card:hover .category-hover-indicator,
.furniture-category-card:focus-visible .category-hover-indicator {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.category-card-fallback {
  background: linear-gradient(145deg, #868e96 0%, #495057 100%);
}

/* Final furniture block near footer */
.store-benefits-section {
  padding-top: 22px;
  padding-bottom: 90px;
}

.store-benefits-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(24px, 2.6vw, 40px);
  border-radius: 18px;
  padding: clamp(24px, 2.8vw, 42px);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(34, 34, 34, 0.08) 0%, transparent 48%),
    linear-gradient(150deg, #ffffff 0%, #f7f9fc 56%, #eef2f7 100%);
  border: 1px solid rgba(34, 34, 34, 0.12);
  box-shadow: 0 18px 38px rgba(34, 34, 34, 0.1);
}

.store-benefits-head {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.store-benefits-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 2px;
  background: rgba(34, 34, 34, 0.45);
}

.store-benefits-kicker {
  display: block;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  background: transparent;
  font-size: clamp(0.92rem, 0.92vw, 1rem);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-muted);
  font-weight: 500;
}

.store-benefits-title {
  margin: 0;
  max-width: 18ch;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  color: #222222;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.store-benefits-title::after {
  display: none !important;
}

.store-benefits-description {
  max-width: 56ch;
  margin: 0;
  color: rgba(34, 34, 34, 0.76);
  line-height: 1.68;
  font-size: clamp(0.95rem, 0.95vw, 1.02rem);
}

.store-benefits-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.store-benefits-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  color: #222222;
  line-height: 1.45;
  font-size: 0.94rem;
  transition: border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.store-benefits-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 34, 34, 0.38);
  background: radial-gradient(circle at center, #222222 28%, transparent 31%);
}

.store-benefits-list li:hover {
  border-color: rgba(34, 34, 34, 0.2);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(34, 34, 34, 0.08);
}

.store-benefits-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.benefit-photo {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 34, 34, 0.1);
  box-shadow: 0 12px 26px rgba(34, 34, 34, 0.12);
  aspect-ratio: 16 / 11;
  background: linear-gradient(145deg, #d5dde8 0%, #bcc8d7 100%);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.benefit-photo:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.benefit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: none;
}

.benefit-photo:hover {
  border-color: rgba(34, 34, 34, 0.2);
  box-shadow: 0 16px 30px rgba(34, 34, 34, 0.16);
}

/* Keep hover states, but disable movement/scale shifts */
.reviews-navigation .nav-btn:hover,
.carousel-arrow:hover .carousel-arrow-circle,
.carousel-arrow:active .carousel-arrow-circle,
.reviews-cta .btn-primary:hover,
.reviews-cta .btn-outline:hover,
.trust-item:hover {
  transform: none !important;
}

/* Rich footer finish */
.footer {
  background: #222222;
  border-top: 1px solid #222222;
}

.footer h5,
.footer .copyright {
  color: #ffffff;
}

.footer a,
.footer .section-sub {
  color: rgba(255, 255, 255, 0.78);
}

.footer a:hover {
  color: #ffffff;
}

.footer::before {
  background: #222222;
}

/* Carousel: no border radius on images */
.slide-image-container,
.carousel-image,
.carousel-slide img {
  border-radius: 0 !important;
}

/* Carousel adaptation: equal height, natural width per image */
.carousel-track {
  width: max-content;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px) !important;
}

.carousel-slide {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

.carousel-slide.active-slide,
.carousel-slide.inactive-slide {
  transform: none !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

.slide-image-container {
  width: auto !important;
  height: clamp(280px, 38vw, 560px) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222222;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(34, 34, 34, 0.22) !important;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.34) !important;
  opacity: 1;
  transition: opacity 420ms ease;
  pointer-events: none;
  z-index: 2;
}

.carousel-slide.active-slide::after {
  opacity: 0 !important;
}

.carousel-slide.inactive-slide::after {
  opacity: 1 !important;
}

.carousel-image,
.carousel-slide img {
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: none !important;
}

.carousel-slide .slide-image-container,
.carousel-slide.active-slide .slide-image-container,
.carousel-slide.inactive-slide .slide-image-container,
.carousel-slide:hover .slide-image-container {
  transform: none !important;
}

.carousel-slide:hover .carousel-image {
  transform: none !important;
}

.carousel-dot {
  background: rgba(34, 34, 34, 0.24) !important;
}

.carousel-dot.active {
  background: #222222 !important;
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.14) !important;
}

/* Navbar: slightly transparent when scrolling */
.navbar {
  background: rgba(255, 255, 255, 0.96);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.84) !important;
}

/* Optional dark variant: add class "theme-dark" to body */
body.theme-dark {
  --furniture-page-bg: #1b1510;
  --furniture-panel: #231c16;
  --furniture-surface: #2c221a;
  --furniture-border: rgba(255, 255, 255, 0.1);
  --furniture-title: #f0e5d8;
  --furniture-text: #c5b6a8;
  --furniture-accent: #bd9068;
  --furniture-accent-strong: #d0a57b;
}

body.theme-dark .navbar {
  background: rgba(25, 20, 16, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .nav a,
body.theme-dark .nav-parent-link {
  color: #f0e7dc;
}

body.theme-dark .mega-dropdown {
  background: linear-gradient(160deg, #30251d 0%, #241b15 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .mega-nav-title {
  color: #f8ecde;
}

body.theme-dark .mega-nav-meta,
body.theme-dark .mega-nav-header p {
  color: #ccb9a7;
}

body.theme-dark .mega-nav-link {
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .mega-nav-link:hover,
body.theme-dark .mega-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .furniture-identity-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(160px, 1fr);
  }

  .identity-shot-large {
    min-height: 320px;
  }

  .store-benefits-panel {
    grid-template-columns: 1fr;
    padding: 24px 22px 22px;
  }

  .store-benefits-title {
    max-width: 100%;
    font-size: clamp(1.38rem, 3.8vw, 1.94rem);
  }
}

@media (max-width: 768px) {
  .carousel-viewport {
    overflow: hidden !important;
    padding: 12px 0 48px !important;
    background: transparent !important;
  }

  .carousel-track {
    gap: 12px !important;
    align-items: center;
  }

  .carousel-slide {
    flex: 0 0 86vw !important;
    min-width: 86vw !important;
    width: 86vw !important;
    max-width: 86vw !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .carousel-slide.active-slide,
  .carousel-slide.inactive-slide {
    transform: none !important;
    opacity: 1 !important;
  }

  .slide-image-container {
    height: clamp(220px, 62vw, 320px) !important;
    width: 100% !important;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
  }

  .carousel-image {
    width: 100% !important;
    height: 100%;
    max-width: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }

  .furniture-identity-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .identity-shot-large {
    grid-row: auto;
    min-height: 260px;
  }

  .identity-shot {
    min-height: 220px;
  }

  .store-benefits-section {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .store-benefits-panel {
    padding: 30px;
    gap: 18px;
  }

  .store-benefits-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    text-align: center;
  }

  .store-benefits-head::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .store-benefits-kicker {
    margin-bottom: 8px;
    text-align: center;
  }

  .store-benefits-title {
    max-width: 100%;
    font-size: clamp(1.3rem, 6.4vw, 1.8rem);
    text-align: center;
  }

  .store-benefits-description {
    max-width: 100%;
    line-height: 1.58;
    font-size: 0.95rem;
    text-align: center;
  }

  .store-benefits-list {
    margin-top: 16px;
    gap: 10px;
  }

  .store-benefits-list li {
    padding: 12px 14px;
    font-size: 0.9rem;
    text-align: center;
  }

  .store-benefits-list li::before {
    display: none;
  }

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

  .benefit-photo,
  .benefit-photo:first-child {
    aspect-ratio: 16 / 10;
    grid-column: auto;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .carousel-track {
    gap: 16px !important;
  }
}

@media (max-width: 380px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }

  .category-card-content h3 {
    font-size: 19px;
  }
}

/* Designer express section */
.designer-express-section {
  padding-top: 28px;
  padding-bottom: 24px;
}

.designer-express-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: stretch;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(34, 34, 34, 0.08) 0%, transparent 50%),
    linear-gradient(150deg, #ffffff 0%, #f7f9fc 64%, #eef2f7 100%);
  box-shadow: 0 18px 42px rgba(34, 34, 34, 0.1);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 36px);
}

.designer-express-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.designer-express-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(34, 34, 34, 0.66);
}

.designer-express-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.38rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #222222;
  max-width: 18ch;
}

.designer-express-text {
  margin: 0;
  max-width: 47ch;
  font-size: clamp(0.95rem, 1.02vw, 1.08rem);
  line-height: 1.62;
  color: rgba(34, 34, 34, 0.76);
}

.designer-express-btn {
  align-self: flex-start;
  margin-top: 8px;
}

.designer-express-visual {
  margin: 0;
  min-height: clamp(260px, 35vw, 430px);
  overflow: hidden;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: 0;
  background: #dde4ee;
}

.designer-express-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Immersive furniture gallery */
.immersive-gallery-section {
  padding-top: 12px;
  padding-bottom: 26px;
}

.immersive-gallery-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(14px, 1.7vw, 24px);
}

.immersive-gallery-title {
  margin: 0;
  font-size: clamp(1.32rem, 2.1vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #222222;
}

.immersive-gallery-sub {
  margin: 0;
  max-width: 68ch;
  font-size: clamp(0.93rem, 1.01vw, 1.02rem);
  line-height: 1.62;
  color: #4a4f57;
}

.immersive-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 16px);
}

.immersive-gallery-item {
  margin: 0;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(34, 34, 34, 0.1);
  background: #e8eaed;
}

.immersive-gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: clamp(320px, 40vw, 540px);
}

.immersive-gallery-item-tall {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: clamp(320px, 40vw, 540px);
}

.immersive-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: none;
}

/* Premium stats section */
.premium-stats-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.premium-stats-shell {
  border-radius: 12px;
  border: 1px solid var(--furniture-border);
  background: var(--gradient-panel);
  box-shadow: var(--shadow);
  padding: clamp(40px, 4.6vw, 56px);
  color: var(--furniture-title);
}

.premium-stats-header {
  align-items: flex-start;
  margin-bottom: clamp(28px, 3vw, 38px);
}

.premium-stats-title-wrap {
  max-width: 670px;
}

.premium-stats-title-wrap .section-title {
  margin: 0;
  letter-spacing: -0.02em;
  color: #222222;
}

.premium-stats-sub {
  margin-top: 10px;
  color: rgba(34, 34, 34, 0.72);
  font-size: 0.98rem;
  line-height: 1.6;
}

.premium-stats-kicker {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 34, 34, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #222222;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.3vw, 18px);
}

.premium-stat-card {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(34, 34, 34, 0.06);
  padding: clamp(24px, 2vw, 30px);
  min-height: 214px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease, background-color 0.35s ease;
}

.premium-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(34, 34, 34, 0.12);
  border-color: rgba(34, 34, 34, 0.22);
  background: rgba(255, 255, 255, 0.95);
}

.premium-stat-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(34, 34, 34, 0.16);
  background: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.premium-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: #222222;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-stat-value {
  margin: 0;
  line-height: 1;
  color: #222222;
}

.premium-stat-number {
  display: inline-block;
  font-size: clamp(2.2rem, 3.4vw, 3.25rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.premium-stat-label {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 0.72);
  font-weight: 600;
}

.premium-stat-meta {
  margin: 0;
  margin-top: auto;
  max-width: 26ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(34, 34, 34, 0.72);
}

@media (max-width: 1024px) {
  .designer-express-panel {
    grid-template-columns: 1fr;
    padding: 26px 24px;
    gap: 20px;
  }

  .designer-express-btn {
    align-self: center;
    margin-inline: auto;
  }

  .designer-express-title {
    max-width: 100%;
    font-size: clamp(1.4rem, 4.2vw, 2rem);
  }

  .designer-express-text {
    max-width: 62ch;
  }

  .designer-express-visual {
    min-height: 300px;
  }

  .immersive-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .immersive-gallery-item-large,
  .immersive-gallery-item-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .premium-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-stats-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
  }
}

@media (max-width: 768px) {
  .designer-express-section {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .designer-express-panel {
    border-radius: 14px;
    padding: 30px;
    gap: 18px;
  }

  .designer-express-copy {
    gap: 18px;
    align-items: center;
    text-align: center;
  }

  .designer-express-title {
    max-width: 100%;
    font-size: clamp(1.3rem, 6.2vw, 1.78rem);
    line-height: 1.2;
  }

  .designer-express-text {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .designer-express-btn {
    align-self: center;
    width: auto;
    margin-top: 0;
    margin-inline: auto;
    min-width: min(100%, 240px);
    justify-content: center;
  }

  .designer-express-visual {
    min-height: 250px;
  }

  .immersive-gallery-grid {
    gap: 8px;
  }

  .premium-stats-shell {
    border-radius: 10px;
    padding: 28px 22px;
  }

  .premium-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .premium-stat-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .premium-stat-number {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .premium-stats-kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .designer-express-panel {
    padding: 26px 22px;
    gap: 16px;
  }

  .designer-express-copy {
    gap: 16px;
  }

  .designer-express-title {
    font-size: clamp(1.2rem, 7vw, 1.56rem);
  }

  .designer-express-text {
    font-size: 0.92rem;
  }

  .store-benefits-panel {
    padding: 24px 20px;
    gap: 16px;
  }

  .store-benefits-title {
    font-size: clamp(1.18rem, 6.6vw, 1.5rem);
  }

  .store-benefits-description {
    font-size: 0.9rem;
  }
}
