:root {
  --blue: #1C01A9;
  --blue-secondary: #85B2FC;
  --gray: #2C2D2E;
  --gray-light: rgba(0, 16, 61, 0.06);
  --primary: #005FF9;
  --primary-light: rgb(0 95 249 / 10%);
  --red: #ED0A34;
  --inactive: #EDEFF5;
  --green: #04A8A4;
  --text_not_active: #8E94A7;
}

@font-face {
  font-family: 'PF Din Display Pro Bold';
  src: url('../fonts/PFDinDisplayPro-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html {
  /*
  @media all and (max-width: 1420px) and (min-width: 1280px) {
    zoom: 0.7;

    #calc {
      zoom: 1.4;
    }

	
    .container, .bx-breadcrumb {
      margin-left: auto;
      margin-right: auto;
    }
  }
  */
}



// Zoom
@media all and (min-width: 1280px) and (max-width: 1420px) {
  @iterations: 9;

  .zoom-loop (@i) when (@i > 0) {
    .zoom-@{i}0 {
      zoom:~".@{i} ";
    }

    .zoom-loop(@i - 1);
  }

  .zoom-loop (@iterations);
}

@media all and (min-width: 768px) and (max-width: 1279px) {
  @iterations: 9;

  .zoom-loop (@i) when (@i > 0) {
    .tb-zoom-@{i}0 {
      zoom:~".@{i} ";
    }

    .zoom-loop(@i - 1);
  }

  .zoom-loop (@iterations);
}

@media all and (max-width: 768px) {
  @iterations: 9;

  .zoom-loop (@i) when (@i > 0) {
    .sm-zoom-@{i}0 {
      zoom:~".@{i} ";
    }

    .zoom-loop(@i - 1);
  }

  .zoom-loop (@iterations);
}

html,
body {
  scroll-behavior: smooth;
  cursor: default;
}

body {
  font-size: 15px;
  line-height: 20px;
  color: #0C0C0C;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;

  @media all and (max-width: 1600px) and (min-width: 1280px) {
    font-size: 13px;
    line-height: 20px;
  }

  @media all and (max-width: 960px) {
    font-size: 13px;
    line-height: 20px;
  }
}

.container {
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
  max-width: 1310px;
  margin: auto;
  position: relative;

  @media all and (max-width: 1600px) and (min-width: 1280px) {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  @media all and (max-width: 960px) {
    padding-top: 40px;
    padding-bottom: 40px;
  }


  &.wide {
    max-width: 1340px;
    padding-left: 25px;
    padding-right: 25px;

    @media all and (max-width: 767px) {
      padding-left: 0;
      padding-right: 0;
    }
  }

  @media all and (max-width: 1420px) {
    width: calc(100% - 160px);
    margin: 0 auto;
  }

  @media all and (max-width: 767px) {
    margin: 0 16px;
    width: calc(100% - 32px);
  }
}

.aside_container {
  display: flex;
  justify-content: space-between;

  aside {
    width: 415px;

    @media all and (max-width: 960px) {
      width: 100%;
    }
  }

  article {
    width: calc(100% - 550px);

    &:only-child {
      width: 100%;
    }

    .info_column {
      padding: 20px 40px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      border-bottom: 1px solid #EDEFF5;

      div {
        width: calc(50% - 55px);
      }

      @media all and (max-width: 960px) {
        padding: 0;

        div {
          width: 100%;
        }
      }
    }

    @media all and (max-width: 960px) {
      width: 100%;

      .info_column {
        padding: 25px 0;
      }
    }
  }

  &.about {
    aside {
      width: 305px;

      @media all and (max-width: 1600px) and (min-width: 1280px) {
        width: 265px;
      }
    }

    article {
      width: calc(100% - 335px);

      @media all and (max-width: 1600px) and (min-width: 1280px) {
        width: calc(100% - 295px);
      }
    }

    @media all and (max-width: 1279px) {
      display: block;

      aside,
      article {
        width: 100%;
      }
    }
  }
}

.section_title {
  font-size: 50px;
  line-height: 60px;
  font-weight: 700;
  color: #0C0C0C;
  margin-bottom: 35px;
  position: relative;

  &.no-margin {
    margin-bottom: 0;
  }

  @media all and (max-width: 1600px) and (min-width: 1280px) {
    font-size: 36px;
    line-height: 48px;
  }

  @media all and (max-width: 1279px) {
    font-size: 32px;
    line-height: 44px;
  }

  @media all and (max-width: 960px) {
    font-size: 22px;
    line-height: 33px;
  }

  @media all and (max-width: 767px) {
    margin-bottom: 25px;
  }

  &.wp {
    padding-right: 210px;

    @media all and (max-width: 1279px) {
      padding-right: 0;
    }
  }
}

.section_title_with_em {
  font-size: 26px;
  line-height: 35px;
  color: var(--text_not_active) !important;
  margin-top: 0;
  margin-bottom: 35px;

  @media all and (max-width: 767px) {
    font-size: 19px;
    line-height: 26px;
  }

  em {
    font-size: 50px;
    line-height: 60px;
    font-weight: 700;
    color: #0C0C0C;
    position: relative;
    font-style: normal;

    &.no-margin {
      margin-bottom: 0;
    }

    @media all and (max-width: 1600px) and (min-width: 1280px) {
      font-size: 36px;
      line-height: 48px;
    }

    @media all and (max-width: 1279px) {
      font-size: 32px;
      line-height: 44px;
    }

    @media all and (max-width: 960px) {
      font-size: 22px;
      line-height: 33px;
    }

    @media all and (max-width: 767px) {
      margin-bottom: 25px;
    }

    &.wp {
      padding-right: 210px;

      @media all and (max-width: 1279px) {
        padding-right: 0;
      }
    }
  }
}

.order_title {
  font-size: 36px !important;
  line-height: 0px !important;
  margin-top: 28px !important;
  font-weight: 700;
  color: #0C0C0C;
  position: relative;

  &.no-margin {
    margin-bottom: 0;
  }

  @media all and (max-width: 1600px) and (min-width: 1280px) {
    font-size: 36px !important;
  }

  @media all and (max-width: 1279px) {
    font-size: 32px !important;
  }

  @media all and (max-width: 960px) {
    font-size: 22px !important;
    line-height: 0px !important;
  }

  @media all and (max-width: 767px) {
    font-size: 22px !important;
    line-height: 23px !important;
    margin: 0px !important;
    margin-bottom: 15px !important;
  }

  &.wp {
    padding-right: 210px !important;

    @media all and (max-width: 1279px) {
      padding-right: 0 !important;
    }
  }
}

.order_title_sub {
  font-size: 24px !important;
  line-height: 10px !important;
  font-weight: normal !important;
  margin-bottom: 50px;
  color: #0C0C0C;
  position: relative;

  &.no-margin {
    margin-bottom: 0;
  }

  @media all and (max-width: 1600px) and (min-width: 1280px) {}

  @media all and (max-width: 1279px) {
    font-size: 22px !important;
  }

  @media all and (max-width: 960px) {
    font-size: 20px !important;
    line-height: 10px !important;
    margin-bottom: 90px !important;
  }

  @media all and (max-width: 767px) {
    line-height: 20px !important;
    font-size: 18px !important;
    margin: 0px !important;
    margin-bottom: 30px !important;
  }

  &.wp {
    padding-right: 210px;

    @media all and (max-width: 1279px) {
      padding-right: 0;
    }
  }
}

.car_position_title {
  font-size: 26px;
  line-height: 35px;
  color: var(--text_not_active) !important;
  margin-top: 0;
  margin-bottom: 0;

  @media all and (max-width: 767px) {
    font-size: 19px;
    line-height: 26px;
  }

  em {
    font-size: 50px;
    line-height: 60px;
    font-weight: 700;
    color: #0C0C0C;
    margin-bottom: 35px;
    position: relative;
    font-style: normal;

    &.no-margin {
      margin-bottom: 0;
    }

    @media all and (max-width: 1600px) and (min-width: 1280px) {
      font-size: 36px;
      line-height: 48px;
    }

    @media all and (max-width: 1279px) {
      font-size: 32px;
      line-height: 44px;
    }

    @media all and (max-width: 960px) {
      font-size: 22px;
      line-height: 33px;
    }

    @media all and (max-width: 767px) {
      margin-bottom: 25px;
    }

    &.wp {
      padding-right: 210px;

      @media all and (max-width: 1279px) {
        padding-right: 0;
      }
    }
  }
}

h1, .h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

h2, .h2 {
  font-size: 24px;
  line-height: 28px;
  margin-top: 1.5em;
  margin-bottom: 25px;
  font-weight: 700;

  @media all and (max-width: 1600px) and (min-width: 1280px) {
    font-size: 22px;
    line-height: 26px;
  }

  &.model {
    font-size: 26px;
    line-height: 35px;
    color: var(--text_not_active);
    margin-top: 0;
    margin-bottom: 0;

    @media all and (max-width: 767px) {
      font-size: 19px;
      line-height: 26px;
    }
  }

  &:first-child {
    margin-top: 0;
  }
}

h3, .h3 {
  font-size: 17px;
  line-height: 24px;
  margin-top: 1.5em;
  margin-bottom: 10px;
  font-weight: 700;

  &:first-child {
    margin-top: 0;
  }
}

h4, .h4 {
  font-size: 15px;
  line-height: 20px;
  margin-top: 1.5em;
  margin-bottom: 10px;
  font-weight: 700;

  &:first-child {
    margin-top: 0;
  }
}

.secondary {
  font-size: 13px;
  line-height: 20px;

  &.not_active {
    color: #8E94A7;
  }

  @media all and (max-width: 960px) {
    font-size: 10px;
    line-height: 15px;
  }
}

b,
strong {
  font-weight: 700;
}

p {
  &.primary {
    color: var(--blue);
  }
}

a {
  text-decoration: none;
  color: var(--blue);
}

div {
  box-sizing: border-box;
}

.clear {
  display: block;
  clear: both;
}

@media all and (max-width: 1279px) {
  h2, .h2 {
    font-size: 20px;
    line-height: 24px;
  }
}

@media all and (max-width: 736px) {
  h1, .h1 {
    font-size: 24px;
    line-height: 32px;
  }

  h2, .h2 {
    font-size: 20px;
    line-height: 24px;
  }
}

.i-phone {
  padding-left: 28px;
  background: url("/images/icons/icon-phone-hot.svg") no-repeat 0 2px;
}

.i-phone-secondary {
  padding-left: 28px;
  background: url("/images/icons/icon-phone-secondary.svg") no-repeat 0 2px;
}

.i-address {
  padding-left: 28px;
  background: url("/images/icons/icon-address.svg") no-repeat 0 2px;
}

.i-worktime {
  padding-left: 28px;
  background: url("/images/icons/icon-worktime.svg") no-repeat 0 2px;
}

.i-pdf {
  padding-left: 80px;
  background: url("/images/icons/icon-pdf.svg") no-repeat left center;

  &[data-format] {
    background: url("/images/icons/icon-file.svg") no-repeat left center;
  }

  @media all and (max-width: 1600px) and (min-width: 1280px) {
    padding-left: 56px;
    background-size: 42px;
  }

  @media all and (max-width: 960px) {
    padding-left: 55px;
    background-size: 32px;
    background-position: 0 5px;
  }
}

.success {
  color: var(--green);
}

.danger {
  color: var(--red)
}

@media all and (max-width: 767px) {
  ::-webkit-scrollbar {
    display: none; // Safari and Chrome
  }
}

// Lines

.line_style {
  content: "";
  display: block;
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  //background-image: repeating-linear-gradient(to right, #EDEFF5, #EDEFF5 1px , transparent 1px, transparent);
  //background-size: 50% 50px;
  box-sizing: border-box;
  border-left: 1px solid #EDEFF5;
  border-right: 1px solid #EDEFF5;

  @media all and (max-width: 1279px) {
    display: none;
  }
}

section[data-page] {
  .container {
    &:before {
      .line_style;
    }
  }

  &+#order .container {
    border-left: 1px solid #EDEFF5;
    border-right: 1px solid #EDEFF5;

    @media all and (max-width: 1279px) {
      border: 0;
    }
  }

  &[data-page="leasing_special"] {
    overflow-x: clip;
  }

  &[data-page="programs"] {
    .container {

      &:before {
        .line_style;
      }

      .programs_list {
        position: relative;

        &:before {
          .line_style;
          left: calc(25% + 7px);
          right: calc(25% - 23px);
          top: 40px;
          bottom: -80px;
        }

        &:after {
          .line_style;
          top: 40px;
          bottom: -80px;
          border-right: 0;
          left: calc(50% + 13px);
        }
      }
    }

    &+#order .container {
      &:before {
        .line_style;
        left: calc(25% + 7px);
        right: calc(25% - 23px);
        top: 0px;
        bottom: -80px;
      }

      &:after {
        .line_style;
        top: 0px;
        bottom: -80px;
        border-right: 0;
        left: calc(50% + 13px);
      }

      @media all and (max-width: 1279px) {
        border-right: 0;
        border-left: 0;

        &:before,
        &:after {
          display: none;
        }
      }

    }
  }

  &[data-page="services"] {
    .container {

      &:before {
        .line_style;
      }

      .services_list {
        position: relative;

        &:before {
          .line_style;
          left: 30px;
          right: 0;
          margin: auto;
          width: calc(33.333% + 13px);
          top: 40px;
          bottom: -80px;
        }
      }
    }

    &+#order .container {
      &:before {
        .line_style;
        left: 30px;
        right: 0;
        margin: auto;
        width: calc(33.333% + 13px);
        top: 0px;
        bottom: -80px;
      }

      @media all and (max-width: 1279px) {
        border-right: 0;
        border-left: 0;

        &:before,
        &:after {
          display: none;
        }
      }

    }
  }

  &[data-page="catalog"] {
    .container {

      &:before {
        .line_style;
      }

      .catalog_list {
        position: relative;

        &:before {
          .line_style;
          left: 30px;
          right: 0;
          margin: auto;
          width: calc(33.333% + 12px);
          top: 40px;
          bottom: -200px;
        }
      }
    }

    &+#order .container {
      &:before {
        .line_style;
        left: 30px;
        right: 0;
        margin: auto;
        width: calc(33.333% + 13px);
        top: 0px;
        bottom: -80px;
      }

      @media all and (max-width: 1279px) {
        border-right: 0;
        border-left: 0;

        &:before,
        &:after {
          display: none;
        }
      }

    }
  }

  &[data-page="special"] {
    .container {
      &:before {
        .line_style;
      }

      .special_list {
        position: relative;

        &:after {
          .line_style;
          border-right: 0;
          left: 0;
          right: 0;
          margin: auto;
          top: 0;
          width: 1px;
          bottom: -80px;
        }
      }
    }

    &+#order .container {
      &:after {
        .line_style;
        border-right: 0;
        left: 0;
        right: 0;
        margin: auto;
        top: 0;
        width: 1px;
        bottom: -80px;
      }
    }
  }
}


