/* B2B Enterprise heading font — Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ==========================================================================
   Design Tokens & Variables — Light Theme
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F7FC;
  --color-bg-dark: #1A2340;
  --color-bg-dark-deeper: #111827;

  --color-orange: #FF6B00;
  --color-orange-hover: #A34400;
  --color-orange-light: rgba(255, 107, 0, 0.08);
  --color-orange-border: rgba(255, 107, 0, 0.25);
  /* Затемненный оттенок для ТЕКСТА (заголовки, цены, ссылки) — тот же оранжевый по духу,
     но проходит контраст WCAG AA (4.5:1) на белом. Фоны/иконки/бордеры используют --color-orange. */
  --color-orange-text: #C2410C;
  /* Затемненный оттенок для ЗАЛИТЫХ кнопок с белым текстом — проходит 4.5:1, где --color-orange (2.86:1) не проходил. */
  --color-orange-btn: #C25100;

  --color-text: #1A1E2D;
  --color-text-secondary: #5A6478;
  --color-text-muted: #8C95A6;
  --color-text-light: #FFFFFF;
  --color-text-light-muted: rgba(255,255,255,0.65);

  --color-border: #E2E8F2;
  --color-border-hover: #CBD5E1;

  --color-surface: #FFFFFF;
  --color-surface-alt: #F8FAFC;

  --color-success: #10B981;
  --color-whatsapp: #25D366;
  --color-telegram: #2AABEE;
  --color-max: #3E2FEE;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.14);
  --shadow-orange: 0 4px 20px rgba(255,107,0,0.35);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-width: 1240px;
  --header-height: 72px;
  --topbar-height: 36px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

/* Уважаем системную настройку "уменьшить движение" — гасим анимации сайтвайдно,
   финальное состояние сохраняется, чтобы верстка не ломалась. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--color-text-secondary); margin-bottom: 1rem; line-height: 1.7; }

.text-accent { color: var(--color-orange-text); }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-muted { color: var(--color-text-muted); }
.lead-text { font-size: 1.15rem; color: var(--color-text-secondary); line-height: 1.8; }
.text-small { font-size: 0.875rem; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-orange-text);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.justify-center { justify-content: center; }
.d-flex { display: flex; }
.gap-2 { gap: 1rem; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; background-color: var(--color-bg); }
.section-alt { padding: 5rem 0; background-color: var(--color-bg-alt); }
.section-dark { padding: 5rem 0; background-color: var(--color-bg-dark); }
.section-blue { padding: 5rem 0; background-color: var(--color-bg-dark); }

/* Keep old class for compatibility */
.border-top-accent { border-top: 1px solid var(--color-border); }

/* ==========================================================================
   Top Bar (above header)
   ========================================================================== */
.header-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  background: var(--color-bg-dark-deeper);
  z-index: 1001;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.topbar-link:hover { color: var(--color-orange-text); }
.topbar-link i { font-size: 0.72rem; }

.topbar-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}

.topbar-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.topbar-text i { font-size: 0.72rem; }

.topbar-phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.2;
}

.topbar-phone-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.topbar-phone {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar-phone:hover { color: var(--color-orange-text); }

.topbar-messengers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-messenger {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}
.topbar-messenger:hover { background: var(--color-orange); color: #fff; }

.topbar-max img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  filter: brightness(5);
}

/* Topbar search */
.topbar-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  height: 26px;
  transition: border-color 0.2s;
  position: relative;
}

