$cubic: cubic-bezier(.42,0,.42,1);

@import 'mixins';
@import 'colors';
@import 'media-break-points';
@import '../../vendor/assets/sass/global/dropzone';

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: auto;
  min-height: 100%;
  min-width: 320px;
  width: 100%;
}

body.popup-shown .page {
  @include screen-up(m) {
    overflow: hidden;
  }
  @include screen-down(s) {
    display: none;
  }
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

section.page {
  flex: auto;
  overflow: hidden;
}

main,
section.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: auto;
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 970px;

  @include screen-down(m) {
    width: 720px;
  }

  @include screen-down(s) {
    width: 450px;
  }

  @include screen-down(xs) {
    width: 100%;
    padding: 0 15px;
  }
}

.d-flex { display: flex; }
.f-column { flex-direction: column; }
.f-column-rev { flex-direction: column-reverse; }
.f-row { flex-direction: row; }
.f-row-rev { flex-direction: row-reverse; }
.f-wrap { flex-wrap: wrap; }
.f-nowrap { flex-wrap: nowrap; }

.align-items {
  &-start { align-items: flex-start; }
  &-center { align-items: center; }
  &-end { align-items: flex-end; }
  &-stretch { align-items: stretch; }
}

.justify-content {
  &-start { justify-content: flex-start; }
  &-center { justify-content: center; }
  &-end { justify-content: flex-end; }
  &-between { justify-content: space-between; }
  &-around { justify-content: space-around; }
}

.w-full {
  width: 100%;
}

.w-half {
  width: 50%;
}

@each $color, $hex in $colors {
  .bg-#{$color} {
    background-color: $hex;
  }
  .txt-#{$color} {
    color: $hex;
  }
}

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

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

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

.txt-bold {
  font-weight: 700;
}

.row {
  display: flex;
  align-items: center;
}

.hide {
  display: none;
}

.transition {
  appearance: none;
  transition: all .2s;
}

li,
ul {
  list-style: none;
}

.clearfix:after {
  content: "";
  clear: right;
  display: table;
}

button {
  outline: 0;
  border: 0;

  svg {
    fill: #fff;
  }
}

form {
  position: relative;
}

::placeholder {
  color: $placeholder;
}

