/* UX-правки по аудиту, ноябрь 2026. Подключается после styles.css. */

/* 1. Телефон в мобильной шапке */
.header-phone-mob {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fd6602;
    color: #fff;
}
.header-phone-mob svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
@media (max-width: 767px) {
    .header .container.gap-4 {
        gap: 12px !important;
    }
}

/* 2. Первый экран главной */
.hero-facts {
    list-style: none;
    padding: 0;
    margin: 22px 0 28px;
    display: grid;
    gap: 10px;
}
.hero-facts li {
    position: relative;
    padding-left: 32px;
    font-size: 18px;
    line-height: 1.35;
}
.hero-facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fd6602 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.button--ghost {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}
.button--ghost:hover {
    background: #fff;
    color: #fd6602;
}
@media (max-width: 767px) {
    .hero-facts li {
        font-size: 16px;
    }
    .hero-item__actions .button {
        width: 100%;
    }
}

/* 8. Всплывающие формы: крестик и дополнительные поля */
.modal .modal-content {
    position: relative;
}
.modal .modal-content h2 {
    padding-right: 44px;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus-visible {
    background: #fd6602;
    color: #fff;
}
.modal-close svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.form-more summary {
    cursor: pointer;
    color: #fd6602;
    font-size: 15px;
    padding: 4px 0;
    list-style: none;
}
.form-more summary::-webkit-details-marker {
    display: none;
}
.form-more summary::before {
    content: '+ ';
}
.form-more[open] summary::before {
    content: '− ';
}
.form-file {
    display: block;
    font-size: 14px;
    color: #555;
}
.form-file input {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-size: 14px;
}

/* 11. Главная: компактные плитки каталога */
.catalog--compact .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}
@media (min-width: 576px) {
    .catalog--compact .row > .col-lg-6 {
        width: 50%;
    }
}
@media (min-width: 992px) {
    .catalog--compact .row > .col-lg-6 {
        width: 33.3333%;
    }
}
.catalog--compact .category-item {
    height: 200px;
    padding: 26px 20px;
    overflow: hidden;
}
.catalog--compact img.category-item__image {
    object-position: right center;
}
.catalog--compact .category-item__text {
    font-size: 16px;
    line-height: 1.15;
    max-width: 58%;
}
.catalog--compact .category-item__title {
    font-size: 26px;
    line-height: 1.05;
    max-width: 58%;
}

/* 10. Блок «Почему выбирают» — описания видны и на телефоне */
.advantages--why .advantages-item {
    align-items: flex-start;
}
.advantages--why .advantages-item__title {
    margin-bottom: 8px;
}
@media (max-width: 991px) {
    .advantages--why .advantages-item__left {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px;
        min-height: 72px;
        padding: 16px;
    }
}

/* 9. Проекты */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}
.projects-filter button {
    border: 1px solid #fd6602;
    background: #fff;
    color: #fd6602;
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 15px;
}
.projects-filter button.is-active,
.projects-filter button:hover {
    background: #fd6602;
    color: #fff;
}
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e6e6;
    background: #fff;
}
.project-card__image {
    display: block;
    position: relative;
}
.project-card__image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}
.project-card__count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 20px;
}
.project-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.project-card__tag {
    color: #fd6602;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.project-card__title {
    font-family: 'BebasNeueBold';
    font-size: 24px;
    line-height: 1.1;
}
.project-card__text {
    font-size: 15px;
    line-height: 1.45;
    color: #444;
}
.project-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}
.project-card__facts span {
    background: #f1eeeb;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
}
.project-card__more {
    color: #fd6602;
    font-size: 15px;
    text-decoration: underline;
}
.primery-more {
    text-align: center;
    margin-top: 28px;
}

/* 13. Документы и подписи сертификатов */
.sertifikats-item__caption {
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    margin-top: 8px;
    color: #444;
}
.docs-group {
    margin-bottom: 40px;
}
.docs-group h2 {
    font-family: 'BebasNeueBold';
    font-size: 28px;
    margin-bottom: 16px;
}
.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e6e6e6;
}
.docs-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
}
.docs-list__name {
    flex: 1;
    font-size: 16px;
}
.docs-list__meta {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}
.docs-list .button {
    padding: 6px 18px;
    font-size: 15px;
}
.docs-certs .sertifikats-item__image {
    width: 100%;
    border: 1px solid #e6e6e6;
}
.product__doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 15px;
    color: #fd6602;
    text-decoration: underline;
}
@media (max-width: 575px) {
    .docs-list li {
        flex-wrap: wrap;
        gap: 6px 12px;
    }
    .docs-list__name {
        flex-basis: 100%;
    }
}

/* 14–15. Реквизиты, представители */
.requisites {
    background: #f1eeeb;
    padding: 24px 28px;
    font-size: 16px;
    line-height: 1.6;
}
.requisites__title {
    font-family: 'BebasNeueBold';
    font-size: 24px;
    margin-bottom: 8px;
}
.dealer-card {
    height: 100%;
    border: 1px solid #e6e6e6;
    padding: 22px 24px;
    font-size: 15px;
    line-height: 1.5;
}
.dealer-card__city {
    color: #fd6602;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dealer-card__name {
    font-family: 'BebasNeueBold';
    font-size: 22px;
    margin: 4px 0 10px;
}
.dealer-card a {
    color: #fd6602;
}
.footer-requisites {
    font-size: 12px;
    line-height: 1.5;
    opacity: .75;
    margin-bottom: 8px;
}