.site-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 360px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 500;
}
.site-search-dropdown.open { display: block; }
.site-search-item {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--color-text);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.site-search-item:last-child { border-bottom: none; }
.site-search-item:hover, .site-search-item.active { background: var(--color-bg-alt); color: var(--color-orange-text); }
.site-search-empty {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.topbar-search-wrap:focus-within {
  border-color: var(--color-orange);
}

.topbar-search-input {
  border: none;
  background: transparent;
  padding: 0 0.6rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  outline: none;
  width: 160px;
  height: 100%;
}
.topbar-search-input::placeholder { color: rgba(255,255,255,0.4); }

.topbar-search-btn {
  background: none;
  border: none;
  padding: 0 0.6rem;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  height: 100%;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.topbar-search-btn:hover { color: var(--color-orange-text); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-text);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo span { color: var(--color-orange-text); }

.logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.logo-footer .logo-img {
  height: 34px;
}

/* Floating MAX button with PNG icon */
.floating-max-btn {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  overflow: hidden;
}
.floating-max-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* MAX icon PNG in inline buttons */
.max-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.nav-link-hot { color: var(--color-orange-text) !important; font-weight: 700; }
.nav-link-hot:hover { color: var(--color-orange-hover) !important; }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -2px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
  width: 0;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 1.5rem);
}

.nav-link:hover {
  color: var(--color-text);
  background-color: var(--color-bg-alt);
}

.nav-link.active {
  color: var(--color-orange-text);
  background-color: var(--color-orange-light);
  font-weight: 600;
}

.nav-link i.fa-chevron-down {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown:hover > .nav-link i.fa-chevron-down,
.nav-dropdown:focus-within > .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  padding-top: 0.75rem;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  pointer-events: none;
  z-index: 100;
  /* Bridge gap between nav-link and dropdown */
  margin-top: 0;
}

/* Invisible bridge so mouse can travel from nav-link to dropdown */
.nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
  display: block;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--color-orange);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.4rem 0.5rem;
}

.dropdown-footer {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.dropdown-footer:hover {
  background: var(--color-orange-light);
}

/* Header right side */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

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

/* Buyback link in header */
.header-buyback-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-orange-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--color-orange);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  margin-right: 0.5rem;
}
.header-buyback-link:hover {
  background: var(--color-orange-btn);
  color: #fff;
}

/* Hero chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-chip i { color: var(--color-orange); font-size: 0.9rem; }

/* Catalog nav link - orange highlight */
#drop-catalog > .nav-link {
  color: var(--color-orange-text);
  font-weight: 600;
}
#drop-catalog > .nav-link:hover {
  color: var(--color-orange-text);
  background-color: var(--color-orange-light, #fff5eb);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
  transition-duration: 0.1s;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--color-orange-btn);
  color: #fff;
  border-color: var(--color-orange-btn);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-orange-text);
  border-color: var(--color-orange);
}

.btn-outline:hover {
  background-color: var(--color-orange-btn);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-white {
  background-color: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.btn-white:hover {
  background-color: var(--color-bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-whatsapp {
  background-color: var(--color-telegram);
  color: #fff;
  border-color: var(--color-telegram);
}

.btn-whatsapp:hover {
  background-color: #1a95d5;
  border-color: #1a95d5;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.btn-max {
  background-color: #3E2FEE;
  color: #fff;
  border-color: #3E2FEE;
}
.btn-max:hover {
  background-color: #2E22CC;
  border-color: #2E22CC;
  color: #fff;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 1.25rem; text-align: left; }

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-light);
}

.form-control::placeholder { color: var(--color-text-muted); }

select.form-control {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235A6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* Always readable dark text inside form elements regardless of section bg */
.form-label, label.form-label { color: #1f2937 !important; }
.form-control { color: #111827 !important; background-color: #f9fafb !important; }
.form-control:focus { background-color: #fff !important; }
.form-group { margin-bottom: 1.25rem; }

/* Fix text visibility inside .card on dark sections */
.section-dark .card p,
.section-blue .card p,
.section-dark .card .section-header p,
.section-blue .card .section-header p { color: var(--color-text-secondary) !important; }
.section-dark .card h2, .section-dark .card h3,
.section-blue .card h2, .section-blue .card h3 { color: var(--color-text) !important; }
.section-dark .card .section-label,
.section-blue .card .section-label { color: var(--color-orange-text) !important; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--color-bg-dark) url('https://images.unsplash.com/photo-1586528116311-ad8ed7c80a30?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding-top: calc(var(--header-height) + var(--topbar-height));
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17, 24, 39, 0.96) 0%,
    rgba(26, 35, 64, 0.85) 45%,
    rgba(26, 35, 64, 0.55) 100%
  );
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid var(--color-orange);
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.5rem 1rem 0.5rem 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.75rem;
}
.hero-badge i { color: var(--color-orange); }

.hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

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

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--color-orange);
}

.hero-feature i { color: var(--color-orange); font-size: 1.1rem; }

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  background: var(--color-bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-orange-text);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; margin-bottom: 0; }

/* Dark section text overrides */
.section-dark h2, .section-dark h3, .section-dark h4,
.section-blue h2, .section-blue h3, .section-blue h4 {
  color: #fff;
}

.section-dark p, .section-blue p {
  color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   Solutions Grid (existing, updated style)
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  display: block;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--color-orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-normal);
}

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

.solution-card:hover::before { transform: scaleY(1); }

.solution-icon {
  width: 52px;
  height: 52px;
  background: var(--color-orange-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-orange);
  margin-bottom: 1.25rem;
}

.solution-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.solution-card p { font-size: 0.9rem; margin-bottom: 0; }

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-orange-text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.25rem;
  transition: gap var(--transition-normal);
}

