/* ============================================
   СТРОИТЕЛЬНЫЙ РЫНОК — Construction Market Website
   Premium Agency-Grade CSS
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-deep: #0d0d1a;
  --color-accent: #ff6b35;
  --color-accent-hover: #e55a28;
  --color-accent-glow: rgba(255, 107, 53, 0.35);
  --color-light: #f5f5f5;
  --color-lighter: #f8f8f8;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #e0e0e0;
  --color-success: #27ae60;
  --color-danger: #e74c3c;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
  --shadow-accent: 0 8px 32px rgba(255, 107, 53, 0.25);
  --shadow-colored: 0 12px 40px rgba(26, 26, 46, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-premium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-overshoot: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --container-max: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent), #e55520);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff9a5c, var(--color-accent));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* --- Grain / Noise Texture Overlay --- */
.grain {
  position: relative;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-premium);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Ripple effect container */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #ff8f5c);
  color: var(--color-white);
  box-shadow: 0 4px 16px var(--color-accent-glow);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--color-accent-glow);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--color-white);
  background: transparent;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}

.btn-outline-dark {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

.btn-dark {
  background: linear-gradient(135deg, var(--color-primary), #2a2a4e);
  color: var(--color-white);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #2a2a4e, var(--color-primary));
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #20c05c);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20c05c, #1aad50);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  height: var(--header-height);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-white);
  transition: color var(--transition-base);
  z-index: 1001;
  letter-spacing: 0.02em;
}

.logo svg {
  width: 36px;
  height: 36px;
}

.header.scrolled .logo {
  color: var(--color-primary);
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), #ff9a5c);
  transition: width var(--transition-premium);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--color-white);
}

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

.header.scrolled .nav-link {
  color: var(--color-text-light);
}

.header.scrolled .nav-link:hover {
  color: var(--color-primary);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  transition: color var(--transition-base);
}

.header-phone svg {
  width: 20px;
  height: 20px;
}

.header.scrolled .header-phone {
  color: var(--color-primary);
}

.header-phone:hover {
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
}

.header.scrolled .hamburger span {
  background: var(--color-primary);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-white);
  z-index: 1000;
  padding: 100px 32px 32px;
  transition: right var(--transition-premium);
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  display: block;
  color: var(--color-text);
  font-size: 1.25rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-link:hover {
  color: var(--color-accent);
}

.mobile-menu .header-phone {
  color: var(--color-primary);
  margin-top: 24px;
  font-size: 1.25rem;
}

@media (max-width: 992px) {
  .nav, .header-phone-desktop {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ========================================
   HERO SECTION — Premium Overhaul
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(15, 52, 96, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
    linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
  animation: heroGradientShift 12s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(15, 52, 96, 0.6) 0%, transparent 50%),
      radial-gradient(ellipse at 60% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
      linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
  }
  100% {
    background:
      radial-gradient(ellipse at 40% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 60% 70%, rgba(15, 52, 96, 0.5) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 60%, rgba(255, 143, 92, 0.1) 0%, transparent 40%),
      linear-gradient(135deg, #0f3460 0%, #16213e 30%, #1a1a2e 60%, #0d0d1a 100%);
  }
}

/* Dot grid overlay */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

/* Floating geometric shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--color-accent), transparent);
  top: -10%;
  right: -5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: floatShape1 20s ease-in-out infinite;
}

.hero-shape-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(225deg, #0f3460, transparent);
  bottom: 10%;
  left: -3%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: floatShape2 16s ease-in-out infinite;
}

.hero-shape-3 {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(255, 107, 53, 0.15);
  top: 20%;
  right: 20%;
  border-radius: 0;
  transform: rotate(45deg);
  animation: floatShape3 14s ease-in-out infinite;
  background: none;
  opacity: 1;
}

.hero-shape-4 {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,0.08);
  bottom: 25%;
  right: 10%;
  border-radius: 50%;
  background: none;
  opacity: 1;
  animation: floatShape2 18s ease-in-out infinite reverse;
}

@keyframes floatShape1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, 20px) rotate(5deg); }
  66% { transform: translate(20px, -30px) rotate(-3deg); }
}

@keyframes floatShape2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -20px) rotate(8deg); }
}

@keyframes floatShape3 {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(50deg) translate(15px, -15px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,0.9);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge svg {
  color: var(--color-accent);
}

.hero h1 {
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #c8d8e8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-accent {
  box-shadow: 0 4px 24px var(--color-accent-glow), 0 0 60px rgba(255, 107, 53, 0.15);
}

.hero .btn-accent:hover {
  box-shadow: 0 8px 40px var(--color-accent-glow), 0 0 80px rgba(255, 107, 53, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 11px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: mouseScroll 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes mouseScroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@media (max-width: 768px) {
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .scroll-indicator { display: none; }
  .hero-shape { display: none; }
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-light {
  background: var(--color-light);
}

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

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff9a5c);
  border-radius: 2px;
}

.section-dark .section-header h2 {
  color: var(--color-white);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 12px auto 0;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.6);
}

/* Section label (uppercase small text above heading) */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* ========================================
   SCROLL ANIMATIONS — Premium
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Legacy animation classes - kept for compatibility */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger children — used in grids */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.56s; }

/* Also support .fade-in stagger for backward compat */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.40s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.48s; }
.stagger-children .fade-in:nth-child(8) { transition-delay: 0.56s; }

