:root {
  --primary: #1a1a2e;
  --accent: #e63946;
  --accent-dark: #c1121f;
  --steel: #2d3142;
  --steel-light: #4a4e69;
  --gray-100: #f4f4f4;
  --gray-200: #e0e0e0;
  --gray-400: #9e9e9e;
  --gray-600: #5a5a5a;
  --white: #ffffff;
  --text: #1c1c1c;
  --sidebar-w: 280px;
  --header-h: 90px;
  --primary4: #1a1a2e;
  --accent4: #e63946;
  --accent-dark4: #c1121f;
  --steel4: #2d3142;
  --steel-light4: #4a4e69;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255);
  font-size: 14px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  height: 44px;
  font-weight: bold;
}
.topbar a { color: rgba(255,255,255); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar-contacts { display: flex; gap: 20px; align-items: center; justify-content: center;}
.topbar-contacts span { display: flex; align-items: center; gap: 6px; }
.topbar-contacts_left{display: flex; gap: 20px;}
/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  height: var(--header-h);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}
.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--primary);
  letter-spacing: 3px;
  line-height: 1;
}
.logo-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--steel-light);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}
.logo-text span { color: var(--accent); }

/* ── NAV ── */
nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover{
    cursor: pointer;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-call {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-call:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230,57,70,0.35); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { display: block; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.mobile-nav .nav-link::after { display: none; }

/* ── PAGE WRAPPER ── */
.page { display: none; }
.page.active { display: block; }

/* ── HERO ── */
/* ============================================================
   HERO — полностью переработанная адаптивная секция
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--steel) 60%, #1a2535 100%);
  min-height: calc(100vh - var(--topbar-h, 38px) - var(--header-h, 90px));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Сетчатый фон */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,.025) 59px, rgba(255,255,255,.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,.025) 59px, rgba(255,255,255,.025) 60px);
  pointer-events: none;
  z-index: 0;
}

/* Диагональный декор */
.hero-diagonal {
  position: absolute;
  right: -100px; top: -100px;
  width: 600px; height: 600px;
  border: 80px solid rgba(255,255,255,.03);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── КОНТЕНТНАЯ КОЛОНКА ── */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 24px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Бейдж */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,.14);
  border: 1px solid rgba(230,57,70,.38);
  color: #ff9096;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 40px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: heroPulse 2.2s ease-in-out infinite;
}
@keyframes heroPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.5); }
}

/* Заголовок */
.hero h1, .hero .page-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 5.5vw, 76px);
  color: var(--white);
  line-height: .95;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--accent); font-style: normal; }

/* Описание */
.hero-desc {
  color: rgba(255,255,255,.68);
  font-size: 17px;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-desc strong { color: rgba(255,255,255,.9); font-weight: 600; }

/* Кнопки */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

/* Кнопки общие */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 15px 30px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,57,70,.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

/* Статистика */
.hero-stats {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
}
.hero-stat {
  background: rgba(255,255,255,.04);
  padding: 18px 12px;
  text-align: center;
  transition: background .2s;
}
.hero-stat:hover { background: rgba(255,255,255,.08); }
.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
  line-height: 1.3;
}

/* ── ФОТО — фон всей секции ── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /*background: url('https://dm-zmk.ru/assets/images/strojka.png') center / cover no-repeat;*/
  background: url('https://dm-zmk.ru/assets/images/back.webp') center / cover no-repeat;
  filter: brightness(.22) saturate(.6);
  z-index: 0;
}

/* Колонка с фото — не нужна, скрыта */
.hero-image { display: none; }

/* ============================================================
   HERO RESPONSIVE — одна колонка на любой ширине
   ============================================================ */

/* 768px — планшет */
@media (max-width: 768px) {
  .hero-content {
    padding: 80px 32px;
  }
  .hero h1, .hero .page-heading {
    font-size: clamp(40px, 9vw, 58px);
  }
  .hero-desc {
    font-size: 16px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
  }
  .hero-stat { padding: 16px 10px; }
  .hero-stat-num { font-size: 30px; }
}

/* 480px — мобильный */
@media (max-width: 480px) {
  .hero-content {
    padding: 64px 20px 72px;
  }
  .hero h1, .hero .page-heading {
    font-size: clamp(38px, 11vw, 52px);
  }
  .hero-badge {
    font-size: 10px;
    padding: 6px 12px;
    letter-spacing: 1.5px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 36px;
  }
  .hero-stat-num { font-size: 28px; }
  .hero-stat-label { font-size: 9px; }
}