input, select, textarea {
  border: 1px solid #ECECEC;
  border-radius: 4px;
  font-size: 0.875em;
  font-weight: 500;
  outline: none;

  &[readonly] {
    background: none;
    border-color: lighten(#C0C0C0, 15%);
    cursor: default;
  }

  &.ok { border-color: #878788; }
  &.error { border-color: $red; }
}

input, select {
  padding: 0 30px;
  height: 62px;
  &.tires {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
  }
}

select {
  position: relative;
  &:after {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46.02 27.91'%3E%3Ctitle%3E1%3C/title%3E%3Cg id='Layer_2' data-name='Layer 2'%3E%3Cg id='Capa_1' data-name='Capa 1'%3E%3Cpath d='M0,5.7A5.7,5.7,0,0,1,9.63,1.57L23.05,14.33,36.38,1.58a5.7,5.7,0,0,1,7.88,8.24L27,26.33a5.72,5.72,0,0,1-7.88,0L1.77,9.84A5.74,5.74,0,0,1,0,5.7Z' style='fill:%23232323'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 10px;
    height: 8px;
  }
}

textarea {
  width: 100%;
  padding: 0 30px;
  height: 62px;
}

.blocker {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background-color: rgba(#fff, .7);
}

.custom-checkbox {
  @include custom('checkbox', $black);
  .checkmark {
    width: 24px;
    height: 24px;
    background: $white;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    &.ok {
      border: 1px solid #878788;
    }
    &:after {
      left: 8.454545px;
      top: 2px;
    }
  }
  .text {
    flex-shrink: 1;
    max-width: 100%;
    font-weight: 500;
    display: block;
    a {
      position: relative;
      z-index: 5;
    }
  }
  &.checkbox-nitrogen {
    width: 260px;
    margin-bottom: 0;
  }
  .info {
    position: relative;
    .icon-info {
      width: 24px;
      height: 24px;
      background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z' fill='%232F9BFF'/%3E%3C/svg%3E%0A");
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      margin-left: 12px;
    }
    .text-info {
      display: none;
      width: 222px;
      height: 72px;
      background: $white;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
      border-radius: 4px;
      font-size: 0.875em;
      padding: 10px;
      position: absolute;
      right: 40px;
      top: -10px;
      z-index: 10;
      transition: all .3s;
      span {
        font-weight: 500;
      }
      &:before {
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 8.5px 0 8.5px 8px;
        right: -8px;
        border-color: transparent transparent transparent $white;
        top: 13px;
        position: absolute;
      }
    }
  }
}
.custom-radio {
  @include custom('radio');
}

.form-block {
  width: 393px;
  height: auto;
  background: $white;
  box-shadow: 0 4px 54px rgba(0, 0, 0, 0.11);
  border-radius: 8px;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  .form-header {
    margin-bottom: 23px;
    .title-form {
      font-size: 1.125em;
      margin-bottom: 19px;
    }
    .form-subtitle {
      font-size: 0.875em;
      font-weight: 600;
      line-height: 1.21;
    }
  }
  form {
    .service {
      width: 0;
      height: 0;
      position: absolute;
      left: 0;
      opacity: 0;
    }
    .inputs {
      margin-bottom: 8px;
      .field {
        margin-bottom: 10px;
        input {
          width: 100%;
        }
      }
    }
    .bottom {
      .custom-checkbox {
        .checkmark {
          margin-right: 10px;
        }
        .text {
          font-size: 0.875em;
          font-weight: 500;
        }
      }
      .btn {
        max-width: 293px;
        width: 100%;
        margin: 26px auto 0;
      }
    }
  }
  &.error-date-time {
    height: auto;
    .text-error {
      font-size: 1.25em;
    }
  }
  @include screen-down(m) {
    width: 345px;
  }
  @include screen-down(s) {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 48px;
    padding-left: 11px;
    padding-right: 11px;
    z-index: 1;
    .form-header {
      align-items: center;

      .title-form {
        max-width: 345px;
        font-size: 1.125em;
      }
      .field-date-time {
        width: 100%;
        clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
      }
    }
    form {
      padding-left: 7px;
      padding-right: 7px;
      .bottom {
        .btn {
          margin: 18px auto 0;
        }
      }
    }
  }
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
}
input[data-autocompleted] {
  background-color: transparent !important;
}

.first-screen .b24-form {
  width: 393px;
  height: auto;
  background: $white;
  box-shadow: 0 4px 54px rgba(0, 0, 0, 0.11);
  border-radius: 8px;
  font-family: montserrat, sans-serif!important;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;

  .b24-form-wrapper.b24-form-border-bottom {
    border-bottom: 0!important;
  }

  .b24-form-padding-side {
    padding: 0;
  }

  .b24-form-field {
    &.b24-form-control-alert {
      margin-bottom: 15px!important;

      input {
        border: 1px solid $red;
      }
    }

    &.b24-form-field-bool {
      .b24-form-control-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
      }

      input {
        width: 18px!important;
        height: 18px!important;
        background: $white;
        border: 1px solid #ECECEC;
        border-radius: 4px;
        display: flex;
        flex-shrink: 0;
        margin-right: 10px;
      }

      .b24-form-control-desc {
        font-size: 0.875em;
        font-weight: 500;
      }
    }
  }

  .b24-form-control-container {
    margin-bottom: 0;

    &:after {
      right: 20px!important;
      top: 46%!important;
    }
  }

  .b24-form-icon-remove {
    display: none!important;
  }

  .b24-form-header {
    border-bottom: 0;
    margin-bottom: 23px;

    .b24-form-header-title {
      color: #333;
      font-size: 1.125em;
      font-weight: 700;
      font-family: montserrat, sans-serif;
      line-height: 1.2;
      margin-bottom: 19px;
      text-align: center;
      padding: 0;
    }

    .form-subtitle {
      font-size: 0.875em;
      font-weight: 600;
      line-height: 1.21;
    }
  }

  form {
    input,
    select {
      background-color: $white !important;
      border: 1px solid #ECECEC !important;
      border-radius: 4px !important;
      font-size: 0.875em !important;
      font-weight: 500 !important;
      padding: 0 30px !important;
      width: 100% !important;
      height: 62px !important;
      outline: none !important;
    }
  }

  *, *::after, *::before {
    appearance: auto;
  }

  .b24-form-control {
    &:focus+.b24-form-control-label {
      font-size: 16px !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
    }

    &.b24-form-control-not-empty+.b24-form-control-label {
      display: none;
    }
  }

  .b24-form-control-label {
    font-size: 16px;
    font-family: montserrat, sans-serif;
    color: $placeholder;
    padding: 0 30px !important;
    opacity: 1;
  }

  .b24-form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    margin: 0;
    padding: 0 15px;
    cursor: pointer;
    font-size: 0.875em;
    font-weight: 700;
    text-transform: uppercase;
    transition: all .2s;
    height: 62px;
    background: linear-gradient(180deg, #FF6464 0%, #FF1F1F 100%), #FF1F1F;
    box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: $white;

    &:hover {box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.7);}
  }

  @include screen-down(s) {
    max-width: 400px;
    width: 100%;
  }
}

.form-services-cost.disku_remonts {
  width: 475px;
  background: $white;
  box-shadow: 0 4px 54px rgba(0, 0, 0, 0.11);
  border-radius: 8px;
  padding: 30px 30px 40px;
  form {
    #tabs {
      .row-car-type {
        height: 42px;
        position: relative;
      }
      .label-tab {
        font-size: 0.875em;
        font-weight: 500;
      }
      .tab-car-type {
        position: relative;
        height: 149px;
        border-bottom: 1px dashed #9D9D9D;
        margin-bottom: 20px;
        .car-type {
          position: absolute;
          top: 0;
          right: 0;
          width: 202px;
          background-color: $white;
          font-size: 0.875em;
          font-weight: 500;
          outline: none;
          overflow: hidden;
          z-index: 11;
          .choose-car-type {
            border: 1px solid #ECECEC;
            border-radius: 4px;
            background-color: $white;
            height: 42px;
            transition: all .2s;
            &.active {
              padding-top: 42px;
              padding-bottom: 5px;
              height: auto;
              transition: all .2s;
              a.active {
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(19.023 16.003) rotate(-180)'/%3E%3C/svg%3E");
              }
            }
            a {
              width: 200px;
              font-weight: 500;
              padding: 7px 16px;
              background-repeat: no-repeat;
              background-size: 14px 7px;
              background-position: 93% center;

              span {
                white-space: nowrap;
                overflow: hidden;
              }
              &.active {
                position: absolute;
                top: 1px;
                left: 1px;
                height: 40px;
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(-4.999 -8.999)'/%3E%3C/svg%3E");
                padding: 7px 33px 7px 16px;
              }
            }
          }
        }
      }
      .tab-tires-type {
        width: 202px;
        height: 67px;
        position: absolute;
        left: 0;
        top: 63px;
      }
      .tab-radius-type {
        width: 202px;
        height: 67px;
        position: absolute;
        right: 0;
        top: 63px;
      }
      .tab-items {
        .tabs-wrap {
          .title-select {
            margin-bottom: 105px;
            padding: 0 9px;
          }
          .tires-type, .radius-type {
            position: absolute;
            top: 24px;
            left: 0;
            width: 202px;
            background-color: $white;
            font-size: 0.875em;
            font-weight: 500;
            outline: none;
            overflow: hidden;
            z-index: 10;
          }
          .choose-tires-type, .choose-radius-type {
            border: 1px solid #ECECEC;
            border-radius: 4px;
            background-color: $white;
            height: 42px;
            transition: all .2s;
            &.active {
              padding-top: 42px;
              padding-bottom: 5px;
              height: auto;
              transition: all .2s;
              a.active {
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(19.023 16.003) rotate(-180)'/%3E%3C/svg%3E");
              }
            }
            a {
              width: 200px;
              font-weight: 500;
              padding: 7px 16px;
              background-repeat: no-repeat;
              background-size: 14px 7px;
              background-position: 93% center;
              span {
                white-space: nowrap;
                overflow: hidden;
              }
              &.active {
                position: absolute;
                top: 1px;
                left: 1px;
                height: 40px;
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(-4.999 -8.999)'/%3E%3C/svg%3E");
                padding: 7px 33px 7px 16px;
              }
            }
          }
        }
      }
      .tab-tires-type {
        width: 202px;
        position: absolute;
        left: 0;
        bottom: 0;
      }
      .item {
        margin-bottom: 19px;
        .row-item {
          height: 17px;
          margin-bottom: 12px;
          position: relative;
          &:before {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            border-bottom: 1px dashed #9D9D9D;
            position: absolute;
            left: 0;
            bottom: 3px;
            z-index: 1;
          }
          .text {
            display: flex;
            flex-shrink: 0;
            font-size: 0.875em;
            font-weight: 500;
            background-color: $white;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
          }
          .price {
            font-size: 0.875em;
            background-color: $white;
            position: absolute;
            top: 0;
            right: 0;
            z-index: 2;
          }
          &.take-off {
            margin-bottom: 16px;
          }
        }
        .title-necessary {
          font-size: 0.875em;
          margin-top: 8px;
          margin-bottom: 14px;
        }
        .all-cost {
          font-size: 0.875em;
          height: 44px;
          background-image: url("/img/bg-field-all-cost.png");
          background-repeat: no-repeat;
          background-position: center;
          background-size: cover;
          padding: 0 30px;
          svg {
            flex-shrink: 0;
            margin-right: 10px;
          }
        }
      }
    }
    .text-reserve {
      font-size: 1.125em;
      line-height: 1.25;
      margin-bottom: 21px;
    }
    .scroll {
      width: 226px;
      margin: auto;
    }
  }
  @include screen-down(s) {
    width: 100%;
    height: auto;
    padding: 30px 20px;
    form {
      #tabs {
        .label-tab {
          width: 100%;
        }
        .row-car-type {
          height: 67px;
          flex-direction: column;
        }
        .tab-car-type {
          height: 257px;
          margin-bottom: 16px;
          .car-type {
            width: 100%;
            top: 29px;
            .choose-car-type {
              a {
                width: 99%;
              }
            }
          }
        }
        .tab-tires-type {
          width: 100%;
          top: 88px;
          bottom: auto;
        }
        .tab-radius-type {
          width: 100%;
          top: 170px;
        }
        .tab-items {
          .tabs-wrap {
            .radius-type, .tires-type {
              width: 100%;
            }
            .radius-type {
              z-index: 9;
            }
            .choose-tires-type, .choose-radius-type {
              a {
                width: 99%;
              }
            }
          }
        }
        .item {
          .row-item {
            align-items: flex-end;
          }
          .all-cost {
            background-image: none;
            background: #53B43B;
            box-shadow: -10px 4px 34px rgba(0, 0, 0, 0.17);
            font-size: 0.75em;
            padding: 0 14px;
            clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
            text-align: center;
          }
        }
      }
      .text-reserve {
        font-size: 1em;
        margin-bottom: 22px;
      }
    }
  }
  @include screen-down(xs) {
    form #tabs .item .row-item {
      &.sandblasting-painting.lv {
        height: 38px;
        .text {
          width: 150px;
        }
        .price {
          top: auto;
          bottom: 0;
        }
      }
      &.sandblasting-painting.ru, &.sandblasting.lv {
        height: 38px;
        .text {
          width: 115px;
        }
        .price {
          top: auto;
          bottom: 0;
        }
      }
      .all-cost {
        padding: 0 30px;
      }
    }
  }
}

