.hero {
  position: relative;
  overflow: hidden;
  min-height: 820px;
  display: flex;
  align-items: center;
  background-color: #000;
  background-image: url('../img/hero-cars.PNG');
  background-position: 24% center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.35) 32%,
      rgba(0, 0, 0, 0.2) 58%,
      rgba(0, 0, 0, 0.08) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.hero__text {
  width: 100%;
  max-width: 760px;
  margin-left: 0;
  padding: 80px 0 96px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 18, 0.45);
  color: #fed7aa;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero__text h1 {
  max-width: 760px;
  font-size: 74px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #f3f3f3;
  margin-bottom: 28px;
}

.hero__subtitle {
  max-width: 720px;
  font-size: 24px;
  line-height: 1.45;
  color: #d4d4d8;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__actions .btn {
  min-width: 280px;
  min-height: 64px;
  padding-inline: 28px;
  justify-content: center;
}

.about {
  padding: 80px 0 100px;
  background: #fff;
  color: var(--clr-text-dark);
}

.about__content {
  display: grid;
  gap: 48px;
  align-items: start;
}

.about__text {
  width: 100%;
}

.about__title {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 32px;
  color: #18181b;
}

.about__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  color: #3f3f46;
}

.check-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}

.about__visual {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about__cta {
  min-height: 58px;
  width: auto;
  padding-inline: 32px;
}

.about__messengers {
  margin-top: 32px;
  width: 100%;
}

.about__messengers-title {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #71717a;
}

.about__messengers-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.about__messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 210px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  color: #fff;
}

.about__messenger-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.about__messenger-btn--viber {
  background: #7c53c3;
}

.about__messenger-btn--whatsapp {
  background: #27d046;
}

.about__messenger-btn--telegram {
  background: #1e96f3;
}

.about__messenger-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);

  padding: 16px 0; /* ← ВАЖНО */
}

.header .container {
  max-width: 1440px;
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

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

.logo__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1;

  margin-top: 5px;   /* 🔼 вверх / вниз */
  margin-left: -3px;   /* ◀️ вправо / влево */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-left: 0;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 17px; /* было 15 */
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: #f97316; /* оранжевый как кнопка */
}

.header__right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 22px;
}

.header__phones {
  display: flex;
  align-items: center;
}

.header__phones-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__phone {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.header__phone:hover {
  color: #f97316;
}

.header__cta {
  min-height: 56px;
  padding: 0 34px;
  border-radius: 18px;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-menu {
  display: none;
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px 22px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-menu__nav a,
.mobile-menu__phone {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.mobile-menu__phones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.phone-icon {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* =========================================
   HEADER + MOBILE HERO SAFE OVERRIDE
   ВСТАВИТЬ В САМЫЙ КОНЕЦ styles.css
========================================= */

/* ---------- HEADER DESKTOP ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.header .container {
  max-width: 1440px;
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 25px;
  width: auto;
  object-fit: contain;
}

.logo__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.1;
  margin: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-width: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: #f97316;
}

.header__right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 22px;
}

.header__phones {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.header__phones-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__phone {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.header__phone:hover {
  color: #f97316;
}

.header__cta {
  min-height: 56px;
  padding: 0 34px;
  border-radius: 18px;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  margin: 0;
  transform: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  display: none;
  background: rgba(8, 8, 9, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px 24px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.mobile-menu__nav a {
  display: block;
  padding: 18px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s ease;
}

.mobile-menu__nav a:hover {
  color: #f97316;
}

.mobile-menu__phones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.mobile-menu__phone {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.mobile-menu__cta {
  width: 100%;
  max-width: 420px;
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* анимация бургера */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------- TABLET ---------- */
@media (max-width: 991px) {
  .header {
    padding: 9px 0;
  }

  .header__inner {
    grid-template-columns: 120px 1fr 44px;
    gap: 10px;
    min-height: 52px;
  }

  .logo {
    gap: 2px;
    min-width: 0;
  }

  .logo img {
    height: 22px !important;
    width: auto;
  }

  .logo__subtitle {
    font-size: 9px;
    line-height: 1.05;
    margin: 0;
  }

  .nav,
  .header__cta {
    display: none !important;
  }

  .header__right {
    display: contents;
  }

  .header__phones {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .phone-icon {
    width: 18px;
    height: 18px;
  }

  .header__phones-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .header__phone {
    font-size: 12px;
    line-height: 1.02;
    font-weight: 700;
    white-space: nowrap;
  }

  .burger {
    display: flex;
    justify-self: end;
    align-self: center;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    transform: none !important;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding-inline: 16px;
  }

  .header {
    padding: 8px 0;
  }

  .header__inner {
    grid-template-columns: 108px 1fr 40px;
    gap: 8px;
    min-height: 48px;
  }

  .logo img {
    height: 20px !important;
  }

  .logo__subtitle {
    font-size: 8px;
    line-height: 1;
    margin: 0;
  }

  .header__phones {
    gap: 5px;
  }

  .phone-icon {
    width: 16px;
    height: 16px;
  }

  .header__phone {
    font-size: 11px;
    line-height: 1.02;
  }

  .burger {
    width: 40px;
    height: 40px;
    gap: 5px;
    margin-right: 0 !important;
    transform: none !important;
  }

  .burger span {
    width: 22px;
    height: 2.5px;
  }

  .mobile-menu {
    padding: 8px 16px 20px;
  }

  .mobile-menu__nav a {
    font-size: 17px;
    padding: 16px 0;
  }

  .mobile-menu__phone {
    font-size: 16px;
  }

  .callback-widget {
    right: 16px;
    bottom: 178px;
    transform: none;
  }

  .callback-widget__button {
    width: 66px;
    height: 66px;
  }

  .callback-widget__text {
    font-size: 9px;
    line-height: 1.05;
  }

  .chat-widget {
    right: 16px;
    bottom: 98px;
  }

  .chat-widget__circle {
    width: 66px;
    height: 66px;
  }

  .floating-up {
    right: 16px;
    bottom: 16px;
    width: 66px;
    height: 66px;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 390px) {
  .header__inner {
    grid-template-columns: 100px 1fr 38px;
    gap: 6px;
  }

  .logo img {
    height: 18px !important;
  }

  .logo__subtitle {
    font-size: 7px;
  }

  .header__phone {
    font-size: 10px;
  }

  .phone-icon {
    width: 15px;
    height: 15px;
  }

  .hero__text h1 {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 15px;
  }
}

.hero {
  background-image: url('../img/hero-cars.PNG') !important;
  background-position: 26% center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.header__phone-icon {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0;
}

.header__phones img,
.header__right img {
  width: 22px !important;
  height: 22px !important;
}