html {
  scroll-behavior: smooth;
}

p {
  margin-block-start: 0;
  margin-block-end: 0;
}

::-webkit-scrollbar {
  width: 0 !important;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 18px;
  font-family: "Jost", sans-serif;
  width: 100%;
  position: relative;
  min-width: 280px;
}

button {
  font-family: "Jost", sans-serif;
}

input {
  border-radius: 0;
}

header {
  width: 100%;
  z-index: 1;
  top: 0;
  left: 0;
  position: fixed;
  display: flex;
  justify-content: center;
  background-color: transparent; /* Начальный фон - прозрачный */
  transition: all 0.3s ease; /* Плавный переход для изменений */
  padding: 20px 0px;
}

.header-scrolled {
  background-color: rgb(5 55 34 / 85%);
  padding: 14px 0px;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
}
/* 
main {
    background: url(../img/bg.png) repeat center / contain;
}
 */
.content {
  width: 94%;
  margin: auto;
  max-width: 1360px;
}

.menu-bg {
  display: flex;
  width: 100%;
  justify-content: center;
  align-content: center;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  color: #ffffff;
}

.menu a {
  display: flex;
  align-items: center;
}

.menu-logo {
  max-width: 160px;
}

.menu-action {
  width: auto;
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu-phone {
  transition: background-color ease 0.3s;
  box-sizing: border-box;
  display: flex;
  width: 220px;
  height: 50px;
  justify-content: center;
  align-items: center;
  background: #dcc183;
  font-family: "Jost", sans-serif;
  color: #333333;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: 0.25s;
  text-decoration: none;
  border: 1px solid #dcc183;
}

.menu-phone:hover {
  background: #333333;
  color: #ffffff;
  border: 1px solid #dcc183;
}

.menu-callback {
  transition: background-color ease 0.3s;
  display: flex;
  width: 220px;
  height: 50px;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  font-family: "Jost", sans-serif;
  color: #333333;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  border: 1px solid #ffffff;
  cursor: pointer;
}

.menu-callback:hover {
  background: #084d31;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #084d31;
  z-index: 5;
  padding: 20px 0px;
  flex-direction: column;
  box-sizing: border-box;
}

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

.mobile-menu-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-menu-action {
  width: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-direction: column;
}
.mobile-menu-content {
  margin: 20px auto;
  width: 96%;
  max-width: 680px;
}
.close-menu {
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
}

.close-menu:before,
.close-menu:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: white;
  top: 9px;
}

.close-menu:before {
  transform: rotate(45deg);
}

.close-menu:after {
  transform: rotate(-45deg);
}

.mobile-nav {
  align-items: flex-end;
  padding: 20px 0;
  gap: 20px;
  width: 100%;
}

.mobile-nav-item {
  margin-bottom: 0px !important;
  color: white;
  text-decoration: none;
  font-size: 22px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.mobile-menu-action > .menu-phone {
  width: 100%;
}

.mobile-menu-action > .menu-callback {
  width: 100%;
}

.navbar {
  align-items: center;
  width: auto;
  display: flex;
  gap: 40px;
}

.nav-item {
  display: inline-block;
  cursor: pointer;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color ease 0.3s;
}

.nav-item:hover {
  background: #333333;
}

.dropdown {
  transition: 0.5s;
  position: relative;
}

.menu-container {
  position: relative;
  display: inline-block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-sub-menu li {
  text-align: right;
  padding: 12px 20px;
}

#mobile-menu-toggle > .nav-item {
  text-align: right;
}

#menu-toggle:checked ~ .sub-menu {
  display: flex;
}
#mobile-menu-toggle:checked ~ .mobile-sub-menu {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.mobile-menu-checkbox {
  display: none;
}

.menu-checkbox {
  display: none;
}

.dropdown:hover > .sub-menu {
  display: flex;
}

.nav-pills {
  margin: 0px;
  padding: 0px;
}

.sub-item {
  transition: background-color ease 0.3s;
  color: #ffffff;
  text-decoration: none !important;
}

.active-sub-item {
  color: #333333 !important;
  background: #ffffff !important;
}

.active-li-sub-item {
  color: #333333 !important;
  background: #ffffff !important;
}

.mobile-sub-menu {
  padding: 0px;
  background-color: #333333;
  gap: 0px;
  display: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  list-style-type: none;
  flex-direction: row;
  width: max-content;
}

