/* ============================================================
   ASU-AUTO — Main Stylesheet
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg:          #F3F5F8;
  --bg-alt:      #EEF2F6;
  --accent:      #C8102E;
  --accent-dark: #a30e26;
  --text:        #1A1A2E;
  --text-2:      #5A6275;
  --white:       #FFFFFF;
  --border:      rgba(0, 0, 0, 0.07);
  --shadow-sm:   0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-md:   0 8px 40px rgba(0, 0, 0, 0.12);
  --radius:      12px;
  --radius-lg:   16px;
  --header-h:    70px;
  --ease:        0.28s ease;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

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

/* ---------- Page watermark ---------- */
.page-watermark {
  position: fixed;
  inset: 0;
  background: url('assets/asu_logo.png') no-repeat center / 60vmin;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn--red {
  background: var(--accent);
  color: var(--white);
}
.btn--red:hover  { background: var(--accent-dark); transform: translateY(-1px); }
.btn--red:active { transform: scale(0.98); }

/* ---------- Section ---------- */
.section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}

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

.section__title {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  margin-bottom: 52px;
}

.section__title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13, 13, 26, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  transition: box-shadow var(--ease);
}
.header.scrolled { box-shadow: 0 2px 28px rgba(0, 0, 0, 0.38); }

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Nav */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  gap: 2px;
}

