/* ============================================================
   BAMBU.UZ — Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --green:       #00AE42;
  --green-dark:  #007a2e;
  --green-light: #e6f9ee;
  --blue:        #0EA5E9;
  --purple:      #6C63FF;
  --orange:      #FF6B35;
  --yellow:      #F59E0B;
  --red:         #EF4444;

  --dark:        #0d0d0d;
  --dark-2:      #1a1a1a;
  --gray-900:    #111827;
  --gray-800:    #1f2937;
  --gray-700:    #374151;
  --gray-600:    #4b5563;
  --gray-500:    #6b7280;
  --gray-400:    #9ca3af;
  --gray-300:    #d1d5db;
  --gray-200:    #e5e7eb;
  --gray-100:    #f3f4f6;
  --gray-50:     #f9fafb;
  --white:       #ffffff;

  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.18);
  --transition:  0.25s ease;
  --header-h:    64px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea { font-family: var(--font); }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.bg-light { background: var(--gray-50); }

.text-center { text-align: center; }
.text-dark   { color: var(--gray-900) !important; }
.text-muted  { color: var(--gray-500) !important; }
.text-green  { color: var(--green); }

/* ---------- Typography ---------- */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,174,66,.4);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--gray-900);
  border: 2px solid var(--gray-700);
}
.btn-outline-dark:hover {
  background: var(--gray-900);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.text-link {
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
  transition: opacity var(--transition);
}
.text-link:hover { opacity: 0.75; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  overflow: hidden;
}

.announcement-inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.announcement-inner .separator {
  opacity: 0.5;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--gray-900);
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover .nav-link {
  color: var(--green);
  background: var(--green-light);
}

.chevron {
  font-size: 0.7rem;
  transition: transform var(--transition);
}
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 999;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all var(--transition);
}
.dropdown a:hover {
  color: var(--green);
  background: var(--green-light);
}

/* Mega Dropdown */
.mega-dropdown {
  min-width: 520px;
}

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

.dropdown-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px 4px;
  margin-bottom: 4px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  transition: all var(--transition);
  position: relative;
}
.icon-btn:hover {
  background: var(--gray-100);
  color: var(--green);
}

.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Search Bar */
.search-bar {
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: none;
}
.search-bar.active { display: block; }
.search-bar .container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--green); }

.search-close {
  color: var(--gray-500);
  font-size: 1.1rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.search-close:hover { color: var(--gray-900); background: var(--gray-200); }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--gray-100); }
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: calc(var(--header-h) + 40px); /* announcement + header */
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu nav {
  padding: 16px;
}

.mobile-menu nav a,
.mobile-menu nav summary {
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.mobile-menu nav a:hover,
.mobile-menu nav summary:hover {
  background: var(--green-light);
  color: var(--green);
}

.mobile-menu details { margin-bottom: 4px; }
.mobile-menu details[open] summary { color: var(--green); }
.mobile-menu details a {
  padding-left: 32px;
  font-size: 0.875rem;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: clamp(480px, 75vh, 700px);
}

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}

.slide-text {
  flex: none;
  max-width: 560px;
  z-index: 2;
  position: relative;
}

.slide-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-new      { background: rgba(0,174,66,.2);  color: var(--green); border: 1px solid rgba(0,174,66,.3); }
.badge-bestseller{ background: rgba(245,158,11,.2); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }
.badge-value    { background: rgba(255,255,255,.2); color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.badge-hot      { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }

.slide-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
}

.slide-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 32px;
  line-height: 1.5;
}

.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.slide-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

/* Gradient overlay so text stays readable over the photo */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.slide-dark::after  { background: linear-gradient(90deg, rgba(5,5,20,0.88) 0%, rgba(5,5,20,0.55) 52%, rgba(5,5,20,0.1) 100%); }
.slide-light::after { background: linear-gradient(90deg, rgba(245,248,245,0.95) 0%, rgba(245,248,245,0.72) 52%, rgba(245,248,245,0.05) 100%); }
.slide-green::after { background: linear-gradient(90deg, rgba(0,70,25,0.88) 0%, rgba(0,70,25,0.55) 52%, rgba(0,70,25,0.08) 100%); }
.slide-dark2::after { background: linear-gradient(90deg, rgba(15,3,50,0.90) 0%, rgba(15,3,50,0.55) 52%, rgba(15,3,50,0.08) 100%); }

.printer-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
}

.printer-visual img,
.printer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: right center;
  filter: none;
  animation: none;
  border-radius: 0;
  z-index: 0;
}

/* Per-slide image positioning */
.slide-dark  .printer-img { object-position: 65% center; }
.slide-light .printer-img { object-position: right center; }
.slide-green .printer-img { object-position: center 15%; }
.slide-dark2 .printer-img { object-position: right center; }

.printer-svg {
  width: 320px;
  height: 340px;
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,.5));
}

.printer-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 300px;
  border: 2px dashed rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.05);
  animation: float 4s ease-in-out infinite;
}

.printer-placeholder::after {
  content: attr(data-model);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,.15);
  letter-spacing: -.05em;
}

.printer-glow { display: none; }

.printer-glow.purple { display: none; }

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

@keyframes pulse-glow {
  0%   { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  transition: all var(--transition);
  z-index: 10;
}
.slider-btn:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-50%) scale(1.05);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: all var(--transition);
  cursor: pointer;
}
.dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 4px;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  gap: 0;
  overflow: hidden;
}

