/* ============================ Общие стили ============================ */
:root {
  --green: #00CABF;
  --grey: #626970;
  --black: #121314;
}

@font-face {
  font-family: 'HAVAL';
  src: url('/assets/fonts/Haval-Light.woff') format('woff');
  font-weight: 200;
}

@font-face {
  font-family: 'HAVAL';
  src: url('/assets/fonts/Haval-Regular.woff') format('woff');
  font-weight: 400;
}

@font-face {
  font-family: 'HAVAL';
  src: url('/assets/fonts/Haval-Medium.woff') format('woff');
  font-weight: 600;
}

body {
  font-family: 'HAVAL', sans-serif;
  font-size: 0.8rem;
  color: var(--black);
  background-color: white;
}

.callback-button--green {
  position: relative;
  padding: 10px 30px;
  width: 350px;
  font-size: 18px;
  color: #FFF;
  background-color: var(--green);
  cursor: pointer;
}

@media (max-width: 968px) {
  .callback-button--green {
    width: 80%;
    font-size: 0.7rem;
    margin-bottom: 15px;
  }
}

.callback-button--green::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 0;
  width: 32px;
  height: 100%;
  background-color: var(--green);
  transform: skew(-35deg);

}

.callback-button--green:hover,
.callback-button--green:hover.callback-button--green::after {
  background-color: var(--black);
}

.callback-button--black {
  position: relative;
  padding: 10px 30px;
  width: 390px;
  font-size: 18px;
  color: #FFF;
  background-color: var(--black);
  cursor: pointer;
}

.callback-button--black::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 0;
  width: 32px;
  height: 100%;
  background-color: var(--black);
  transform: skew(-35deg);

}

.callback-button--black:hover,
.callback-button--black:hover.callback-button--black::after {
  background-color: var(--grey);
}

@media (max-width: 968px) {
  .callback-button--black {
    width: 80%;
    font-size: 0.7rem;
    margin-bottom: 15px;
  }
}

/*=== Header ===*/
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo-block {
  width: 25%;
  height: 65px;
  display: flex;
  align-items: center;
  padding: 20px 30px;
  color: #222;
  text-decoration: none;
}

.header__logo {
  width: 50%;
  margin-right: 30px;
}

.header__logo-text {
  width: 50%;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1rem;
}

.header__logo-text span {
  font-weight: 200;
  font-size: 0.7rem;
}

.header__adress {
  font-weight: 200;
  font-size: 12px;
  line-height: 14px;
  color: var(--grey)
}

@media (max-width: 968px) {
  .header__adress,
  .header__phone,
  .header__callback-button {
    display: none;
  }

  #header__callback-button {
    display: none;
  }
  
  .header__logo-block {
    width: 100%;
  }

  .header__logo-text span {
    font-weight: 200;
    font-size: 0.6rem;
  }
}

.header__phone a {
  color: var(--grey);
  text-decoration: none;
}

.header__callback-button {
  position: relative;
  height: 40px;
  margin-right: 45px;
  padding: 0 15px 0 30px;
  display: flex;
  align-items: center;
  color: white;
  background-color: var(--green);
  cursor: pointer;
  transition: background-color ease;
}

.header__callback-button::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 0;
  z-index: -1;
  width: 50px;
  height: 100%;
  background-color: var(--green);
  transform: skew(-35deg);
  transition: 0s ease all;
}

.header__callback-button img {
  height: 14px;
  margin-right: 7px;
}

.header__callback-button:hover,
.header__callback-button:hover.header__callback-button::after
 {
  background-color: var(--grey);
}

/*=== Header Menu ===*/
.header-menu {
  width: 100%;
  padding: 8px 0;
  background-color: var(--black);
  color: white;
}

.header-menu ul {
  margin: 0;
  display: flex;
  align-items: center;
  column-gap: 50px;
  list-style: none;
  font-size: 12px;
}

.header-menu li a {
  font-size: 0.8rem;
  cursor: pointer;
  color: white;
  text-decoration: none;
}

@media (max-width: 968px) {

  .header-menu ul {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 25px;
    list-style: none;
    font-size: 12px;
  }

  .header-menu li a {
    font-size: 0.5rem;
    cursor: pointer;
    color: white;
    text-decoration: none;
  }
}

.header-menu li a:hover{
  color: var(--green);
}

/*=== Slider ===*/
.slider, .swiper {
  position: relative;
  width: 100%;
  height: calc(100vh - 99px);
}

