:root {
  --hero-img: url("https://images.unsplash.com/photo-1600353062641-bd08b41d82bc?auto=format&fit=crop&w=1600&q=80");
  --overlay-color: rgba(21, 21, 21, 0.45);
  --accent: #8b1b1b;
  --accent-hover: #992020;
  --nav-link: rgba(255, 255, 255, 0.92);
  --muted-white: rgba(255, 255, 255, 0.95);
  --container-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: Geometria-regular;
  src: url(./fonts/Geometria.woff);
}
@font-face {
  font-family: Geometria-med;
  src: url(./fonts/Geometria-Medium.woff);
}
@font-face {
  font-family: Geometria-bold;
  src: url(./fonts/Geometria-ExtraBold.woff);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Geometria-regular;
  color: var(--muted-white);
  background: #111;
}

/* =======================
   HERO / SWIPER
======================= */
.hero {
  position: relative;
  overflow: hidden;
}

.swiper,
.swiper-wrapper,
.swiper-slide {
  height: 800px;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0.247) 100%
    ),
    var(--overlay-color);
  z-index: 1;
}

/* =======================
   HEADER
======================= */
header.header {
  position: absolute;
  top: 20px;
  left: 40px;
  right: 0;
  z-index: 10;
  display: flex;
  pointer-events: none;
}

