@font-face {
  font-family: 'Toyota Type';
  src: url('/static/fonts/ToyotaType-Semibold.woff2') format('woff2'),
      url('/static/fonts/ToyotaType-Semibold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Toyota Base';
  src: url('/static/fonts/ToyotaType-Regular.woff2') format('woff2'),
      url('/static/fonts/ToyotaType-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Toyota Regular';
  src: url('/static/fonts/ToyotaType-Regular.woff2') format('woff2'),
      url('/static/fonts/ToyotaType-Regular.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Toyota Type';
  src: url('/static/fonts/ToyotaType-Regular.woff2') format('woff2'),
      url('/static/fonts/ToyotaType-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Toyota Type';
  src: url('/static/fonts/ToyotaType-Light.woff2') format('woff2'),
      url('/static/fonts/ToyotaType-Light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Toyota Type Book';
  src: url('/static/fonts/ToyotaType-Book.woff2') format('woff2'),
      url('/static/fonts/ToyotaType-Book.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

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

:root {
  --font-base: 10px;
  --font-base-mob: calc(10 / 480 * 100vw);
}

html {
  font-size: var(--font-base);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: 100%;
  height: 100%;
  font-family: 'Toyota Type', sans-serif;
  font-weight: 400;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #252525;
  font-size: 1.4rem;
}

main {
  flex: 1 0 auto;
}

[bg="dark"] {
  background: #252525;
  color: #fff;
}

[bg="transparent"] {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.4375) 0%,
      rgba(0, 0, 0, 0) 70%);
  color: #fff;
}

[bg="transparent"] .logo {
  filter: invert(1);
}

[bg="light"] svg {
  filter: invert(1);
}

[bg="light"] {
  background-color: #fff;
  color: #000;
}

[bg="gradient_top"]{
  background: #fff;
  position: relative;
}

[bg="gradient_top"]::before {
  content: '';
  display: block;
  width: 100%;
  height: 15rem;
  background: linear-gradient(180deg, #DDDDDD 0%, rgba(245, 245, 245, 0) 55.89%);
  position: absolute;
  opacity: 0.65;
  z-index: 0;
  top: 0;
  left: 0;
}

[color="dark"] {
  color: #000;
}

[color="light"] {
  color: #fff;
}

[color="gray"] {
  color: #666666;
}

.showPopupForm {
  max-width: 36rem;
  justify-content: center;
}

a {
  background-color: transparent;
  text-decoration: none;
  display: inline-block;
  outline: none;
  color: inherit;
}

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

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

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}

button,
select,
input,
textarea {
  outline: none;
}

textarea {
  resize: none;
}

.noscroll {
  overflow: hidden;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  background: none;
  border: none;
  cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

ol,
ul {
  list-style: none;
}

[hidden] {
  display: none;
}

.bg {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.img-container {
  position: relative;
  display: block;
  mix-blend-mode: darken;
}

.img {
  -o-object-fit: cover;
  object-fit: cover;
}

.icon {
  display: inline-flex;
  justify-content: center;
}

hr {
  border: none;
  height: 1px;
  background: #d9d9d9;
  margin: 4rem auto;
}

hr.full-width {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

hr.black {
  background: #000;
  height: 2px;
}

hr.m-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.hidden-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sticky {
  position: sticky;
  top: 3rem;
}

.img-load img[data-src] {
  -webkit-filter: blur(0.2em);
  filter: blur(0.2em);
}

.img-load img {
  -webkit-filter: blur(0em);
  filter: blur(0em);
  transition: -webkit-filter 0.5s;
  transition: filter 0.5s;
  transition: filter 0.5s, -webkit-filter 0.5s;
}

h1,
.title-lg {
  font-size: 6rem;
}

.title-5 {
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
}

h2,
.title-md {
  font-size: 4.4rem;
  font-weight: 400;
}

h3,
.title-sm {
  font-size: 3.2rem;
}

h4,
.title-xs {
  font-size: 2.4rem;
}

h5 {
  font-size: 1.6rem;
}

.title-lg,
.title-md,
.title-sm,
.title-xs {
  font-weight: 500;
}

.text-xl {
  font-size: 2rem;
}

.text-lg {
  font-size: 1.8rem;
}

.text-md {
  font-size: 1.6rem;
}

.text-sm {
  font-size: 1.4rem;
}

.text-xs {
  font-size: 1.2rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

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

.text-line-through {
  text-decoration: line-through;
}

.fw-300 {
  font-weight: 300;
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-550 {
  font-weight: 550;
}

.fw-600 {
  font-weight: 600;
}

.line-h-16 {
  line-height: 1.6;
}


.bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bg-wrapper img, .bg-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 128rem;
  margin: 0 auto;
  padding: 0 4rem;
}

.header {
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  left: 0;
  background: #fff;
  right: 0;
  border-bottom: 1px solid #CFCFCF;
}

.header .logo {
  margin-right: auto;
}

.header .container {
  display: flex;
  align-items: center;
}

.contacts_button {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.header_panel {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.contacts_button.address::before {
  content: url('/static/img/location.svg');
  transform: translateY(0.4rem);

}

.contacts_button.phone::before {
  content: url('/static/img/phone.svg');
  transform: translateY(0.4rem);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.3rem 3.2rem 1.6rem;
  border-radius: 6.5rem;
  border: 1px solid;
  font-weight: 600;
  line-height: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn_black {
  background-color: #252525;
  color: #fff;
  border-color: #252525;
}

.btn_black:hover {
  background-color: #fff;
  color: #252525;
  border-color: #252525;
}

.langs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang_link.active {
  text-decoration: underline;
}

.header .btn {
  margin-left: 8rem;
  margin-right: 3.2rem;
}

.banner {
  background: #f5f5f5;
}

.banner .slider {
  overflow: hidden;
  position: relative;
}

.banner .slider img {
  max-height: 57rem;
}

.banner img, .banner video, .banner picture {
  width: 100%;
  display: block;
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev, .swiper-button-next {
  color: #fff;
  margin: 0;
  padding: 3.3rem 2.4rem;
  background: #FF0022;
  font-weight: 1000;
  font-size: 1.6rem;
  opacity: 1;
  top: 35%;
}

.banner .slider-container .container {
  padding: 1.8rem 12.4rem;
  background: #D40605;
  color: #fff;
}

.banner .slider-container .container .text-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner .slider-container .container .phone {
  position: relative;
}

.banner .slider-container .container .phone::before {
  filter: invert(1);
}

.banner .slider-container .container .date-countdown {
  width: 20rem;
  flex-shrink: 0;
}

.banner .slider-container .container .phone:after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  bottom: -1.8rem;
  left: 0;
}

.countdown {
  font-weight: 600;
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 1.6rem;
}

.section {
  padding: 7rem 0;
}

.section-lg {
  padding: 9rem 0;
}

.card {
  border-radius: 1rem;
  padding: 3.4rem 3rem 3.7rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(37,37, 37, 0.15);
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card img {
  margin: 0 auto 3.7rem;
}

.card .text-group {
  margin: auto auto 3.7rem ;
  text-align: center;
}

.card .btn {
  padding: 1.2rem 2rem 1.6rem;
  margin-top: auto;
}

.grid {
  display: grid;
}

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

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

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

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

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

#main_grid .grid {
  gap: 2rem;
}

.cars {
  background: #f5f5f5;
}

.cars .grid {
  gap: 4.2rem;
}

.section_title {
  font-size: 3.2rem;
  margin-bottom: 4.2rem;
  font-weight: 600;
  line-height: 1;
}

.car_block {
  position: relative;
}

.car_block .btn {
  padding: 1.2rem 1.5rem 1.6rem;
  /* margin-bottom: 1.6rem; */
}

.car_block .btn_group {
  text-align: center;
  margin-top: 1.8rem;
}

.car_block img {
  margin-bottom: 1.7rem;
  margin-top: 3rem;
  height: 10rem;
  object-fit: contain;
}

.car_block .car_name mark {
  background: transparent;
  color: #2C90FF;
  position: absolute;
  left: 0;
  top: 2.2rem;
}

.arrow_link {
  display: flex;
  line-height: 1;
  gap: 1.6rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.arrow_link::after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 1rem;
  background: url('/static/img/chevron_right.svg') no-repeat center center;
  background-size: contain;
  transform: translateY(0.3rem);
}

.car_block .car_price {
  margin-bottom: 0.5rem;
}

.flex-items {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
}

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

.flex-items .item .icon {
  margin-bottom: 3rem;
}

.flex-items .item .text-group {
  margin-top: auto;
}

.flex-items .item .text-group .title-xs {
  margin-bottom: 1rem;
}

.flex-items .item:nth-child(2) {
  margin-left: auto;
  margin-right: auto;
  padding-left: 7.1rem;
  flex: 1;
  padding-right: 7.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.flex-items .item:nth-child(1) {
  margin-right: 7.1rem;
  flex: 1;
}

.flex-items .item:nth-child(3) {
  margin-left: 7.1rem;
  flex: 1;
}

.flex-items .item .text {
  opacity: 0.45;
}

.btn_red {
  background: #FF0022;
  color: #fff;
  border-color: #FF0022;
}

.promo_section .grid {
  gap: 4rem;
}

.promo_block {
  display: flex;
  background: #f5f5f5;
}

.promo_block:nth-child(even) {
  flex-direction: row-reverse;
}

.promo_block img {
  width: 50%;
  flex-shrink: 0;
}

.promo_block .text-group {
  width: 50%;
  padding: 7rem 11rem;
}

.promo_block .btn {
  padding: 2rem 3rem 2.1rem;
  margin-top: 3rem;
}

.promo_block .announce {
  margin-top: 1rem;
}

.text {line-height: 1.4;}

#map_container {
  width: 100%;
  height: 65rem;
}

.map-placemark {
  width: 6.7rem;
  height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.map-placemark img {
  width: 6.7rem;
}

.map-balloon-wrapper {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-balloon {
  position: relative;
  width: 35rem;
  font-family: 'Toyota Type', sans-serif;
  line-height: 1.5;
  color: #252525;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 4.5rem rgba(0, 0, 0, 0.15);
  /* overflow: hidden; */
}

.map-balloon__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 2rem;
  line-height: 1;
  color: #999;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-balloon__close:hover {
  color: #252525;
}

.map-balloon__tail {
  width: 2rem;
  height: 1rem;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #fff;
  filter: drop-shadow(0 0.4rem 0.3rem rgba(0, 0, 0, 0.08));
}

.map-balloon__header {
  padding: 3.3rem 6rem 2.8rem;
  padding-right: 6.3rem;
  background: #F5F5F5;
}

.map-balloon__logo {
  width: 17.8rem;
  flex-shrink: 0;
}

.map-balloon__logo img {
  width: 100%;
  height: auto;
}

.map-balloon__name {
  font-weight: 600;
  line-height: 1.3;
}

.map-balloon__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 3rem 6rem 3.3rem;
  padding-right: 6.3rem;
}

.map-balloon__label {
  margin-bottom: 0.2rem;
}

.map-balloon__value {
  color: #252525;
}

.map-balloon__value a {
  color: #252525;
  text-decoration: none;
}

.map-balloon__value a:hover {
  text-decoration: underline;
}

.footer {
  padding: 4.8rem 0 3rem;
  text-align: center;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.4rem;
  padding-bottom: 3.6rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(37,37, 37, 0.15);
}

.popup {
  padding: 0;
  width: 100%;
  max-width: 80rem;
}

.form_header {
  padding: 4rem;
  text-align: center;
  font-size: 3.6rem;
  background: #f5f5f5;
  font-weight: 600;
}

.popup form {
  padding: 4rem 17.5rem 7rem;
}

.form_row {
  margin-bottom: 3rem;
  position: relative;
}

input {
  border: none;
  border-bottom: 1px solid rgba(0,0, 0, 0.65);
  padding-bottom: 1.7rem;
  width: 100%;
  font-size: 1.6rem;
  line-height: 1;
  font-family: 'Toyota Type', sans-serif;
  font-weight: 600;
  color: #252525;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  padding-left: 3.1rem;
}

.form_row .icon {
  position: absolute;
  left: 0;
  top: 0.3rem;
  display: block;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.checkbox input {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0,0, 0, 0.65);
}

input[type="checkbox"] {
  accent-color: #252525;
}

.banner .swiper-pagination {
  bottom: auto;
  display: none;
}


.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.3;
  width: 100%;
  max-width: 0.8rem;
  height: 0.8rem;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.swiper-pagination-bullet-active {
  max-width: 2.8rem;
  border-radius: 10rem;
  background: #fff;
  opacity: 1;
}

@media screen and (max-width: 768px) {


  html {
    font-size: var(--font-base-mob);
  }

  .container {
    padding: 0 2rem;
    max-width: 100%;
  }

  .header>.container {
    position: relative;
    z-index: 999;
  }

  .mobile_nav .wrapper{
    position: fixed;
    top: 6.45rem;
    left: 0;
    width: 100vw;
    background: #fff;
    z-index: 888;
    padding: 4.3rem 0 6.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out ;
  }

  .swiper-button-next, .swiper-button-prev {
    display: none;
  }

  .mobile_nav .wrapper.active {
    transform: translateY(0);
    opacity: 1;
    max-height: 100vh;
  }

  .mobile_overlay {
    position: fixed;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0,0, 0, 0.45);
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 998;
    pointer-events: none;
  }

  .mobile_overlay.active {
    opacity: 1;
    pointer-events: auto;
  }


  .btn {
    padding: 1rem 2rem;
  }

  .header {
    padding: 1.4rem 0;
    position: fixed;
  }

  .header .btn {
    margin-right: 2.7rem;
    margin-left: auto;
  }

  .header .logo {max-width: 16.6rem;}

  .mobile_nav::before {
    content: '';
    display: block;
    width: 3.5rem;
    height: 1.6rem;
    background: url('/static/img/menu.svg') no-repeat center center;
    background-size: contain;
  }

  .banner {
    padding-top: 6.6rem;
  }

  .banner .slider-container .container {
    padding: 3.4rem 11.2rem 5rem;

  }

  .banner .slider-container .container .text-group {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .banner .slider-container .container .phone::after {
    content: none;
  }

  .banner .slider-container .container .phone {
    padding-bottom: 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  }

  .banner .container {
    padding: 0;
  }

  .banner .swiper-pagination {
    display: block;
    top: 52.3rem;
  }

  .header_panel {
    flex-direction: column;
    margin: 3.6rem 0;
  }

  .mobile_nav .wrapper .btn {
    margin: 0;
  }

  .promo_section {
    padding: 4.1rem 0;
  }

  #main_grid .grid {
    display: flex;
    flex-wrap: wrap;
  }

  #main_grid .grid .card {
    flex: 1;    
    align-items: center;
  }

  .section {
    padding: 5.4rem 0;
  }

  .cars .grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .car_block .car_name mark {
    font-size: 1.2rem;
    top: 4.6rem;
    left: 2.3rem;
  }

  .car_block {
    border: 1px solid rgba(37,37, 37, 0.15);
    border-radius: 1rem;
    padding: 2.4rem 2.3rem;
  }

  .flex-items {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1.6rem;
    margin-top: 0;
    gap: 3rem;
  }

  .flex-items .item {
    flex-direction: row;
    text-align: left;
    gap: 2.4rem;
    align-items: flex-start;
  }

  .flex-items .item:nth-child(2) {
    padding: 0;
    margin: 0;
    border: none;
  }

  .flex-items .item:nth-child(3), .flex-items .item:nth-child(1) {
    margin-left: 0;
    margin-right: 0;
  }

  .title-xs {
    font-size: 2rem;
  }

  .flex-items .item .icon {
    margin: 0;
    min-width: 6.9rem;
    display: revert;
  }

  .section_title {
    font-size: 2.6rem;
    margin-bottom: 2.5rem;
  }

  .promo_block, .promo_block:nth-child(even) {
    flex-direction: column;
  }

  .promo_block .text-group {
    padding: 4rem 3rem 5.4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .promo_block img {
    width: 100%;
  }

  .banner .slider img {
    max-height: 56.5rem;
  }

  #map_container {
    height: 50rem;
  }

  .footer {
    padding: 3.9rem 0 3rem;
  }

  .footer__text {
    font-size: 1.2rem;
  }

  .copyright {
    font-size: 1.2rem;
  }

  .popup {
    max-width: calc(100% - 4rem);
  }

  .form_header {
    font-size: 2.6rem;
  }

  .popup form {
    padding: 3.4rem 5rem 4.8rem;
  }

  input {
    font-size: 1.4rem;
    padding-bottom: 1.3rem;
  }
  
}