.messenger-block {
  background: $white;
  box-shadow: 0 4px 54px rgba(0, 0, 0, 0.11);
  border-radius: 16px;
  padding: 40px 50px;
  .title-block {
    font-size: 1.5em;
    line-height: 1.21;
    margin-bottom: 30px;
  }
  .messenger-points {
    .messenger-point {
      width: 166px;
      height: 48px;
      background: $white;
      border-radius: 4px;
      padding-left: 20px;
      margin: 0 10px;
      .icon {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
      }
      .text {
        font-size: 0.8125em;
        font-weight: 500;
      }
      &:nth-of-type(1) {
        border: 1px solid #64B73E;
        .icon {
          background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.003 0H11.997C5.3805 0 0 5.382 0 12C0 14.625 0.846 17.058 2.2845 19.0335L0.789 23.4915L5.4015 22.017C7.299 23.274 9.5625 24 12.003 24C18.6195 24 24 18.6165 24 12C24 5.3835 18.6195 0 12.003 0Z' fill='%234CAF50'/%3E%3Cpath d='M18.9855 16.9453C18.696 17.7628 17.547 18.4408 16.6305 18.6388C16.0035 18.7723 15.1845 18.8788 12.4275 17.7358C8.90104 16.2748 6.63005 12.6913 6.45305 12.4588C6.28355 12.2263 5.02805 10.5613 5.02805 8.83928C5.02805 7.11728 5.90255 6.27878 6.25505 5.91878C6.54455 5.62328 7.02305 5.48828 7.48205 5.48828C7.63055 5.48828 7.76405 5.49578 7.88405 5.50178C8.23655 5.51678 8.41355 5.53778 8.64605 6.09428C8.93555 6.79178 9.64055 8.51378 9.72455 8.69078C9.81005 8.86778 9.89555 9.10778 9.77555 9.34028C9.66305 9.58028 9.56405 9.68678 9.38705 9.89078C9.21005 10.0948 9.04205 10.2508 8.86505 10.4698C8.70305 10.6603 8.52005 10.8643 8.72405 11.2168C8.92805 11.5618 9.63305 12.7123 10.671 13.6363C12.0105 14.8288 13.0965 15.2098 13.485 15.3718C13.7745 15.4918 14.1195 15.4633 14.331 15.2383C14.5995 14.9488 14.931 14.4688 15.2685 13.9963C15.5085 13.6573 15.8115 13.6153 16.1295 13.7353C16.4535 13.8478 18.168 14.6953 18.5205 14.8708C18.873 15.0478 19.1055 15.1318 19.191 15.2803C19.275 15.4288 19.275 16.1263 18.9855 16.9453Z' fill='%23FAFAFA'/%3E%3C/svg%3E%0A");
        }
        &:hover {
          background-color:  #64B73E;
          .icon {
            background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.003 0H11.997C5.3805 0 0 5.382 0 12C0 14.625 0.846 17.058 2.2845 19.0335L0.789 23.4915L5.4015 22.017C7.299 23.274 9.5625 24 12.003 24C18.6195 24 24 18.6165 24 12C24 5.3835 18.6195 0 12.003 0Z' fill='%23fff'/%3E%3Cpath d='M18.9855 16.9453C18.696 17.7628 17.547 18.4408 16.6305 18.6388C16.0035 18.7723 15.1845 18.8788 12.4275 17.7358C8.90104 16.2748 6.63005 12.6913 6.45305 12.4588C6.28355 12.2263 5.02805 10.5613 5.02805 8.83928C5.02805 7.11728 5.90255 6.27878 6.25505 5.91878C6.54455 5.62328 7.02305 5.48828 7.48205 5.48828C7.63055 5.48828 7.76405 5.49578 7.88405 5.50178C8.23655 5.51678 8.41355 5.53778 8.64605 6.09428C8.93555 6.79178 9.64055 8.51378 9.72455 8.69078C9.81005 8.86778 9.89555 9.10778 9.77555 9.34028C9.66305 9.58028 9.56405 9.68678 9.38705 9.89078C9.21005 10.0948 9.04205 10.2508 8.86505 10.4698C8.70305 10.6603 8.52005 10.8643 8.72405 11.2168C8.92805 11.5618 9.63305 12.7123 10.671 13.6363C12.0105 14.8288 13.0965 15.2098 13.485 15.3718C13.7745 15.4918 14.1195 15.4633 14.331 15.2383C14.5995 14.9488 14.931 14.4688 15.2685 13.9963C15.5085 13.6573 15.8115 13.6153 16.1295 13.7353C16.4535 13.8478 18.168 14.6953 18.5205 14.8708C18.873 15.0478 19.1055 15.1318 19.191 15.2803C19.275 15.4288 19.275 16.1263 18.9855 16.9453Z' fill='%2364B73E'/%3E%3C/svg%3E%0A");
          }
        }
      }
      &:nth-of-type(2) {
        border: 1px solid #1E88E5;
        .icon {
          background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0C5.373 0 0 4.974 0 11.1105C0 14.607 1.7445 17.7255 4.4715 19.7625V24L8.5575 21.7575C9.648 22.059 10.803 22.2225 12 22.2225C18.627 22.2225 24 17.2485 24 11.112C24 4.974 18.627 0 12 0Z' fill='%231E88E5'/%3E%3Cpath d='M13.1924 14.9625L10.1369 11.703L4.17435 14.9625L10.7324 7.99951L13.8629 11.259L19.7519 7.99951L13.1924 14.9625Z' fill='%23FAFAFA'/%3E%3C/svg%3E%0A");
        }
        &:hover {
          background-color:  #1E88E5;
          .icon {
            background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0C5.373 0 0 4.974 0 11.1105C0 14.607 1.7445 17.7255 4.4715 19.7625V24L8.5575 21.7575C9.648 22.059 10.803 22.2225 12 22.2225C18.627 22.2225 24 17.2485 24 11.112C24 4.974 18.627 0 12 0Z' fill='%23fff'/%3E%3Cpath d='M13.1924 14.9625L10.1369 11.703L4.17435 14.9625L10.7324 7.99951L13.8629 11.259L19.7519 7.99951L13.1924 14.9625Z' fill='%231E88E5'/%3E%3C/svg%3E%0A");
          }
        }
      }
      &:nth-of-type(3) {
        border: 1px solid #039BE5;
        .icon {
          height: 20px;
          background-image: url("data:image/svg+xml,%3Csvg width='24' height='20' viewBox='0 0 24 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.4171 13.1809L9.0201 18.7649C9.5881 18.7649 9.8341 18.5209 10.1291 18.2279L12.7921 15.6829L18.3101 19.7239C19.3221 20.2879 20.0351 19.9909 20.3081 18.7929L23.9301 1.82092L23.9311 1.81992C24.2521 0.323917 23.3901 -0.261083 22.4041 0.105917L1.1141 8.25691C-0.338898 8.82091 -0.316898 9.63091 0.867102 9.99791L6.3101 11.6909L18.9531 3.77992C19.5481 3.38592 20.0891 3.60391 19.6441 3.99791L9.4171 13.1809Z' fill='%23039BE5'/%3E%3C/svg%3E%0A");
        }
        &:hover {
          background-color:  #039BE5;
          .icon {
            background-image: url("data:image/svg+xml,%3Csvg width='24' height='20' viewBox='0 0 24 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.4171 13.1809L9.0201 18.7649C9.5881 18.7649 9.8341 18.5209 10.1291 18.2279L12.7921 15.6829L18.3101 19.7239C19.3221 20.2879 20.0351 19.9909 20.3081 18.7929L23.9301 1.82092L23.9311 1.81992C24.2521 0.323917 23.3901 -0.261083 22.4041 0.105917L1.1141 8.25691C-0.338898 8.82091 -0.316898 9.63091 0.867102 9.99791L6.3101 11.6909L18.9531 3.77992C19.5481 3.38592 20.0891 3.60391 19.6441 3.99791L9.4171 13.1809Z' fill='%23fff'/%3E%3C/svg%3E%0A");
          }
        }
      }
      &:hover {
        color: $white;
      }
    }
  }
  @include screen-down(m) {
    padding: 30px 50px 33px;
  }
  @include screen-down(s) {
    padding: 10px 0 18px;
    border-radius: 0;
    box-shadow: none;
    .title-block {
      font-size: 1.125em;
      line-height: 1.25;
      margin-bottom: 20px;
    }
    .messenger-points {
      flex-direction: column;
      .messenger-point {
        margin: 0 0 10px;
      }
    }
  }
}