.slider__item {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.slider-h3 {
  background-image: url("/assets/img/main-banner-h3.jpg");
  background-position: center bottom;
}

.slider-h5 {
  background-image: url("/assets/img/main-banner-h5.jpg");
  background-position: center bottom;
}

.slider-h9 {
  background-image: url("/assets/img/main-banner-h9.jpg");
  background-position: center bottom;
}

.slider-poer {
  background-image: url("/assets/img/main-banner-poer.jpg");
  background-position: center bottom;
}

@media (max-width: 968px) {
  .slider-h3 {
    background-image: url("/assets/img/main-banner-h3-mob.jpg");
    background-position: center bottom;
  }

  .slider-h5 {
    background-image: url("/assets/img/main-banner-h5-mob.jpg");
    background-position: center bottom;
  }
  
  .slider-h9 {
    background-image: url("/assets/img/main-banner-h9-mob.jpg");
    background-position: center bottom;
  }
  
  .slider-poer {
    background-image: url("/assets/img/main-banner-poer-mob.jpg");
    background-position: center bottom;
  }
}

.slider__text-block {
  padding-top: 100px;
  padding-left: 100px;
}

.slider__new {
  position: relative;
  width: 100px;
  padding: 8px 15px;
  color: white;
  background-color: var(--green);
  z-index: 10;
}

.slider__new::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 0;
  z-index: -1;
  width: 50px;
  height: 100%;
  background-color: var(--green);
  transform: skew(-35deg);
}

.slider__name {
  font-weight: 600;
  color: white;
  font-size: 5rem;
  margin: 30px 0 15px 0;
}

.slider__price {
  font-size: 2rem;
  color: var(--green);
  margin-top: 20px;
  margin-bottom: 30px;
}

.slider__profit {
  padding: 0;
  margin-bottom: 60px;
  color: white;
  font-size: 1.5rem;
  list-style: none;
}

.slider__profit i {
  margin-right: 15px;
  color: var(--green);
}

.slider__profit {
  font-weight: 200;
}

.slider__profit span {
  font-weight: 600;
}

.swiper-pagination-bullet {
  width: 50px;
  height: 5px;
  background-color: white;
  border-radius: 0;
}

.swiper-pagination-bullet-active {
  background-color: var(--green);
  opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
  color: white;
  opacity: 0.3;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  color: var(--green);
  opacity: 1;
}

@media (max-width: 968px) {
  .slider__text-block {
    padding-top: 150px;
    padding-left: 30px;
  }

  .slider__new {
    font-size: 0.7rem;
  }

  .slider__name {
    font-weight: 600;
    color: white;
    font-size: 2.3rem;
    margin: 20px 0 0px 0;
  }
  
  .slider__price {
    font-size: 1.5rem;
    color: var(--green);
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .slider__profit {
    padding: 0;
    margin-bottom: 20px;
    color: white;
    font-size: 1rem;
    list-style: none;
  }
  
  .slider__profit i {
    margin-right: 15px;
    color: var(--green);
  }
  
  .slider__profit {
    font-weight: 200;
  }
  
  .slider__profit span {
    font-weight: 600;
  }
  
  .swiper-button-prev, .swiper-button-next {
    display: none;
  }
}

/*=== Timer ===*/
.timer {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  z-index: 100;
}

.timer__header {
  font-weight: 200;
  margin-bottom: 10px;
}

.timer__data {
  display: flex;
  column-gap: 15px;
}

.timer__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer__item__data {
  font-weight: 600;
  font-size: 2rem;
  line-height: 2rem;
}

.timer__item__name {
  font-weight: 200;
  font-size: 0.7rem;
}


@media (max-width: 968px) {
  .timer {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 100;
  }

  .timer__header {
    font-size: 0.7rem;
  }

  .timer__data {
    display: flex;
    column-gap: 10px;
  }

  .timer__item__data {
   font-size: 1.6rem;
  }
}
/*=== Car ===*/
#h5, #poer {
  background-color: #eee;
}

.car {
  padding: 120px 0;
}

.car__header {
  display: flex;
  align-items: baseline;
}

.car__header__new {
  font-weight: 400;
  color: var(--grey);
  font-size: 2rem;
  margin-right: 30px;
  line-height: 2rem;
}

.car__header__name {
  color: var(--green);
  font-weight: 600;
  font-size: 5rem;
  line-height: 2rem;
}

