/* Project overrides. Keep base layout CSS intact. */
.input__prem.has-error,
textarea.has-error,
select.has-error,
.select2-selection.has-error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 1px #e53935 !important;
}

.main-form-checkbox.has-error .main-form-checkbox-checkmark,
.form-check.has-error .form-check-input {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 1px #e53935 !important;
}

.main-form-checkbox.has-error .main-form-checkbox-text,
.form-check.has-error .form-check-label {
  color: #e53935 !important;
}

.main-form-checkbox {
  margin-bottom: 0;
}

.main-form-checkbox .text-decoration-none {
  text-decoration: underline !important;
}

.page-breadcrumb {
  margin: 18px 0 24px;
  font-size: 14px;
  line-height: 1.35;
}

.page-breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.page-breadcrumb .breadcrumb-item {
  color: #5e6a70;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: #9aa7ad;
}

.page-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: #4eadc4;
}

.stock ~ .feedback {
  position: relative;
  z-index: 0;
}

.stock ~ .feedback .feedback__inner,
.stock ~ .feedback .feedback__content,
.stock ~ .feedback .feedback__form {
  position: relative;
  z-index: 1;
}

.legal-page {
  padding-top: 0;
}

.legal-page__header {
  max-width: 920px;
  margin-bottom: 28px;
}

.legal-page__title {
  margin-bottom: 12px;
}

.legal-page__lead {
  color: #5f6266;
  font-size: 18px;
  line-height: 1.45;
}

.legal-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.legal-page__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  color: #1c1f23;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}

.legal-page__nav a:hover {
  border-color: var(--bs-primary, #4eadc4);
  color: var(--bs-primary, #4eadc4);
}

.legal-page__content {
  max-width: 980px;
  color: #282c30;
  font-size: 16px;
  line-height: 1.65;
}

.legal-page__content section {
  padding: 28px 0;
  border-top: 1px solid #e8eaee;
}

.legal-page__content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-page__content h2 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.25;
}

.legal-page__content h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.legal-page__content p {
  margin-bottom: 12px;
}

.legal-page__content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page__content li + li {
  margin-top: 8px;
}

@media (max-width: 767.98px) {
  .legal-page__lead {
    font-size: 16px;
  }

  .legal-page__nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-page__nav a {
    width: 100%;
  }

  .legal-page__content h2 {
    font-size: 24px;
  }
}

.special__car-img-ins {
  top: 10px;
}

.catalog__empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 3px solid #edf6fa;
  border-radius: 12px;
  background: #fff;
  font-size: 18px;
}

.catalog__empty-actions {
  margin-top: 18px;
}

.model__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.model__gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid #edf6fa;
  border-radius: 8px;
  background: #fff;
}

.model__gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.js-favourite-page-item,
.js-comparison-page-item {
  display: contents;
}

.comparison__cars {
  margin-bottom: 32px;
}

.catalog__form-item .select2-container {
  width: 100% !important;
}

.resp-table {
  overflow: hidden;
  border: 3px solid #edf6fa;
  border-radius: 12px;
  background: #fff;
}

.resp-table__header {
  background: #edf6fa;
}

.resp-table__header-swiper {
  overflow-x: auto;
}

.resp-table__wrapper {
  display: grid;
  grid-template-columns: repeat(var(--resp-cols), minmax(180px, 1fr));
  min-width: max(100%, calc(var(--resp-cols) * 180px));
}

.resp-table__col {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid #d8edf4;
  font-size: 16px;
  line-height: 1.35;
}

.resp-table__col:first-child {
  border-left: 0;
}

.resp-table__header .resp-table__col {
  font-weight: 700;
}

.resp-table__header .resp-table__col span,
.resp-table__header .resp-table__col small {
  display: block;
}

.resp-table__header .resp-table__col small {
  margin-top: 4px;
  color: #4a99aa;
  font-size: 14px;
  font-weight: 700;
}

.resp-table__row-heading {
  padding: 16px 18px;
  background: #54b3c7;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.resp-table__row-content {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  border-top: 1px solid #edf6fa;
}

.resp-table__row-content-heading {
  padding: 14px 18px;
  background: #f6fbfd;
  color: #333;
  font-weight: 700;
}

.resp-table__body-swiper {
  overflow-x: auto;
}

.compare-page {
  margin-top: 40px;
  margin-bottom: 70px;
}

.compare-page__actions {
  margin: 0 0 24px;
}

.compare-page__table {
  overflow-x: auto;
}