.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin: 0;
  padding: 20px 0px 0px 0px;
  list-style-type: none;
  flex-direction: row;
  width: max-content;
}

.sub-menu li {
  color: #ffffff;
  padding: 15px 20px;
  background: #333333;
  cursor: pointer;
  text-decoration: none;
}

.sub-menu li:hover {
  background: #ffffff;
}

.sub-menu li:hover > .sub-item {
  color: #333333;
}

h1 {
  color: #ffffff;
  max-width: 800px;
  font-family: Jost;
  font-size: 70px;
  font-style: normal;
  font-weight: 600;
  line-height: 93.5%; /* 65.45px */
  text-transform: uppercase;
  margin-block-end: 0px;
}

.first-screen {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 1;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.first-screen-content {
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.first-screen-bg {
  background-image: url(../img/home-bg.png);
  background-position: center;
  background-size: cover;
  position: absolute;
  width: CALC(100% + 0px);
  height: 640px;
  top: 0;
  left: 0px;
  object-fit: cover;
}

.all-cars-bg {
  background-image: url(../img/cars-bg.png);
}

.first-screen-home {
  padding-top: 110px;
  display: flex;
  flex-direction: column;
  height: 530px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.first-screen-buttons {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 670px;
}

.first-screen-callback {
  font-family: "Jost", sans-serif;
  display: flex;
  max-width: 325px;
  height: 66px;
  border: 4px solid #ffffff;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  background: #ffffff;
  color: #333333;
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color ease 0.3s;
}

.first-screen-callback:hover {
  border: 4px solid #ffffff;
  background: #084d31;
  color: #ffffff;
}

.first-screen-services {
  font-family: "Jost", sans-serif;
  display: flex;
  max-width: 325px;
  height: 66px;
  border: 4px solid #333333;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  background: #333333;
  color: #ffffff;
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color ease 0.3s;
}

.first-screen-services:hover {
  border: 4px solid #333333;
  background: #ffffff;
  color: #333333;
}

.first-screen-info {
  max-width: 800px;
  color: #ffffff;
  font-family: Jost;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 18px */
  text-transform: uppercase;
}

h2 {
  color: #333333;
  font-family: Jost;
  font-size: 50px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 50px */
  text-transform: uppercase;
  margin-block-start: 60px;
  margin-block-end: 20px;
}

.about-block {
  color: #333333;
  font-family: Jost;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 26px */
  margin-block-start: 0px;
  margin-block-end: 40px;
}

.services-items {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 20px;
  align-self: stretch;
  flex-wrap: wrap;
  margin-block-end: 40px;
}

.services-item {
  transition: ease 0.3s;
  text-decoration: none;
  display: flex;
  max-width: 420px;
  max-height: 618px;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 0 0;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: #333333;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
}

.services-item:hover {
  border: 1px solid #084d31;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(3, 61, 37, 0.33);
  transform: translateY(-20px);
}

.service-img {
  aspect-ratio: 1 / 1;
  width: calc(100% - 2px);
  height: auto;
  max-width: 380px;
  max-height: 380px;
  flex: 1 0 0;
  object-fit: cover;
  border: 1px solid #d9d9d9;
}

.service-img:hover {
}

.service-name {
  align-content: center;
  height: 54px;
  align-self: stretch;
  color: #333333;
  font-family: Jost;
  font-size: 26px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  text-transform: uppercase;
}

.service-info {
  min-height: 64px;
  align-self: stretch;
  color: #333333;
  font-family: Jost;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.service-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-button {
  display: flex;
  height: auto;
  width: 100%;
  min-height: 48px;
  max-height: 62px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  font-family: "Jost";
  text-transform: uppercase;
  border: 1px solid #084d31;
  background: #084d31;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color ease 0.3s;
}

.service-button:hover {
  color: #333333;
  background: #ffffff;
}

.all-items {
  display: flex;
  height: 76px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-top: 4px solid #084d31;
  border-right: 4px solid #084d31;
  border-bottom: 4px solid #084d31;
  border-left: 20px solid #084d31;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  color: #333333;
  font-family: Jost;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 24px */
  text-transform: uppercase;
  margin-block-end: 60px;
  transition: background-color ease 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.all-items:hover {
  color: #ffffff;
  background: #084d31;
}

.form-block {
  display: flex;
  padding: 40px;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  align-self: stretch;
  border-top: 4px solid #084d31;
  border-right: 4px solid #084d31;
  border-bottom: 4px solid #084d31;
  border-left: 20px solid #084d31;
  background: #ffffff url("../img/tires.svg") no-repeat center / contain;
  background-position: right -35% bottom 50%;
  margin-block-end: 60px;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
}


.advantages {
  color: #333333;
  font-family: Jost;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  margin-block-start: 0px;
  margin-block-end: 40px;
}

.advantages-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(23%, 1fr));
}

.advantage-card {
  cursor: pointer;
  display: flex;
  padding: 30px 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 0 0;
  border: 1px solid #d9d9d900;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  transition: ease 0.3s;
  text-decoration: none;
  color: #333333;
}

.advantage-card h4 {
  margin: 0;
  font-size: 26px;
  line-height: 28px;
}

.advantage-card p {
  font-size: 20px;
  line-height: 22px;
}

.advantage-card:hover {
  box-shadow: 0px 0px 20px 0px rgba(3, 61, 37, 0.33);
  background: #084d31;
  border: 1px solid #ffffff;
  color: #ffffff;
  transform: translateY(-20px);
}

.why-us {
  color: #333333;
  font-family: Jost;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  margin-block-start: 0px;
  margin-block-end: 40px;
  cursor: pointer;
}

.why-us-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(23%, 1fr));
}

.why-us-card {
  display: flex;
  padding: 30px 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 0 0;
  border: 1px solid #d9d9d900;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  transition: ease 0.3s;
  text-decoration: none;
  color: #333333;
  fill: #084d31;
}

.why-us-card h4 {
  margin: 0;
  font-size: 26px;
  line-height: 28px;
}

.why-us-card p {
  font-size: 20px;
  line-height: 22px;
}

.why-us-card:hover {
  box-shadow: 0px 0px 20px 0px rgba(3, 61, 37, 0.33);
  background: #084d31;
  border: 1px solid #ffffff;
  color: #ffffff;
  transform: translateY(-20px);
  fill: #ffffff;
}

.form-fields {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 20px;
  align-self: stretch;
  flex-wrap: wrap;
}

.form-field:focus-visible {
  border-radius: 0px;
  border: 1px solid #084d31 !important;
  outline: 0px solid #084d31 !important;
}

.footer-form-field:focus-visible {
  border-radius: 0px;
  border: 1px solid #084d31 !important;
  outline: 0px solid #084d31 !important;
}

.field-container {
  height: 100%;
  width: 100%;
  min-width: 190px;
  height: 52px;
  flex: 1 0 0;
  display: flex;
  position: relative;
}

.form-field {
  border-radius: 0px;
  display: flex;
  width: 100%;
  align-items: center;
  border: 1px solid #3333334d;
  background: #ffffffcf;
  padding: 0 20px;
  color: #333333;
  font-family: Jost;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  transition: background-color ease 0.3s;
}

.form-button {
  display: flex;
  height: 52px;
  font-family: Jost;
  padding: 0 20px;
  min-width: 230px;
  max-width: 620px;
  min-height: 52px;
  max-height: 66px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  border: 1px solid #084d31;
  background: #084d31;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color ease 0.3s;
}

.form-button:hover {
  background: #ffffff;
  color: #333333;
  border: 1px solid #084d31;
}

.form-name {
  color: #333333;
  font-family: Jost;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 125% */
  text-transform: uppercase;
}

.form-info {
  color: #333333;
  font-family: Jost;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 100% */
  margin-block-start: 10px;
  margin-block-end: 0px;
}


.error-tooltip {
  top: 50%;
  transform: translateY(-50%);
  left: calc(100% + 10px); /* 10px отступ от поля */
}

/* Стиль для полей с ошибкой */
input.is-invalid, 
input[aria-invalid="true"] {
  border: 1px solid red !important;
}

/* Стиль для всплывающих подсказок с ошибками */
.error-tooltip {
  display: none;
  position: absolute;
  top: -25px; /* Расположение над полем */
  left: 0px;
  background-color: #ff4444;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 2;
  white-space: nowrap;
  animation: fadeIn 0.25s;
}

/* Показываем подсказку только для полей с ошибками */
input.is-invalid + .error-tooltip,
input[aria-invalid="true"] + .error-tooltip {
  display: block;
}

/* Стиль для всплывающего сообщения об успешной отправке */
.success-tooltip {
  background-color: #4CAF50;
  display: none;
  position: absolute;
  top: -39px; /* Расположение над полем */
  left: 0px;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 2;
  white-space: nowrap;
  animation: fadeIn 0.25s;
}

/* Показываем сообщение об успехе */
.success-tooltip.show {
  display: block;
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cars-items {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 20px;
  align-self: stretch;
  flex-wrap: wrap;
  margin-block-end: 40px;
}

.all-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(23%, 1fr));
}