/*Custom select*/
.select {
  cursor: pointer;
  display: inline-block;
  position: relative;
  outline: none;
  width: 100%;
  height: 62px;
  &.error {
    .select-styled {
      border-color: $pink;
      transition:all 0.2s;
    }
  }
  @include screen-down(m) {
    max-width: 100%;
  }
}
.select-styled {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 62px;
  padding: 0 40px 0 30px;
  background: $white;
  border: 1px solid #ECECEC;
  box-sizing: border-box;
  border-radius: 4px;
  color: $black;
  font-size: 0.875em;
  font-weight: 500;
  text-align: left;
  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.41 0.589843L6 5.16984L10.59 0.589844L12 1.99984L6 7.99984L-6.16331e-08 1.99984L1.41 0.589843Z' fill='%23333333'/%3E%3C/svg%3E%0A");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 14px;
    height: 7px;
    transition: all .2s
  }
  b {
    display: none;
  }
  svg {
    position: absolute;
    left: 12px;
  }
  &:active, &.active {
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid $white;
    &:after {
      transform: rotate(180deg) translateY(50%);
      transition: all .2s
    }

    &.select-styled-disc-size {
      border-bottom: 1px solid #ECECEC;
    }
  }

  &.selected {
    color: $black;
    border-color: #878788;
    transition: all .2s;

    &:active, &.active {
      border: 1px solid #ECECEC;
    }
  }
  @include screen-down(m) {
    &:after {
      right: 20px;
    }
  }
}