.nav__link {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

/* Phone */
.header__right { flex-shrink: 0; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--accent);
  transition: background var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.header__phone:hover { background: var(--accent-dark); }
.header__phone::before { content: '📞'; font-size: 13px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  width: 40px;
  height: 40px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  margin-top: var(--header-h);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s ease;
  transform: scale(1.04);
  transition: opacity 1.3s ease, transform 6s ease;
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero__slide--1 {
  background-image:
    linear-gradient(rgba(8, 8, 18, 0.52), rgba(8, 8, 18, 0.44)),
    url('assets/banner.png');
}
.hero__slide--2 {
  background-image:
    linear-gradient(rgba(8, 8, 18, 0.56), rgba(8, 8, 18, 0.48)),
    url('assets/material.png');
  background-position: center 30%;
}
.hero__slide--3 {
  background-image:
    linear-gradient(rgba(8, 8, 18, 0.54), rgba(8, 8, 18, 0.46)),
    url('assets/filter.png');
}
.hero__slide--4 {
  background-image:
    linear-gradient(rgba(8, 8, 18, 0.54), rgba(8, 8, 18, 0.46)),
    url('assets/tech.png');
}

.hero__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero__logo-img {
  width: clamp(110px, 16vw, 200px);
  height: auto;
  filter: drop-shadow(0 6px 32px rgba(0, 0, 0, 0.65));
  animation: heroLogoIn 1.4s ease both;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.hero__controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__dots { display: flex; gap: 8px; }

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--ease), transform var(--ease);
}
.hero__dot.active,
.hero__dot:hover {
  background: var(--white);
  transform: scale(1.4);
}

.hero__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.hero__arrow:hover { background: rgba(255, 255, 255, 0.26); }

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.about__text {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 620px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat__num {
  display: block;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.35;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-card__img {
  height: 210px;
  background-size: cover;
  background-position: center;
}

.product-card__img--oils    { background-image: url('assets/material.png'); }
.product-card__img--filters { background-image: url('assets/filter.webp'); }
.product-card__img--fluids  { background-image: url('assets/tech.png'); }

.product-card__img--chem {
  background: linear-gradient(140deg, #1a1a2e 0%, #8c0c20 50%, #C8102E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__img--chem::after {
  content: '⚗';
  font-size: 56px;
  opacity: 0.28;
}

.product-card__body { padding: 20px 20px 24px; }

.product-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.product-card__list { padding: 0; }

.product-card__list li {
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0 4px 14px;
  position: relative;
  line-height: 1.4;
}
.product-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   BRANDS
   ============================================================ */
.brands__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.brand-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
}
.brand-item:last-child { border-right: none; }
.brand-item:hover { background: rgba(200, 16, 46, 0.04); }

.brand-item img {
/*  max-width: 130px;
  max-height: 64px;
  width: 100%;
  height: auto; */
  object-fit: contain;
  filter: grayscale(55%) opacity(0.85);
  transition: filter var(--ease);
}
.brand-item:hover img { filter: grayscale(0%) opacity(1); }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 36px;
}

.client-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
}
.client-item:last-child { border-right: none; }
.client-item:hover { background: rgba(200, 16, 46, 0.04); }

.client-item img {
  max-width: 140px;
  max-height: 72px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(45%) opacity(0.85);
  transition: filter var(--ease);
}
.client-item:hover img { filter: grayscale(0%) opacity(1); }

.clients__caption {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
  align-items: start;
}

.contacts__address { font-style: normal; }

.contacts__company {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.contacts__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 14px;
  line-height: 1.55;
  transition: color var(--ease);
}
.contacts__link:hover { color: var(--accent); }
.contacts__link::before { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.contacts__link--phone::before { content: '📞'; }
.contacts__link--email::before { content: '✉️'; }
.contacts__link--geo::before   { content: '📍'; }

/* Form */
.contacts__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contacts__form-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 24px;
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease), background var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form__input:focus  { border-color: var(--accent); background: var(--white); }
.contact-form__input::placeholder { color: #A8B0C0; }

.contact-form__textarea { resize: vertical; min-height: 96px; }

.contact-form__btn { width: 100%; padding: 14px; margin-top: 4px; }

.contact-form__notice {
  font-size: 13px;
  min-height: 20px;
  color: #2e7d32;
  text-align: center;
}
.contact-form__notice.error { color: var(--accent); }

/* Map */
.contacts__map {
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0C0C1A;
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.footer__logo img { width: 34px; height: 34px; object-fit: contain; }
.footer__logo span {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer__contacts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--ease);
}
a.footer__contact:hover { color: var(--white); }

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  margin-left: auto;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeUp 0.58s ease both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brands__list {
    flex-wrap: wrap;
  }
  .brand-item {
    flex: 0 0 calc(100% / 3);
    border-bottom: 1px solid var(--border);
  }
  .brand-item:nth-child(3) { border-right: none; }
  .brand-item:nth-child(4),
  .brand-item:nth-child(5),
  .brand-item:nth-child(6) { border-bottom: none; }
  .contacts__grid {
    grid-template-columns: 200px 1fr;
  }
  .contacts__map {
    grid-column: 1 / -1;
    height: 340px;
  }
}

@media (max-width: 900px) {
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .contacts__grid {
    grid-template-columns: 1fr;
  }
  .contacts__map {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(13, 13, 26, 0.98);
    backdrop-filter: blur(14px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 999;
  }
  .nav.open { max-height: 400px; }
  .nav__list {
    flex-direction: column;
    padding: 16px 24px 28px;
    gap: 4px;
  }
  .nav__link { font-size: 15px; padding: 10px 14px; }

  .burger { display: flex; }
  .header__right { display: none; }

  .section { padding: 64px 0; }

  .about__stats { grid-template-columns: repeat(3, 1fr); }

  .products__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card__img { height: 160px; }

  .brands__list { flex-wrap: wrap; }
  .brand-item { flex: 0 0 50%; }
  .brand-item:nth-child(even) { border-right: none; }

  .clients__list { flex-wrap: wrap; }
  .client-item { flex: 0 0 50%; }
  .client-item:nth-child(even) { border-right: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__copy  { margin-left: 0; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: 1fr; }
  .product-card__img { height: 200px; }
  .brands__list, .clients__list { flex-direction: column; }
  .brand-item, .client-item {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .brand-item:last-child, .client-item:last-child { border-bottom: none; }
  .contact-form__row { grid-template-columns: 1fr; }
  .hero__logo-img { width: 110px; }
  .footer__contacts { flex-direction: column; gap: 10px; }
}