.all-cars h1 {
  color: #333333;
  font-family: Jost;
  font-size: 50px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  margin-block-start: 60px;
  margin-block-end: 20px;
}


.cars-item {
  display: flex;
  max-width: 420px;
  max-height: 734px;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 0 0;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  transition: ease 0.3s;
  text-decoration: none;
  color: #333333;
}

.cars-item:hover {
  border: 1px solid #084d31;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(3, 61, 37, 0.33);
  transform: translateY(-20px);
}

.cars-img {
  aspect-ratio: 1 / 1;
  width: calc(100% - 2px);
  height: auto;
  max-width: 380px;
  max-height: 380px;
  flex: 1 0 0;
  object-fit: cover;
  border: 1px solid #d9d9d9;
}

.cars-name {
  height: 78px;
  align-content: center;
  align-self: stretch;
  color: #333333;
  font-family: Jost;
  font-size: 26px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  text-transform: uppercase;
}

.cars-info {
  align-self: stretch;
  color: #333333;
  font-family: Jost;
  font-size: 18px;
  line-height: 20px;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.cars-button {
  transition: background-color ease 0.3s;
  font-family: "Jost";
  border: 1px solid #084d31;
  display: flex;
  height: auto;
  width: 100%;
  min-height: 48px;
  max-height: 62px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-transform: uppercase;
  background: #084d31;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

.cars-button:hover {
  color: #333333;
  background: #ffffff;
}

.cars-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  align-self: stretch;
}

.param-item {
  display: flex;
  height: auto;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  align-items: center;
}

.param-value {
  font-weight: 600;
  text-align: right;
}

.param-price {
  font-weight: 700;
  color: #084d31;
}

.faq-grid {
  flex-direction: column;
  display: flex;
  gap: 20px;
  margin-block-end: 60px;
}

.accordion:hover {
  border: 2px solid #084d31;
  box-shadow: 0px 0px 20px 0px rgba(3, 61, 37, 0.33);
}

.accordion {
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  border: 2px solid #ffffff;
  cursor: pointer;
  display: flex;
  min-height: 62px;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  text-align: left;
  width: 100%;
  color: #333333;
  font-family: Jost;
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  transition: background-color ease 0.66s;
}

.active:hover {
  border: 2px solid #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(3, 61, 37, 0.33);
}

.active {
  background: #084d31;
  color: #ffffff;
  border: 2px solid #084d31;
}

.accordion svg {
  width: 22px;
  height: 22px;
  transform: rotate(-45deg);
  flex-shrink: 0;
  stroke: #333333;
  transition: 0.4s;
}

.active svg {
  transform: rotate(0deg);
  stroke: #ffffff;
}

.panel {
  display: none;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  font-size: 20px;
  line-height: 24px;
}

.footer-map {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

.footer-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-width: 670px;
  align-items: flex-start;
  gap: 30px;
  padding: 40px;
  position: relative;
  flex: 0 0 auto;
  background: #074c31 url("../img/tires-w.svg") no-repeat center / contain;
  background-position: right -35% bottom 50%;
  overflow: hidden;
  border-top: 4px solid #ffffff;
  border-right: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  border-left: 20px solid #ffffff;
  border-color: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
}

.footer-block {
  display: flex;
  flex-direction: column;
  min-width: 280px;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  flex: 0 0 auto;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0px;
  position: relative;
}

.footer-form-name {
  color: #ffffff;
  font-family: Jost;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 125% */
  text-transform: uppercase;
  margin-block-end: 0px;
}

.footer-form-info {
  color: #ffffff;
  font-family: Jost;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 100% */
  margin-block-start: 0px;
  margin-block-end: 0px;
}

.footer-form-head {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.footer-form-fields {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 20px;
  align-self: stretch;
  flex-wrap: wrap;
}

.footer-form-field {
  display: flex;
  height: auto;
  width: 100%;
  min-width: 190px;
  max-width: 366.67px;
  min-height: 50px;
  max-height: 64px;
  align-items: center;
  gap: 20px;
  flex: 1 0 0;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  padding: 0 20px;
  color: #333333;
  font-family: Jost;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  transition: background-color ease 0.3s;
}

.footer-form-button {
  display: flex;
  height: 52px;
  font-family: Jost;
  padding: 0 20px;
  min-width: 230px;
  max-width: 620px;
  min-height: 52px;
  max-height: 66px;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  font-size: 20px;
  font-weight: 500;
  color: #333333;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color ease 0.3s;
}

.footer-form-button:hover {
  border: 1px solid #ffffff;
  background: #084d31;
  color: #ffffff;
}

.footer-contact {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-width: 190px;
  max-width: 273.77px;
  height: 66px;
  align-items: center;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  padding: 0 20px;
  color: #333333;
  font-family: Jost;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-decoration: none;
  justify-content: center;
  font-size: 22px;
  transition: background-color ease 0.25s;
}

.footer-contact:hover {
  border: 1px solid #ffffff;
  background: #084d31;
  color: #ffffff;
}

.footer-contacs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  align-items: flex-start;
  align-content: flex-start;
  gap: 20px;
  align-self: stretch;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  height: auto;
  width: 100%;
  min-width: 190px;
  max-width: 273.77px;
  height: 64px;
  align-items: center;
  justify-content: space-between;
}

.footer-social a {
  fill: #ffffff;
  width: 50px;
  height: 100%;
  margin: auto 0;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  fill: #ededed;
}

.law-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  color: #ffffff;
}