.select-options {
  display: none;
  overflow-y: auto;
  height: auto;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 50;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: $white;
  border-bottom: 1px solid #E8E8E8;
  border-left: 1px solid #E8E8E8;
  border-right: 1px solid #E8E8E8;
  border-radius: 0 0 4px 4px;
  padding-bottom: 12px;
  li {
    font-size: 0.875em;
    font-weight: 500;
    margin: 0;
    padding: 6px 30px;
    transition: all 0.2s ease-in;
    &:hover {
      background-color: #E8E8E8!important;
      transition: all .2s;
    }
    &[rel="hide"] {
      display: none;
    }
  }
  &.selected {
    border-color: #878788;
  }

  &.disc-size {
    padding: 25px 14px;

    li {
      width: 40px;
      padding: 0;

      &:hover {
        background-color: transparent!important;

        .icon {
          background-color: $violet;

          svg path {
            fill: $white;
            transition: all .2s;
          }
        }
      }

      &:nth-child(n+6) {
        width: 60px;
        margin-top: 30px;

        .icon {
          height: 60px;
        }
      }

      &:nth-child(1),
      &:nth-child(2),
      &:nth-child(3),
      &:nth-child(4) {
        margin-right: 30px;
      }

      .icon {
        background-color: #F1F1F1;
        border-radius: 4px;
        height: 40px;
        margin-bottom: 7px;

        svg path {
          transition: all .2s;
        }
      }
    }

    @media (max-width: 413px) {
      li {
        &:nth-child(1),
        &:nth-child(2),
        &:nth-child(3),
        &:nth-child(4) {
          margin-right: 20px;
        }
      }
    }
  }
}