&[data-page="position"] {
  .container:before {
    border-right: 0 !important;
  }

  .model_container {
    border-right: 1px solid #EDEFF5;

    @media all and (max-width :1279px) {
      border-right: 0;
    }
  }
}

&[data-page="leasing_special"] {
  .container:before {
    border-right: 0 !important;
  }

  .special_item:not(:last-child):before {
    content: "";
    display: block;
    width: 1px;
    height: auto;
    background: #EDEFF5;
    position: absolute;
    top: 30px;
    right: -15px;
    bottom: -150px;
  }
}

&[data-page="news_main"] {

  .news_item:not(:first-child) {
    border-left: 1px solid #fff;

    @media all and (max-width : 767px) {
      border-left: 0;
    }
  }

  .container {
    &:before {
      top: 0 !important;
      width: 391px;
      right: auto;
      bottom: -80px;
    }

    &:after {
      content: "";
      display: block !important;
      position: absolute;
      top: 0;
      left: 755px;
      z-index: -1;
      width: 365px;
      bottom: -80px;
      border-left: 1px solid #EDEFF5;
      border-right: 1px solid #EDEFF5;
    }
  }

  &+#order {
    .container {
      border-right: 0 !important;

      &:before {
        content: "";
        display: block !important;
        position: absolute;
        border-right: 1px solid #EDEFF5;
        top: 0 !important;
        left: 0;
        width: 389px;
        right: auto;
        bottom: -80px;
      }

      &:after {
        content: "";
        display: block !important;
        position: absolute;
        top: 0;
        left: 754px;
        z-index: -1;
        width: 365px;
        bottom: -80px;
        border-left: 1px solid #EDEFF5;
        border-right: 1px solid #EDEFF5;
      }
    }
  }
}

