/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1B4FFF;
  --blue-dark: #0B2FC7;
  --blue-bg:   #0D1B4B;
  --gold:      #FFB800;
  --dark:      #0A0E1A;
  --dark2:     #111827;
  --gray:      #6B7280;
  --light:     #F9FAFB;
  --white:     #FFFFFF;
  --radius:    1rem;
  --shadow:    0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.22);
  --font:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 3rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn--primary  { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,79,255,.4); }
.btn--outline  { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--ghost    { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(255,255,255,.08); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--white    { background: var(--white); color: var(--blue); font-weight: 700; }
.btn--white:hover { background: var(--light); }
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

/* LOGO */
.logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.logo__num {
  width: 52px; height: 52px;
  background: var(--blue);
  border-radius: .75rem;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 900; color: var(--white);
  line-height: 1;
}
.logo__text { display: flex; flex-direction: column; }
.logo__text strong { font-size: 1rem; font-weight: 700; color: var(--white); }
.logo__text small  { font-size: .65rem; color: rgba(255,255,255,.5); line-height: 1.3; }

/* NAV */
.nav { display: flex; gap: 2rem; margin: 0 auto; }
.nav a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.7); transition: color .2s; }
.nav a:hover { color: var(--white); }

.header__contacts { flex-shrink: 0; }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(27,79,255,.25) 0%, transparent 70%),
    linear-gradient(135deg, #060A18 0%, #0D1B4B 50%, #0A1230 100%);
}

/* Animated grid lines */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,79,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,79,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Water drop shapes */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(27,79,255,.15) 0%, transparent 40%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(27,79,255,.2);
  border: 1px solid rgba(27,79,255,.4);
  color: #7BA4FF;
  border-radius: 2rem;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 700px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #5C8BFF, #FFB800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-size: 2rem; font-weight: 900; color: var(--white); }
.hero__stat span   { font-size: .8rem; color: rgba(255,255,255,.45); max-width: 120px; line-height: 1.4; }

/* scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero__scroll span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 2rem;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; top: 6px; }
  80%  { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 6px; }
}

/* ─── PROMO STRIP ─── */
.promo-strip {
  background: linear-gradient(135deg, var(--gold) 0%, #FF8C00 100%);
  padding: 1.25rem 0;
}
.promo-strip__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.promo-strip__icon { font-size: 2rem; }
.promo-strip__text { flex: 1; min-width: 200px; }
.promo-strip__text strong { display: block; font-size: 1.1rem; font-weight: 800; color: #1A0500; }
.promo-strip__text span   { font-size: .875rem; color: rgba(0,0,0,.65); }

/* ─── SECTION BASE ─── */
.section { padding: 6rem 0; }
.section--dark  { background: var(--dark2); }
.section--blue  { background: var(--blue-bg); }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head--light .section-head__title,
.section-head--light .section-head__sub { color: var(--white); }
.section-head--light .section-head__tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }

.section-head__tag {
  display: inline-block;
  background: rgba(27,79,255,.1);
  color: var(--blue);
  border-radius: 2rem;
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-head__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.section-head__sub { color: var(--gray); font-size: 1rem; }

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }

.service-card--accent { background: var(--blue); color: var(--white); }
.service-card--accent::before { background: var(--gold); opacity: 1; }
.service-card--accent p { color: rgba(255,255,255,.8); }
.service-card--accent .service-card__tag { background: rgba(255,255,255,.2); color: var(--white); }

.service-card--gold { background: linear-gradient(135deg, #1A0A00, #2D1800); color: var(--white); }
.service-card--gold::before { background: var(--gold); opacity: 1; }
.service-card--gold p { color: rgba(255,255,255,.75); }
.service-card--gold .service-card__tag { background: var(--gold); color: #1A0A00; }

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--gray); line-height: 1.6; margin-bottom: 1rem; }

.service-card__tag {
  display: inline-block;
  background: rgba(27,79,255,.1);
  color: var(--blue);
  border-radius: 2rem;
  padding: .2rem .7rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ─── PRICE TABLE ─── */
.price-table-wrap { overflow-x: auto; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table thead tr {
  background: var(--blue);
  color: var(--white);
}
.price-table th {
  padding: 1rem 1.25rem;
  font-weight: 600;
  text-align: left;
  font-size: .82rem;
  letter-spacing: .02em;
}
.price-table td {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  vertical-align: top;
}
.price-table tbody tr { background: rgba(255,255,255,.04); }
.price-table tbody tr:hover { background: rgba(27,79,255,.1); }
.row--highlight td { background: rgba(27,79,255,.08) !important; }
.price-table td strong { display: block; font-weight: 700; color: var(--white); margin-bottom: .25rem; }
.price-table td small  { font-size: .78rem; color: rgba(255,255,255,.45); }

.price-cell {
  font-weight: 700;
  color: var(--gold) !important;
  text-align: center;
  white-space: nowrap;
}

.price-note {
  margin-top: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.price-note a { color: rgba(255,255,255,.65); text-decoration: underline; }

/* ─── TIRES GRID ─── */
.tires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tire-block {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(0,0,0,.06);
}
.tire-block h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid rgba(27,79,255,.12);
}
.tire-items { display: flex; flex-direction: column; gap: .6rem; }
.tire-item  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .75rem;
  background: var(--white);
  border-radius: .5rem;
  border: 1px solid rgba(0,0,0,.04);
}
.tire-size  { font-size: .85rem; color: var(--gray); }
.tire-price { font-weight: 700; font-size: .95rem; color: var(--dark); }

.tires-phone {
  text-align: center;
  font-size: 1rem;
  color: var(--gray);
}
.tires-phone a { color: var(--blue); font-weight: 700; }
.tires-phone a:hover { text-decoration: underline; }

/* ─── GALLERY ─── */
.section--gray { background: #F3F4F6; }

/* Before / After block */
.beforeafter-wrap { margin-bottom: 3rem; }

.beforeafter-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.beforeafter-card__img-row {
  display: flex;
  align-items: stretch;
  min-height: 340px;
  position: relative;
}
.ba-side {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.ba-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.ba-side:hover img { transform: scale(1.04); }

.ba-divider {
  width: 4px;
  background: var(--white);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.ba-divider::before {
  content: '↔';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  color: var(--blue);
  font-weight: 700;
}

.ba-label {
  position: absolute;
  bottom: 1rem;
  padding: .3rem .9rem;
  border-radius: 2rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ba-label--before { left: 1rem; background: rgba(0,0,0,.5); color: var(--white); }
.ba-label--after  { right: 1rem; background: var(--blue); color: var(--white); }

.beforeafter-card__desc {
  padding: 1rem 1.5rem;
  font-size: .88rem;
  color: var(--gray);
  text-align: center;
  border-top: 1px solid rgba(0,0,0,.05);
}

/* Photo grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .beforeafter-card__img-row { min-height: 220px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ─── REASONS ─── */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.reason { padding: 2rem; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); }
.reason__num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(27,79,255,.35);
  line-height: 1;
  margin-bottom: .75rem;
}
.reason h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.reason p  { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.65; }

/* ─── CONTACTS ─── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contacts-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item__icon {
  width: 44px; height: 44px;
  background: rgba(27,79,255,.1);
  border-radius: .75rem;
  display: grid; place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-weight: 700; font-size: .875rem; margin-bottom: .2rem; }
.contact-item span   { font-size: .9rem; color: var(--gray); line-height: 1.6; }
.contact-item a      { color: var(--blue); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__inner p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-size: .82rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer__links a:hover { color: rgba(255,255,255,.8); }

/* ─── RESPONSIVE ─── */

/* Tablet ≤900px */
@media (max-width: 900px) {
  .nav, .header__contacts { display: none; }
  .burger { display: flex; }
  .contacts-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }

  /* Mobile Nav */
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,14,26,.97);
    padding: 2rem 1.5rem;
    gap: 1rem;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 99;
  }
  .nav.open a { font-size: 1.1rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }

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

  /* Price table → card layout on tablet */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr {
    background: rgba(255,255,255,.05);
    border-radius: .75rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.07);
  }
  .price-table tr.row--highlight { background: rgba(27,79,255,.12) !important; }
  .price-table td {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    text-align: left;
  }
  .price-table td:last-child { border-bottom: none; }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .15rem;
    font-weight: 600;
  }
  .price-cell { text-align: left !important; color: var(--gold) !important; font-size: .95rem; }
}

