*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: #001434;
  color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */

.header {
  background-color: #001434;

  top: 0;
}




.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 16px;
  gap: 18px;
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 80px;
}

.header-info {
  font-size: 18px;
  line-height: 1.4;
  opacity: 0.85;
  text-align: left;
  flex: 1;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mob-hero-phone {
  display:none;
}

.icon-phone {
  width: 25px;
}

.header-phone {
  font-weight: 600;
  font-size: 30px;
  white-space: nowrap;
}

/* NAV */

.nav {
  background: transparent;   /* ВАЖНО: без #001434 */
  position: relative;
  z-index: 2;
}



.nav-inner {
  display: flex;
  padding: 0 16px 0 16px;
  gap: 0;
}

.nav-link {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  margin-right: 5px;
  font-size: 14px;
  font-weight: 500;
  background-color: #b0b4bd; /* серый */
  color: #001434;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.nav-link + .nav-link {
  margin-left: 2px;
}

.nav-link--active,
.nav-link:hover {
  background-color: #3c3f47; /* тёмно-серый */
  color: #f5f5f5;
  border-color: #f8d571; /* жёлтая полоска */
}

/* BURGER */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  background-color: #001434;
  background-image: url("./bg.jpg");
  background-repeat: no-repeat;
  background-position: center -80px;
  background-size: auto;   /* или cover, если так ближе к макету */
  padding-bottom: 30px; /* ← даём воздух между плашкой и синим блоком */
}


.hero-overlay {

}

.hero-inner {
  display: flex;
  align-items: center;
  padding: 45px 16px 80px;
  gap: 40px;
}

