/* ===== БРиК — GRAPHITE + HIGH CONTRAST ===== */
:root {
  /* Фон — графит */
  --bg-main: #0c0e14;
  --bg-surface: #14171f;
  --bg-panel: rgba(25, 28, 36, 0.75);
  --bg-card: #171a22;
  --bg-lighter: #1c2029;

  /* Текст — высокий контраст */
  --text-primary: #f0f2f5;
  --text-secondary: #8b95a8;
  --text-muted: #5f6878;

  /* Акцент: шкала оранжевого */
  --orange-50:  #fff4e6;
  --orange-100: #ffe0b3;
  --orange-400: #ff9933;
  --orange-500: #ff7a00;
  --orange-600: #e56e00;
  --orange-900: #7a3d00;

  --gradient-brand: #ff7a00;
  --gradient-glow: rgba(255,122,0,0.10);
  --brand-solid: #ff7a00;
  --brand-end: #e56e00;

  /* Семантические цвета */
  --color-success: #34c759;
  --color-warning: #ffb800;
  --color-error: #ff3b30;

  /* Линии */
  --border-main: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* Размеры — БЕЗ скруглений */
  --container: 1400px;
  --sidebar-width: 0px;
  --topbar-height: 50px;
  --header-height: 100px;

  /* Анимации */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-smooth: 400ms;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; cursor: pointer; background: none; }
::selection { background: var(--brand-solid); color: #fff; }

/* Глобальный focus-visible (WCAG 2.2) */
:focus-visible {
  outline: 2px solid var(--brand-solid);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.3);
}

/* ===== УТИЛИТЫ ===== */
.text-gradient {
  color: var(--brand-solid);
  display: inline-block;
}

/* ===== ЧЁРНАЯ ПОЛОСА (TOP BAR) ===== */
.top-bar-dark {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: #000;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.topbar-contacts {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

/* ===== ОРАНЖЕВЫЙ ХЕДЕР (ПЛАШКА) ===== */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(28, 32, 41, 0.98); /* Сделали светлее */
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
}



.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ===== ШАПКА: ФИРМЕННАЯ ГЕОМЕТРИЧЕСКАЯ ПЛАШКА (CSS-ВЁРСТКА) ===== */
.header-logo-wedge {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 55px 0 0;
  width: calc(180px + 16vw);
  max-width: 440px;
  position: relative;
  z-index: 10;
  overflow: visible;
}

/* Основной оранжевый градиент со срезом */
.header-logo-wedge::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50vw;
  right: 0;
  background: linear-gradient(135deg, #ff7a00 0%, #e64a00 100%);
  transform-origin: top left;
  transform: skewX(-15deg);
  z-index: 1;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.2);
}

/* Тёмная диагональная полоса + яркая оранжевая грань, как на фирменном прайсе */
.header-logo-wedge::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2px;
  width: 32px;
  background: linear-gradient(135deg, rgba(20, 8, 3, 0.7) 0%, rgba(35, 12, 4, 0.35) 100%);
  transform: skewX(-15deg);
  border-right: 3px solid #ffaa00;
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.5), inset -1px 0 4px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

.header-logo-link {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 75px;
  width: auto;
  display: block;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  margin-left: 20px;
  position: relative;
}

.header-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.topbar-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 8px 18px; /* Slightly adjusted padding for the shape */
  transition: color 0.3s ease;
  position: relative;
  z-index: 1; /* Text above background */
  white-space: nowrap; /* Prevent line breaks */
  display: inline-block;
  text-align: center;
}

.topbar-link:hover {
  color: #ffffff;
}

.topbar-link.active {
  color: #ffffff;
}

.topbar-link.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-solid);
  transform: skewX(-15deg); /* The parallelogram slant */
  z-index: -1;
  border-radius: 2px;
  box-shadow: 2px 2px 8px rgba(255, 122, 0, 0.3); /* Subtle glow */
}



.header-phone {
  display: none;
}

/* (header styles defined above) */

/* ===== SIDEBAR (disabled — moved to top bar) ===== */
.sidebar {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 0;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--t-fast) var(--ease-out);
  position: relative;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.sidebar-link.active {
  color: var(--text-primary);
  background: rgba(255,122,0,0.08);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--brand-solid);
}

.sidebar-link-num {
  font-size: 12px;
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
}

/* ===== MAIN ===== */
.main-content {
  margin-left: 0;
  padding-top: calc(var(--header-height) + var(--topbar-height));
  position: relative;
  z-index: 1;
}

