/* ═══════════════════════════════════════════
   АВТО ДВИЖЕНИЕ — Main Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto+Condensed:wght@300;400;700&display=swap');

/* ── VARIABLES ── */
:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark2:      #1a1a1a;
  --red:        #cc1c1c;
  --red-bright: #e82020;
  --white:      #f0f0f0;
  --gray:       #888;
  --gray-light: #ccc;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Roboto Condensed', sans-serif;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY HELPERS ── */
.font-oswald { font-family: 'Oswald', sans-serif; }
.text-red     { color: var(--red-bright); }
.text-gray    { color: var(--gray); }
.text-gray-lt { color: var(--gray-light); }

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  background: rgba(10,10,10,0.97) !important;
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(8px);
  padding: 0 1.5rem;
  min-height: 64px;
}
.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white) !important;
}
.navbar-brand span { color: var(--red); }

.navbar-toggler {
  border: 1px solid rgba(204,28,28,0.6);
  padding: 4px 8px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240,240,240,0.9%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
  background: rgba(10,10,10,0.98);
}
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 12px 0;
    border-top: 1px solid rgba(204,28,28,0.25);
    margin-top: 4px;
  }
}

.nav-link {
  font-family: 'Oswald', sans-serif !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--gray-light) !important;
  padding: 10px 16px !important;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--red-bright) !important; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 100px 20px 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(204,28,28,0.12) 0%, transparent 70%),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,0.015) 50px),
    repeating-linear-gradient(0deg,  transparent, transparent 49px, rgba(255,255,255,0.015) 50px);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* Decorative spinning gears inside hero */
.gear-deco {
  position: absolute;
  opacity: 0.07;
  animation: slowSpin 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.gear-deco.left  { left: -140px; top: 12%; width: 440px; animation-direction: reverse; }
.gear-deco.right { right: -100px; bottom: 8%; width: 320px; }
.gear-deco.small { right: 16%; top: 10%; width: 170px; opacity: 0.05; animation-duration: 20s; }

@media (max-width: 767px) {
  .gear-deco.left  { left: -180px; width: 340px; opacity: 0.05; }
  .gear-deco.right { right: -130px; width: 260px; opacity: 0.04; }
  .gear-deco.small { display: none; }
}

.hero-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 5px 18px;
  margin-bottom: 28px;
  display: inline-block;
  animation: fadeUp 0.7s ease both;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero-title .red { color: var(--red-bright); }

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  color: var(--gray-light);
  margin-top: 22px;
  letter-spacing: 0.04em;
  max-width: 680px;
  line-height: 1.65;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.45s ease both;
}

/* Scroll hint */
.scroll-hint {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.38;
  animation: fadeUp 0.7s 0.6s ease both;
}
.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 22px; height: 34px;
  border: 2px solid var(--gray);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.scroll-arrow::after {
  content: '';
  width: 4px; height: 8px;
  background: var(--gray);
  border-radius: 2px;
  animation: scrollBounce 1.5s infinite;
}