@media (max-width: 968px) {

  .car {
    padding: 60px 0;
  }
  
  .car__header__new {
    font-size: 1rem;
    margin-right: 20px;
    line-height: 2rem;
  }
  
  .car__header__name {
    font-size: 2rem;
    line-height: 2rem;
  }
}

.car__tabs  {
  margin-top: 45px;
  padding-left: 12px;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--black);
}

.car__tab.active {
  background-color: var(--green);
  color: white;
}

.car__tab {
  padding: 7px 30px;
  color: var(--black);
  transform: skewX(-35deg);
  border-right: 1px solid var(--black);
  cursor: pointer;
}

.car__tab__name {
  transform: skewX(35deg);
}

@media (max-width: 968px) {
  .car__tab {
    border-right: none;
    font-size: 0.9rem;
  }

  .char-name, .char-data {
    font-size: 0.7rem;
  }
}

/*=== Colors ===*/
.color-tab-content {
  width: 100%;
  text-align: center;
}

.color-tab-content img {
  width: 100%;
  object-fit: cover;
}

.color-sample {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.color-tab {
  display: flex;
  align-items: center;
  column-gap: 50px;
  margin-bottom: 20px;
}

.color-name {
  text-transform: uppercase;
}

.color-tab:hover {
  cursor: pointer;
}

.color-tab:hover .color-name {
  color: var(--green);
}

.color-tab:hover .color-sample {
  color: var(--green);
}

/*=== Char ===*/
.char-block {
  margin-top: 30px;
}

.char-data {
  font-weight: 600;
  font-size: larger;
}

.photo {
  width: 100%;
  /* aspect-ratio: 16/9; */
  object-fit: cover;
}

.buttons-block {
  margin-top: 30px;
  margin-left: 0px;
}

.buttons-block .callback-button--green {
  margin-right: 60px;
}

/*=== Stock Item ===*/
.stock-item {
  width: 100%;
}

.stock-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.stock-item__name {
  margin: 15px 0 8px 0 ;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--green);
}

.stock-item__price {
  margin: 8px 0;
  font-weight: 200;
  font-size: 1.5rem;
}


.stock-item__chars {
  margin-top: 10px;
  margin-bottom: 30px;
}

.stock-item__divider {
  margin: 0.5rem 0;
}

.stock-item__chars__line {
  display: flex;
  justify-content: space-between;
}

.stock-item__chars__data {
  font-weight: 600;
  max-width: 50%;
  text-align: right;
}

.stock-item__buttons .callback-button--green,
.stock-item__buttons .callback-button--black
 {
  width: 90%;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.detail-button {
  width: 100%;
  color: var(--grey);
  background-color: white;
  border: 1px solid var(--grey);
  text-align: center;
  padding: 8px;
  margin-top: 30px;
  transform: skewX(-35deg);
  cursor: pointer;
}

.detail-button div {
    transform: skewX(35deg);
}

.detail-button:hover {
  background-color: var(--grey);
  color: whitesmoke;
}

/*=== Footer ===*/
.footer {
  background-color: var(--black);
  padding: 30px 0;
  color: white;
}

.footer-logo {
  margin-bottom: 15px;
}

.dealer-detail {
  font-weight: 200;
  font-size: 0.7rem;
  opacity: 0.8;
}

.dealer-name {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.inn {
  font-weight: 200;
  font-size: 0.8;
  margin-bottom: 15px;
}

.politic {
  margin-bottom: 15px;
}

.politic a {
  font-weight: 200;
  opacity: 0.7;
  font-size: 0.6rem;
  margin-bottom: 15px;
  color: white;
  text-decoration: none;
}

.footer-menu {
  display: flex;
  flex-direction: column;
}

.footer-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 2rem;
}

.footer-adress__item {
  display: flex;
  margin-bottom: 15px;
}

.footer-adress__item__icon {
  margin-right: 30px;
  font-size: 1.2rem;
}

.footer-adress__item__text a {
  color: white;
  text-decoration: none;
}

#map {
  cursor: pointer;
  display: block;
  margin-top: 15px;
  padding: 8px 15px;
  color: var(--black);
  background-color: white;
  width: 50%;
  text-align: center;
  transition: all ease;
}

#map:hover {
  cursor: pointer;
  color: white;
  background-color: var(--grey);
}

/*=== Map ===*/
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0px;
  width: 50%;
}

#close-modal {
  position: absolute;
  top: -10px;
  right: -30px;
  font-size: 2rem;
  font-weight: 600;
  color: white;
}