/* Локальные стили страницы «Строительство гаража из блоков».
   Подключается после main5.css. Правила действуют только внутри блоков
   этой страницы и не затрагивают остальные разделы сайта. */

/* Изображения в шапке страницы и внутри секций */
.garazh-hero__image,
.garazh-section-image {
  margin-bottom: 23px;
  background-color: #fff;
}
.garazh-hero__image img,
.garazh-section-image img {
  width: 100%;
  height: auto;
}

/* Ряд кнопок призыва к действию */
.garazh-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  column-gap: 20px;
  row-gap: 15px;
  margin-bottom: 23px;
}
.garazh-cta-row__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  padding-left: 30px;
  padding-right: 30px;
}
a.input-button-like.garazh-cta-row__button {
  padding-top: 20px;
  padding-bottom: 20px;
  text-decoration: none;
}
@media (max-width: 575px) {
  .garazh-cta-row {
    display: block;
  }
  .garazh-cta-row__button {
    margin-bottom: 15px;
  }
}

/* Галерея «Как может выглядеть баня из блоков» */
.garazh-gallery {
  padding: 30px 20px 10px 20px;
  background-color: #fff;
}
.garazh-gallery__item {
  padding: 0 10px;
  margin-bottom: 30px;
}
.garazh-gallery__item img {
  width: 100%;
  height: auto;
}
.garazh-gallery__item p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Таблица стоимости: шапка на th вместо td */
.common-table--garazh {
  width: 100%;
}
.common-table--garazh thead th {
  padding: 8px 5px;
  text-align: left;
  vertical-align: middle;
  font-weight: 500;
  color: #fff;
  background-color: #5693c9;
}
.common-table--garazh tbody td {
  vertical-align: top;
}
.common-table--garazh tbody tr:nth-child(2n+1) td {
  background-color: #f0f0f0;
}

/* Вкладки с материалами стен */
.tabs--garazh-materials .tabs__selectors {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  row-gap: 5px;
  margin-bottom: 0;
}
.tabs--garazh-materials .tabs__selector {
  padding: 15px 20px;
  font-family: 'Commissioner', sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  color: #3c85c3;
  text-align: left;
  background-color: #fff;
  border: none;
  border-top: 5px solid transparent;
  cursor: pointer;
}
.tabs--garazh-materials .tabs__selector:hover {
  color: #ec3d00;
}
.tabs--garazh-materials .tabs__selector:focus-visible {
  outline: 2px solid #ff9900;
  outline-offset: -2px;
}
.tabs--garazh-materials .tabs__selector.active,
.tabs--garazh-materials .tabs__selector.active:hover {
  color: #ec3d00;
  border-top: 5px solid #ec3d00;
  cursor: default;
}
.tabs--garazh-materials .tabs__content {
  padding: 30px 20px 10px 20px;
  margin-bottom: 23px;
  background-color: #fff;
}
.tabs--garazh-materials .tabs__content h3 {
  margin-bottom: 15px;
}
@media (max-width: 575px) {
  .tabs--garazh-materials .tabs__selectors {
    display: block;
  }
  .tabs--garazh-materials .tabs__selector {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* Блок преимуществ */
.garazh-advantages {
  margin-bottom: 23px;
}
.garazh-advantages__inner p:last-child {
  margin-bottom: 20px;
}
.garazh-advantages__inner {
  height: 100%;
  padding: 25px 20px 5px 20px;
  background-color: #fff;
}
.garazh-advantages__inner p {
  margin-bottom: 20px;
}
.garazh-advantages__inner .has-tick-bullet,
.garazh-advantages__inner .has-minus-bullet {
  display: block;
  max-width: 100%;
  margin-bottom: 6px;
  padding-left: 34px;
  font-size: 19px;
  line-height: 26px;
  overflow-wrap: break-word;
}
.garazh-advantages__inner .has-tick-bullet:before,
.garazh-advantages__inner .has-minus-bullet:before {
  top: 1px;
  width: 24px;
  height: 24px;
}
@media (max-width: 575px) {
  .garazh-advantages__inner .has-tick-bullet,
  .garazh-advantages__inner .has-minus-bullet {
    font-size: 17px;
    line-height: 24px;
  }
}

/* Карточки */
.garazh-card {
  margin-bottom: 23px;
}
.garazh-card__inner {
  height: 100%;
  padding: 25px 20px 5px 20px;
  background-color: #fff;
}
.garazh-card__inner h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 28px;
}
.garazh-card__inner p:last-child {
  margin-bottom: 20px;
}

/* Списки районов */
.garazh-districts ul {
  margin-bottom: 0;
}

/* FAQ: вопросы оформлены h3, повторяем оформление компонента FAQ */
.faq-container h3 {
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 40px;
  margin-bottom: 0;
  font-family: 'Commissioner', sans-serif;
  font-size: 21px;
  line-height: 35px;
  font-weight: 700;
  color: #3c85c3;
  transition-property: padding;
  transition: .5s;
}
.faq-container h3:hover {
  background-color: #fff;
}
.faq-container:hover h3 {
  padding-right: 40px;
}
.faq-container:first-child h3 {
  padding-right: 250px;
}
.faq-container:focus-visible {
  outline: 2px solid #ff9900;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .faq-container:first-child h3 {
    padding-right: 40px;
  }
}
@media (max-width: 575px) {
  .faq-container h3 {
    font-size: 18px;
    line-height: 27px;
  }
}

/* Форма заявки */
.garazh-form {
  padding: 30px 20px;
  background-color: #fff;
}
.garazh-form .form-item-heading {
  display: block;
  margin-bottom: 5px;
}
.garazh-form textarea {
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
}
.garazh-form__consent {
  margin-top: 15px;
  margin-bottom: 20px;
}
.garazh-form__consent span {
  padding-left: 65px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}
.garazh-form__consent span:before {
  width: 45px;
  height: 45px;
}
.garazh-form input.input-button {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 19px;
}

/* Факторы выбора основания */
.garazh-factors {
  padding: 25px 20px 5px 20px;
  margin-bottom: 23px;
  background-color: #fff;
}
.garazh-factors__list {
  margin-bottom: 0;
}
.garazh-factors__list li {
  padding-left: 20px;
  margin-bottom: 20px;
  font-family: 'Commissioner', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 200;
  border-left: 5px solid #ff9900;
}
.garazh-factors__name {
  display: block;
  font-size: 19px;
  line-height: 26px;
  font-weight: 800;
  color: #3c85c3;
  text-transform: uppercase;
}

/* Блок с видео о производстве блоков */
.garazh-video {
  padding: 30px 20px 10px 20px;
  margin-top: 23px;
  background-color: #fff;
}
.garazh-video h3 {
  margin-bottom: 15px;
}
.garazh-video .iframe-wrap {
  margin-bottom: 20px;
}

/* Подзаголовок внутри этапа строительства */
.garazh-step__name {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
  color: #3c85c3;
}

/* Подписи под формой */
.garazh-form__note {
  margin-top: 15px;
  margin-bottom: 0;
}
.garazh-form__note a {
  text-decoration: underline;
}

/* AVIF <picture> wrappers */
.banya-hero__image picture,
.banya-section-image picture,
.banya-gallery__item picture,
.garazh-hero__image picture,
.garazh-section-image picture,
.garazh-gallery__item picture {
  display: block;
  width: 100%;
}
.banya-hero__image picture img,
.banya-section-image picture img,
.banya-gallery__item picture img,
.garazh-hero__image picture img,
.garazh-section-image picture img,
.garazh-gallery__item picture img {
  width: 100%;
  height: auto;
  display: block;
}