.solution-card:hover .solution-link { gap: 0.75rem; }

/* ==========================================================================
   Catalog Grid
   ========================================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.catalog-card {
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  position: relative;
  cursor: pointer;
}

/* Stretched link — whole card is clickable via the inner solution-link */
.catalog-card .solution-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--color-orange-border);
}

.catalog-card-image {
  height: 260px;
  background: transparent;
  overflow: hidden;
  position: relative;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: scale(1.0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-card:hover .catalog-card-image img {
  transform: scale(1.06);
}

.catalog-card-image i {
  font-size: 3.5rem;
  color: var(--color-orange);
  opacity: 0.8;
}

.catalog-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-orange-btn);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-badge.badge-blue {
  background: #3B82F6;
}

.catalog-card-body { padding: 1.5rem; }
.catalog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.catalog-card-body p { font-size: 0.9rem; margin-bottom: 1rem; }

.catalog-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.spec-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin: 0 0 0.15rem;
}

.spec-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  display: block;
}

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

.catalog-price strong {
  font-size: 1.1rem;
  color: var(--color-orange-text);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Stretched link — whole card is clickable via the inner service-link */
.service-card .service-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
  border-color: rgba(255,120,0,0.4);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-orange-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-orange);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.service-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 0; flex: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-orange-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ==========================================================================
   Marketing Calculator
   ========================================================================== */
.calculator-section {
  background: var(--color-bg-alt);
  padding: 5rem 0;
}

.calculator-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.calculator-header {
  background: var(--color-bg-dark);
  padding: 2.5rem 3rem;
  text-align: center;
}

.calculator-header h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.calculator-header p {
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-size: 1rem;
}

.calculator-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

/* Left panel - params */
.calc-params {
  padding: 2.5rem;
  border-right: 1px solid var(--color-border);
}

.calc-params h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

/* Area slider */
.area-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.area-number-input {
  width: 110px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  flex-shrink: 0;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.area-number-input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-light);
}

.area-suffix {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.area-slider {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
  appearance: none;
  cursor: pointer;
  margin-bottom: 1.75rem;
}

.area-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-orange);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255,107,0,0.2);
  transition: box-shadow var(--transition-fast);
}

.area-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(255,107,0,0.2);
}

/* Pill buttons */
.pill-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  border-color: var(--color-orange-border);
  color: var(--color-orange-text);
}

.pill-btn.active {
  background: var(--color-orange-btn);
  border-color: var(--color-orange-btn);
  color: #fff;
}

/* Rack type cards */
.rack-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.rack-type-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-surface);
}

.rack-type-card:hover {
  border-color: var(--color-orange-border);
  background: var(--color-orange-light);
}

.rack-type-card.active {
  border-color: var(--color-orange);
  background: var(--color-orange-light);
}