&[data-page="about"] {
  .container {

    &:before {
      .line_style;
    }

    aside {
      position: relative;

      &:before {
        .line_style;
        left: auto;
        right: 0;
        margin: auto;
        width: 1px;
        border-left: 0;
        top: 0px;
        bottom: -80px;
      }
    }
  }

  &+#order .container {
    &:before {
      .line_style;
      left: 0;
      right: auto;
      margin: auto;
      width: 304px;
      top: 0px;
      bottom: -80px;
      border-left: 0;
    }

    @media all and (max-width: 1279px) {
      border-right: 0;
      border-left: 0;

      &:before,
      &:after {
        display: none;
      }
    }

  }
}

&[data-page="aggregation"] {
 
    .container {
      padding-bottom: 0;
    }

    #calc {
      padding-top: 80px;

      @media all and (max-width: 960px) {
        padding-top: 40px;
      }
    }
  
}

#main_slider {
  position: relative;

  &:after {
    content: "";
    display: block;
    height: 1px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
  }

  .container {
    border-left: 1px solid rgba(255, 255, 255, 0.1);

    @media all and (max-width: 1660px) {
      border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    @media all and (max-width: 767px) {
      border-left: 0;
      border-right: 0;
    }

    &:before,
    &:after {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: 286px;
      bottom: 0;
      opacity: 0.1;
      width: 286px;
      border-left: 1px solid #fff;
      border-right: 1px solid #fff;

      @media all and (max-width: 1660px) {
        left: 20%;
        width: 20%;
      }

      @media all and (max-width: 767px) {
        width: 40%;
        left: 0;
        right: 0;
        margin: auto;
      }
    }

    &:after {
      left: 858px;

      @media all and (max-width: 1660px) {
        left: 60%;
      }

      @media all and (max-width: 767px) {
        display: none;
      }
    }
  }

  &+#filter {
    .container {
      border-left: 1px solid #EDEFF5;
      border-right: 1px solid #EDEFF5;

      &:before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        border-left: 1px solid #EDEFF5;
        border-right: 1px solid #EDEFF5;
        width: calc(33.333% + 10px);
        pointer-events: none;
      }
    }

    @media all and (max-width: 1279px) {
      .container {
        border: 0;

        &:before {
          display: none;
        }
      }
    }
  }
}