/* ── KEYFRAMES ── */
@keyframes slowSpin   { to { transform: rotate(360deg); } }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary-custom {
  background: var(--red);
  color: var(--white) !important;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 13px 34px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-primary-custom:hover { background: var(--red-bright); transform: translateY(-2px); }

.btn-outline-custom {
  background: transparent;
  color: var(--white) !important;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 11px 34px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
  transition: border-color 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-outline-custom:hover { border-color: var(--white); }

/* ═══════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════ */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 10;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}
.ticker-item {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  padding: 0 36px;
  flex-shrink: 0;
}
.ticker-sep { color: rgba(255,255,255,0.4); padding: 0 8px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */
section { position: relative; z-index: 1; }

.stripe {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  position: relative;
  z-index: 2;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.section-title span { color: var(--red); }
.section-header { padding: 64px 20px 48px; text-align: center; }

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
#services { background: var(--dark); }

.service-card {
  background: var(--dark2);
  padding: 36px 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.3s;
  transform-origin: bottom;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { transform: translateX(4px); }

.service-icon {
  width: 50px; height: 50px;
  margin-bottom: 18px;
  color: var(--red);
}
.service-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.service-desc {
  color: var(--gray);
  font-size: 0.91rem;
  line-height: 1.65;
}
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-list li {
  color: var(--gray-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ═══════════════════════════════════════════
   BRANDS
   ═══════════════════════════════════════════ */
#brands { background: var(--black); }
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 24px 72px;
}
.brand-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--gray-light);
  transition: all 0.25s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  cursor: default;
}
.brand-badge:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(204,28,28,0.08);
}

/* ═══════════════════════════════════════════
   WHY US
   ═══════════════════════════════════════════ */
#why { background: var(--dark); }
.why-item {
  padding: 36px 24px;
  background: var(--black);
  text-align: center;
  transition: background 0.25s;
  border: 1px solid rgba(255,255,255,0.04);
}
.why-item:hover { background: rgba(204,28,28,0.06); }
.why-num {
  font-family: 'Oswald', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.why-label {
  font-size: 0.86rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════
   TIRES SECTION
   ═══════════════════════════════════════════ */
#tires {
  background: var(--black);
  /* No overflow:hidden here — let the tire SVGs bleed as background layer */
  position: relative;
}

/* Red gradient glow */
#tires::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 75% 55%, rgba(204,28,28,0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── BACKGROUND TIRE DECORATIONS ──
   Placed BEHIND content via z-index:0, section content at z-index:1 */
.tire-bg-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;          /* behind all section content */
}
.tire-bg-deco.tbd-1 {
  width: 520px;
  right: -160px;
  top: -80px;
  animation: slowSpin 18s linear infinite;
}
.tire-bg-deco.tbd-2 {
  width: 300px;
  left: -100px;
  bottom: -60px;
  animation: slowSpin 25s linear infinite reverse;
  opacity: 0.05;
}
@media (max-width: 767px) {
  .tire-bg-deco.tbd-1 { width: 300px; right: -120px; top: -40px; opacity: 0.05; }
  .tire-bg-deco.tbd-2 { display: none; }
}

/* Content wrapper sits above bg tire */
#tires .section-header,
.tires-inner { position: relative; z-index: 1; }

.tires-inner {
  padding: 0 0 80px;
}
.tires-detail {
  color: var(--gray-light);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.tires-types {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.type-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 22px;
  text-transform: uppercase;
}
.type-badge.red     { background: var(--red); color: #fff; }
.type-badge.outline { border: 2px solid rgba(255,255,255,0.25); color: var(--gray-light); }

.tires-address-block {
  background: var(--dark2);
  border-left: 4px solid var(--red);
  padding: 26px 26px;
}
.addr-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.addr-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* The foreground wheel canvas in tires section */
.tires-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 30px 0;
}
.wheel-canvas-wrap {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  overflow: visible;
}
.wheel-canvas-wrap canvas {
  display: block;
  filter: drop-shadow(0 8px 40px rgba(204,28,28,0.25)) drop-shadow(0 2px 12px rgba(0,0,0,0.8));
}

@media (max-width: 767px) {
  .wheel-canvas-wrap { width: 240px; height: 240px; margin: 0 auto 32px; }
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
#contact { background: var(--dark); }

.contact-card {
  background: var(--black);
  padding: 40px 36px;
  position: relative;
  height: 100%;
}
.contact-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 36px; right: 36px;
  height: 2px;
  background: var(--red);
}
.contact-type {
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.contact-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.contact-info-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--gray-light);
  font-size: 0.93rem;
  line-height: 1.55;
}
.info-icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px; height: 18px;
}
.phone-link {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-bright);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  margin-bottom: 4px;
}
.phone-link:hover { color: var(--white); }
.contact-phones { margin-top: 18px; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-logo span { color: var(--red); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   GEAR BACKGROUND (fixed, full page)
   ═══════════════════════════════════════════ */
.gear-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.gear-bg svg { width: 100%; height: 100%; opacity: 0.03; }

/* ═══════════════════════════════════════════
   SERVICES ROW GAP BOTTOM
   ═══════════════════════════════════════════ */
.services-row { padding-bottom: 72px; }
.why-row      { padding-bottom: 64px; }
.contact-row  { padding-bottom: 72px; }