.service-table::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  border-radius: 4px;
  background-color:#CACACA;;
}

.service-table::-webkit-scrollbar {
  width: 4px;
  background-color: #CACACA;;
}

.service-table::-webkit-scrollbar-thumb {
  border-radius: 4px;
  height: 33px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: #7C7C7C;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  height: 62px;
  border: none;
  outline: none;
  background: none;
  margin: 0;
  padding: 0 15px;
  cursor: pointer;
  font-size: 0.875em;
  font-weight: 700;
  text-transform: uppercase;
  transition: all .2s;

  &.btn-link {
    border-radius: 0;
    height: auto;
    padding: 0;
    width: auto;
  }

  &.btn-bg {
    height: 62px;
    background: linear-gradient(180deg, #FF6464 0%, #FF1F1F 100%), #FF1F1F;
    box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: $white;
    svg { fill: $black; }
    &:hover {box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.7);}
  }

  &.btn-border {
    border: solid 2px $yellow;
    color: $yellow;
    svg { fill: $yellow; }
    &:not(.btn-static):hover {
      background-color: $yellow;
      color: $black;
      svg { fill: $black; }
    }
  }
}

.custom-checkbox {
  @include custom('checkbox', $black);

  .text {
    flex-shrink: 1;
    max-width: 100%;
    display: block;

    a {
      position: relative;
      z-index: 5;
    }
  }
}

.custom-radio {
  @include custom('radio');
}