.car-listing {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

.car-images {
  flex: 2;
  min-width: 300px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 0px;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  height: min-content;
}

.main-image {
  width: 100%;
  height: 450px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: ease 0.3s;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.main-image a {
  width: 100%;
  height: 100%;
}

.main-image:hover {
  opacity: 0.8;
}

.big-picture-mobile {
  display: none;
}

.big-picture-desktop {
  display: flex;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.thumbnail {
  cursor: pointer;
  overflow: hidden;
  transition: background-color ease 0.3s;
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-details {
  flex: 1;
  min-width: 300px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 0px;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
  height: min-content;
}

.car-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.car-title h1 {
  margin: 0px;
  font-size: 36px;
  font-weight: bold;
  color: #333333;
  line-height: 39px;
  text-transform: upper-case;
}

.car-title h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
}

.country-flag img {
  width: 40px;
}

.car-price {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.learn-more {
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
  font-size: 18px;
  font-family: "Jost", sans-serif;
  height: 60px;
  display: block;
  background-color: #0b4d2c;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0px;
  margin-bottom: 20px;
  transition: background-color ease 0.3s;
  border: 1px solid #0b4d2c;
}

.learn-more:hover {
  background-color: #ffffff;
  color: #333333;
}

.car-specs {
  margin-bottom: 20px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  gap: 20px;
  align-items: center;
}

.single-car-home {
  height: 114px;
  margin-bottom: 40px;
  padding: 0px;
}

.spec-name {
  font-weight: bold;
  color: #333333;
}

.spec-value {
  text-align: right;
  color: #333333;
}

.carcheck-link {
  display: block;
  background-color: #333333;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0px;
  transition: background-color ease 0.3s;
  border: 1px solid #333333;
  text-transform: uppercase;
}

.carcheck-link:hover {
  background-color: #ffffff;
  color: #333333;
}

.modal {
  display: none;
  overflow-x: hidden;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: scroll;
}
.modal-content {
  position: relative;
  max-width: 1024px;
  width: 85vw;
  margin: 0% auto;
  animation-name: animatetop;
  animation-duration: 0.8s;
  min-width: min-content;
  text-align: center;
  border-radius: 15px;
  color: #ffffff;
}

.close {
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  position: absolute;
  top: -70px;
  right: 0px;
}
.close:hover,
.close:focus {
  color: rgb(255, 230, 0);
  text-decoration: none;
  cursor: pointer;
}
.modal_active {
  display: block;
  align-content: center;
}
.overflow_hidden {
  overflow: hidden;
}


@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.modal-info {
  font-size: 20px;
  line-height: 22px;
  color: #333333;
}

.modal-form {
  display: grid;
  grid-template-columns: 40% 60%;
  flex-direction: row;
  padding: 0px;
  background: #ffffff;
  gap: 0px;
  align-items: center;
  border-top: 4px solid #084d31;
  border-right: 4px solid #084d31;
  border-bottom: 4px solid #084d31;
  border-left: 20px solid #084d31;
}

.modal-form-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 40px 0px 40px 40px;
  max-width: 460px;
  gap: 20px;
}

.modal-form-content > .form-fields {
  flex-direction: column;
}

.modal-form-content > .form-block-content {
  gap: 10px;
  display: flex;
  flex-direction: column;
}

.modal-form-content input {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 54px;
  max-height: 54px;
}

.modal-form-content button {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  max-height: 54px;
}

.modal-image {
  display: flex;
  box-sizing: border-box;
  width: fit-content;
  height: 100%;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-footer {
  background: #ffffff;
  border-top: 1px solid #ffffff;
  position: fixed;
  width: 100%;
  bottom: 0px;
  height: min-content;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 30px;
  z-index: 0;
  box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.25);
}

.mobile-links {
  margin-bottom: 5px;
  display: flex;
  min-width: 280px;
  max-width: 660px;
  width: 100%;
  justify-content: space-between;
}

.mobile-links a {
  width: 60px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 10px;
  text-decoration: none;
  color: #fff;
}

.contacts {
  display: grid;
  grid-template-columns: 56% 44%;
  justify-content: space-between;
}

.contacts-content > .footer-form-name {
  color: #333333;
}

.contacts-content > .law-info {
  color: #333333;
  justify-content: unset;
  gap: 40px;
}

.contacts-content > .footer-contacs-grid {
  display: flex;
  flex-direction: column;
}

.contacts-content > .footer-contacs-grid > .footer-social a {
  fill: #084d31;
}

.contacts-content > .footer-contacs-grid > .footer-social a:hover {
  fill: #052b1b;
}

.contacts > .form-block > .form-fields > .form-field {
  max-width: 100%;
}

.contacts > .form-block {
  margin-block-end: 40px;
  background-size: 475%;
  background-position: right 95% bottom 0%;
}

.contacts-item {
  color: #333333;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-decoration: none;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
}

.contacts-content {
  padding-right: 20px;
  gap: 20px;
  display: flex;
  flex-direction: column;
}

/* starting media */

@media screen and (max-width: 1200px) {
  .content {
    width: 96%;
    margin: auto;
    max-width: 1080px;
  }

  .car-title h1 {
    font-size: 34px;
  }

  .menu-phone {
    width: 190px;
    font-size: 18px;
  }

  .menu-logo {
    max-width: 152px;
  }

  .menu-callback {
    width: 190px;
    font-size: 18px;
  }

  .nav-item {
    padding: 5px 5px;
  }

  .service-name {
    font-size: 24px;
  }

  .service-button {
    font-size: 18px;
  }

  .car-title h1 {
    font-size: 32px;
  }

  .modal-form-content {
    max-width: 460px;
  }

  .modal-content {
    max-width: 960px;
  }
  
  .success-tooltip {
    left: 0px;
  }

  .error-tooltip {
    left: 0px;
  }
}

@media screen and (max-width: 1179px) {
  h2 {
    font-size: 46px;
  }

  .all-cars h1 {
    font-size: 46px;
  }
  
  .contacts {
    display: grid;
    grid-template-columns: 44% 56%;
    justify-content: space-between;
  }

  .navbar {
    gap: 24px;
  }

  .nav-item {
    font-size: 16px;
  }

  .menu-logo {
    max-width: 140px;
  }

  .menu-phone {
    width: 176px;
    font-size: 16px;
  }

  .menu-callback {
    width: 176px;
    font-size: 16px;
  }
  .menu-action {
    gap: 16px;
  }
  .modal-content {
    max-width: 900px;
  }

  .modal-form-content {
    max-width: 362px;
    padding: 20px 0px 20px 20px;
  }

  .about-block {
    font-size: 24px;
  }
  .advantages-grid {
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  }
  .why-us-grid {
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  }
  .all-cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(23%, 1fr));
  }

  .cars-name {
    font-size: 20px;
  }

  .param-item {
    font-size: 16px;
    line-height: 20px;
  }

  .main-image {
    height: 400px;
  }

  .form-block {
    background-size: 130%;
    background-position: right 165% bottom 50%;
  }
  .content {
    width: 90%;
    margin: auto;
    max-width: 910px;
  }

  .car-images {
    flex: 1.5;
  }

  .thumbnail {
  }
  .form-name {
    font-size: 28px;
    line-height: 30px;
  }

  .modal-form-content input {
    min-height: 50px;
    max-height: 50px;
  }
  .form-fields {
    gap: 16px;
  }

  .modal-info {
    font-size: 18px;
    line-height: 20px;
  }

  .modal-form-content button {
    min-height: 50px;
    max-height: 50px;
  }
}

@media screen and (max-width: 993px) {
  .mobile-footer {
    display: flex;
  }
  
  .field-btn {
	 flex: auto; 
  }	
  
  .contacts {
    display: flex;
    grid-template-columns: 46% 54%;
    justify-content: unset;
    gap: 40px;
    flex-direction: column;
  }
  .contacts-content {
    padding-right: 0px;
  }

  .contacts-content > .law-info {
    padding-right: 0px;
    gap: 20px;
  }

  .header-scrolled {
    background-color: #084d31;
    padding: 14px 0px;
  }

  .main-image {
    height: 300px;
  }

  .menu-action {
    display: none;
  }

  .navbar {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .car-header {
    gap: 15px;
  }

  .country-flag img {
    width: 32px;
  }

  .thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }

  .car-title h1 {
    font-size: 28px;
    line-height: 30px;
  }

  .form-block {
    padding: 20px;
    background-size: 200%;
    background-position: right 125% bottom 50%;
  }
  .content {
    width: 96%;
    margin: auto;
    max-width: 680px;
  }

  .mobile-menu-content {
    width: 96%;
    margin: 0 auto;
    max-width: 680px;
  }

  .services-item {
    min-width: 184px;
  }

  .cars-item {
    min-width: 184px;
  }

  .service-info {
    min-height: 40px;
  }
  .all-cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  }
  .modal-image {
    display: none;
  }
  .modal-content {
    width: max-content;
  }

  .modal-form-content {
    padding: 30px;
    max-width: 460px;
  }

  .modal-form {
    grid-template-columns: 100%;
  }

  .menu {
    overflow: hidden;
  }
  .first-screen-bg {
    width: CALC(100% + 300px);
    left: -300px;
  }

  .success-tooltip {
    left: 0px;
  }

  .error-tooltip {
    left: 0px;
  }
}