.hero-text {
  max-width: 570px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffe295;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-spacer {
  flex: 1;
  min-height: 260px; /* просто даём место под машину на фоне */
}

/* FEATURES */

.features {
  background: linear-gradient(180deg, #001434 0, #021a3a 100%);
  padding: 24px 0 36px;
}

.features-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.feature-item {
  flex: 1 1 calc(25% - 24px);
  max-width: 220px;

}



.feature-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.feature-icon {
  width: 15px;

  flex-shrink: 0;
  margin-top: 2px; /* чуть опускаем корону, чтобы визуально села к заголовку */
}

.feature-icon img {
  height: 10px;
}


.feature-item h3,
.feature-item p {
  margin: 0;
}

.feature-item h3 {
  margin-bottom: 6px;
}



.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: #f8d571;
}

.feature-text {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
  margin-left: 34px; /* 26px иконка + 8px gap */
}


/* PARTNER (белая плашка, не на всю ширину) */

.partner {
  padding: 32px 0 40px;
}

.partner-box {
  position: relative;
  max-width: 620px;        /* ширина блока с плашкой (только под текстом) */
  margin: 48px 0 0px;     /* сверху от преимуществ, снизу от подвала */
  padding-top: 28px;
  padding-bottom: 32px;
  color: #ffffff;
}


.partner-bg-img {
  position: absolute;
  top: 0;
  left: -40px;             /* выглядываем левее контейнера */
  width: calc(100% + 80px);/* +40 слева +40 справа относительно текста */
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.partner-content {
  position: relative;
  z-index: 2;
  max-width: 450px;  /* уже, чем .partner-box → перенос раньше */
  padding: 0;        /* без левого паддинга, чтобы край совпадал с остальным текстом */
}

.partner-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.partner-text {
  font-size: 14px;
  line-height: 1.6;
}

/* CONTACTS (тёмный подвал: два столбца) */

.contacts {
  background-color: #001434;
  padding: 40px 0 30px;
}

.contacts-inner {
  display: flex;
  justify-content: space-between;  /* как в макете: столбцы разъезжаются в стороны */
  align-items: flex-start;
  gap: 80px;                       /* расстояние между левым и правым блоком */
}

.contacts-left {
  flex: 0 1 290px;                 /* левый столбец шире */
  font-size: 12px;
  line-height: 1.6;
}

.contacts-right {
  flex: 0 1 270px;                 /* правый уже, как в макете */
  max-width: 360px;
  font-size: 16px;
  line-height: 1.6;
}

.contacts-text {
  margin-bottom: 24px;
}

.contacts-company p {
  opacity: 0.85;
  margin-bottom: 4px;
}

.contacts-right {
  max-width: 360px;
}

.contacts-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.contacts-icon {
  flex-shrink: 0;
}

.icon-location {
  height: 18px;
}

.icon-mail {
  width: 18px;
}

.icon-phone {
  width: 16px;
}

.contacts-row a:hover {
  text-decoration: underline;
}

.contacts-map {
    margin-top: -150px;
    position: relative;
    z-index: 3;
}

/* MAP (как на макете: белая карточка внизу, фон остаётся тёмным) */

  .mob-hero-subanddescr {
    display:none;
  }

.map-placeholder {
  max-width: 900px;        /* карточка уже контейнера, как в макете */
  width: 100%;
  min-height: 260px;
  margin: 0 auto;          /* центрируем */
  border-radius: 8px;
  background-color: #ffffff;
  color: #001434;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #d0d4dd;
  font-size: 14px;
}
  .mob-hero-timework, .mob-hero-address {
    display: none;
  }
  .mob-contacts-company {
    display: none;
  }

@media (max-width: 1024px) {
  .header-info,
  .header-contacts {
    display: none;
  }
  .header-top {
    padding: 20px;
  }

  .mob-hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .icon-phone {
    width: 24px;
    height: 100%;
    margin-right: 0;
  }
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    background: #001434;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-inner {
    flex-direction: column;
    padding: 0;
  }

  .nav-link {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hero {
    padding-bottom: 0;
    background-position: 55% top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /* 25% вместо 40% — машина поднимается выше */
    max-width: 100%;
  }

  .hero-inner {
    flex-direction: column;
    padding-top: 70px;
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .mob-hero-subanddescr {
    display: flex;
    color: #171616;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    margin: 0 calc(50% - 50vw);     /* отрицательные отступы на ширину вьюпорта */
    padding: 40px 20px;            /* внутренние отступы, чтобы текст не прилипал к краям */
    width: 100vw;                  /* на всякий случай */
    position: relative;
    font-size: 18px;
  }

  .mob-hero-subtitle {
    margin-bottom: 10px;
    max-width: 380px;
  }

    .mob-hero-description {
      max-width: 420px;
    }

  .hero-description, .hero-subtitle {
    display: none;
  }

  .hero-call {
    display: none;
  }

  .hero-spacer {
    display: none;
  }

  .features-inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 50px;
  }

  .feature-item {
    max-width: 100%;
    text-align: center;
  }

  .feature-text {
    margin-left: 0;
  }

  .partner-box {
    margin: 32px 12px 40px;
    padding: 24px 16px;
  }

  .contacts-inner {
    flex-direction: column;
    gap: 32px;
  }

  .contacts-map .map-placeholder {
    height: 240px;
  }

  .contacts-map {
    width: 100%;

  }

  .mob-hero-phone {
    margin-bottom: 30px;
  }
  .mob-hero-address {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mob-hero-timework {
    justify-content: center;
  }
  .mob-hero-timework, .mob-hero-address {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .mob-hero-address {
    margin-bottom: 50px;
  }
  .feature-icon {
    display: none;
  }
  .feature-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 18px;

  }
  .feature-header {
    align-items: center;
    max-width: 200px;
  }
  .feature-title {
    font-size: 18px;
  }

  .feature-text {
    max-width: 350px;
    font-size: 18px;
  }

  .partner-box {
    display: flex;
    background-color: #fff;
    color: #171616;
    flex-direction: column;
    align-items: center;
    margin: 0 calc(50% - 50vw);
    padding: 40px 20px;
    width: 100vw;
    position: relative;
  }
  .partner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
  }
  .partner-title {
    text-align: center;
    max-width: 270px;
  }
  .partner-text {
    font-size: 18px;
    text-align: center;
    line-height: 1.3;
    max-width: 320px;
  }
  .partner-bg-img {
    display: none;
  }
  .contacts-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contacts-company {
    display: none;
  }
  .contacts-text {
    text-align: center;
    font-size: 14px;
    margin-bottom: 0;
    max-width: 330px;
  }
  .contacts-left, .contacts-right {
    flex: 0 1 0;
  }
  .contacts-right {
    max-width: 340px;
  }
  .contacts-map {  margin-top: 0;}
  .inner-partner-box {
    background-color: white;
  }
  .mob-contacts-company {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    max-width: 300px;
    margin-bottom: 50px;
  }
  .mob-contacts-company p {
    text-align: center;
  }
 .mob-contacts-company-name {
   margin-bottom: 20px;
 }
}

@media (max-width: 480px) {

  .mob-hero-timework, .mob-hero-address, .mob-hero-phone {
    display: flex;
  }
  .hero-title {
    font-size: 28px;
  }


}