/* ========================================
   BENTO CATEGORIES GRID
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

/* Two-card layout for focused categories */
.categories-grid-two {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(240px, auto);
}

.categories-grid-two .category-card {
  padding: 40px 32px;
}

.categories-grid-two .category-card .category-icon svg {
  width: 72px;
  height: 72px;
}

.categories-grid-two .category-card h3 {
  font-size: 1.5rem;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  margin-bottom: 4px;
}

/* Featured items span 2 columns (for multi-card grids) */
.categories-grid:not(.categories-grid-two) .category-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 1;
}

.categories-grid:not(.categories-grid-two) .category-card:nth-child(2) {
  grid-column: span 2;
  grid-row: span 1;
}

.category-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-spring);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Unique accent tints per card */
.category-card:nth-child(1) { border-bottom: 3px solid #ff6b35; }
.category-card:nth-child(2) { border-bottom: 3px solid #e74c3c; }
.category-card:nth-child(3) { border-bottom: 3px solid #3498db; }
.category-card:nth-child(4) { border-bottom: 3px solid #2ecc71; }
.category-card:nth-child(5) { border-bottom: 3px solid #f39c12; }
.category-card:nth-child(6) { border-bottom: 3px solid #9b59b6; }
.category-card:nth-child(7) { border-bottom: 3px solid #1abc9c; }
.category-card:nth-child(8) { border-bottom: 3px solid #e67e22; }

/* Inner glow on hover */
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(255, 107, 53, 0.15);
}

.category-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.02));
  border-radius: var(--radius-md);
  transition: all var(--transition-premium);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--color-accent), #ff8f5c);
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.category-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-accent);
  transition: all var(--transition-base);
}

.category-card:hover .category-icon svg {
  fill: var(--color-white);
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.category-card .price-hint {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
  }
  .categories-grid:not(.categories-grid-two) .category-card:nth-child(1),
  .categories-grid:not(.categories-grid-two) .category-card:nth-child(2) {
    grid-column: span 1;
  }
  .categories-grid-two {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
}

@media (max-width: 576px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 20px 16px; }
}

/* ========================================
   TRUST MARQUEE
   ======================================== */
.marquee-section {
  padding: 40px 0;
  overflow: hidden;
  background: var(--color-primary-deep);
  position: relative;
}

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

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

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-content span {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.06);
  padding: 0 20px;
  transition: color 0.3s ease;
}

.marquee-content span.separator {
  color: rgba(255, 107, 53, 0.15);
  font-size: 1.5rem;
  padding: 0 10px;
}

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

/* ========================================
   ADVANTAGES SECTION
   ======================================== */
.advantages-section {
  position: relative;
  overflow: hidden;
}

.advantages-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(0,0,0,0.008) 20px,
      rgba(0,0,0,0.008) 21px
    );
  pointer-events: none;
}

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

.advantage-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition-spring);
  position: relative;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.advantage-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.03));
  border-radius: 50%;
  transition: all var(--transition-premium);
}