@media screen and (max-width: 768px) {
  .header-scrolled {
    padding: 10px 0;
  }

  .field-container {
	 flex: auto; 
  }	

  .big-picture-desktop {
    display: none;
  }

  .big-picture-mobile {
    display: flex;
  }

  .car-images {
    flex: 0;
    min-width: 200px;
  }

  .car-details {
    flex: 0;
    min-width: 200px;
  }

  .car-listing {
    flex-direction: column-reverse;
  }
  .main-image {
    height: 280px;
  }

  .thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }

  .content {
    width: 90%;
    margin: auto;
    max-width: 680px;
  }

  .mobile-menu-content {
    width: 90%;
    margin: 0 auto;
    max-width: 680px;
  }

  .services-item {
    min-width: 184px;
    padding: 20px;
  }
  .cars-item {
    min-width: 184px;
    padding: 20px;
  }

  .form-block {
    padding: 20px;
    background-size: 320%;
    background-position: right 100% bottom 50%;
  }

  .footer-content {
    background-position: right -35% bottom 0%;
  }

  .footer-form-field {
    max-width: unset;
  }

  @media screen and (max-width: 576px) {
    h1 {
      font-size: 54px;
    }

    .header-scrolled {
      padding: 5px 0;
    }

    .body {
      font-size: 16px;
    }
    .form-block {
      padding: 20px;
      background-size: 520%;
      background-position: right 95% bottom 50%;
    }
    .content {
      width: 90%;
      margin: auto;
      max-width: 516px;
    }

    .mobile-menu-content {
      width: 90%;
      margin: 0 auto;
      max-width: 516px;
    }

    .services-item {
      min-width: 122px;
      padding: 15px;
    }

    .cars-item {
      min-width: 122px;
      padding: 15px;
    }

    .why-us-grid {
      grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .modal-content {
      width: 400px;
    }

    .modal-info {
      font-size: 16px;
      line-height: 18px;
    }
    .modal-form-content {
      padding: 20px;
    }

    .menu-logo {
      max-width: 126px;
    }

    .first-screen-buttons {
      flex-direction: column;
    }

    .first-screen-callback {
      max-width: 100%;
      flex: auto;
      height: 56px;

      font-size: 18px;
    }

    .first-screen-services {
      max-width: 100%;
      flex: auto;
      height: 56px;

      font-size: 18px;
    }
    .contacts > .form-block {
      background-size: 525%;
      background-position: right 90% bottom 50%;
    }
  }

  @media screen and (max-width: 450px) {
    h1 {
      margin-top: 10px;
      font-size: 42px;
    }
    .first-screen-home {
      padding-top: 100px;
      height: 470px;
    }
    .first-screen-info {
      font-size: 16px;
      line-height: 18px;
    }
    .single-car-home {
      padding-top: 93px;
      height: 0px;
    }
    .contacts > .form-block {
      background-size: 670%;
    }
    .content {
      width: 90%;
      margin: auto;
      max-width: 410px;
    }
    .menu-logo {
      max-width: 126px;
    }
    .modal-content {
      width: 320px;
    }
    .car-title h1 {
      font-size: 24px;
      line-height: 26px;
    }

    .footer-content {
      padding: 20px;
      gap: 20px;
      background-size: 150%;
      background-position: right 50% bottom 0%;
    }

    .services-item {
      min-width: 160px;
      padding: 15px;
    }

    .cars-item {
      min-width: 160px;
      padding: 15px;
    }

    .form-block {
      padding: 20px;
      gap: 20px;
      background-position: right 62% bottom 100%;
      background-size: 600%;
    }

    .form-info {
      font-size: 20px;
      line-height: 22px;
    }

    .form-name {
      font-size: 28px;
      line-height: 32px;
    }
    .form-field {
      font-size: 18px;
      line-height: 20px;
    }

    .form-button {
      font-size: 18px;
      line-height: 20px;
    }

    .footer-form-info {
      font-size: 18px;
      line-height: 20px;
    }

    .footer-form-name {
      font-size: 28px;
      line-height: 32px;
    }
    .footer-form-field {
      font-size: 18px;
      line-height: 20px;
    }

    .footer-form-button {
      font-size: 18px;
      line-height: 20px;
    }

    .footer-contact {
      height: 56px;
      font-size: 20px;
    }
    .footer-content {
      width: 100%;
    }
    .law-info {
      flex-direction: column;
    }

    h2 {
      font-size: 32px;
      font-weight: 600;
    }

    .all-cars h1 {
      font-size: 32px;
      font-weight: 600;
    }

    .about-block {
      font-size: 20px;
      line-height: 22px;
    }

    .advantage-card {
      padding: 20px;
    }

    .advantage-card h4 {
      font-size: 22px;
      line-height: 24px;
    }

    .accordion {
      font-size: 20px;
      line-height: 22px;
    }

    .panel {
      font-size: 18px;
      line-height: 20px;
    }

    .why-us-card {
      padding: 20px;
    }

    .why-us-card h4 {
      font-size: 22px;
      line-height: 24px;
    }

    .cars-preview {
    }

    .main-image {
      height: 220px;
    }

    .learn-more {
      font-size: 16px;
      line-height: 18px;
    }
    .carcheck-link {
      font-size: 16px;
      line-height: 18px;
    }

    .footer-social a {
      width: 46px;
    }
  }

  @media screen and (max-width: 350px) {
    .contacts > .form-block {
      background-size: 890%;
      background-position: right 90% bottom 50%;
    }
    .car-header {
      flex-direction: column-reverse;
    }

    .main-image {
      height: 180px;
    }

    .spec-row {
      line-height: 16px;
      font-size: 14px;
      gap: 15px;
      padding: 3px 0;
    }
    .learn-more {
      font-size: 14px;
      line-height: 16px;
    }
    .carcheck-link {
      font-size: 14px;
      line-height: 16px;
    }

    .form-block {
      padding: 15px;
      gap: 15px;
      background-position: right 62% bottom 115%;
      border-top: 3px solid #084d31;
      border-right: 3px solid #084d31;
      border-bottom: 3px solid #084d31;
      border-left: 15px solid #084d31;
    }
    .form-field {
      min-width: 140px;
    }
    .form-button {
      min-width: 140px;
    }
    .footer-content {
      max-width: 260px;
      border-top: 3px solid #ffffff;
      border-right: 3px solid #ffffff;
      border-bottom: 3px solid #ffffff;
      border-left: 15px solid #ffffff;
      padding: 15px;
      gap: 15px;
      background-size: 150%;
      background-position: right 50% bottom 0%;
    }
    .footer-block {
      align-items: center;
    }

    .footer-form-field {
      min-width: 140px;
    }

    .footer-form-button {
      min-width: 140px;
    }
    .footer-contact {
      font-size: 18px;
    }

    .modal-content {
      width: 260px;
    }
    .modal-form-content {
      padding: 16px;
    }
  }
}