/* ── SECTIONS ── */
section { padding: 96px 0; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  color: var(--primary);
  letter-spacing: 1.5px;
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 580px;
  line-height: 1.7;
}

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}
.why-features { display: flex; flex-direction: column; gap: 28px; }
.why-feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.why-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border-bottom: 3px solid var(--accent);
  transition: all 0.25s;
}
.why-feature:hover .why-icon { background: var(--primary); }
.why-feature:hover .why-icon svg { stroke: var(--white); }
.why-feature h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.why-feature p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }
.why-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.why-image img { width: 100%; height: 480px; object-fit: cover; border-radius: 8px; filter: brightness(0.85); }
.why-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent);
  color: var(--white);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  border: 6px solid var(--white);
}
.why-badge strong { font-family: 'Bebas Neue', sans-serif; font-size: 36px; display: block; letter-spacing: 1px; }

/* ── CATALOG CARDS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.cat-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-body { padding: 24px; }
.cat-card-body h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cat-card-body p { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 16px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--steel-light);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 40px;
}
.cat-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.child-card{
    text-decoration: none;
}

/* ── STEPS ── */
.steps-section { background: var(--gray-100); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.step-item {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  transition: background 0.2s;
}
.step-item:hover { background: var(--primary); }
.step-item:hover .step-num,
.step-item:hover h3,
.step-item:hover p { color: var(--white); }
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.step-item:hover .step-num { color: rgba(255,255,255,0.15); }
.step-item h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; transition: color 0.2s; }
.step-item p { font-size: 14px; color: var(--gray-600); line-height: 1.65; transition: color 0.2s; }
.step-item:hover p { color: rgba(255,255,255,0.7); }

/* ── STATS ── */
.stats-section { background: var(--primary); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  padding: 48px 32px;
  text-align: center;
  transition: background 0.2s;
}
.stat-card:hover { background: rgba(255,255,255,0.08); }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  font-weight: 500;
}
.stat-desc { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 6px; }
.stats-section .section-title { color: var(--white); }
.stats-section .section-sub { color: rgba(255,255,255,0.6); }

/* ── CONTACT FORM ── */
.contact-section { background: var(--gray-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}
.contact-form-box {
  background: var(--white);
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--accent); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-privacy { font-size: 12px; color: var(--gray-400); line-height: 1.5; margin-top: 16px; }
.form-privacy a { color: var(--accent); text-decoration: none; }
.contact-info h3 { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--primary); letter-spacing: 1.5px; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
}
.contact-ico {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-ico svg { stroke: var(--white); }
.contact-item strong { display: block; font-size: 13px; color: var(--gray-400); font-weight: 500; margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 15px; color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: var(--accent); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--accent);
  padding: 80px 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.cta-banner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 16px; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--accent);
  padding: 18px 40px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--white); letter-spacing: 3px; }
.footer-logo-text span { color: var(--accent); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 12px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 18px;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--accent); }
.footer-contact-items { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: 0.5; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── SIDEBAR LAYOUT ── */
.sidebar-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 96px;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-menu {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.sidebar-menu-title {
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 24px;
}
.sidebar-item {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.18s;
  cursor: pointer;
  position: relative;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover, .sidebar-item.active { color: var(--accent); background: rgba(230,57,70,0.04); }
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.sidebar-submenu { background: var(--gray-100); }
.sidebar-sub-item {
  display: block;
  padding: 10px 24px 10px 36px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.18s;
  cursor: pointer;
}
.sidebar-sub-item:last-child { border-bottom: none; }
.sidebar-sub-item:hover, .sidebar-sub-item.active { color: var(--accent); }
.sidebar-toggle { display: flex; justify-content: space-between; align-items: center; }
.sidebar-toggle svg { transition: transform 0.2s; }
.sidebar-toggle.open svg { transform: rotate(180deg); }
.sidebar-submenu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sidebar-submenu.open { max-height: 300px; }

/* Content areas */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--gray-400); }
.page-heading { font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--primary); letter-spacing: 2px; margin-bottom: 16px; }
.page-sub { font-size: 17px; color: var(--gray-600); line-height: 1.7; margin-bottom: 25px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  background: var(--white);
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.product-card-img { height: 250px; overflow: hidden; background: var(--gray-100); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 20px; }
.product-card-body h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.product-card-body p { font-size: 13px; color: var(--gray-600); line-height: 1.55; }
.product-card-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 13px; color: var(--gray-400); }
.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-sm:hover { background: var(--accent-dark); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--primary);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -80px;
  width: 500px;
  height: 500px;
  border: 60px solid rgba(255,255,255,0.04);
  border-radius: 50%;
}
.page-hero h1, .page-hero .page-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.65); font-size: 17px; /*max-width: 560px;*/ }
.page-hero-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 24px; }
.page-hero-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,0.8); }