.form-services-cost {
  width: 475px;
  background: $white;
  box-shadow: 0 4px 54px rgba(0, 0, 0, 0.11);
  border-radius: 8px;
  padding: 30px 30px 40px;
  form {
    #tabs {
      .row-car-type {
        height: 42px;
        position: relative;
      }
      .label-tab {
        font-size: 0.875em;
        font-weight: 500;
      }
      .tab-car-type {
        position: relative;
        height: 149px;
        border-bottom: 1px dashed #9D9D9D;
        margin-bottom: 20px;
        .car-type {
          position: absolute;
          top: 0;
          right: 0;
          width: 202px;
          background-color: $white;
          font-size: 0.875em;
          font-weight: 500;
          outline: none;
          overflow: hidden;
          z-index: 11;
          .choose-car-type {
            border: 1px solid #ECECEC;
            border-radius: 4px;
            background-color: $white;
            height: 42px;
            transition: all .2s;
            &.active {
              padding-top: 42px;
              padding-bottom: 5px;
              height: auto;
              transition: all .2s;
              a.active {
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(19.023 16.003) rotate(-180)'/%3E%3C/svg%3E");
              }
            }
            a {
              width: 200px;
              font-weight: 500;
              padding: 7px 16px;
              background-repeat: no-repeat;
              background-size: 14px 7px;
              background-position: 93% center;

              span {
                white-space: nowrap;
                overflow: hidden;
              }
              &.active {
                position: absolute;
                top: 1px;
                left: 1px;
                height: 40px;
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(-4.999 -8.999)'/%3E%3C/svg%3E");
                padding: 7px 33px 7px 16px;
              }
            }
          }
        }
      }
      .tab-tires-type {
        width: 202px;
        height: 67px;
        position: absolute;
        left: 0;
        top: 63px;
      }
      .tab-radius-type {
        width: 202px;
        height: 67px;
        position: absolute;
        right: 0;
        top: 63px;
      }
      .tab-items {
        .tabs-wrap {
          .title-select {
            margin-bottom: 105px;
            padding: 0 9px;
          }
          .tires-type, .radius-type {
            position: absolute;
            top: 24px;
            left: 0;
            width: 202px;
            background-color: $white;
            font-size: 0.875em;
            font-weight: 500;
            outline: none;
            overflow: hidden;
            z-index: 10;
          }
          .choose-tires-type, .choose-radius-type {
            border: 1px solid #ECECEC;
            border-radius: 4px;
            background-color: $white;
            height: 42px;
            transition: all .2s;
            &.active {
              padding-top: 42px;
              padding-bottom: 5px;
              height: auto;
              transition: all .2s;
              a.active {
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(19.023 16.003) rotate(-180)'/%3E%3C/svg%3E");
              }
            }
            a {
              width: 200px;
              font-weight: 500;
              padding: 7px 16px;
              background-repeat: no-repeat;
              background-size: 14px 7px;
              background-position: 93% center;
              span {
                white-space: nowrap;
                overflow: hidden;
              }
              &.active {
                position: absolute;
                top: 1px;
                left: 1px;
                height: 40px;
                background-color: $white;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.024' height='7.004' viewBox='0 0 14.024 7.004'%3E%3Cpath d='M12,16a1,1,0,0,1-.64-.23l-6-5A1,1,0,0,1,6.64,9.23L12,13.71l5.36-4.32A1.025,1.025,0,1,1,18.63,11l-6,4.83A1,1,0,0,1,12,16Z' transform='translate(-4.999 -8.999)'/%3E%3C/svg%3E");
                padding: 7px 33px 7px 16px;
              }
            }
          }
        }
      }
      .tab-tires-type {
        width: 202px;
        position: absolute;
        left: 0;
        bottom: 0;
      }
      .item {
        margin-bottom: 19px;
        .row-item {
          height: 17px;
          margin-bottom: 12px;
          position: relative;
          &:before {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            border-bottom: 1px dashed #9D9D9D;
            position: absolute;
            left: 0;
            bottom: 3px;
            z-index: 1;
          }
          .text {
            display: flex;
            flex-shrink: 0;
            font-size: 0.875em;
            font-weight: 500;
            background-color: $white;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
          }
          .price {
            font-size: 0.875em;
            background-color: $white;
            position: absolute;
            top: 0;
            right: 0;
            z-index: 2;
          }
          &.take-off {
            margin-bottom: 16px;
          }
        }
        .title-necessary {
          font-size: 0.875em;
          margin-top: 8px;
          margin-bottom: 14px;
        }
        .all-cost {
          font-size: 0.875em;
          height: 44px;
          background-image: url("/img/bg-field-all-cost.png");
          background-repeat: no-repeat;
          background-position: center;
          background-size: cover;
          padding: 0 30px;
          svg {
            flex-shrink: 0;
            margin-right: 10px;
          }
        }
      }
    }
    .text-reserve {
      font-size: 1.125em;
      line-height: 1.25;
      margin-bottom: 21px;
    }
    .scroll {
      width: max-content;
      margin: auto;
    }
  }
  @include screen-down(s) {
    width: 100%;
    height: auto;
    padding: 30px 20px;
    form {
      #tabs {
        .label-tab {
          width: 100%;
        }
        .row-car-type {
          height: 67px;
          flex-direction: column;
        }
        .tab-car-type {
          height: 257px;
          margin-bottom: 16px;
          .car-type {
            width: 100%;
            top: 29px;
            .choose-car-type {
              a {
                width: 99%;
              }
            }
          }
        }
        .tab-tires-type {
          width: 100%;
          top: 88px;
          bottom: auto;
        }
        .tab-radius-type {
          width: 100%;
          top: 170px;
        }
        .tab-items {
          .tabs-wrap {
            .radius-type, .tires-type {
              width: 100%;
            }
            .radius-type {
              z-index: 9;
            }
            .choose-tires-type, .choose-radius-type {
              a {
                width: 99%;
              }
            }
          }
        }
        .item {
          .row-item {
            align-items: flex-end;
          }
          .all-cost {
            background-image: none;
            background: #53B43B;
            box-shadow: -10px 4px 34px rgba(0, 0, 0, 0.17);
            font-size: 0.75em;
            padding: 0 14px;
            clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
            text-align: center;
          }
        }
      }
      .text-reserve {
        font-size: 1em;
        margin-bottom: 22px;
      }
    }
  }
  @include screen-down(xs) {
    form #tabs .item .row-item {
      &.sandblasting-painting.lv {
        height: 38px;
        .text {
          width: 150px;
        }
        .price {
          top: auto;
          bottom: 0;
        }
      }
      &.sandblasting-painting.ru, &.sandblasting.lv {
        height: 38px;
        .text {
          width: 115px;
        }
        .price {
          top: auto;
          bottom: 0;
        }
      }
      .all-cost {
        padding: 0 30px;
      }
    }
  }
}

