/* * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@font-face {
  font-family: "Roboto Light";
  src: url("../fonts/Roboto-Lightd41d.eot?") format("eot"),
    url("../fonts/Roboto-Light.woff") format("woff"),
    url("../fonts/Roboto-Light.ttf") format("truetype"),
    url("../fonts/Roboto-Light.otf") format("opentype");
}

@font-face {
  font-family: "Roboto Regular";
  src: url("../fonts/Roboto-Regulard41d.eot?") format("eot"),
    url("../fonts/Roboto-Regular.woff") format("woff"),
    url("../fonts/Roboto-Regular.ttf") format("truetype"),
    url("../fonts/Roboto-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Roboto Bold";
  src: url("../fonts/Roboto-Boldd41d.eot?") format("eot"),
    url("../fonts/Roboto-Bold.woff") format("woff"),
    url("../fonts/Roboto-Bold.ttf") format("truetype"),
    url("../fonts/Roboto-Bold.otf") format("opentype");
}

@font-face {
  font-family: "Roboto Medium";
  src: url("../fonts/Roboto-Mediumd41d.eot?") format("eot"),
    url("../fonts/Roboto-Medium.woff") format("woff"),
    url("../fonts/Roboto-Medium.ttf") format("truetype"),
    url("../fonts/Roboto-Medium.otf") format("opentype");
}
*/
a {
  text-decoration: none;
}

/* nav menu style start */
.header {
  position: static;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);

}

nav {
  padding: 0 20px;
  height: 3.5rem;
  background-color: #333;
}

