/* Страница «Реконструкция кровли» (Все о FAKRO). Подключается из самой статьи. Макет: Figma 1920 / 320. */

.recon {
  color: #1b1b20;
  overflow: hidden;
}

.recon-title {
  font-weight: 700;
  font-size: 32px;
  line-height: normal;
  text-transform: uppercase;
  text-align: left;
  margin: 0 0 50px;
}

@media (max-width: 767px) {
  .recon-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
}

/* ---------- Баннер (разметка и стили .main-slider с главной) ---------- */
.recon-hero {
  margin-bottom: 0;
  padding: 0 15px;
}

.recon-hero .main-slider__item {
  height: 755px;
  overflow: hidden;
}

.recon-hero .main-slider__item-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.recon-hero .main-slider__item-caption {
  width: 1148px;
  max-width: calc(100% - 40px);
  top: auto;
  bottom: 50px;
  padding: 20px;
  flex-wrap: nowrap;
  gap: 30px;
}

.recon-hero .main-slider__item-info {
  flex: 0 1 685px;
  margin: 0;
}

.recon-hero .main-slider__item-note {
  font-weight: 700;
  font-size: 47px;
  line-height: normal;
  margin: 0 0 12px;
}

.recon-hero__lead {
  font-weight: 600;
  font-size: 25px;
  line-height: 28px;
  text-transform: uppercase;
  color: #5ccd28;
  margin: 0 0 12px;
}

.recon-hero__text {
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
}

.recon-hero__actions {
  flex: 0 0 356px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recon-hero__btn {
  display: block;
  text-align: center;
  font-weight: 700;
  padding: 14px 20px;
}

.recon-hero__btn_ghost,
.recon-hero__btn_ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(1px);
}

.recon-hero__btn_ghost:hover {
  background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1100px) {
  .recon-hero .main-slider__item-note {
    font-size: 38px;
  }
  .recon-hero__lead {
    font-size: 20px;
    line-height: 26px;
  }
  .recon-hero__actions {
    flex-basis: 280px;
  }
}

@media (max-width: 860px) {
  .recon-hero .main-slider__item {
    height: auto;
  }
  .recon-hero .main-slider__item-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: auto;
    max-width: none;
    margin: 20px 10px;
    padding: 20px 0;
  }
  .recon-hero .main-slider__item-info {
    flex: 0 0 auto;
  }
  .recon-hero__actions {
    flex: 0 0 auto;
    gap: 12px;
  }
  .recon-hero__btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}

@media (max-width: 479px) {
  .recon-hero .main-slider__item-note {
    font-size: 22px;
    margin: 0 0 12px;
  }
  .recon-hero__lead {
    font-size: 20px;
  }
  .recon-hero__text {
    font-size: 13px;
    line-height: 19px;
  }
  /* на 320 макет показывает центральную часть широкой картинки (936 × 411) */
  .recon-hero .main-slider__item-image {
    left: 50%;
    width: 936px;
    max-width: none;
    transform: translateX(-50%);
  }
}

/* ---------- Хлебные крошки (модуль 118) ---------- */
.recon-path {
  margin-top: 30px;
}

.recon-path .path {
  margin: 0 0 20px;
}

/* ---------- Что вы получите ---------- */
.recon-benefits {
  padding-bottom: 100px;
}

.recon-benefits__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.recon-benefit {
  border: 1px solid #e6e6ef;
  padding: 30px;
}

.recon-benefit__icon {
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.recon-benefit__icon_box {
  background: #e5f3de;
  padding: 9px;
}

.recon-benefit__icon_box img {
  display: block;
  width: 32px;
  height: 32px;
}

.recon-benefit__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 10px;
}

.recon-benefit__text {
  color: #85858e;
}

@media (max-width: 767px) {
  .recon-benefits {
    padding-bottom: 60px;
  }
  .recon-benefits__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .recon-benefit {
    padding: 15px;
  }
  .recon-benefit__icon {
    margin-bottom: 15px;
  }
}

/* ---------- Как наши проекты меняют дома ---------- */
.recon-projects {
  background: #f9f9fe;
  padding: 100px 0;
}

.recon-projects__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.recon-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recon-card__media {
  position: relative;
  aspect-ratio: 555 / 318;
  overflow: hidden;
  background: #e6e6ef;
}

.recon-card__slider,
.recon-card__media .slick-list,
.recon-card__media .slick-track,
.recon-card__slide {
  height: 100%;
}

.recon-card__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recon-card__slider:not(.slick-initialized) .recon-card__slide:not(:first-child) {
  display: none;
}

/* стрелки на боковых полосах фото, как в макете */
.recon-arrow {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 50px;
  height: 100%;
  padding: 0;
  border: 0;
  background: url("../img/reconstruction/arrow.svg") center no-repeat;
  cursor: pointer;
  transition: background-color 0.3s;
}

.recon-arrow:hover {
  background-color: rgba(27, 27, 32, 0.25);
}

.recon-arrow_next {
  right: 0;
}

.recon-arrow_prev {
  left: 0;
  transform: scaleX(-1);
}

.recon-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 30px;
}

.recon-card__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 10px;
}

.recon-card__text {
  color: #85858e;
  margin-bottom: 30px;
}

.recon-card__more {
  margin-top: auto;
  color: #50ac25;
  align-self: flex-start;
}

.recon-card__more:hover {
  color: #ff5018;
}

@media (max-width: 767px) {
  .recon-projects {
    padding: 60px 0;
  }
  .recon-projects__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .recon-card__body {
    padding: 15px;
  }
  .recon-card__text {
    margin-bottom: 20px;
  }
}

/* ---------- Всплывающее окно «Подробнее» ---------- */
.recon-modal .modal__body {
  width: calc(100% - 30px);
  max-width: 980px;
  background: #0d0d0d;
  color: #fff;
}