/* Mobile ≤600px */
@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }

  /* Hero — extra bottom padding to clear the scroll indicator (position:absolute bottom:2rem ~56px) */
  .hero__inner { padding: 3.5rem 1rem 6rem; }
  .hero__title  { font-size: 2.2rem; }
  .hero__sub    { font-size: .9rem; margin-bottom: 1.75rem; }
  /* Hide inline breaks in subtitle — they look odd on narrow screens */
  .hero__sub br { display: none; }
  .hero__actions { gap: .75rem; margin-bottom: 2.5rem; }
  .hero__actions .btn--lg { padding: .85rem 1.5rem; font-size: .9rem; width: 100%; justify-content: center; }

  /* Stats: 2–1 grid → even 3-column row */
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    padding-top: 1.5rem;
    text-align: center;
  }
  .hero__stat { align-items: center; }
  .hero__stat strong { font-size: 1.5rem; }
  .hero__stat span   { font-size: .7rem; max-width: none; }

  /* Promo */
  .promo-strip { padding: 1.5rem 0; }
  .promo-strip__inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .promo-strip .btn--white { width: 100%; justify-content: center; }

  /* Section heads */
  .section-head { margin-bottom: 2rem; }
  .section-head__title { font-size: 1.65rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }

  /* Tires */
  .tires-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tires-phone { font-size: .9rem; margin-top: 1.25rem; }

  /* Gallery */
  .beforeafter-card__img-row { flex-direction: column; min-height: auto; }
  .ba-side { min-height: 200px; }
  .ba-divider { width: 100%; height: 4px; }
  .ba-divider::before { content: '↕'; top: 50%; left: 50%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }

  /* Reasons */
  .reasons-grid { grid-template-columns: 1fr; gap: 1rem; }
  .reason { padding: 1.25rem; }
  .reason__num { font-size: 2rem; }

  /* Contacts */
  .contacts-map iframe { height: 260px; }
  .contact-item__icon { width: 38px; height: 38px; font-size: 1rem; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* Buttons contact block */
  .contacts-info .btn { width: 100%; justify-content: center; }

  /* Scroll indicator — keep visible but ensure it doesn't clip */
  .hero__scroll { bottom: 1.5rem; }
}

/* ─── FADE IN ANIMATION ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