.rack-type-card i {
  width: 32px;
  height: 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-orange);
  flex-shrink: 0;
}

.rack-type-card.active i {
  background: var(--color-orange);
  color: #fff;
}

.rack-type-label { font-size: 0.82rem; font-weight: 600; color: var(--color-text); }
.rack-type-sub { font-size: 0.72rem; color: var(--color-text-muted); }

.calc-selects-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Right panel - results */
.calc-results {
  padding: 2.5rem;
  background: linear-gradient(160deg, #F8FAFE 0%, #fff 100%);
  display: flex;
  flex-direction: column;
}

.calc-results h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.result-hero {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.result-hero-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-orange-text);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.result-hero-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.result-metric {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.result-metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-metric-value.accent { color: var(--color-orange-text); }

.result-metric-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* Efficiency bar */
.efficiency-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.efficiency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.efficiency-label { font-size: 0.82rem; font-weight: 600; color: var(--color-text-secondary); }
.efficiency-value { font-size: 0.85rem; font-weight: 700; color: var(--color-orange-text); display: inline-block; }

/* Разовый акцент при высокой эффективности (>70%) — не петля, срабатывает один раз на расчет */
@media (prefers-reduced-motion: no-preference) {
  .efficiency-value--high {
    animation: efficiencyHighPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
}
@keyframes efficiencyHighPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.efficiency-bar-track {
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.efficiency-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-orange) 0%, #FFB347 100%);
  border-radius: var(--radius-full);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scaleX(0);
  transform-origin: left;
}

/* Recommended system */
.result-system {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--color-orange-light);
  border: 1px solid var(--color-orange-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.result-system i { color: var(--color-orange); }
.result-system-text { flex: 1; }
.result-system-name { font-weight: 700; color: var(--color-text); }
.result-system-sub { font-size: 0.75rem; color: var(--color-text-muted); }

/* Lead form in calculator */
.calc-lead-form {
  margin-top: auto;
  padding: 1.25rem;
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
}

.calc-lead-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  text-align: center;
}

.calc-lead-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.calc-lead-input {
  padding: 0.7rem 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.875rem;
  font-family: var(--font-primary);
  transition: border-color var(--transition-normal);
}

.calc-lead-input::placeholder { color: rgba(255,255,255,0.45); }
.calc-lead-input:focus { outline: none; border-color: var(--color-orange); }

.calc-lead-actions {
  display: flex;
  gap: 0.6rem;
}

.calc-disclaimer-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* Old calc classes for backwards compat */
.calc-wrapper { border-radius: var(--radius-xl); overflow: hidden; }
.calc-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.calc-form { padding: 2.5rem; }
.calc-result { padding: 2.5rem; }
.result-highlight { font-size: 3rem; font-weight: 800; color: var(--color-orange-text); }
.result-details { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 1.5rem 0; margin-bottom: 1.5rem; }
.result-item { display: flex; justify-content: space-between; margin-bottom: 1rem; align-items: center; }
.result-item:last-child { margin-bottom: 0; }
.result-label { color: var(--color-text-secondary); font-weight: 500; }
.result-value { font-weight: 700; font-size: 1.1rem; }
.result-number { font-size: 2.2rem; font-weight: 700; color: var(--color-orange-text); }
.calc-disclaimer { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 1.5rem; display: flex; gap: 0.5rem; }
.calc-result-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }

/* Warehouse visual */
.warehouse-visual { margin-top: 1.5rem; }
.warehouse-grid { margin-top: 0.75rem; }
.rack-row { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.pallet { width: 20px; height: 14px; background: var(--color-orange); border-radius: 2px; box-shadow: 0 0 4px rgba(255,107,0,0.35); }

/* ==========================================================================
   Design Section
   ========================================================================== */
.design-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.requisites-grid { gap: 0.5rem 2rem; }

.instock-offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 600px) {
  .instock-offer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.grav-schematic svg, .mez-schematic svg { max-width: 100%; height: auto; }

/* specs-table is redefined per-page with slightly different rules, but none
   allow long single words (e.g. "Грузоподъемность") to break — causing the
   table to overflow narrow (320px) viewports. Safe to add globally. */
.specs-table td { overflow-wrap: break-word; word-break: break-word; }

.design-list { margin: 1.5rem 0 0; }
dl.design-list { padding: 0; }

.design-list li,
.design-list > div {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.design-list li i {
  color: var(--color-orange);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.mockup-frame {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.mockup-placeholder {
  background: var(--color-surface);
  height: 380px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
}

/* ==========================================================================
   Steps / How We Work
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-orange) 0%, rgba(255,107,0,0.2) 100%);
  border-radius: var(--radius-full);
}

.step-card { text-align: center; position: relative; z-index: 2; }

.step-number {
  width: 72px;
  height: 72px;
  background: var(--color-surface);
  border: 2px solid var(--color-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-orange-text);
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 8px rgba(255,107,0,0.08);
}

.section-dark .step-number {
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 8px rgba(255,107,0,0.1);
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  height: 280px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 1rem;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Trust Section
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.trust-item {
  text-align: left;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--color-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.trust-item:hover {
  background: rgba(255,255,255,0.07);
}

.trust-item i {
  font-size: 1.6rem;
  color: var(--color-orange);
  margin-bottom: 0.6rem;
  display: block;
}

.trust-item h3 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.trust-item p { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin: 0; line-height: 1.5; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Left accent stripe */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--color-orange);
  border-radius: 4px 0 0 4px;
}

/* Subtle grid pattern */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,107,0,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; font-size: 1.05rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-bg-dark-deeper);
  padding: 4rem 0 1.5rem;
  border-top: 3px solid var(--color-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col .logo { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; display: block; }
.footer-col p { color: rgba(255,255,255,0.45); font-size: 0.875rem; margin-bottom: 1.25rem; }

.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--color-orange-text); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
}

.footer-contact-item i {
  color: var(--color-orange);
  width: 16px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--color-orange-text); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* All image-based social icons (VK, TG, MAX) — circular, footer-colored bg */
.footer-social-img,
.footer-social-max {
  background: var(--color-bg-dark-deeper) !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  overflow: hidden !important;
}

.footer-social-icon-img,
.footer-max-icon {
  width: 36px;
  height: 36px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}


.footer-legal {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-col h3 {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-col i {
  width: 16px;
  margin-right: 0.4rem;
  color: var(--color-orange);
}

/* ==========================================================================
   Floating Chat Widget
   ========================================================================== */

/* Chat popup bubble */
.chat-popup {
  position: fixed;
  bottom: calc(1.25rem + 56px + 0.75rem);
  right: 0.75rem;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  z-index: 1000;
  overflow: hidden;
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), opacity 0.18s ease, bottom 0.2s ease;
  transform-origin: bottom right;
}

/* Keep the open chat panel clear of the cookie banner while it's shown */
body.cookie-banner-active .chat-popup {
  bottom: calc(1.25rem + 56px + 0.75rem + var(--cookie-banner-h, 70px));
}

.chat-popup.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-popup-header {
  background: linear-gradient(135deg, #1A2340 0%, #2a3a60 100%);
  padding: 1rem 1rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-popup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.chat-popup-info { flex: 1; }

.chat-popup-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-popup-status {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1px;
}

.chat-popup-status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

.chat-popup-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.chat-popup-close:hover { color: #fff; }

.chat-popup-msg {
  padding: 1rem;
  background: var(--color-bg-alt);
}

.chat-popup-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  line-height: 1.5;
}

.chat-popup-actions {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-action-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.chat-action-btn.tg {
  background: #2AABEE;
  color: #fff;
}

.chat-action-btn.tg:hover { background: #1a9bde; }

.chat-action-btn.mx {
  background: var(--color-max);
  color: #fff;
}

.chat-action-btn.mx:hover { background: #2e22d4; }

.chat-action-btn.ph {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.chat-action-btn.ph:hover { background: var(--color-border); }

.chat-action-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Main trigger button */
.chat-trigger-btn {
  width: 58px;
  height: 58px;
  background: var(--color-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(255,107,0,0.45);
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  flex-shrink: 0;
}

.chat-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,0,0.55);
}

.floating-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 0.75rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  transition: bottom 0.2s ease;
}

/* Keep the chat button clear of the cookie banner while it's shown */
body.cookie-banner-active .floating-wa {
  bottom: calc(1.25rem + var(--cookie-banner-h, 70px));
}

.floating-wa-btn {
  width: 56px;
  height: 56px;
  background: var(--color-telegram);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
}

.floating-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42,171,238,0.55);
}

.floating-wa-tooltip {
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.floating-btn-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
}
.floating-btn-row .floating-wa-tooltip {
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-normal);
  pointer-events: none;
}
.floating-btn-row:hover .floating-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Page Hero (inner pages)
   ========================================================================== */
.page-hero {
  background: var(--color-bg-dark);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1586528116311-ad8ed7c80a30?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  opacity: 0.12;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 600px; margin: 0; }

/* Orange top stripe on inner page heroes */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-orange);
  z-index: 3;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.breadcrumb a { color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: var(--color-orange-text); }
.breadcrumb i { font-size: 0.6rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ── 1200px: hide topbar extras ── */
@media (max-width: 1200px) {
  .header-buyback-link { display: none; }
}

/* ── 700px: topbar (incl. search) doesn't fit alongside email + phone below
   this — verified via container width (needs ~688px). Hide it and let the
   header sit flush at the very top instead. ── */
@media (max-width: 700px) {
  .header-topbar { display: none; }
  .header { top: 0; }
}

/* ── 1100px: footer 3-col, calculator stack ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }

  .calculator-body { grid-template-columns: 1fr; }
  .calc-params { border-right: none; border-bottom: 1px solid var(--color-border); }
  .calc-selects-row { grid-template-columns: 1fr; }
}

/* ── 1024px: two-column grids ── */
@media (max-width: 1024px) {
  .design-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ── 1400px: collapse nav to hamburger menu (raised from 992px — full nav + CTA
   button overflowed past the viewport edge between ~993px and 1366px). The
   topbar (incl. search) stays visible at all widths — it has its own internal
   responsive rules and fits down to 320px without overlap. ── */
@media (max-width: 1400px) {
  /* Hide CTA button and buyback link in header on mobile */
  .header-actions .btn { display: none; }
  .header-actions { gap: 0; }

  .nav-links {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 0.15rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.22s cubic-bezier(0.22,1,0.36,1), opacity 0.18s ease;
  }

  .nav-links.active {
    max-height: calc(100vh - var(--header-height));
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    background: transparent;
    min-width: unset;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.2s cubic-bezier(0.22,1,0.36,1), opacity 0.15s ease, visibility 0.2s ease;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-menu-btn { display: block; }

  /* Prevent desktop translateX(-50%) from being applied on touch hover */
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  /* Fix page padding for inner pages */
  .page-hero {
    padding: 6rem 0 3rem;
  }
}

/* ── 768px: core mobile layout ── */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container { padding: 0 1rem; }

  h1 { font-size: clamp(1.75rem, 6vw, 2.2rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); }
  h3 { font-size: 1.15rem; }

  .section, .section-alt, .section-dark, .section-blue,
  .calculator-section { padding: 3rem 0; }

  .section-header { margin-bottom: 2rem; }
  .section-header p { font-size: 0.95rem; }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top: var(--header-height);
    align-items: flex-end;
    padding-bottom: 3rem;
  }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .hero-subtitle { font-size: 1rem; margin-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-features { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .hero-feature { font-size: 0.85rem; padding: 0.7rem 0.85rem; }
  .hero-badge { font-size: 0.72rem; }

  /* Hero chips ("Работаем с 2016 года" strip) */
  .hero-chips {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  .hero-chip {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }

  /* Page hero (inner pages) */
  .page-hero { padding: 5rem 0 2.5rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
  .breadcrumb { font-size: 0.75rem; flex-wrap: wrap; }

  /* Stats bar */
  .stats-bar { padding: 1.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item::after { display: none; }
  .stat-number { font-size: 1.75rem; }
  .stat-label { font-size: 0.78rem; }

  /* Cards */
  .card { padding: 1.5rem; }
  .solution-card { padding: 1.5rem; }

  /* Grids */
  .gallery-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .solutions-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .trust-item { padding: 1.25rem 1rem 1.25rem 0.9rem; }

  /* Calculator */
  .calculator-header { padding: 1.75rem 1.25rem; }
  .calc-params, .calc-results { padding: 1.25rem; }
  .rack-type-grid { grid-template-columns: 1fr 1fr; }
  .result-metrics { grid-template-columns: 1fr 1fr; }
  .calc-lead-inputs { grid-template-columns: 1fr; }
  .calc-lead-actions { flex-direction: column; }
  .result-hero-number { font-size: 2.75rem; }

  /* CTA Banner */
  .cta-banner { padding: 2.5rem 1.25rem; border-radius: var(--radius-lg); }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: 0.95rem; margin-bottom: 1.5rem; }

  /* Footer */
  .footer { padding: 3rem 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Pill buttons */
  .pill-group { gap: 0.4rem; }
  .pill-btn { padding: 0.4rem 0.75rem; font-size: 0.82rem; }

  /* Page-specific grids */
  .design-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .mockup-placeholder { height: 220px; }

  /* Chat widget */
  .chat-popup { width: calc(100vw - 1.5rem); right: 0.75rem; }
}

/* ── 600px: tighter grids ── */
@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > .footer-col:first-child { grid-column: auto; }
}

/* ── 480px: single column everything ── */
@media (max-width: 480px) {
  .container { padding: 0 0.875rem; }

  /* Prevent any element from exceeding viewport */
  img, video, iframe, table { max-width: 100%; }
  .btn { white-space: normal; }
  .btn-lg { padding: 1.1rem 1.75rem; }
  .hero-chips { gap: 0.35rem; }
  .hero-chip { font-size: 0.72rem; padding: 0.35rem 0.65rem; }
  .stats-bar .container { overflow: hidden; }
  .topbar-phone-label { display: none; }
  .topbar-left .topbar-sep,
  .topbar-left .topbar-text { display: none; }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.4rem; }

  .hero-features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .catalog-specs { grid-template-columns: 1fr 1fr; }
  .catalog-card-image { height: 200px; }

  /* Header: smaller logo on tiny screens */
  .logo-img { height: 36px; }

  /* Make CTA buttons full-width in sections */
  .cta-banner .btn { width: 100%; }

  /* Sections a bit tighter */
  .section, .section-alt, .section-dark, .section-blue,
  .calculator-section { padding: 2.5rem 0; }

  .section-header { margin-bottom: 1.75rem; }

  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  /* Card padding reduction */
  .card { padding: 1.25rem; }
  .solution-card { padding: 1.25rem; }

  /* Calculator */
  .rack-type-grid { grid-template-columns: 1fr; }
  .result-metrics { grid-template-columns: 1fr 1fr; }
  .area-input-group { flex-wrap: wrap; }

  /* Chat widget full width minus margin */
  .chat-popup { width: calc(100vw - 1rem); right: 0.5rem; }
  .floating-wa { right: 0.5rem; }
}

/* ── Landscape phone fix ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { min-height: 100svh; padding-top: var(--header-height); padding-bottom: 2rem; }
  .hero-features { grid-template-columns: repeat(4, 1fr); }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
}

/* ── Touch targets: ensure min 44px ── */
@media (hover: none) and (pointer: coarse) {
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; }
  .pill-btn { min-height: 40px; }
  .dropdown-item { min-height: 44px; }
  .footer-col ul li a { display: inline-block; min-height: 36px; line-height: 36px; }
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   USED RACKS PAGE
========================================================= */

/* Sticky header */
.used-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Hero */
.used-hero {
    background: linear-gradient(135deg, var(--color-bg-dark-deeper) 0%, var(--color-bg-dark) 50%, var(--color-bg-dark-deeper) 100%);
    padding: 5rem 0 4rem;
    color: #fff;
}

.used-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.used-hero-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-orange-text);
    background: rgba(255, 107, 53, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.used-hero-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.used-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 540px;
}

.used-hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.used-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.used-hero-stat i {
    font-size: 1.1rem;
    color: var(--color-orange);
}

.used-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.used-btn-white {
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

.used-btn-white:hover {
    background: rgba(255,255,255,0.1) !important;
}

.used-hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.used-hero-placeholder {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.06);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
}

.used-hero-placeholder i {
    font-size: 3rem;
}

/* Offers grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Offer card */
.offer-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.offer-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.offer-card-img-wrap {
    position: relative;
    background: #f8f9fb;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    z-index: 2;
}

.offer-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.offer-badge--fire {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.offer-badge--blue {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

.offer-badge--green {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.offer-badge--red {
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid #FED7AA;
}

.offer-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 200px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.offer-card-placeholder i {
    font-size: 2.5rem;
    color: var(--color-border);
}

.offer-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.offer-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.offer-card-body > p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.offer-specs {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.offer-specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: var(--color-text-secondary);
}

.offer-specs li i {
    color: var(--color-orange);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Stock table */
.offer-stock-table-wrap {
    margin: 1rem 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.offer-stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.offer-stock-table th {
    background: var(--color-bg-alt);
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.offer-stock-table th:last-child {
    text-align: right;
}

.offer-stock-table td {
    padding: 0.55rem 0.75rem;
    border-top: 1px solid var(--color-border);
}

.offer-stock-table td:last-child {
    text-align: right;
}

.offer-stock-table td strong {
    color: var(--color-text);
}

/* Pricing */
.offer-pricing {
    margin: 1rem 0 1.25rem;
}

.offer-price-old {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.offer-price-old del {
    color: var(--color-text-muted);
}

.offer-price-new-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.offer-price-new {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-orange-text);
}

.offer-discount {
    display: inline-block;
    background: #FEF2F2;
    color: #DC2626;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

.offer-card-btn {
    margin-top: auto;
}

/* Info banner */
.used-info-banner {
    padding: 3rem 0;
    background: var(--color-bg-alt);
}

.used-info-banner-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 2rem 2.5rem;
}

.used-info-banner-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--color-orange-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-orange);
}

.used-info-banner-content {
    flex: 1;
}

.used-info-banner-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.used-info-banner-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Trust section */
.used-trust-section {
    padding: 5rem 0;
    background: #fff;
}

.used-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.used-trust-item {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.used-trust-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--color-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-orange);
}

.used-trust-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.used-trust-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Form section */
.used-form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-bg-dark-deeper) 0%, var(--color-bg-dark) 50%, var(--color-bg-dark-deeper) 100%);
}

.used-form-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.used-form .form-group {
    margin-bottom: 1rem;
}

.used-form-input {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    font-size: 1rem;
}

.used-form-input::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

.used-form-input:focus {
    border-color: var(--color-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .used-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .used-hero-photo {
        display: none;
    }

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

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

@media (max-width: 640px) {
    .used-hero {
        padding: 3rem 0 2.5rem;
    }

    .used-hero-content h1 {
        font-size: 1.5rem;
    }

    .used-hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .used-info-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .used-trust-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-text { margin: 0; font-size: 0.875rem; max-width: 640px; }
.cookie-banner-text a { color: var(--color-orange-text); text-decoration: underline; }

.cookie-banner-btn {
  flex-shrink: 0;
  background: var(--color-orange-btn);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.cookie-banner-btn:hover { background: var(--color-orange-btn-hover, var(--color-orange)); }

@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1rem; }
  .cookie-banner-btn { width: 100%; }
}