.container_with_filter_with_margin {
  margin-bottom: 0px !important;
  padding-bottom: 20px !important;
}

[data-custom-scroll] {}

[data-custom-scroll]::-webkit-scrollbar {
  width: 4px;
  height: 16px;
}

[data-custom-scroll]::-webkit-scrollbar-track {
  background: var(--inactive);
}

[data-custom-scroll]::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 0px;
}

.advwrapper {
	position: relative;
	width: fit-content;
}

.advblock {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	overflow: hidden;
	color: rgba(0,0,0,0.65);

	&:hover {
		width: fit-content;
		height: fit-content;
	}

	.adv_content {
		align-items: flex-end;
		line-height: 11px;
		white-space: nowrap;
	}

	.adv_content:last-child {
		padding-bottom: 5px;
	}
}

.adv_button_slider {
	position: absolute;
	right: 0px;
	top: 2px;
	top: 0px;
	z-index: 20;
	font-size: 10px;
	padding: 6px;
	padding-top: 1px;
	padding-bottom: 1px;
	cursor: pointer;
	background: rgba(255,255,255,0.55);
	border-radius: 0px;
	line-height: 15px;
	width: 57px;
	height: 17px;
	display: none;
}


.adv_button_news {
	position: absolute;
	right: 0px;
	top: 0px;
	top: 0px;
	z-index: 20;
	font-size: 10px;
	padding: 5px;
	padding-top: 0px;
	padding-bottom: 0px;
	cursor: pointer;
	background: rgba(255,255,255,1);
	line-height: 14px;
	width: 56px;
	height: 14px;
}

.adv_button_news_article {
	right: 0px !important;
    top: 0px !important;
}

.spacer {
  height: 60px;
  width: 100%;

  @media all and (max-width: 767px) {
    height: 25px;
  }
}

mark {
  background: var(--blue);
  color: #fff;
  padding: 2px 18px;
}