/* ── SERVICES PAGE ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 36px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover { border-color: transparent; box-shadow: 0 16px 48px rgba(0,0,0,0.1); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(230,57,70,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}
.service-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── ABOUT PAGE ── */
.about-section { padding: 80px 0; }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.about-intro-img { border-radius: 8px; overflow: hidden; }
.about-intro-img img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; filter: brightness(0.85); }
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.value-card {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: all 0.25s;
}
.value-card:hover { border-bottom-color: var(--accent); background: var(--white); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.value-num { font-family: 'Bebas Neue', sans-serif; font-size: 56px; color: rgba(26,26,46,0.1); line-height: 1; margin-bottom: 8px; }
.value-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.cert-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 600;
}
.cert-card svg { margin-bottom: 12px; }

/* ── CALCULATOR PAGE ── */
.calc-section { padding: 80px 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 56px; }
.calc-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 40px;
}
.calc-title { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 32px; }
.calc-result-box {
  background: var(--primary);
  border-radius: 10px;
  padding: 40px;
  color: var(--white);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.calc-result-box h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 32px; }
.calc-result-line { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: rgba(255,255,255,0.7); }
.calc-result-line.total { border-top: 2px solid rgba(255,255,255,0.3); border-bottom: none; font-size: 17px; font-weight: 700; color: var(--white); padding-top: 20px; }
.calc-result-line span:last-child { font-weight: 700; color: var(--white); }
.calc-result-line.total span:last-child { color: var(--accent); font-size: 22px; }
.range-group label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-600); margin-bottom: 10px; }
.range-group label span { color: var(--accent); font-size: 14px; }
.range-group input[type=range] { width: 100%; accent-color: var(--accent); height: 4px; cursor: pointer; }
.range-group { margin-bottom: 24px; }

/* ── CONTACTS PAGE ── */
.contacts-section { padding: 80px 0; }
.contacts-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.map-placeholder {
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  flex-direction: column;
  gap: 16px;
  color: var(--gray-400);
  font-size: 14px;
}
.contacts-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
}
.contact-box:hover { border-color: var(--accent); }
.contact-box-icon {
  width: 56px;
  height: 56px;
  background: rgba(230,57,70,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contact-box h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.contact-box p, .contact-box a { font-size: 14px; color: var(--gray-600); text-decoration: none; line-height: 1.6; display: block; }
.contact-box a:hover { color: var(--accent); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,30,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 48px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(16px); } to { opacity:1; transform:none; } }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 18px;
  color: var(--gray-600);
}
.modal-close:hover { background: var(--gray-200); }
.modal h2 { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--primary); letter-spacing: 1.5px; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--gray-600); margin-bottom: 32px; }
.modal-success { text-align: center; padding: 24px 0; display: none; }
.modal-success svg { margin-bottom: 16px; }
.modal-success h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.modal-success p { color: var(--gray-600); }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s;
  z-index: 50;
}
.scroll-top.visible { opacity: 1; transform: none; }
.scroll-top:hover { background: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar-contacts_right{display: none;}
  nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-cta .btn-call { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .contacts-main-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .topbar-contacts{flex-direction: column; gap: 5px;}
  .topbar-contacts_right{display: none;}
  .topbar { grid-template-columns: 1fr; height: auto; padding: 10px 16px; gap: 6px; }
  .topbar > :not(:first-child) { display: none; }
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .contacts-boxes { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 32px 24px; }
  .contact-form-box { padding: 32px 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Notice bar */
.notice { padding: 12px 24px; font-size: 13px; }
.notice a { color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ── RICH TEXT ОПИСАНИЯ РАЗДЕЛОВ ── */
.rich-desc {
  margin-top: 20px;
  /*padding-top: 56px;
  border-top: 2px solid var(--gray-200);*/
}
.rich-desc h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 32px);
  color: var(--primary);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  margin-top: 48px;
  line-height: 1.1;
}
.rich-desc h2:first-child { margin-top: 0; }
.rich-desc h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  margin-top: 36px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.rich-desc h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  margin-top: 28px;
}
.rich-desc h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 24px;
}
.rich-desc p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.rich-desc ul {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rich-desc ul li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}
.rich-desc ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.rich-desc ol {
  margin-bottom: 20px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rich-desc ol li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}