.category-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Image container */
.category-img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f4f0;
  flex-shrink: 0;
}

.category-img-box.category-img-contain {
  background: #f5f8ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.category-img-box.category-img-contain img {
  object-fit: contain;
  padding: 12px;
}

.category-card:hover .category-img-box img {
  transform: scale(1.06);
}

/* Text body */
.category-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}

.category-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.category-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-image-wrap {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-model-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.2);
  letter-spacing: -.05em;
}

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

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.product-name a:hover { color: var(--green); }

.product-tagline {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-specs span {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: 100px;
  color: var(--gray-600);
  font-weight: 500;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

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

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.why-icon {
  width: 60px;
  height: 60px;
}
.why-icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}

.why-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   AMS SECTION
   ============================================================ */
.ams-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ams-text {
  color: var(--white);
}

.label-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0,174,66,.2);
  color: var(--green);
  border: 1px solid rgba(0,174,66,.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.ams-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.ams-text p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ams-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.ams-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
}

.ams-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.ams-colors-demo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.color-spool {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  animation: spin 8s linear infinite;
  position: relative;
}

.color-spool::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
}

@keyframes spin {
  0%   { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

.ams-arrow {
  display: flex;
  align-items: center;
  color: var(--green);
}

.ams-box {
  width: 100px;
  height: 100px;
  background: rgba(0,174,66,.15);
  border: 2px solid rgba(0,174,66,.4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite alternate;
}

.ams-box-inner {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .05em;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,174,66,.4); }
  100% { box-shadow: 0 0 0 16px rgba(0,174,66,0); }
}

/* ============================================================
   USE CASES
   ============================================================ */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

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

.usecase-bg {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.usecase-icon {
  font-size: 3.5rem;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}

.usecase-text {
  padding: 20px;
}

.usecase-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.usecase-text p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============================================================
   FILAMENTS
   ============================================================ */
.filaments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.filament-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}

.filament-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.filament-swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.more-colors {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
}

.filament-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.filament-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  flex: 1;
}

.filament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: 100px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ============================================================
   SOFTWARE SECTION
   ============================================================ */
.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.software-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}

.software-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.software-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.software-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.software-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}

.review-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.review-stars {
  color: var(--yellow);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

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

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-900);
}

.review-author span {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.blog-category {
  background: rgba(0,0,0,.5);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(4px);
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}
.blog-card h3 a:hover { color: var(--green); }

.blog-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  flex: 1;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.newsletter-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.newsletter-text p {
  color: rgba(255,255,255,.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input-wrap {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-input::placeholder { color: rgba(255,255,255,.4); }

.newsletter-input:focus {
  border-color: var(--green);
  background: rgba(255,255,255,.12);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.newsletter-consent span {
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.newsletter-consent a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-800);
}

.footer-brand .footer-logo { margin-bottom: 16px; }

.footer-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-200);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

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

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--green); }

.footer-contacts li {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.footer-contacts a { color: var(--gray-500); }
.footer-contacts a:hover { color: var(--green); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--gray-600);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

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

@media (max-width: 1100px) {
  .categories-grid    { grid-template-columns: repeat(2, 1fr); }
  .products-grid      { grid-template-columns: repeat(2, 1fr); }
  .filaments-grid     { grid-template-columns: repeat(2, 1fr); }
  .why-grid           { grid-template-columns: repeat(2, 1fr); }
  .software-grid      { grid-template-columns: 1fr 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .dropdown-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-desktop        { display: none; }
  .mobile-menu-btn    { display: flex; }
  .hero-slider        { height: clamp(380px, 60vh, 560px); }
  .slide-content      { justify-content: center; text-align: center; }
  .slide-actions      { justify-content: center; }
  .slide-text         { max-width: 560px; }
  .ams-inner          { grid-template-columns: 1fr; }
  .ams-visual         { justify-content: flex-start; }
  .newsletter-inner   { grid-template-columns: 1fr; }
  .newsletter-input-wrap { flex-direction: column; }
  .usecases-grid      { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid       { grid-template-columns: 1fr 1fr; }
  .blog-grid          { grid-template-columns: 1fr 1fr; }
  .section            { padding: 60px 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .announcement-inner { flex-direction: column; gap: 4px; text-align: center; }
  .announcement-inner .separator { display: none; }
  .categories-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .products-grid      { grid-template-columns: 1fr 1fr; gap: 12px; }
  .filaments-grid     { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-grid           { grid-template-columns: 1fr; }
  .software-grid      { grid-template-columns: 1fr; }
  .reviews-grid       { grid-template-columns: 1fr; }
  .usecases-grid      { grid-template-columns: 1fr 1fr; }
  .blog-grid          { grid-template-columns: 1fr; }
  .section-header     { flex-direction: column; align-items: flex-start; }
  .footer-grid        { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom      { flex-direction: column; text-align: center; }
  .footer-legal       { justify-content: center; }
  .hero-slider        { height: auto; min-height: 420px; }
  .slide-text { padding: 16px; }
  .slider-btn { width: 36px; height: 36px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
  .section { padding: 48px 0; }
}

/* ============================================================
   SCROLL ANIMATIONS (lightweight)
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.5s; }

/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