.recon-modal .modal__content {
  padding: 60px 50px 56px;
}

.recon-modal__title {
  font-weight: 700;
  font-size: 44px;
  line-height: 52px;
  margin: 0 40px 40px 0;
}

.recon-modal__sub {
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.recon-modal__text {
  font-size: 15px;
  line-height: 24px;
}

@media (max-width: 767px) {
  .recon-modal .modal__body {
    top: 40px;
  }
  .recon-modal .modal__content {
    padding: 50px 20px 30px;
  }
  .recon-modal__title {
    font-size: 26px;
    line-height: 32px;
    margin: 0 0 24px;
  }
  .recon-modal__sub {
    font-size: 18px;
    line-height: 24px;
  }
}

/* ---------- Материалы для реконструкции ---------- */
.recon-materials {
  display: flex;
  gap: 30px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.recon-materials__image {
  flex: 0 0 359px;
  width: 359px;
  height: 451px;
  object-fit: cover;
}

.recon-materials__content {
  flex: 1;
  min-width: 0;
}

.recon-materials__lead {
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #000;
  margin-bottom: 27px;
  white-space: pre-wrap;
}

.recon-materials__note {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #50ac25;
  padding: 16px 0;
  border-top: 1px solid #50ac25;
  border-bottom: 1px solid #50ac25;
  margin-bottom: 50px;
}

.recon-warranty {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 20px 7px;
  border: 1px solid #e6e6ef;
  font-weight: 700;
  text-transform: uppercase;
}

.recon-warranty__num {
  font-size: 50px;
  line-height: 68px;
}

.recon-warranty__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 16px;
  line-height: 22px;
}

.recon-warranty__text span:last-child {
  color: #50ac25;
}

@media (max-width: 991px) {
  .recon-materials__image {
    flex-basis: 260px;
    width: 260px;
  }
}

@media (max-width: 767px) {
  .recon-materials {
    flex-direction: column;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .recon-materials__image {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 611 / 768;
  }
  .recon-materials__lead {
    font-size: 16px;
    line-height: 20px;
  }
  .recon-materials__note {
    margin-bottom: 30px;
  }
  .recon-warranty {
    display: flex;
  }
}

/* ---------- Форма «Оставьте заявку на реконструкцию» ---------- */
.recon-request {
  background: #f9f9fe;
  padding: 100px 0;
}

.recon-request__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.recon-request__col {
  flex: 0 1 534px;
  min-width: 0;
}

.recon-request .recon-title {
  margin-bottom: 24px;
}

.recon-request__lead {
  line-height: 26px;
  color: #000;
  margin-bottom: 30px;
}

.recon-request__image {
  flex: 0 1 555px;
  width: 555px;
  max-width: 50%;
  height: 542px;
  object-fit: cover;
}

.recon-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.recon-form__field {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e6e6ef;
  margin: 0;
}

.recon-form__ico {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recon-form__field input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 15px 0 1px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #1b1b20;
  outline: none;
}

.recon-form__field input::placeholder {
  color: #85858e;
}

.recon-form__field:focus-within {
  border-color: #50ac25;
}

.recon-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  cursor: pointer;
}

.recon-check input {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.recon-check__box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid #e6e6ef;
  background: #fff;
}

.recon-check input:checked + .recon-check__box {
  background: #50ac25 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9' fill='none'%3E%3Cpath d='M1 4.5L4.2 7.5L11 1' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center no-repeat;
  border-color: #50ac25;
}

.recon-check input:focus-visible + .recon-check__box {
  outline: 2px solid #50ac25;
  outline-offset: 2px;
}

.recon-check__text a {
  color: #50ac25;
  text-decoration: underline;
}

.recon-form__submit {
  display: block;
  width: 100%;
  font-weight: 700;
  cursor: pointer;
}

.recon-form__thanks,
.recon-form__error {
  display: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  margin-top: 20px;
}

.recon-form__error {
  color: #ff5018;
}

@media (max-width: 767px) {
  .recon-request {
    padding: 60px 0;
  }
  .recon-request__row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .recon-request__col {
    flex: none;
  }
  .recon-request .recon-title {
    margin-bottom: 20px;
  }
  .recon-request__lead {
    margin-bottom: 20px;
  }
  .recon-form__fields {
    gap: 12px;
    margin-bottom: 12px;
  }
  .recon-request__image {
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 770 / 752;
  }
}

/* ---------- Частые вопросы ---------- */
.recon-faq {
  padding-top: 100px;
  padding-bottom: 100px;
}

.recon-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recon-faq__item {
  background: #f9f9fe;
  padding: 30px;
}

.recon-faq__q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  color: #1b1b20;
  cursor: pointer;
}

.recon-faq__q span {
  flex: 1;
}

.recon-faq__icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background: url("../img/reconstruction/icon-plus.svg") center / 26px 26px no-repeat;
}

.recon-faq__item.is-open .recon-faq__icon {
  background-image: url("../img/reconstruction/icon-plus-open.svg");
}

.recon-faq__a {
  display: none;
  margin-top: 10px;
  color: #85858e;
  line-height: 20px;
}

.recon-faq__item.is-open .recon-faq__a {
  display: block;
}

@media (max-width: 767px) {
  .recon-faq {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .recon-faq__item {
    padding: 15px;
  }
  .recon-faq__q {
    font-size: 16px;
    line-height: 20px;
  }
  .recon-faq__a {
    font-size: 14px;
    line-height: 18px;
  }
}

/* крошки выводятся внутри страницы (после баннера), штатный вывод шаблона над баннером скрываем */
body:has(.recon) .breadcrumbs-container {
  display: none;
}