.popup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: auto;
  width: 100%;
  opacity: 0;

  &.hidden { display: none; }

  .popup-inner {
    z-index: 1002;
    opacity: 0.999;
    position: relative;
    max-width: 100%;
  }

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

  .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 1003;
    opacity: 0.999;

    svg {
      vertical-align: middle;
      fill: #8C97A3;

      &.close-svg-mobile {
        width: 30px;
        height: 30px;
        @include screen-up(m) { display: none; }
      }

      &.close-svg-desktop {
        display: none;
        width: 16px;
        height: 16px;

        @include screen-up(m) { display: block; }
      }
    }

    &:hover svg {
      fill: $pink;
    }
  }

  @include screen-up(s) {
    padding: 10px;

    .popup-inner {
      background-color: #fff;
      box-shadow: 0 4px 20px rgba(#604126, 0.43);
      border-radius: 6px;
    }
  }

  @include screen-up(m) {
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1000;

    .popup-bg {
      height: 100%;
      width: 100%;
      top: 0;
      left: 0;
      position: absolute;
      background-color: rgba(48, 49, 51, 0.7);
    }

    .popup-inner {
      max-width: 800px;
      overflow-y: auto;
    }
  }

  @include screen-down(s) {
    .popup-inner {
      padding: 50px 20px;
    }
  }

  @include screen-down(s) {
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1000;
    //background-color: rgba(48, 49, 51, 0.7);
    .popup-bg {
      height: 100%;
      width: 100%;
      top: 0;
      left: 0;
      position: absolute;
      background-color: rgba(48, 49, 51, 0.7);
    }
    .popup-inner {
      background: transparent;
      padding: 40px 10px;
      overflow-y: auto;
    }
  }

  @include screen-down(xs) {
    .popup-inner {
      padding-left: 10px;
      padding-right: 10px;
    }
  }
}

[data-popup="privacy-policy"] {
  h3 {
    margin-bottom: 10px;
  }

  .text {
    width: 100%;
    overflow-wrap: break-word;
    white-space: pre-line;
  }

  @include screen-up(m) {
    .popup-inner {
      padding: 30px 20px;
    }
  }

  @include screen-up(w) {
    .popup-inner {
      overflow-y: auto;
    }
  }

  @include screen-down(s) {
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1000;
    background-color: rgba(39, 55, 71, 0.12);
    .popup-inner {
      padding: 50px 20px;
      overflow-y: auto;
      background-color: #fff;
      border-radius: 6px;
    }
  }
}

[data-popup^="form"] {
  .popup-inner {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;

    .popup-content {
      width: 100%;
    }

    h3 {
      padding: 0 30px;
    }

    .b24-form {
      max-width: 400px;
      width: 100%;
      padding: 30px 20px;
    }
  }

  @include screen-down(s) {
    .popup-close {
      top: 5px;
      right: 15px;
      svg {
        &.close-svg-desktop {
          display: block;
        }
        &.close-svg-mobile {
          display: none;
        }
      }
    }
    .popup-inner {
      padding: 0 10px;
    }
  }
}