.rich-desc .rd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.rich-desc .rd-box {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent);
}
.rich-desc .rd-box h4 { margin-top: 0; color: var(--primary); }
.rich-desc .rd-box p { margin-bottom: 0; font-size: 14px; }
.rich-desc .rd-box ul { margin-bottom: 0; }
.rich-desc .rd-box ul li { font-size: 14px; }
.rich-desc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}
.rich-desc table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
}
.rich-desc table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  vertical-align: top;
}
.rich-desc table tr:last-child td { border-bottom: none; }
.rich-desc table tr:nth-child(even) td { background: var(--gray-100); }
.rich-desc .note-box {
  background: rgba(230,57,70,.06);
  border: 1px solid rgba(230,57,70,.2);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}
.rich-desc .note-box strong { color: var(--accent); }
@media (max-width: 700px) {
  .rich-desc .rd-grid { grid-template-columns: 1fr; }
}

/* MENU */
.menu-container {
  margin: 0 auto;
  background: #fff;
  padding: 10px;
}
.accordion-menu { list-style: none; margin: 0; padding: 0; }
.accordion-menu > li { border-bottom: 1px solid #eef2f6; }
.accordion-menu > li:last-child { border-bottom: none; }

/* Родительская ссылка + зона клика для +/- */
.accordion-menu > li > a {
  display: block;
  position: relative; /* Контекст для псевдоэлемента */
  padding: 14px 40px 14px 16px; /* Отступ справа под зону +/- */
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
}
.accordion-menu > li > a:hover {color: var(--accent); }
.accordion-menu > li.open > a {color: var(--accent); }

/* Зона +/- — псевдоэлемент, который НЕ смещается */
.accordion-menu > li.has-children > a::after {
  content: '+';
  position: absolute;
  top: 14px;          
  right: 12px;         
  width: 24px;
  height: 24px;
  font-size: 18px;
  font-weight: 300;
  color: #888;
  text-align: center;
  line-height: 24px;   
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}
.accordion-menu > li.has-children > a:hover::after { /*background: #eef2f6;*/ }
.accordion-menu > li.open > a::after {
  content: '−';
  color: var(--accent);
}

/* Отдельная невидимая зона для клика (поверх текста ссылки) */
.accordion-menu > li.has-children > a .toggle-hitarea {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 3;
  background: transparent;
  border: none;
  padding: 0;
}

/* Подменю */
.accordion-menu > li > ul.menu-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-menu > li.open > ul.menu-sub { max-height: 600px; }

/* Дочерние ссылки */
.accordion-menu > li > ul.menu-sub > li > a {
  display: block;
  padding: 10px 16px 10px 32px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.accordion-menu > li > ul.menu-sub > li > a:hover {
  background: #eee;
  border-left-color: #888;
  padding-left: 36px;
  color: #333;
}
.accordion-menu > li > ul.menu-sub > li > a::before {
  content: '•';
  color: var(--bgcolor-mid);
  margin-right: 8px;
  font-weight: bold;
}

/* Адаптив */
@media (max-width: 600px) {
  .menu-container { padding: 16px; }
  .accordion-menu > li.has-children > a { padding: 12px 36px 12px 14px; font-size: 14px; }
  .accordion-menu > li.has-children > a::after,
  .accordion-menu > li.has-children > a .toggle-hitarea {
    top: 12px;
    right: 10px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 16px;
  }
  .accordion-menu > li > ul.menu-sub > li > a { padding-left: 28px; }
}
.breadcrumb{
    list-style: none;
}



/* 404 */
.page404{
  font-family: 'Raleway', sans-serif;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 60px 0;
}
/* ── MAIN ── */
.arror {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid background */
.arror::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,.018) 59px, rgba(255,255,255,.018) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,.018) 59px, rgba(255,255,255,.018) 60px);
  pointer-events: none;
}

/* Sparks / welding glow */
.sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.spark {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffb703;
  border-radius: 50%;
  opacity: 0;
  animation: spark-fly var(--dur, 1.4s) ease-out var(--delay, 0s) infinite;
}
@keyframes spark-fly {
  0%   { transform: translate(0,0) scale(1);   opacity: 1; }
  60%  { opacity: 0.7; }
  100% { transform: translate(var(--tx,20px), var(--ty,-60px)) scale(0); opacity: 0; }
}

/* Welding arc glow at fracture point */
.weld-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,3,0.18) 0%, rgba(230,57,70,0.08) 40%, transparent 70%);
  animation: pulse-glow 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.3); opacity: 1; }
}