.nav__text,
.nav__burger,
.nav__close {
  color: white;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

.lang {
  display: flex;
  gap: 5px;
}

.nav__text {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-family: "Roboto Bold", "Arial";
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav ul {
  list-style: none;
}

.nav__toggle {
  position: relative;
  width: 40px;
  height: 40px;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0 0 0 60px;
  margin: auto;
  font-size: 24px;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__close {
  opacity: 0;
}
@media screen and (min-width: 1118px) {
  /* Существующий код... */

  /* Добавляем раскрытие по ховеру для десктопа */
  .dropdown__item:hover > .dropdown__menu,
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 40px; /* или нужное значение */
    pointer-events: initial;
    transition: top 0.3s;
    max-height: none; /* чтобы не мешал max-height:0 в базовом стиле */
  }
}

@media screen and (max-width: 1100px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
    z-index: 10000;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }

  .nav__list {
    background-color: #333;
    padding-top: 1rem;
  }
}

.nav__link {

  color: white;
  background-color: #333;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.nav__link a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: white;
    font-family: "Roboto Medium", "Arial";
  font-size: 15px;
}
.home__nav span{
  color: #fff;
}

.nav__list {
  padding: 0;
  font-size: 15px;
}

.nav__link:hover {
  background-color: #a90910;
}

.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.dropdown__link,
.dropdown__sublink {
  font-family: "Roboto Medium", "Arial";
  font-size: 15px;
  padding: 12px 12px 12px 50px;
  color: white;
  background-color: #3d3d3d;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: background-color 0.3s;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  background-color: #a90910;
}

.dropdown__menu {
  z-index: 100;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* Раскрываем меню при добавлении класса open */
.dropdown__item.open > .dropdown__menu,
.dropdown__subitem.open > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height 0.4s ease-in;
}

/* Поворачиваем стрелку при открытом меню */

.open .dropdown__arrow {
  transform: rotate(180deg);
}

@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

@media screen and (min-width: 1118px) {
  .nav {
    height: 40px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    height: 100%;
    display: flex;
    padding: 0;
    margin: 0;
  }

  .nav__list>li {
    margin-right: 10px;
  }

  .nav__list>li:first-child {
    margin-right: 5px;
  }

  .nav__list>li:last-child {
    margin-right: 0;
  }

  .nav__link {
    height: 100%;
    padding: 10px;
    justify-content: initial;
    column-gap: 0.25rem;
  }

  .home__nav {
    background-color: #a90910;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 1rem;
  }
  
  .home__nav span {
    color: white;
    display: none;
  }

  .home__nav i {
    font-size: 1.2rem;
  }

  .dropdown__item {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
  max-height: initial;
  overflow: initial;
  position: absolute;
  left: 0;
  top: 6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, top 0.3s;
}

.dropdown__link,
.dropdown__sublink {
  padding: 5px 30px 5px 10px;
}

.dropdown__subitem .dropdown__link {
  padding-inline: 0;
}

/* Меню показывается при наличии класса open */
.dropdown__item.open > .dropdown__menu {
  opacity: 1;
  top: 40px;
  pointer-events: initial;
  transition: top 0.3s;
}

.dropdown__subitem.open > .dropdown__submenu {
  opacity: 1;
  top: 0;
  pointer-events: initial;
  transition: top 0.3s;
}

}

/* nav menu style start */

/* header top menu style start */

.header-top {
  background-color: #a90910;
  padding: 20px 20px;
}

.header-top-wrapper {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.header-logo {
  width: 30%;
  
}

.header-logo span {
  font-size: 21px;
  color: #fff;
  font-family: "Roboto Bold", "Arial";
  text-transform: uppercase;


}

.header-work-time {
  text-align: center;
  width: 40%;
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: "Roboto Light", "Arial";
  font-size: 18px;
  font-weight: 800;
}

.all-days span,
i {
  color: #fff;
  font-family: "Roboto Light", "Arial";
  font-size: 18px;
  font-weight: 800;
}

.weekends span {
  color: #fff;
  font-family: "Roboto Light", "Arial";
  font-size: 18px;
  font-weight: 800;
}

.header-phones {
  width: 30%;
  color: #fff;
  font-family: "Roboto Light", "Arial";
  font-size: 18px;
  font-weight: 800;
  padding-left: 80px;
}

.header-phones span {
  color: #fff;
  font-family: "Roboto Light", "Arial";
  font-size: 18px;
  font-weight: 800;
}

.header-logo a {
  display: flex;
  gap: 5px;
  color: white;
  align-items: center;
  justify-content: center;
}


.header-bottom {
  padding: 1px 60px;
  background-color: #fff;
}

.header-bottom-wrapper {
  display: flex;
  margin: 0;
  padding: 10px 0;
  justify-content: space-between;
  align-items: center;
}

.header-logo2 {
  width: 30%;
}

.header-bottom-location {
  width: 40%;
}

.header-bottom-mail {
  width: 30%;
}

.header-bottom-location,
.header-bottom-mail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.header-bottom-location i,
.header-bottom-mail i {
  color: #a90910;
  font-size: 19px;
}

.header-bottom-location span,
.header-bottom-mail span {
  font-family: "Roboto Medium", "Arial";
  font-size: 16px;
}


@media screen and (max-width: 756px) {
  .header-top-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-top {
    padding: 10px;
  }

  .header-logo a {
    display: block;
    text-align: center; /* Добавь это */
  }

  .header-logo span {
    display: none;
  }

  .header-logo {
    order: 2;
    width: 100%;
    align-self: center;
  }

  .header-logo span {
    font-size: 18px;
  }

  .header-work-time {
    order: 0;
    width: 100%;
    gap: 30px;
    font-size: 15px;
    text-align: center;
  }

  .header-phones {
    order: 1;
    width: 100%;
    padding-left: 0;
    font-size: 17px;
    text-align: center;
  }

  .header-bottom-wrapper {
    display: block;
  }

  .header-bottom-location {
    width: 100%;
  }

  .header-bottom-mail {
    width: 100%;
  }

  .header-bottom {
    padding: 0;
  }

  .header-bottom-location,
  .header-bottom-mail {
    justify-content: left;

  }

  .header-bottom-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    /* расстояние между элементами */
    text-align: left;
  }

  .header-logo2 {
    align-self: center;
  }

  .header-bottom-location,
  .header-bottom-mail {
    padding-left: 5px;
    align-self: flex-start;
  }
  .payment_section{
    display: block;
  }
}
.payment {
  background-color: #ebebeb;
}

.payment_section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding-top: 20px;
}

.payment_section > div {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.payment_section img {
  max-width: 100%;
  height: auto;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .payment_section {
    /* flex: 0 1 calc(33.33% - 20px); */
    padding: 20px;
  }
}


.car_table_scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* для плавной прокрутки на iOS */
  scrollbar-width: none; /* Firefox */
}

.car_table_scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.car_table_scroll table {
  width: max-content; /* чтобы таблица не сжималась */
  min-width: 600px;    /* или больше, по нужде */
}

