/* ===== DESIGN TOKENS ===== */
:root {
  --coal: #12151A;
  --steel: #2B3240;
  --gunmetal: #3D4555;
  --rail: #C41E24;
  --rail-dark: #A01920;
  --rail-light: #E8353C;
  --iron: #E2E0DB;
  --smoke: #F4F3F0;
  --white: #FFFFFF;
  --amber: #D97706;
  --signal-green: #16A34A;
  --signal-blue: #2563EB;

  --font-display: 'Arial Black', 'Helvetica Neue', 'Arial', sans-serif;
  --font-body: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;

  --header-h: 72px;
  --topbar-h: 40px;
  --max-w: 1280px;
  --section-py: 96px;
  --gap: 24px;
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--coal);
  letter-spacing: -0.02em;
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-py) 0; }
.section--smoke { background: var(--smoke); }
.section--dark {
  background: var(--coal);
  color: var(--iron);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--coal);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--iron);
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.topbar a {
  color: var(--iron);
  transition: color .2s;
}
.topbar a:hover { color: var(--white); }
.topbar__phone::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.topbar__email::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 01-2.06 0L2 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 01-2.06 0L2 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  border-bottom: 1px solid var(--iron);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__mark {
  width: 48px; height: 48px;
  background: var(--rail);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.2;
  color: var(--coal);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo__text span {
  display: block;
  color: var(--rail);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Nav */
.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: 4px;
}
.nav__link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link--active {
  background: var(--smoke);
  color: var(--coal);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--coal);
  border-radius: 1px;
  transition: .3s;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); background: var(--coal); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); background: var(--coal); }

/* ===== HERO ===== */
.hero {
  background: url('../img/hero-image.jpg') center/cover no-repeat var(--coal);
  color: var(--iron);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,21,26,.75) 0%, rgba(18,21,26,.5) 50%, rgba(18,21,26,.35) 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--rail) 0,
    var(--rail) 40px,
    transparent 40px,
    transparent 56px
  );
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(196, 30, 36, .15);
  border: 1px solid rgba(196, 30, 36, .3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rail-light);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--rail);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  max-width: 900px;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--rail-light);
}
.hero__sub {
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.7;
  color: rgba(226, 224, 219, .8);
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--rail);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--rail-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 30, 36, .35);
}
.btn--outline {
  border: 2px solid rgba(255,255,255,.25);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.05);
}
.btn--dark {
  background: var(--coal);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--steel);
}

/* Hero stats */
.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero__stat-label {
  font-size: 13px;
  color: rgba(226, 224, 219, .6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--iron);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  transition: box-shadow .4s ease, border-color .4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card--sale::before { background: var(--rail); }
.service-card--repair::before { background: var(--amber); }
.service-card--rent::before { background: var(--signal-green); }
.service-card--extend::before { background: var(--signal-blue); }

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.service-card__number {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--iron);
  letter-spacing: -0.03em;
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card--sale .service-card__icon { background: rgba(196,30,36,.1); color: var(--rail); }
.service-card--repair .service-card__icon { background: rgba(217,119,6,.1); color: var(--amber); }
.service-card--rent .service-card__icon { background: rgba(22,163,74,.1); color: var(--signal-green); }
.service-card--extend .service-card__icon { background: rgba(37,99,235,.1); color: var(--signal-blue); }

.service-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--coal);
}
.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gunmetal);
  margin-bottom: 24px;
  flex-grow: 1;
}
.service-card__link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .3s ease;
  margin-top: auto;
}
.service-card--sale .service-card__link { color: var(--rail); }
.service-card--repair .service-card__link { color: var(--amber); }
.service-card--rent .service-card__link { color: var(--signal-green); }
.service-card--extend .service-card__link { color: var(--signal-blue); }
.service-card:hover .service-card__link { gap: 12px; }
.service-card__link::after {
  content: '\2192';
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 56px;
}
.section-header__eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rail);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.02em;
}
.section-header p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--gunmetal);
  max-width: 600px;
}

/* Rail divider */
.rail-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0;
}
.rail-divider::before,
.rail-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--iron);
}
.rail-divider__dot {
  width: 8px; height: 8px;
  background: var(--rail);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== CATALOG GRID ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.loco-card {
  background: var(--white);
  border: 1px solid var(--iron);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.loco-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.loco-card__img {
  height: 200px;
  background: linear-gradient(135deg, var(--steel) 0%, var(--gunmetal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.loco-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.loco-card:hover .loco-card__img img {
  transform: scale(1.05);
}
.loco-card__img-text {
  font-family: var(--font-display);
  font-size: 48px;
  color: rgba(255,255,255,.12);
  letter-spacing: -2px;
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.loco-card__body { padding: 24px; }
.loco-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--coal);
  margin-bottom: 16px;
}
.loco-card__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.loco-card__spec {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--iron);
}
.loco-card__spec-label { color: var(--gunmetal); text-transform: uppercase; letter-spacing: 0.04em; }
.loco-card__spec-value { font-weight: 600; color: var(--coal); }
.loco-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--rail);
  letter-spacing: -0.01em;
}
.loco-card__price-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gunmetal);
  font-weight: 400;
}

