.cost {
  background-color: #2B2B38;
  background-image: url('../images/cost-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cost .cost-category-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
}

.cost .cost-category-title span {
  color: #FF5A2F;
}

/* Стоимость обучения в автошколе */
.cost-main-title {
  position: relative;
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 50px;
  line-height: 68px;
  letter-spacing: -0.01em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 24px;
}

.cost-main-title__icon {
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
  vertical-align: middle;
}

.cost .cost-category-divider {
  border: 0;
  border-top: 1px solid #BEC2CE;
  margin: 0 0 15px;
  width: 100%;
  display: none;
}

.cost .pricing-prev-js,
.cost .pricing-next-js {
  display: none !important;
}

.cost .pricing-table--js {
  display: block;
  overflow: hidden !important;
}

.cost .pricing-table--js .swiper-wrapper {
  align-items: flex-start;
}

.cost .pricing-table--js .swiper-slide {
  height: auto;
}

.cost .pricing-table__item.--white .tariff {
  background-color: #fff;
  border: 1px solid #A6ABB0;
}

.cost .tariff__price-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0px;
}

/* Шапка карточки: бейдж скидки в правом верхнем углу, название под ним.
   Рядом с названием бейдж в узкие карточки не помещается, а смешанная
   раскладка разводит цены в ряду по высоте — поэтому всегда строкой выше. */
.cost .tariff__head {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  margin-bottom: 0px;
}

.cost .tariff__head .tariff__title {
  margin-bottom: 0;
}

.cost .tariff__sale {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Правый верхний угол занят бейджем скидки, поэтому молния стоит справа от цены */
.cost .tariff__price-row .tariff__thunder {
  position: static;
  margin-left: auto;
  line-height: 0;
}

.cost .tariff__price-row .tariff__thunder svg {
  width: auto;
  height: 40px;
}

.cost .tariff__sale-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background-color: #FF532B;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.cost .tariff__sale-note {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  color: #293241;
  text-align: center;
  white-space: nowrap;
}

.cost .pricing-table__item.--orange .tariff__sale-badge {
  background-color: #fff;
  color: #FF532B;
}

.cost .pricing-table__item.--orange .tariff__sale-note {
  color: #fff;
}

.cost .tariff__installment {
  margin-top: 14px;
}

.cost .tariff__installment-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: #000;
}

.cost .tariff__installment-price {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FF532B;
}

/* На оранжевой карточке оранжевый текст не читается — как и основная цена, он белый */
.cost .pricing-table__item.--orange .tariff__installment-text,
.cost .pricing-table__item.--orange .tariff__installment-price {
  color: #fff;
}

.cost .tariff__advantages-title {
  margin-top: 14px;
  margin-bottom: 14px;
}

.cost .tariff__footer {
  grid-template-columns: 1fr;
  margin-top: auto;
}

.cost .tariff__footer button {
  width: 100%;
}

.cost .tariff__footer-extra {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #F3F0E4;
}

.cost .pricing-table__item.--white .tariff__footer-extra {
  color: #293241;
}

.cost .tariff__footer-extra svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Атрибут hidden задаёт display:none в UA; правило ниже перебивает его — явно восстанавливаем скрытие */
.cost .tariff__advantages-extra[hidden] {
  display: none !important;
}

.cost .tariff__advantages-extra:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cost .tariff__advantages-toggle {
  align-self: center;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: #3a7467;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cost .tariff__advantages-toggle-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cost .tariff__advantages-toggle-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  transition: transform 0.2s ease;
}

.cost .tariff__advantages-toggle[aria-expanded="true"] .tariff__advantages-toggle-icon {
  transform: rotate(180deg);
}

.cost .tariff__advantages-toggle:hover {
  color: #2d5c52;
}

.cost .pricing-table__item.--orange .tariff__advantages-toggle,
.cost .pricing-table__item.--dark-blue .tariff__advantages-toggle,
.cost .pricing-table__item.--lavander .tariff__advantages-toggle {
  color: #f3f0e4;
}

.cost .pricing-table__item.--orange .tariff__advantages-toggle:hover,
.cost .pricing-table__item.--dark-blue .tariff__advantages-toggle:hover,
.cost .pricing-table__item.--lavander .tariff__advantages-toggle:hover {
  color: #fff;
}

.cost .tariff.tariff--advantages-expanded .tariff__body {
  overflow: visible;
}

.cost .tariff__advantage {
  padding-left: 20px;
}

.cost .tariff__advantage::before {
  content: "";
  width: 12px;
  height: 9px;
  border: 0;
  border-radius: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.75 0.75L4.08333 7.75L0.75 4.25' stroke='%233A7467' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  top: 5px;
}

.cost .pricing-table__item.--orange .tariff__advantage::before {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.75 0.75L4.08333 7.75L0.75 4.25' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cost .tax-return {
  margin-top: 24px;
}

/* Слайдер авто */
.cars__container .swiper-btn {
  top: 0;
}

.cars__container .swiper-btn.swiper-button-disabled {
  opacity: 1;
}

.cars__slider {
  overflow: hidden;
  padding-top: 1px;
  padding-right: 1px;
}

.cars__slider .swiper-wrapper {
  align-items: stretch;
}

.cars__slider .swiper-slide {
  height: auto;
  margin-right: 8px !important;
  max-height: 325px;
}

.cars__slider .swiper-slide:last-child {
  margin-right: 0 !important;
}

.cars__slide {
  height: 100%;
}

@media (min-width: 1100px) {
  .cost .pricing-table--js {
    overflow: visible !important;
  }

  .cost .pricing-table--js .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    transform: none !important;
    transition-duration: 0ms !important;
    width: auto !important;
  }

  .cost .pricing-table--js .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }

  .cost .pricing-table--js.pricing-table--static {
    overflow: visible !important;
  }

  .cost .pricing-table--js.pricing-table--static .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    transform: none !important;
  }

  .cost .pricing-table--js.pricing-table--static .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }

  .cost .tax-return {
    margin-top: 50px;
  }

  .cost .tax-return--under-white-3 {
    max-width: calc(((100% - 36px) / 4 * 3) + 24px);
  }

  .cost .tax-return--under-white-2 {
    max-width: calc(((100% - 36px) / 4 * 2) + 12px);
  }
}

@media (max-width: 1099px) {
  .cost-main-title {
    width: auto;
    height: auto;
    font-size: 38px;
    line-height: 1.25;
  }

  .cost .cost-category-title {
    font-size: 32px;
  }

  .cost .pricing-table--js {
    overflow: visible !important;
  }
}

@media (max-width: 800px) {
  .cost-main-title {
    font-size: 24px;
    line-height: 1.1;
    margin-top: 24px;
    margin-bottom: 16px;
  }

  .cost .cost-category-title {
    font-size: 18px;
  }

  .cost-main-title__icon svg {
    width: 27px !important;
    height: 27px !important;
  }
  .cost .tax-return {
    font-size: 13px;
    font-weight: 400;
    margin-top: 0px;
  }

  .cost .tax-return span {
    font-weight: 500;
  }

  .cost .cost-category-divider {
    display: inline-block;
  }
}