/* 17–18. Этапы работы и вопросы-ответы */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 22px 20px 20px;
    background: #f1eeeb;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #fd6602;
    color: #fff;
    font-family: 'BebasNeueBold';
    font-size: 22px;
}
.step__title {
    font-family: 'BebasNeueBold';
    font-size: 21px;
    line-height: 1.1;
    margin-bottom: 8px;
}
.step__text {
    font-size: 15px;
    line-height: 1.45;
    color: #444;
}
.steps-cta {
    text-align: center;
    margin-top: 28px;
}
.faq {
    max-width: 960px;
    margin: 0 auto;
}
.faq details {
    border-bottom: 1px solid #e6e6e6;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 40px 16px 0;
    position: relative;
    font-size: 18px;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 10px;
    font-size: 28px;
    color: #fd6602;
}
.faq details[open] summary::after {
    content: '−';
}
.faq__answer {
    padding: 0 0 18px;
    font-size: 16px;
    line-height: 1.55;
    color: #444;
}
.faq__answer a {
    color: #fd6602;
}

/* 19. Меню: подменю «Наливные полы» в две колонки, без внутренней прокрутки.
   ponytail: подписи групп привязаны к порядку пунктов (11 по объекту, 4 по типу, 4 по нагрузке);
   если порядок в дереве изменится, подправить nth-child ниже. */
@media (min-width: 992px) {
    .submenu .submenu {
        max-height: none;
        overflow: visible;
        width: 620px;
        columns: 2;
        column-gap: 0;
        padding: 6px 0;
    }
    .submenu .submenu > .menu-item {
        break-inside: avoid;
    }
    .submenu .submenu > .menu-item:nth-child(12) {
        break-before: column;
    }
    .submenu .submenu .menu-link {
        display: block;
    }
    .submenu .submenu > .menu-item:nth-child(1)::before,
    .submenu .submenu > .menu-item:nth-child(12)::before,
    .submenu .submenu > .menu-item:nth-child(16)::before {
        display: block;
        padding: 8px 12px 2px;
        font-size: 12px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #fd6602;
    }
    .submenu .submenu > .menu-item:nth-child(1)::before {
        content: 'По объекту';
    }
    .submenu .submenu > .menu-item:nth-child(12)::before {
        content: 'По типу';
    }
    .submenu .submenu > .menu-item:nth-child(16)::before {
        content: 'По нагрузке и свойствам';
    }
}
.submenu .submenu .menu-link::first-letter {
    text-transform: uppercase;
}

/* 20. Компактная шапка при прокрутке и ниже баннер на внутренних страницах */
@media (min-width: 992px) {
    .header {
        transition: padding .2s ease;
    }
    .header.header--compact {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    .header--compact .header-yandex,
    .header--compact > .container > .header-contact.d-xxl-block,
    .header--compact .header-contact__email,
    .header--compact .header-contact__clock,
    .header--compact .header-burger {
        display: none !important;
    }
    .header--compact .logo img {
        width: 150px;
    }
    .header--compact .menu {
        margin-top: 2px !important;
    }
}
section.inner-page__top {
    padding-top: 178px;
    padding-bottom: 32px;
    min-height: 0;
}
@media (max-width: 991px) {
    section.inner-page__top {
        padding-top: 96px;
        padding-bottom: 24px;
    }
}
.title-duplicate {
    display: none !important;
}

/* Мобильная панель с ценой и кнопкой на карточке товара */
.mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
}
.mbar__price {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
}
.mbar__price small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    opacity: .7;
}
.mbar .button {
    padding: 10px 18px;
    white-space: nowrap;
}
body.has-mbar .tpwidget {
    bottom: 84px;
}
body.has-mbar .cookie-warning {
    bottom: 76px;
}
body.has-mbar .scroll-btn {
    bottom: 84px;
}
@media (min-width: 992px) {
    .mbar {
        display: none;
    }
}

/* ---- Второй заход, 09.11.2026 ---- */

/* 3. Кнопки и подпись к цене */
.button--outline {
    background: transparent;
    border: 1px solid #fd6602;
    color: #fd6602;
}
.button--outline:hover {
    background: #fd6602;
    color: #fff;
}
.product-item__note {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #777;
}
.product__buttons {
    flex-wrap: wrap;
}

/* 5. Ссылки под кнопками в карточке товара */
.product__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-top: 16px;
}
.product__link {
    padding: 0;
    border: 0;
    background: none;
    color: #fd6602;
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
}
.product__link:hover {
    color: #000;
}

/* 16. Пометка для частных покупателей */
.notice-private {
    margin-top: 16px;
    padding: 12px 16px;
    border-left: 3px solid #fd6602;
    background: #f7f5f3;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
.notice-private a {
    color: #fd6602;
}

/* 7. Подборки над товарами, по группам */
.category-groups {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px 28px;
}
.category-group__title {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 8px;
}
.category-tag {
    display: inline-block;
}
.category-tag::first-letter {
    text-transform: uppercase;
}
@media (max-width: 991px) {
    .category-groups {
        grid-template-columns: 1fr;
    }
}

/* 21. Новый логотип */
@media (min-width: 992px) {
    .about .about__image {
        width: 106px;
        height: auto;
    }
}
@media (max-width: 767px) {
    .header .logo {
        width: 170px !important;
    }
}