header .inner {
  width: var(--container-width);
  max-width: calc(100% - 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.avatar {
  object-fit: cover;
  filter: blur(0.5px);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 15px;
  font-family: Geometria-med;
  opacity: 0.95;
  position: relative;
}
nav a:hover {
  color: #8b1b1b;
}

/* =======================
   HERO CONTENT
======================= */
.hero-content {
  max-width: 1200px;
  margin: 15rem auto 0 auto;
  position: relative;
  z-index: 3;
  font-family: Geometria-regular;
  align-self: flex-start;
}

.eyebrow {
  display: block;
  height: 18px;
}

.title {
  margin: 0;
  line-height: 0.92;
  color: var(--muted-white);
  font-size: clamp(48px, 6.5vw, 80px);
  letter-spacing: -1px;
  max-width: 760px;
}
.title .huge {
  display: block;
  margin-top: 2rem;
  font-size: clamp(64px, 12.5vw, 80px);
  font-family: Geometria-bold;
  line-height: 0.9;
}

.subtitle {
  margin-top: 2rem;
  font-size: 18px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 30px;
  font-weight: 600;
}

.cta-row {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn,
.drivers-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 44px;
  padding: 16px 34px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.12s ease, background 0.12s ease;
  cursor: pointer;
}
.btn:hover,
.drivers-button:hover {
  background: var(--accent-hover);
}

/* Swiper arrows */
.swiper-button-prev,
.swiper-button-next {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  color: #222;
}

/* =======================
   ABOUT (fixed)
======================= */
.about {
  display: flex;
  align-items: stretch;
  background-color: #1b1b1b;
  min-height: 700px; /* вместо фиксированной height */
  height: auto;
}

.about-text {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f4f4f4f4;
}

.about-text-holder {
  width: 80%;
}

.about-text h1 {
  font-size: 52px;
  font-family: Geometria-bold;
  margin-bottom: 3rem;
}
.about-text h1 strong {
  color: #991919;
}

.about-text p {
  font-size: 18px;
  font-family: Geometria-med;
  line-height: 30px;
}

.about-img {
  flex: 1 1 50%;
  background-image: url(./img/about.png);
  background-size: cover;
  background-position: center; /* держим фокус по центру */
  background-repeat: no-repeat;
  min-height: 420px; /* чтобы фон не схлопывался */
}

/* =======================
   DRIVERS
======================= */
.drivers {
  background-color: #991919;
  padding: 5rem 0 3rem 0;
}

.drivers-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.drivers-title {
  font-size: 42px;
  font-family: Geometria-med;
}
.drivers-holder {
  margin-top: 7rem;
  display: flex;
  gap: 40px;
}
.drivers-card {
  flex: 1;
}
.drivers-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.drivers-card h1 {
  margin: 1.5rem 0 1.5rem 0;
  font-size: 26px;
}
.drivers-card p,
.drivers-truck {
  font-family: Geometria-regular;
  font-size: 16px;
  margin-bottom: 2rem;
}
.drivers-truck,
.drivers-card p span {
  font-family: Geometria-med;
}
.drivers-truck span {
  font-family: Geometria-regular;
}
.drivers-card:last-child .drivers-button {
  margin-top: 8rem;
}
.drivers-position {
  font-family: Geometria-med;
  margin-top: 8rem;
}
.drivers-discount {
  font-family: Geometria-regular;
}
.drivers-button {
  background-color: #1b1b1b;
}
.drivers-button:hover {
  background-color: #252525;
}
.drivers-card:first-child .drivers-button {
  margin-top: 5rem;
}

/* =======================
   NEED
======================= */
.need-wrapper {
  display: flex;
}
.need-block {
  flex: 1;
}

.need-block:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1b1b1b1b;
  color: #f3f3f3f3;
}

.need-text ul {
  list-style: none;
}

.need-wrapper .need-block:last-child {
  height: 550px;
  background-image: url(./img/need.webp);
  background-size: cover;
  background-position: center;
}

.need-block-title {
  margin: 0.5rem 0 1rem 0;
  font-size: 36px;
  font-family: Geometria-med;
}
.need-tag {
  color: rgb(183, 183, 183);
  font-size: 14px;
  font-family: Geometria-med;
  text-transform: uppercase;
}
.need-text ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.need-text ul li {
  font-size: 18px;
  font-weight: 500;
}

/* =======================
   CONTACT FORM
======================= */
.contact {
  display: flex;
  justify-content: center;
  padding: 5rem 0;
  background-color: #991919;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #1b1b1b;
  padding: 3rem 4rem;
}
.form-desc {
  text-align: center;
  margin-bottom: 2rem;
}
.form-title {
  font-family: Geometria-med;
  font-size: 36px;
}
.form-subtitle {
  margin-top: 1rem;
  font-family: Geometria-regular;
  font-size: 18px;
}

.form-fields {
  font-size: 14px;
}
.form-fields,
.form-container select {
  font-family: Geometria-regular;
  width: 100%;
  padding: 15px;
  margin-bottom: 1.5rem;
  background: #1b1b1b;
  border: 1px solid #797979f3;
  outline: none;
  color: #f3f3f3f3;
}
.form-container label {
  display: block;
  margin-bottom: 1rem;
}
.form-container select option {
  font-family: Geometria-regular;
  font-size: 14px;
}

.experience-label {
  font-family: Geometria-med;
  font-size: 20px;
}

.experience-radio label {
  display: flex;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.375em;
}

/* скрываем input */
.experience-radio label input {
  position: absolute;
  left: -9999px;
}

/* когда input выбран */
.experience-radio label input:checked + span {
  background-color: #9696961b;
}
.experience-radio label input:checked + span:before {
  box-shadow: inset 0 0 0 0.4375em #818181;
}

/* сам span */
.experience-radio label span {
  display: flex;
  align-items: center;
  padding: 0.375em 0.75em 0.375em 0.375em;
  border-radius: 99em;
  transition: 0.25s ease;
}

/* наведение */
.experience-radio label span:hover {
  background-color: #9696961b;
}

/* кружочек перед текстом */
.experience-radio label span:before {
  display: flex;
  flex-shrink: 0;
  content: "";
  background-color: #9696961b;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin-right: 0.375em;
  transition: 0.25s ease;
  box-shadow: inset 0 0 0 0.125em #818181;
}

.form-button {
  margin: 2rem auto 0 auto;
  display: block;
  background: #991919;
  padding: 16px 34px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.12s ease, background 0.12s ease;
  border: none;
  cursor: pointer;
}
.form-button:hover {
  background: #5c1919;
}

.error {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* =======================
   FOOTER
======================= */
footer {
  display: flex;
  justify-content: center;
  justify-content: space-around;
  padding: 4rem 0;
  background-color: #1b1b1b;
}
.footer-block img {
  display: block;
  margin-bottom: 2rem;
}
.footer-block span,
.footer-block p {
  font-family: Geometria-regular;
  color: #979797;
}
.footer-block h1 {
  font-family: Geometria-bold;
  color: #8b1b1b;
  margin-bottom: 1rem;
}

/* =======================
   MEDIA QUERIES
======================= */
@media (max-width: 1300px) {
  .hero-content {
    margin-left: 2rem;
  }
  .drivers-wrapper {
    margin: 0 2rem;
  }
}

@media (max-width: 980px) {
  /* About -> колонкой и явная высота у изображения */
  .about {
    flex-direction: column;
    min-height: 0;
  }
  .about-text {
    order: 2;
    padding: 4rem 0;
  }
  .about-img {
    order: 1;
    height: 45vh; /* видимая высота на мобилках */
    min-height: 460px;
    background-position: center;
  }

  /* Drivers */
  .drivers {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .drivers-holder {
    display: block;
  }
  .drivers-wrapper {
    margin: 0 auto;
  }
  .drivers-card:first-child {
    margin-bottom: 4rem;
  }
  .drivers-card img {
    width: 80%;
  }
}

@media (max-width: 910px) {
  .need {
    height: 100%;
  }
  .need-wrapper {
    height: 100%;
    flex-direction: column;
  }
  .need-block:last-child {
    order: 1;
    width: 100%;
    height: 450px !important;
    background-position: center;
  }
  .need-block:first-child {
    order: 2;
  }
}

@media (max-width: 720px) {
  nav {
    display: none;
  }
  footer {
    padding: 4rem 2rem;
    gap: 2rem;
  }
}

@media (max-width: 625px) {
  .drivers-wrapper {
    margin: 0 2rem;
  }
}

@media (max-width: 500px) {
  .about-text-holder h1 {
    font-size: 42px;
  }
  .about-text-holder p {
    font-size: 18px;
    text-align: justify;
  }
  .drivers-card img {
    width: 100%;
  }
  .need-text {
    margin: 0 2rem;
  }
  .need-block-title {
    font-size: 28px;
    margin-bottom: 3rem;
  }
  .need-text ul li {
    font-size: 16px;
  }
  .about-img {
    min-height: 360px;
  }
}

@media (max-width: 465px) {
  .form-container {
    padding: 3rem 2rem;
  }
}

@media (max-width: 425px) {
  footer {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
  }
  .footer-title {
    font-size: 26px;
  }
}

@media (max-width: 380px) {
  .drivers-title {
    font-size: 28px;
  }
  .drivers-position {
    margin-top: 4rem;
  }
  .drivers-holder h1 {
    font-size: 20px;
  }
  .drivers-card img {
    height: 140px;
  }
  .about-text-holder p {
    line-height: 24px;
    font-size: 18px;
  }
  .about-img {
    min-height: 260px;
  }
}

@media (max-width: 330px) {
  .about-text {
    padding: 0;
  }
  .about-text-holder {
    margin: 2rem 0;
  }
  .about-text-holder h1 {
    font-size: 36px;
  }
}