/* Фоновое свечение */
.bg-glow {
  position: fixed;
  top: -30vh;
  left: 15vw;
  width: 70vw;
  height: 50vh;
  background: var(--gradient-brand);
  filter: blur(180px);
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ===== КНОПКИ — без скруглений ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 50px;
  border-radius: 0;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--t-smooth) var(--ease-out);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7a00 0%, #e65100 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 122, 0, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c1a 0%, #ff5722 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 122, 0, 0.65);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  height: 42px;
  padding: 0 22px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  border-radius: 0;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--brand-solid);
  background: rgba(255,122,0,0.08);
}

/* ===== PANELS — без скруглений ===== */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: 0;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0;
  overflow: hidden;
  transition: transform var(--t-smooth) var(--ease-out), border-color var(--t-smooth), box-shadow var(--t-smooth);
}

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

/* ===== HERO (СПЛИТ: ТЁМНЫЙ ФОН СЛЕВА, ВИДЕО СПРАВА) ===== */
.hero {
  min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  position: relative;
  overflow: hidden;
  background: #0d0f14;
  display: flex;
  align-items: center;
}

/* Правый контейнер с видео */
.hero-media-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0.9) contrast(1.1);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 15, 20, 0.95) 0%, rgba(13, 15, 20, 0.2) 35%, rgba(13, 15, 20, 0.5) 100%);
  pointer-events: none;
}

/* Плотный тёмный фон под текст с диагональным срезом */
.hero-cut-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20%;
  width: 74%;
  background: #0d0f14;
  transform: skewX(-15deg);
  z-index: 2;
}

/* Дополнительная полупрозрачная полоса со скосом, связывающая шапку с фоном */
.hero-cut-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -250px;
  width: 500px;
  background: linear-gradient(90deg, #0d0f14 0%, rgba(13, 15, 20, 0) 100%);
  pointer-events: none;
}

/* Оранжевая грань на срезе в фирменном стиле плашки */
.hero-cut-divider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2px;
  width: 4px;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.4) 0%, rgba(255, 122, 0, 0) 100%);
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 80px;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--brand-solid);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-desc {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 44px;
  max-width: 100%;
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

}

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

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-val {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85); /* White for contrast on orange */
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 100px 80px;
  position: relative;
}

/* Чередование фонов для контраста */
.section-dark {
  background: var(--bg-main);
}

.section-contrast {
  background: var(--bg-lighter);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-solid);
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--brand-solid);
  flex-shrink: 0;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-solid);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== CATALOG ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card-img-wrapper {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
}

.card-img-wrapper img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-smooth) var(--ease-out);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-card) 2%, rgba(26,29,38,0) 50%);
  pointer-events: none;
}

.card-body {
  padding: 28px;
}

.card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ===== 02 / NEWS & EVENTS SLIDER ===== */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}

.slider-controls {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-solid);
  border: 1px solid var(--brand-solid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}

.slider-btn:hover {
  background: #e65100;
  border-color: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.4);
}

.news-slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 4px 30px;
}

.news-slider-track::-webkit-scrollbar {
  display: none;
}

.news-slider-track .news-card {
  min-width: 340px;
  max-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.news-slider-track .news-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.35;
}

.news-slider-track .news-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
  flex-grow: 1;
}

/* ===== 03 / CATALOG 3x4 (12 CATEGORIES) ===== */
.catalog-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.cat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--t-smooth) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 380px;
}

.cat-box:hover {
  border-color: var(--brand-solid);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(255, 122, 0, 0.18);
  background: rgba(30, 33, 42, 0.95);
}

.cat-box-img-wrap {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto; /* Push text to the bottom */
}

.cat-box-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-box:hover .cat-box-img {
  transform: scale(1.3);
}


.cat-box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cat-box-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-solid);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.cat-box-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cat-box-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
  font-weight: 500;
}

/* Secondary list of extra items */
.extra-parts-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-main);
  text-align: center;
}

.extra-parts-label {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}

.extra-parts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
}

@keyframes tagPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(255, 122, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}

.extra-tag {
  background: var(--brand-solid);
  border: 1px solid var(--brand-solid);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.2);
  animation: tagPulse 2s infinite;
}

.extra-tag:hover {
  background: #e65100;
  border-color: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}