.advantage-card:hover .advantage-icon {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.08));
  transform: scale(1.08);
}

.advantage-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-accent);
}

.advantage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

@media (max-width: 576px) {
  .advantages-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ========================================
   GLASSMORPHISM PRODUCT CARDS
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-spring);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

/* Category-based top border */
.product-card[data-category="cement"] { border-top: 3px solid #8a8a8a; }
.product-card[data-category="blocks"] { border-top: 3px solid #c0b9a8; }
.product-card[data-category="brick"] { border-top: 3px solid #c0522e; }
.product-card[data-category="wood"] { border-top: 3px solid #c4956a; }
.product-card[data-category="sheets"] { border-top: 3px solid #d4a870; }
.product-card[data-category="metal"] { border-top: 3px solid #7a8a9a; }
.product-card[data-category="finishing"] { border-top: 3px solid #b88558; }

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.12), 0 0 0 1px rgba(255, 107, 53, 0.1);
}

.product-card:hover .product-image::after {
  opacity: 0.5;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  height: 220px;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fff;
}

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

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

/* Availability dot indicator */
.product-card .availability-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(39, 174, 96, 0.1); }
}

/* Legacy gradient backgrounds removed — now using real product images */

.product-image-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--color-accent), #ff8f5c);
  color: var(--color-white);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 12px var(--color-accent-glow);
  letter-spacing: 0.02em;
}

.product-info {
  padding: 20px;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.product-card:hover h3 {
  color: var(--color-accent);
}

.product-specs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.product-price .current {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), #2a2a4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.product-card .btn {
  width: 100%;
}

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

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

/* ========================================
   CALCULATOR SECTION — Dark with orbs
   ======================================== */
.calculator-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08), transparent 70%);
  border-radius: 50%;
  animation: orbFloat 10s ease-in-out infinite;
}

.calculator-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.3), transparent 70%);
  border-radius: 50%;
  animation: orbFloat 14s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

.calculator-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calculator-text h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.calculator-text p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

.calculator-form {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15), 0 0 20px rgba(255, 107, 53, 0.05);
}

.form-select option {
  background: var(--color-primary);
  color: var(--color-white);
}

.calculator-result {
  margin-top: 20px;
  padding: 24px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-md);
  display: none;
}

.calculator-result.active {
  display: block;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.calculator-result h4 {
  color: var(--color-accent);
  margin-bottom: 8px;
  font-size: 1rem;
}

.calculator-result .result-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
}

.calculator-result p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .calculator-content { grid-template-columns: 1fr; gap: 32px; }
  .calculator-form { padding: 24px; }
}

/* ========================================
   CTA SECTION — Gradient with mesh
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e55520 40%, #c44015 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-text h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

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

.cta-form .form-input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

.cta-form .form-input:focus {
  background: rgba(255,255,255,0.22);
  border-color: var(--color-white);
}

.cta-buttons {
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .cta-content { grid-template-columns: 1fr; gap: 32px; }
  .cta-buttons { flex-direction: column; }
}

/* ========================================
   FOOTER — Dark gradient with pattern
   ======================================== */
.footer {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo svg {
  width: 36px;
  height: 36px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.45);
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  padding: 7px 0;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

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

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========================================
   CATALOG PAGE
   ======================================== */
.page-header {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #c8d8e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: rgba(255,255,255,0.5);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  color: rgba(255,255,255,0.2);
}

.breadcrumbs .current {
  color: rgba(255,255,255,0.7);
}

.breadcrumbs-light { margin-bottom: 16px; }
.breadcrumbs-light a { color: var(--color-text-muted); }
.breadcrumbs-light a:hover { color: var(--color-accent); }
.breadcrumbs-light span { color: var(--color-text-muted); }
.breadcrumbs-light .current { color: var(--color-text); }

/* Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.sidebar-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.sidebar-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-light);
}

.category-list li {
  margin-bottom: 2px;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.category-list a:hover,
.category-list a.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.02));
  color: var(--color-accent);
}

.category-list .count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Catalog Toolbar */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-sort label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

@media (max-width: 992px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .sidebar-mobile-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .sidebar-mobile-toggle:hover {
    background: var(--color-light);
    border-color: var(--color-accent);
  }
  .catalog-sidebar.hidden-mobile {
    display: none;
  }
}

@media (min-width: 993px) {
  .sidebar-mobile-toggle { display: none; }
}

/* ========================================
   PRODUCT PAGE
   ======================================== */
.product-detail {
  padding: 40px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.product-gallery {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 450px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.product-detail-sku {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-light), rgba(255, 107, 53, 0.04));
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.04);
}