/* Corner beam decorations */
.beam {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.12), transparent);
  height: 1px;
  width: 40%;
  animation: beam-scan 6s ease-in-out infinite;
}
.beam-top    { top: 20%;  left: 0; }
.beam-bottom { bottom: 25%; right: 0; animation-delay: -3s; }
@keyframes beam-scan {
  0%,100% { opacity: 0; transform: scaleX(0.3); }
  50%      { opacity: 1; transform: scaleX(1); }
}

/* ── 404 CONTENT ── */
.container404 {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}

/* Giant cracked 404 */
.big-404 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 20vw, 260px);
  line-height: 0.88;
  letter-spacing: 8px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.08);
  position: relative;
  user-select: none;
  animation: flicker 8s ease-in-out infinite;
}
@keyframes flicker {
  0%,92%,96%,100% { opacity: 1; }
  93%              { opacity: 0.85; }
  95%              { opacity: 0.7; }
}

/* Steel plate fill for each digit */
.big-404 .d0,
.big-404 .d4a,
.big-404 .d4b {
  display: inline-block;
  position: relative;
  color: transparent;
  background: linear-gradient(160deg, #3a3f56 0%, #252840 40%, #1e2234 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0px;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.7));
}
.big-404 .d0 {
  color: transparent;
  background: linear-gradient(160deg, var(--accent4) 0%, #9b1c27 60%, #5a0f15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: heat-pulse 3s ease-in-out infinite;
}
@keyframes heat-pulse {
  0%,100% { filter: drop-shadow(0 0 18px rgba(230,57,70,0.5)) drop-shadow(0 4px 32px rgba(0,0,0,0.7)); }
  50%      { filter: drop-shadow(0 0 36px rgba(230,57,70,0.85)) drop-shadow(0 0 8px rgba(255,183,3,0.3)); }
}

/* Crack SVG overlay on the 0 */
.crack-wrap {
  position: relative;
  display: inline-block;
}
.crack-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Weld line decoration */
.weld-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 24px;
}
.weld-line::before,
.weld-line::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.6), transparent);
}
.weld-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent4);
  box-shadow: 0 0 10px var(--accent4), 0 0 20px rgba(230,57,70,0.5);
  animation: dot-glow 2s ease-in-out infinite;
}
@keyframes dot-glow {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.5); box-shadow: 0 0 16px var(--accent4), 0 0 32px rgba(230,57,70,0.7); }
}

/* Tag / badge */
.error-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,0.1);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 3px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent4);
  margin-bottom: 20px;
}
.error-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent4);
  animation: dot-glow 1.4s ease-in-out infinite;
}

.headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.1;
}
.sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}
.sub strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

/* Action buttons */
.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent4);
  color: var(--white);
  border: none;
  padding: 13px 30px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--accent-dark4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,57,70,0.4);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 13px 30px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* ── STEEL TEXTURE STRIPS on left/right ── */
.strip {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 8px,
    transparent 8px,
    transparent 14px
  );
}
.strip-left  { left: 48px; }
.strip-right { right: 48px; }

/* ── RIVET CORNERS ── */
.rivet {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
}
.rivet-tl { top: 24px;  left: 24px; }
.rivet-tr { top: 24px;  right: 24px; }
.rivet-bl { bottom: 24px; left: 24px; }
.rivet-br { bottom: 24px; right: 24px; }

/* STATUS panel bottom-left */
.status-panel {
  position: absolute;
  bottom: 60px;
  left: 32px;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  line-height: 1.9;
  pointer-events: none;
}
.status-panel .row { display: flex; gap: 8px; }
.status-panel .label { opacity: 0.5; width: 64px; }
.status-panel .val { color: rgba(255,255,255,0.4); }
.status-panel .ok { color: #4caf50; }
.status-panel .err { color: var(--accent4); animation: dot-glow 1.6s infinite; }

/* Error code bottom-right */
.err-code {
  position: absolute;
  bottom: 60px;
  right: 32px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1.8;
  text-align: right;
}
/* end 404 */

.page-wrap{padding: 80px 0;}

/* cookies */
#CookiesAlert {
  position: fixed; z-index: 9999; bottom: 0; right: 0;
  padding: 15px; width: fit-content; text-align: center;
  display: none; color: #212731;
}
#CookiesAlert.active { display: block; }
#CookiesAlert .content {
  max-width: 600px; padding: 15px; margin: auto;
  border-radius: 10px; background: white;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}
#CookiesAlert .buttons { display: flex; margin-top: 25px; justify-content: center;}
#CookiesAlert .buttons a {display: block; color: var(--accent-dark); padding: 10px; border: 1px solid #ccc; text-transform: uppercase; margin-right: 20px; text-decoration: none;}
/* end cookies */