/* ===== ADVANTAGES ===== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: none;
}

.adv-item {
  background: var(--bg-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--t-fast);
  border: 1px solid var(--border-main);
  border-left: 3px solid var(--brand-solid);
}

.adv-item:hover {
  background: var(--bg-lighter);
}

.adv-icon {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-solid);
  line-height: 1;
}

.adv-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.adv-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ===== NEWS ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.promo-card {
  position: relative;
  border-color: rgba(255,122,0,0.2);
}

.promo-glow {
  position: absolute;
  top: -20px; right: -20px; width: 160px; height: 160px;
  background: var(--gradient-brand);
  filter: blur(70px);
  opacity: 0.12;
  pointer-events: none;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0;
  background: rgba(255,255,255,0.06);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-gradient {
  background: rgba(255,122,0,0.1);
  color: var(--brand-solid);
  border: 1px solid rgba(255,122,0,0.15);
}

.news-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
}

.news-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  flex-grow: 1;
  line-height: 1.6;
}

.news-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-solid);
  letter-spacing: 0.03em;
  transition: opacity var(--t-fast);
}

.news-link:hover { opacity: 0.7; }

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--border-main);
  padding: 24px 0;
}

.faq-item:first-child {
  padding-top: 0;
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 700;
  transition: color var(--t-fast);
}

.faq-question:hover h4 {
  color: var(--brand-solid);
}

.faq-icon {
  font-size: 24px;
  color: var(--brand-solid);
  transition: transform var(--t-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-smooth) var(--ease-out);
}

.faq-answer p {
  margin: 16px 0 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Достаточно большое значение для контента */
}

/* ===== CONTACTS ===== */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 0;
}

.contacts-info {
  padding: 56px;
  display: flex;
  flex-direction: column;
}

.contact-big-phone {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: inline-block;
}

.contact-email {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 40px;
  transition: color var(--t-fast);
}

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-value {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

.contacts-actions {
  display: flex;
  gap: 14px;
  margin-top: auto;
}

.contacts-map {
  height: 100%;
  min-height: 400px;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
}

.map-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  margin-left: var(--sidebar-width);
  padding: 36px 80px;
  border-top: 1px solid var(--border-main);
  background: var(--bg-surface);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-text-small {
  font-size: 20px;
  font-weight: 800;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(1px 0 0 rgba(255,255,255,0.5)) drop-shadow(-1px 0 0 rgba(255,255,255,0.5)) drop-shadow(0 1px 0 rgba(255,255,255,0.5)) drop-shadow(0 -1px 0 rgba(255,255,255,0.5));
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { padding: 32px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-layout { grid-template-columns: 1fr; }
  .contacts-info { padding: 40px; }
  .contacts-map { min-height: 300px; }
}

@media (max-width: 1200px) {
  .catalog-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: 0px;
    --header-height: 60px;
  }

  .header-inner {
    padding: 0 20px;
    justify-content: space-between;
  }

  .header-logo-wedge {
    padding: 0 40px 0 0;
    width: auto;
    max-width: none;
    height: 100%;
  }

  .header-logo-wedge::before {
    left: -50vw;
  }

  .header-logo-wedge::after {
    right: -2px;
    width: 20px;
  }

  .logo-img {
    height: 55px;
  }

  .main-content {
    margin-left: 0;
  }

  .footer {
    margin-left: 0;
    padding: 32px 20px 60px;
  }

  .section {
    padding: 60px 20px;
  }

  /* Hero on mobile */
  .hero {
    min-height: auto;
    padding: 60px 0;
    display: block;
  }

  .hero-media-wrap {
    width: 100%;
    opacity: 0.35;
  }

  .hero-cut-divider {
    width: 100%;
    clip-path: none;
    background: linear-gradient(180deg, rgba(13, 15, 20, 0.98) 0%, rgba(13, 15, 20, 0.85) 100%);
    box-shadow: none;
  }

  .hero-cut-divider::after {
    display: none;
  }

  .hero-content-wrap {
    padding: 40px 20px;
  }

  .hero-content {
    max-width: 100%;
  }

  .catalog-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

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

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

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

  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .contacts-info {
    padding: 36px 24px;
  }

  .contacts-map {
    min-height: 350px;
  }
}

/* ===== MOBILE MENU BUTTON & OVERLAY ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2001;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brand-solid);
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding: 60px 20px 40px;
    margin: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease-in-out;
    z-index: 1500;
  }

  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .header-nav::before {
    display: none;
  }

  .topbar-link {
    font-size: 18px;
    height: auto;
    padding: 10px;
    white-space: nowrap;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-content-wrap {
    padding: 24px 16px;
  }
  .hero-title {
    font-size: 30px;
    line-height: 1.15;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
  }
  .hero-phone-link {
    justify-content: center;
  }
  .section-title {
    font-size: 30px;
  }
  .stat-num {
    font-size: 36px;
  }
  .catalog-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cat-box {
    padding: 16px 10px;
  }
  .cat-box-img-wrap {
    height: 75px;
  }
  .cat-box-title {
    font-size: 13px;
  }
  .cat-box-sub {
    font-size: 10px;
  }
  .contacts-actions {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-brand {
    align-items: center !important;
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 700ms var(--ease-out);
}

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