.product-detail-price .current {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.product-detail-price .old {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-detail-price .discount {
  background: linear-gradient(135deg, var(--color-accent), #ff8f5c);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--color-success);
  font-weight: 500;
}

.product-availability::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

.product-availability svg {
  width: 20px;
  height: 20px;
  fill: var(--color-success);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

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

.quantity-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  font-size: 1.2rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.quantity-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.quantity-input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 1rem;
  background: var(--color-white);
}

.product-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-light);
  transition: background var(--transition-fast);
}

.specs-table tr:hover {
  background: rgba(255, 107, 53, 0.02);
}

.specs-table td {
  padding: 14px 0;
  font-size: 0.95rem;
}

.specs-table td:first-child {
  color: var(--color-text-muted);
  width: 40%;
}

.specs-table td:last-child {
  font-weight: 500;
}

.product-description {
  margin-top: 40px;
}

.product-description h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.product-description p {
  line-height: 1.8;
}

@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { height: 300px; }
  .product-detail-price .current { font-size: 2rem; }
  .product-actions { flex-wrap: wrap; }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content {
  padding: 60px 0;
}

.about-text {
  max-width: 800px;
  margin: 0 auto 60px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

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

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: all var(--transition-spring);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), #ff8f5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

.gallery-item {
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-premium);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.gallery-warehouse { background: linear-gradient(135deg, #8a9aaa 0%, #6a7a8a 30%, #a0b0c0 60%, #7a8a9a 100%); }
.gallery-products { background: linear-gradient(135deg, #c4956a 0%, #a07a50 30%, #d4a574 60%, #b88a5c 100%); }
.gallery-delivery { background: linear-gradient(135deg, #6a8060 0%, #5a7050 30%, #7a9070 60%, #688058 100%); }

@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-gallery { grid-template-columns: 1fr; }
}

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

/* ========================================
   CONTACTS PAGE
   ======================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff9a5c);
  transform: scaleX(0);
  transition: transform var(--transition-premium);
  transform-origin: left;
}

.contact-card:hover::after {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.contact-card svg {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0;
}

.contact-card a {
  color: var(--color-accent);
  font-weight: 600;
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  background: var(--color-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 400px;
}

.contact-form-section {
  padding: 80px 0;
  background: var(--color-light);
  position: relative;
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 0.9rem;
}

.contact-form .form-input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-lighter);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.contact-form .form-input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.08);
}

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

@media (max-width: 768px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #20c05c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-premium);
  animation: pulseWhatsapp 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes pulseWhatsapp {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.08); }
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 998;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), #2a2a4e);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-premium);
  box-shadow: var(--shadow-colored);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--color-accent), #ff8f5c);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

/* ========================================
   NOTIFICATION TOAST
   ======================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--color-primary), #2a2a4e);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all var(--transition-spring);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   INNER PAGE HEADER
   ======================================== */
.header-inner-page {
  background: var(--color-primary);
}

.header-inner-page.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
}

/* ========================================
   LOADING SKELETON
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   FORM ERROR STATE
   ======================================== */
.form-input.error,
.form-select.error,
textarea.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */
.related-products {
  padding: 80px 0;
  background: var(--color-light);
}

.related-products h2 {
  margin-bottom: 32px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .header, .footer, .whatsapp-float, .back-to-top, .mobile-menu, .mobile-menu-overlay, .scroll-progress {
    display: none !important;
  }
  body { font-size: 12pt; color: #000; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero-bg, .hero-shape, .hero-dots { display: none; }
  .hero h1 { color: #000; font-size: 24pt; -webkit-text-fill-color: #000; }
  .section { padding: 20px 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .fade-in, .fade-in-left, .fade-in-right, .scale-in {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ============================================
   Floating CTA Button & Modal
   ============================================ */

/* --- Floating Button --- */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
  color: #fff;
  border: none;
  border-radius: 60px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4), 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatPulse 3s ease-in-out infinite;
}

.floating-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5), 0 4px 12px rgba(0,0,0,0.15);
}

.floating-cta:active {
  transform: translateY(-2px) scale(1.02);
}

.floating-cta svg {
  flex-shrink: 0;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4), 0 2px 8px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 8px 40px rgba(255, 107, 53, 0.6), 0 2px 12px rgba(0,0,0,0.15); }
}

@media (max-width: 576px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 14px 22px;
    font-size: 0.9rem;
  }
  .floating-cta span {
    display: none;
  }
  .floating-cta {
    padding: 16px;
    border-radius: 50%;
  }
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Modal --- */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9999;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #e0e0e0;
  color: #333;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h3 {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.95rem;
  color: #888;
  margin: 0;
}

.modal-form-group {
  margin-bottom: 20px;
}

.modal-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 8px;
}

.modal-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1rem;
  color: #333;
  background: #fafafa;
  transition: all 0.3s ease;
  outline: none;
}

.modal-input:focus {
  border-color: #ff6b35;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.modal-input::placeholder {
  color: #bbb;
}

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

.modal-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.modal-submit:active {
  transform: translateY(0);
}

.modal-privacy {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Modal success state */
.modal-form.success .modal-form-group,
.modal-form.success .modal-submit,
.modal-form.success .modal-privacy {
  display: none;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

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

.modal-success svg {
  color: #27ae60;
  margin-bottom: 16px;
}

.modal-success h4 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.modal-success p {
  color: #888;
  margin: 0;
}

@media (max-width: 576px) {
  .modal {
    padding: 28px 24px;
    border-radius: 20px;
    width: 94%;
  }
  .modal-header h3 {
    font-size: 1.4rem;
  }
}

/* Hide back-to-top if it conflicts */
.back-to-top {
  bottom: 100px;
  right: 32px;
}

@media (max-width: 576px) {
  .back-to-top {
    bottom: 88px;
    right: 20px;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   ============================================ */

/* --- Tablet (max 992px) --- */
@media (max-width: 992px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding: 72px 0;
  }

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

  .section-header p {
    font-size: 1rem;
  }

  /* Hero adjustments */
  .hero {
    min-height: 85vh;
  }

  .hero-content {
    max-width: 100%;
    padding: 20px 0;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  /* Product cards 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-image {
    height: 200px;
  }

  /* Advantages 2x2 */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .advantage-card {
    padding: 32px 20px;
  }

  /* Calculator side-by-side → stacked */
  .calculator-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .calculator-text {
    text-align: center;
  }

  /* CTA stacked */
  .cta-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  /* Footer 2 columns */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer {
    padding: 60px 0 0;
  }

  /* Product detail page */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-gallery {
    height: 350px;
  }

  .product-detail-price .current {
    font-size: 2rem;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.75rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.35rem); }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

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

  .section-header h2::after {
    width: 40px;
    height: 2px;
  }

  .section-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  /* Hero — compact and impactful */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .hero-shape {
    display: none;
  }

  .hero-dots {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  /* Categories — 1 column on small phones */
  .categories-grid,
  .categories-grid-two {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .categories-grid-two .category-card {
    padding: 28px 24px;
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .categories-grid-two .category-card .category-icon {
    margin: 0;
  }

  .categories-grid-two .category-card .category-icon svg {
    width: 48px;
    height: 48px;
  }

  .categories-grid-two .category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }

  .category-desc {
    font-size: 0.82rem;
  }

  .category-card:hover {
    transform: translateY(-4px) rotate(0deg);
  }

  /* Advantages — 1 column stacked */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .advantage-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }

  .advantage-icon {
    margin: 0;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
  }

  .advantage-icon svg {
    width: 28px;
    height: 28px;
  }

  .advantage-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .advantage-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  /* Products — 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-image {
    height: 160px;
  }

  .product-image img {
    padding: 10px;
  }

  .product-info {
    padding: 14px;
  }

  .product-card h3 {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .product-specs {
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    margin-bottom: 10px;
    gap: 6px;
  }

  .product-price .current {
    font-size: 1.1rem;
  }

  .product-price .old {
    font-size: 0.75rem;
  }

  .product-card .btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .product-image-label {
    font-size: 0.65rem;
    padding: 3px 10px;
    top: 8px;
    left: 8px;
  }

  .product-card .availability-dot {
    width: 8px;
    height: 8px;
    top: 8px;
    right: 8px;
  }

  .product-card:hover {
    transform: translateY(-4px);
  }

  /* Marquee */
  .marquee-section {
    padding: 28px 0;
  }

  .marquee-content span {
    font-size: 1.2rem;
    padding: 0 12px;
  }

  /* Calculator */
  .calculator-section {
    padding: 48px 0;
  }

  .calculator-form {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .calculator-text h2 {
    font-size: 1.4rem;
  }

  .calculator-text p {
    font-size: 0.95rem;
  }

  .calculator-result .result-price {
    font-size: 1.5rem;
  }

  /* CTA */
  .cta-section {
    padding: 48px 0;
  }

  .cta-text h2 {
    font-size: 1.4rem;
  }

  .cta-text p {
    font-size: 0.95rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-form .form-input {
    padding: 14px;
    font-size: 0.95rem;
  }

  /* Footer */
  .footer {
    padding: 48px 0 0;
  }

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

  .footer-logo {
    font-size: 1.3rem;
  }

  .footer h4 {
    margin-bottom: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 0;
    font-size: 0.75rem;
  }

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

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

  .product-gallery {
    height: 280px;
    border-radius: 16px;
  }

  .product-gallery img {
    object-fit: contain;
    padding: 16px;
  }

  .product-detail-info h1 {
    font-size: 1.4rem;
  }

  .product-detail-price {
    padding: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-detail-price .current {
    font-size: 1.75rem;
  }

  .product-actions {
    flex-direction: column;
    gap: 10px;
  }

  .product-actions .btn {
    width: 100%;
  }

  .quantity-selector {
    align-self: stretch;
    justify-content: center;
  }

  .specs-table td {
    padding: 10px 0;
    font-size: 0.88rem;
  }

  .product-description h2 {
    font-size: 1.2rem;
  }

  /* Related products */
  .related-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Page header (catalog, about, contacts) */
  .page-header {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 32px;
  }

  .page-header h1 {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
  }

  /* Catalog layout */
  .catalog-layout {
    padding: 24px 0;
    gap: 20px;
  }

  .sidebar-section {
    padding: 16px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* About page stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 20px 16px;
  }

  /* Contact page cards */
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-card {
    padding: 20px;
  }

  /* Contact map */
  .map-container {
    height: 250px;
    border-radius: 16px;
  }

  .map-container iframe {
    border-radius: 16px;
  }

  /* Contact form */
  .contact-form-section {
    padding: 40px 0;
  }

  /* About gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* About advantages list */
  .about-advantages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Requisites */
  .requisites-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Small phones (max 400px) --- */
@media (max-width: 400px) {
  .container {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-image {
    height: 200px;
  }

  .product-info {
    padding: 16px;
  }

  .product-card h3 {
    font-size: 0.95rem;
  }

  .product-price .current {
    font-size: 1.2rem;
  }

  .advantage-card {
    flex-direction: column;
    text-align: center;
  }

  .advantage-icon {
    margin: 0 auto;
  }

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

  .footer-logo {
    font-size: 1.15rem;
  }

  .calculator-form {
    padding: 20px 16px;
  }

  .modal {
    padding: 24px 16px;
    border-radius: 16px;
    width: 96%;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .modal-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .modal-submit {
    padding: 14px;
    font-size: 1rem;
  }
}

/* --- Safe area for notched phones --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floating-cta {
    bottom: calc(32px + env(safe-area-inset-bottom));
  }

  @media (max-width: 576px) {
    .floating-cta {
      bottom: calc(20px + env(safe-area-inset-bottom));
    }
  }

  .footer-bottom {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

/* --- Touch device optimizations --- */
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .category-card:hover {
    transform: none;
  }

  .advantage-card:hover {
    transform: none;
  }

  .product-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .category-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  .btn:hover::after {
    opacity: 0;
  }

  .btn:active {
    transform: scale(0.97);
  }
}