/* ===== ADVANTAGES ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.advantage {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}
.advantage__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(196, 30, 36, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--rail-light);
}
.advantage h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--white);
}
.advantage p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(226, 224, 219, .85);
}

/* ===== SPARE PARTS ===== */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--gap);
}
.part-card {
  background: var(--white);
  border: 1px solid var(--iron);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.part-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--coal);
  margin-bottom: 12px;
  line-height: 1.4;
}
.part-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.part-card__tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--smoke);
  border-radius: 100px;
  color: var(--gunmetal);
  font-weight: 500;
}
.part-card__price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--rail);
}

/* ===== REPAIR SECTION ===== */
.repair-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.repair-list { display: flex; flex-direction: column; gap: 16px; }
.repair-item {
  padding: 20px 24px;
  background: var(--smoke);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--amber);
}
.repair-item h4 { font-size: 15px; margin-bottom: 4px; }
.repair-item p { font-size: 14px; color: var(--gunmetal); }

/* ===== EXTEND CARDS ===== */
.extend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.extend-card {
  background: var(--white);
  border-left: 4px solid var(--signal-blue);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-top: 1px solid var(--iron);
  border-right: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
}
.extend-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--coal);
}
.extend-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gunmetal);
}

/* ===== GEOGRAPHY ===== */
.geo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.geo-tag {
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--iron);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  transition: all .2s;
}
.geo-tag:hover {
  border-color: var(--rail);
  color: var(--rail);
}

/* ===== CONTACTS ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-block {
  padding: 32px;
  background: var(--smoke);
  border-radius: var(--radius-lg);
}
.contact-block h3 {
  font-size: 20px;
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-item__icon {
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contact-item__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gunmetal);
  margin-bottom: 4px;
}
.contact-item__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--coal);
}
.contact-item__value a {
  transition: color .2s;
}
.contact-item__value a:hover { color: var(--rail); }

/* Contact form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--iron);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--coal);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rail);
  box-shadow: 0 0 0 3px rgba(196, 30, 36, .1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--coal);
  color: rgba(226, 224, 219, .6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  font-size: 14px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.footer__about p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
}
.footer__links a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(226, 224, 219, .6);
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__contact-value {
  font-size: 14px;
  margin-bottom: 8px;
}
.footer__contact-value a {
  color: rgba(226, 224, 219, .8);
  transition: color .2s;
}
.footer__contact-value a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer__models {
  max-width: 480px;
  font-size: 12px;
  color: rgba(226, 224, 219, .4);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 26, .7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  transform: translateY(24px) scale(.96);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal__close {
  position: absolute;
  z-index: 10;
  top: 16px;
  right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(18,21,26,.6);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background .2s, transform .2s;
  cursor: pointer;
  border: none;
}
.modal__close:hover { background: rgba(18,21,26,.85); transform: scale(1.1); }

.modal__hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,21,26,.85) 0%, rgba(18,21,26,.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.modal__subtitle {
  font-size: 15px;
  color: rgba(226, 224, 219, .7);
}
.modal__body { padding: 36px 40px 40px; }
.modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.modal__spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--iron);
}
.modal__specs .modal__spec:nth-child(odd) { padding-right: 24px; }
.modal__specs .modal__spec:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--iron); }
.modal__spec:nth-last-child(-n+2) { border-bottom: none; }
.modal__spec-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gunmetal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal__spec-value {
  font-size: 15px;
  color: var(--coal);
  line-height: 1.5;
}
.modal__extra {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(37, 99, 235, .06);
  border-left: 3px solid var(--signal-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.modal__price-block {
  margin-top: 28px;
  padding: 28px 32px;
  background: var(--coal);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.modal__price-item {
  margin-right: auto;
}
.modal__price {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  letter-spacing: -0.02em;
}
.modal__price-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}
.modal__price-note {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
.modal__price-block .btn--primary {
  padding: 14px 32px;
}
.modal__price-block .btn--outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.modal__price-block .btn--outline-light:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
}

@media (max-width: 768px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 95vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal__hero { height: 220px; }
  .modal__hero-overlay { padding: 24px; }
  .modal__title { font-size: 24px; }
  .modal__body { padding: 24px; }
  .modal__specs { grid-template-columns: 1fr; }
  .modal__specs .modal__spec:nth-child(even) { padding-left: 0; border-left: none; }
  .modal__specs .modal__spec:nth-child(odd) { padding-right: 0; }
  .modal__spec:nth-last-child(2) { border-bottom: 1px solid var(--iron); }
  .modal__price-block { flex-direction: column; align-items: stretch; padding: 20px; }
  .modal__price { font-size: 26px; }
  .modal__price-block .btn { text-align: center; }
  .modal__close { position: absolute; top: 12px; right: 12px; }
}

/* ===== LOCO CARD CURSOR ===== */
.loco-card { cursor: pointer; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  background: var(--coal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--rail);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .repair-content { grid-template-columns: 1fr; }
  .hero__stats { gap: 32px; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --header-h: 64px;
  }

  .topbar { display: none; }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 24px;
    z-index: 99;
    overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__link {
    font-size: 18px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--iron);
    border-radius: 0;
  }
  .nav-toggle { display: flex; }

  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 32px; }
  .hero__sub { font-size: 16px; }
  .hero__stats { flex-wrap: wrap; gap: 24px; }
  .hero__stat { flex: 0 0 calc(50% - 12px); }

  .services-grid { grid-template-columns: 1fr; }
  .extend-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .hero__stat { flex: unset; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero__badge::before { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