table.compare {
  min-width: 760px;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
}

table.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid #d5d5d5;
  vertical-align: middle;
}

table.compare thead td {
  background: #edf6fa;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

table.compare td + td {
  text-align: center;
}

table.compare tbody td:nth-child(even) {
  background: #f6fbfd;
}

table.compare td.option_title {
  padding: 16px 14px;
  background: #54b3c7;
  color: #fff;
  font-weight: 700;
}

.comparison-main {
  overflow: hidden;
}

.comparison-main__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.comparison-main__filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}

.comparison-main__filter input {
  width: 18px;
  height: 18px;
  accent-color: #54b3c7;
}

.comparison-main .swiper {
  overflow: visible;
}

.comparison-main .swiper-slide {
  width: min(280px, 82vw);
  height: auto;
}

.comparison-main__head {
  margin-bottom: 30px;
}

.comparison-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  padding: 18px;
  border: 3px solid #edf6fa;
  border-radius: 12px;
  background: #fff;
}

.comparison-card__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #54b3c7;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.comparison-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  margin-bottom: 14px;
}

.comparison-card__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.comparison-card__name {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.comparison-card__price {
  margin-top: auto;
  padding-top: 14px;
  color: #54b3c7;
  font-size: 20px;
  font-weight: 700;
}

.comparison-main__group + .comparison-main__group {
  margin-top: 28px;
}

.comparison-main__group-collapse-button {
  margin-bottom: 18px;
}

.comparison-main__group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.comparison-main__group-toggle::after {
  content: "";
  width: 18px;
  height: 18px;
  border-right: 3px solid #54b3c7;
  border-bottom: 3px solid #54b3c7;
  transform: rotate(225deg);
  transition: transform .2s ease;
}

.comparison-main__group-toggle.collapsed::after {
  transform: rotate(45deg);
}

.comparison-main__collapse:not(.show),
.comparison-main__item.is-hidden {
  display: none;
}

.comparison-main__item + .comparison-main__item {
  margin-top: 18px;
}

.comparison-main__item-name {
  margin-bottom: 10px;
  color: #66747a;
  font-size: 15px;
  font-weight: 700;
}

.comparison-main__value-card {
  border: 3px solid #edf6fa;
  border-radius: 10px;
  background: #fff;
}

.comparison-main__value-card .swiper-slide {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border-left: 1px solid #edf6fa;
  font-size: 16px;
  line-height: 1.35;
}

.comparison-main__value-card .swiper-slide:first-child {
  border-left: 0;
}

.print-car {
  margin-top: 40px;
  margin-bottom: 70px;
}

.print-car__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.print-car__button {
  flex: 0 0 auto;
}

.print-car__summary {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 24px;
  padding: 24px;
  border: 3px solid #edf6fa;
  border-radius: 12px;
  background: #fff;
}

.print-car__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.print-car__row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #edf6fa;
}

.print-car__row span {
  color: #5e6a70;
}

.print-car__row b {
  font-weight: 700;
}

.print-car__row--accent b {
  color: #ffae1d;
  font-size: 22px;
}

.print-car__block {
  margin-top: 32px;
}

.print-car__block h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.print-car__chars,
.print-car__options {
  padding: 24px;
  border: 3px solid #edf6fa;
  border-radius: 12px;
  background: #fff;
}

.print-car__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.print-car__option-group h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.print-car__option-group ul {
  margin: 0;
  padding-left: 18px;
}

.print-car__footer {
  margin-top: 28px;
  color: #5e6a70;
}

.credit__form .select2-container {
  width: 100% !important;
}

.credit__native-select {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  padding: 0 48px 0 20px;
  color: #000;
  font: inherit;
  outline: none;
}

.credit__price-item-text .js-credit-complectation {
  font-weight: 400;
}

.reviews__inner {
  align-items: start;
}

.reviews__inner-list {
  align-items: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.reviews__item {
  align-self: start;
}

@media (max-width: 900px) {
  .resp-table {
    overflow-x: auto;
  }

  .resp-table__row-content {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    min-width: calc(var(--resp-cols) * 180px + 220px);
  }

  .print-car__head,
  .print-car__summary {
    display: block;
  }

  .print-car__button {
    margin-top: 16px;
  }

  .print-car__info {
    margin-top: 20px;
  }

  .print-car__options {
    grid-template-columns: 1fr;
  }
}

@media print {
  .header,
  .footer,
  .print-car__button {
    display: none !important;
  }

  .print-car {
    margin: 0;
  }
}
