/* Дополнения по макетам Simple Way, 2026-10-02. Загружается после main.css. */
.about__content { align-items: flex-start; }
.about__text { flex: 1 1 0; min-width: 0; }
.about__description { line-height: 1.55; }
.about__description ul { margin: 12px 0 18px; padding-left: 1.3em; list-style: disc; }
.about__description li { margin-bottom: 9px; }
.about__image { flex: 0 1 540px; margin: 0; }

.stats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 35px 20px; }
.stats__item { min-width: 0; }
.stats__label { max-width: 235px; line-height: 1.25; }

.reviews { padding: 70px 20px; overflow: hidden; }
.reviews__container { min-width: 0; margin: 0 auto; container-type: inline-size; }
.reviews__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; }
.reviews__title { margin: 0; color: #001d78; font: 400 clamp(24px, 2.5vw, 32px)/1.2 "Russo One", "Ubuntu", sans-serif; }
.reviews__controls { display: flex; gap: 10px; }
.reviews__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: #001d78; cursor: pointer; }
.reviews__arrow--prev img { transform: rotate(180deg); }
.reviews__arrow:disabled { background: #dcdcdc; cursor: default; }
.reviews__arrow:focus-visible, .reviews__read-more:focus-visible, .reviews__track:focus-visible { outline: none; box-shadow: 0 0 0 3px #ff9e00; }
.reviews__track { width: calc(100% + (100vw - 100cqw)/2); padding-right: 20px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__card { flex: 0 0 calc((100cqw - 40px)/3); min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 20px; background: #f0f0f0; scroll-snap-align: start; }
.reviews__person { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.reviews__avatar { display: grid; place-items: center; flex: 0 0 67px; width: 67px; height: 67px; border-radius: 50%; background: #fff; color: #001d78; font: 700 24px "Ubuntu", sans-serif; text-transform: uppercase; }
.reviews__author { flex: 1 1 100px; min-width: 0; margin: 0; color: #161616; font: 500 20px/1.2 "Ubuntu", sans-serif; overflow-wrap: anywhere; }
.reviews__date { margin-left: auto; color: #666; font-size: 16px; white-space: nowrap; }
.reviews__body { flex: 1; }
.reviews--ready .reviews__card .reviews__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.reviews__text { margin: 0; color: #161616; font: 400 16px/1.3 "Ubuntu", sans-serif; white-space: pre-line; overflow-wrap: anywhere; }
.reviews__photos { display: flex; gap: 8px; }
.reviews__photos .reviews__photo { flex: 1; min-width: 0; width: 0; }
.reviews__photo { display: block; width: 100%; height: 250px; object-fit: cover; }
.reviews__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.reviews__stars { display: flex; gap: 4px; }
.reviews__star { width: 24px; height: 24px; background: url("../svg/reviews/star.svg") center/contain no-repeat; }
.reviews__source { display: inline-flex; align-items: center; gap: 8px; color: #001d78; font: 400 14px/1.3 "Ubuntu", sans-serif; }
.reviews__read-more { display: inline-block; margin-top: 12px; border: 0; padding: 0; background: none; color: #001d78; font: 400 16px/1.3 "Ubuntu", sans-serif; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reviews__read-more[hidden] { display: none; }
.reviews__source-icon { flex: 0 0 24px; width: 24px; height: 24px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.reviews__source-icon--yandex { background-image: url("../svg/ratings/yandex-maps-logo.svg"); }
.reviews__source-icon--2gis { background-image: url("../svg/ratings/2gis-logo.svg"); }

.calculator__intro { max-width: 1000px; }
.calculator__page-title { margin: 0 0 10px; color: #001d78; font: 400 clamp(28px, 3vw, 48px)/1.2 "Russo One", "Ubuntu", sans-serif; text-transform: uppercase; }
.calculator__intro p { margin: 0; color: #161616; font: 400 16px/1.45 "Ubuntu", sans-serif; }
.calculator__banner-wrapper { min-height: 176px; height: auto; padding: 20px 30px; background-color: #001d78; }
.calculator__banner-content { gap: 12px; }
.calculator__banner-title { margin: 0; font-size: clamp(20px, 2vw, 32px); }
.calculator__banner-description { font-size: 16px; }
.calculator__covered-notice { display: flex; align-items: stretch; align-self: flex-start; max-width: 100%; background: #f0f0f0; color: #161616; }
.calculator__covered-notice[hidden] { display: none; }
.calculator__covered-notice-icon { display: grid; place-items: center; flex: 0 0 48px; min-height: 48px; background: #ff9e00; color: #fff; font: 700 40px/1 "Ubuntu", sans-serif; }
.calculator__covered-notice-text { min-width: 0; margin: 0; padding: 12px 20px; font: 400 20px/1.2 "Ubuntu", sans-serif; overflow-wrap: anywhere; }
.calculator .contact-form--inner { width: 100%; margin: 35px 0 20px; }
.calculator .contact-form--inner .contact-form__container { width: 100%; max-width: none; padding: 0; }

.news-single { margin-bottom: 60px; }
.news-single__gallery { min-width: 0; }
.news-single__gallery-stage { position: relative; height: min(32vw, 510px); min-height: 310px; background: #f0f0f0; }
.news-single__gallery-slide { width: 100%; height: 100%; margin: 0; }
.news-single__gallery-slide[hidden] { display: none; }
.news-single__gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-single__gallery-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.8); background: #001d78; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.news-single__gallery-arrow:hover:not(:disabled) { background: #123caa; }
.news-single__gallery-arrow--prev { left: 10px; }
.news-single__gallery-arrow--prev img { transform: rotate(180deg); }
.news-single__gallery-arrow--next { right: 10px; }
.news-single__gallery-arrow:disabled { opacity: 1; background: #52648c; cursor: default; }
.news-single__gallery-arrow:focus-visible, .news-single__gallery-thumb:focus-visible { box-shadow: 0 0 0 3px #ff9e00; }
.news-single__gallery-thumbs { display: flex; gap: 8px; padding-top: 12px; overflow-x: auto; }
.news-single__gallery-thumb { flex: 0 0 74px; width: 74px; height: 60px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.news-single__gallery-thumb--active { border-color: #001d78; }
.news-single__gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.contact-form--news { margin-bottom: 70px; }

.footer__legal { display: grid; gap: 16px; min-width: 0; }
.footer__social-link[href^="https://max.ru/"] img { transform: scale(1.25); }
.footer__legal-details { font: 400 14px/1.5 "Ubuntu", sans-serif; overflow-wrap: anywhere; }
.footer__legal-details a { color: inherit; text-decoration: underline; outline: none; }
.footer__legal-details a:hover { color: #fff; }
.footer__legal-details a:focus-visible { color: #fff; background: rgba(255,255,255,.15); text-decoration-thickness: 2px; }

@media (max-width: 1100px) {
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews__card { flex-basis: calc((100cqw - 20px)/2); }
}
@media (max-width: 700px) {
  .about__content { flex-direction: column; }
  .about__text { flex: 0 1 auto; }
  .about__image { flex: 0 1 auto; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats__number { font-size: 31px; }
  .reviews { padding: 45px 20px; }
  .reviews__header { align-items: flex-start; }
  .reviews__card { flex-basis: min(85cqw, 400px); padding: 20px; }
  .reviews__person { gap: 10px; }
  .reviews__avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 20px; }
  .reviews__author { font-size: 18px; }
  .reviews__date { font-size: 14px; }
  .reviews__photo { height: 190px; }
  .calculator__banner-wrapper { min-height: 150px; }
  .calculator__covered-notice-icon { flex-basis: 36px; font-size: 32px; }
  .calculator__covered-notice-text { padding: 10px 12px; font-size: 16px; line-height: 1.35; }
  .news-single__content { display: flex; flex-direction: column; }
  .news-single__title { font-size: clamp(26px, 7vw, 36px); }
  .news-single__gallery { width: 100%; order: -1; }
  .news-single__gallery-stage { height: 270px; min-height: 0; }
  .contact-form--news { margin-bottom: 45px; }
}
@media (max-width: 420px) {
  .stats__grid { gap: 10px; padding: 20px 10px; }
  .stats__number { font-size: 26px; }
  .stats__label { font-size: 13px; }
  .reviews__arrow { width: 36px; height: 36px; }
  .news-single__gallery-stage { height: 220px; }
}

/* Полный отзыв и фотографии из административной панели. */
html.has-review-dialog { overflow: hidden; }
.reviews__dialog { width: min(740px, calc(100vw - 32px)); max-height: 85vh; margin: auto; padding: 32px; border: 0; color: #161616; background: #fff; overflow-y: auto; }
.reviews__dialog::backdrop { background: rgba(0, 16, 55, .65); }
.reviews__dialog-close { float: right; width: 36px; height: 36px; margin: -12px -12px 0 12px; border: 0; background: #001d78; color: #fff; font-size: 28px; cursor: pointer; }
.reviews__dialog-close:focus-visible { outline: none; box-shadow: 0 0 0 3px #ff9e00; }
.reviews__dialog-title { margin: 0 32px 8px 0; color: #001d78; font: 500 24px/1.2 "Ubuntu", sans-serif; }
.reviews__dialog-meta { margin: 0 0 20px; font: 400 14px/1.4 "Ubuntu", sans-serif; color: #666; }
.reviews__dialog-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; }
.reviews__dialog-photos img { width: 100%; max-height: 350px; object-fit: contain; background: #f0f0f0; }
.calculator__adresses-wrapper { padding: 24px; gap: 28px; background: #e9e8e8; }
.calculator__adresses-city { gap: 28px; }
.calculator__adresses-title { margin: 0; color: #000; font: 400 26px/1.15 "Russo One", "Ubuntu", sans-serif; text-transform: uppercase; }
.calculator__adresses-title-line { display: block; }
.calculator__adresses-list { margin: 0; padding: 0; gap: 14px; font: 400 20px/1.25 "Ubuntu", sans-serif; }
.calculator__adresses-item { gap: 12px; }
.calculator__adresses-marker { width: 12px; height: 12px; margin-top: .35em; background: #001d78; }
@media (max-width: 700px) {
  .reviews__dialog { padding: 24px; }
  .calculator__adresses-wrapper { padding: 20px; }
  .calculator__adresses-city { gap: 20px; }
  .calculator__adresses-title { font-size: 20px; }
  .calculator__adresses-list { font-size: 18px; }
}

/* Общие ряды иконок, заголовков и описаний карточек тарифов. */
.tariffs-grid .tariff-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 20px; justify-items: center; align-items: start; }
.tariffs-grid .tariff-card__icon { display: flex; align-items: center; justify-content: center; min-height: 150px; }
.tariffs-grid .tariff-card__content { display: contents; }
.tariffs-grid .tariff-card__title, .tariffs-grid .tariff-card__description { width: 100%; }

.tariffs-grid .card-hover:hover .card-arrow { background-color: #ff9e00; }

/* Перетаскивание отзывов левой кнопкой мыши, как в блоке новостей. */
.reviews__track { cursor: grab; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reviews__track.is-dragging .reviews__card, .reviews__track.is-dragging .reviews__read-more { cursor: grabbing; }

/* Контакты: Figma 103:634. Контактные данные слева, карта справа. */
.contacts-page { width: min(1420px, calc(100% - 40px)); margin: 80px auto; }
.contacts-page__container { gap: 40px; }
.contacts-page__title { font-size: 40px; }
.contacts-page__overview { display: grid; grid-template-columns: 389px minmax(0, 1fr); align-items: start; gap: 40px; }
.contacts-page__info-wrapper { display: flex; flex-direction: column; gap: 50px; min-width: 0; padding-top: 28px; }
.contacts-page__info-wrapper .contact-icons { justify-content: start; gap: 50px; width: 100%; max-width: none; }
.contacts-page__info-wrapper .contact-icons__city-header { flex-wrap: wrap; }
.contacts-page__info-wrapper .contact-icons__city-note { flex: 1; min-width: 0; }
.contacts-page__info-wrapper .contact-icons__email, .contacts-page__info-wrapper .contact-icons__address { overflow-wrap: anywhere; }
.contacts-page__socials { display: flex; gap: 40px; }
.contacts-page__social-link { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: #001d78; transition: background-color .2s; }
.contacts-page__social-link:hover { background: #ff9e00; }
.contacts-page__social-link:focus-visible { outline: none; box-shadow: 0 0 0 3px #ff9e00; }
.contacts-page__social-link img { display: block; max-width: none; }
.contacts-page__map { height: 609px; min-height: 0; border-radius: 0; order: 0; }
.contacts-page__consultation.contact-form--home { width: 100%; margin: 0; }
.contacts-page__consultation .contact-form__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contacts-page__consultation .contact-form__form, .contacts-page__consultation .contact-form__ratings { max-width: none; min-width: 0; }
.contacts-page__consultation .contact-form__ratings { padding-top: 28px; }
.contacts-page__consultation .contact-form__rating--2gis::before { background-image: url("../images/ratings/simple-way-pattern.png"); }
.contacts-page__consultation .contact-form__rating-logo--2gis { -webkit-mask-image: url("../svg/contacts/2gis-mask.svg"); mask-image: url("../svg/contacts/2gis-mask.svg"); }
@media (max-width: 1100px) {
  .contacts-page { margin: 50px auto; }
  .contacts-page__overview { grid-template-columns: 340px minmax(0, 1fr); gap: 30px; }
  .contacts-page__map { height: 570px; }
  .contacts-page__consultation .contact-form__content { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .contacts-page__consultation .contact-form__ratings { padding-top: 0; max-width: 700px; width: 100%; }
}
@media (max-width: 700px) {
  .contacts-page { margin: 35px auto 45px; }
  .contacts-page__container { gap: 30px; }
  .contacts-page__title { font-size: 32px; }
  .contacts-page__overview { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .contacts-page__info-wrapper { padding-top: 0; gap: 30px; }
  .contacts-page__info-wrapper .contact-icons { gap: 30px; }
  .contacts-page__info-wrapper .contact-icons__city-header { align-items: start; }
  .contacts-page__info-wrapper .contact-icons__city-note { flex: 1 1 100%; }
  .contacts-page__map { height: 350px; }
}
