.back {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2b2b2b;
    margin-bottom: 25px;
}
.header .btn {
    border: 2px solid #fff;
    background-color: transparent;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    line-height: 24px;
    padding: 0px 16px;
}
.back__icon {
    width: 16px;
    height: 16px;
}
.back__text {
    font-size: 14px;
    font-weight: 200;
    line-height: 30px;
    text-decoration: none;
    padding-left: 10px;
}
.back:hover .back__text {
    opacity: .7;
}
.back:hover .back__icon .cls-1 {
    fill: #b69269;
}
.projects .projects__slider .swiper-slide {
    text-decoration: none;
    color: #000;
}
.projects .projects__slider .swiper-slide:hover .projects__slider__item__caption {
    color: #a67c52;
}

.soc-links {
    display: flex;
    margin-top: 60px;
    justify-content: start;
    gap: 20px;
}

.soc-links__less__margin {
    margin-top: 25px;
}

.soc-links__icon {
    width: 36px;
    display: block;
}

.soc-links__icon .cls-1 {
    fill: #000;
}

.soc-links__icon:hover .cls-1 {
    fill: #bd8f62;
}

.project-single__gallery__item:hover,
.project-single__gallery__item:focus,
.project-single__gallery__item:active {
    outline: none !important;
}

.project-single__gallery__item:after,
.project-list__item__caption {
    display: none !important;
}


@media (max-width: 768px) {
    h1 {
        padding-top: 60px;
    }
    .projects .projects__tabs {
        justify-content: space-around;
    }
    .soc-links {
        justify-content: center;
        margin-top: 30px;
    }
}

.th-header {
    position: relative;
    z-index: 20;
    font-family: "Stem", Arial, Helvetica, sans-serif;
}

.th-header a {
    text-decoration: none;
}

.th-header__top {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.th-header__bottom {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.th-header__row {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.th-header__logo img {
    width: 196px;
    max-width: 100%;
    height: auto;
    display: block;
}

.th-header__menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.th-header__menu a {
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
}

.th-header__menu a:hover {
    color: #e13a3e;
}

.th-header__phone {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.th-header__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.th-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #dadada;
    color: #1a1a1a;
    background: #fff;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
}

.th-header__btn--catalog {
    background: #e13a3e;
    border-color: #e13a3e;
    color: #fff;
}

.th-header__login {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.th-header__login:hover {
    color: #e13a3e;
}

@media (max-width: 1200px) {
    .th-header__menu {
        gap: 16px;
    }
    .th-header__menu a {
        font-size: 14px;
    }
    .th-header__phone {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .th-header__menu,
    .th-header__phone,
    .th-header__login {
        display: none;
    }
    .th-header__row {
        min-height: 60px;
    }
}

.th-footer {
    background: #15171c;
    color: #c9cdd5;
    padding: 56px 0 54px;
    font-family: "Stem", Arial, Helvetica, sans-serif;
}

:root {
    --bs-font-sans-serif: "Stem", Arial, Helvetica, sans-serif;
    --container-max: 1200px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 20px;
}

body {
    font-family: "Stem", Arial, Helvetica, sans-serif;
    font-size: var(--text-md);
    line-height: 1.5;
}

.b24-window-panel,
.b24-window-panel * {
    font-family: "Stem", Arial, Helvetica, sans-serif !important;
}

.th-header .container,
.th-footer .container,
.home-brands .container,
.contacts-section .container {
    max-width: var(--container-max);
}

.th-footer__grid {
    display: grid;
    grid-template-columns: 300px 190px 190px 250px;
    column-gap: 48px;
    align-items: start;
    justify-content: center;
}

.th-footer__logo img {
    width: 206px;
    height: auto;
    display: block;
}

.th-footer__feedback {
    margin-top: 24px;
    width: 240px;
    height: 36px;
    border-radius: 6px;
    background: #2a2d33;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .03em;
    font-weight: 700;
    text-decoration: none;
}

.th-footer__feedback-arrow {
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.th-footer__copyright {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #7f8490;
    font-weight: 300;
}

.th-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 2px;
    align-items: center;
    text-align: center;
}

.th-footer__nav a {
    color: #b9bec8;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
}

.th-footer__contacts {
    padding-top: 2px;
    text-align: center;
}

.th-footer__city {
    color: #95b05b;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 7px;
}

.th-footer__address,
.th-footer__worktime {
    color: #9ca2ac;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 300;
}

.th-footer__worktime {
    margin-top: 16px;
}

.th-footer__phone {
    margin-top: 12px;
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
}

@media (max-width: 1440px) {
    .th-footer__grid {
        grid-template-columns: 280px 180px 180px 230px;
        column-gap: 30px;
    }

    .th-footer__nav a {
        font-size: 13px;
    }

    .th-footer__address,
    .th-footer__worktime {
        font-size: 12px;
    }

    .th-footer__phone {
        font-size: 24px;
    }
}

/* Фоновое фото блока брендов */
.home-brands {
    background-image: url('../images/dist/p/brands-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: rgba(0, 0, 0, 0.62) !important;
    background-blend-mode: multiply !important;
}

/* Сетка логотипов: 4 колонки от xl, иначе 3 (как в app.min.css) */
.home-brands__logo {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (min-width: 1200px) {
    .home-brands__list {
        -ms-grid-columns: 1fr 1fr 1fr 1fr;
        grid-template-columns: repeat(4, 1fr);
    }

    .home-brands__list__item:nth-child(4),
    .home-brands__list__item:nth-child(7) {
        border-left: 1px solid #656565;
    }

    .home-brands__list__item:nth-child(5) {
        border-left: 0;
    }

    .home-brands__list__item:nth-child(5),
    .home-brands__list__item:nth-child(6) {
        border-bottom: 0;
    }
}

@media (max-width: 992px) {
    .th-footer {
        padding: 38px 0 40px;
    }

    .th-footer__grid {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .th-footer__feedback {
        width: 100%;
        max-width: 320px;
    }

    .th-footer__nav a {
        font-size: 18px;
    }

    .th-footer__address,
    .th-footer__worktime {
        font-size: 14px;
    }

    .th-footer__phone {
        font-size: 22px;
    }
}

.main .home-top__btn .btn,
.main .modal-dialog__btn .btn {
    background-color: rgba(121, 178, 89, 0.9) !important;
    border-radius: var(--radius-md) !important;
}

.main .btn {
    min-height: 48px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.form-callback__header {
    margin-bottom: var(--space-6);
}

.form-callback__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin-bottom: var(--space-2);
}

.form-callback__desc {
    font-size: var(--text-sm);
    color: #6e6e6e;
    line-height: 1.5;
}

.contact-form .form-item {
    width: 100%;
}

.contact-form .contact-input {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d7d7d7;
    border-radius: 0;
    color: #5d5b5b;
    font-size: var(--text-sm);
    margin: 10px 0 0 0;
    outline: none;
    padding: 10px 15px;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.25s;
    display: block;
}

.contact-form .contact-input:focus {
    border-bottom-color: #79b259;
}

.contact-form .contact-input::placeholder {
    color: #aaa;
}

.contact-form .contact-input--textarea {
    resize: none;
    min-height: 112px;
}

.contact-form #cf-file {
    display: none;
}

.cf-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #d7d7d7;
    cursor: pointer;
    transition: border-color 0.25s;
    color: #5d5b5b;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.cf-file-label:hover {
    border-bottom-color: #79b259;
}

.cf-file-label__icon {
    flex-shrink: 0;
    color: #aaa;
    transition: color 0.25s;
}

.cf-file-label:hover .cf-file-label__icon,
.cf-file-label--has-file .cf-file-label__icon {
    color: #79b259;
}

.cf-file-label__text {
    color: #aaa;
    flex: 1;
}

.cf-file-label--has-file .cf-file-label__text {
    display: none;
}

.cf-file-label__name {
    font-size: 13px;
    color: #aaa;
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cf-file-label--has-file .cf-file-label__name {
    color: #79b259;
    flex: 1;
    flex-shrink: 1;
    max-width: 100%;
}

.contact-form__btn {
    border-radius: var(--radius-md) !important;
    min-height: 48px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    padding: 0 40px !important;
    background: #79b259 !important;
    border: 1px solid #79b259 !important;
    color: #fff !important;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s !important;
    width: 100%;
    margin-top: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form__btn:hover {
    background: #68994d !important;
    border-color: #68994d !important;
    color: #fff !important;
}

.contact-form .agreed {
    display: flex;
    align-items: center;
    margin-top: var(--space-3);
    font-size: 13px;
    color: #5d5b5b;
}

.contact-form .agreed a {
    color: #1a1a1a;
    text-decoration: underline;
}

.contact-form .agreed-icon {
    background: #f2f4f7;
    border: 1px solid #333;
    border-radius: 4px;
    flex-shrink: 0;
    height: 20px;
    width: 20px;
    margin-right: 10px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.25s;
}

.contact-form .agreed-icon input {
    cursor: pointer;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    margin: 0;
    border: 0;
}

.contact-form .agreed-icon input:checked + span {
    background: #79b259;
}

.contact-form .agreed-icon span {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.contact-form .agreed-icon input:checked + span::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) translateY(-1px);
}

.raspil-prim__item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.raspil-prim__btn-site {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-3);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 var(--space-4);
    border: 0;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.raspil-prim__btn-site__label {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    font-size: var(--text-sm);
    line-height: 1.35;
}

.raspil-prim__btn-site__icon {
    flex: 0 0 auto;
    height: 14px;
    width: auto;
    display: block;
    object-fit: contain;
}

.raspil-prim__btn-site--green {
    background-color: #79b259;
}

.raspil-prim__btn-site--red {
    background-color: #9d1c1c;
}

.main .raspil-prim__item__ico {
    padding-bottom: 0 !important;
}

.main .raspil-prim__item__ico:not(:empty) {
    height: auto !important;
    min-height: 0 !important;
}

.main .raspil-prim__item__ico:empty {
    height: 10px !important;
    min-height: 10px !important;
    max-height: 10px !important;
    overflow: hidden;
}

.faq__item__title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.faq__item__title::after,
.faq__item__title::before {
    display: none !important;
    content: none !important;
}

.faq__arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.faq__item__title:not(.collapsed) .faq__arrow {
    transform: rotate(180deg);
}

.faq__arrow svg {
    display: block;
}

.step-box__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    cursor: pointer;
}

.step-box__arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.step-box__toggle:not(.collapsed) .step-box__arrow {
    transform: rotate(180deg);
}

.step-box__collapse {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.raspil-prim__item--download-center {
    background-color: #f5f5f5;
    border-radius: var(--radius-lg);
    border: 1px solid #e8e8e8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.raspil-prim__center-icon {
    width: 64px;
    height: 69px;
    object-fit: contain;
}

.raspil-prim__item--support {
    background-color: #f6f6f6;
    display: none;
}

.form-callback__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.photos__img {
    height: 304px;
}

.contacts-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.contacts-section__head {
    max-width: 620px;
    margin: 0 auto var(--space-6);
    text-align: center;
}

.contacts-section__title {
    margin: 0;
    color: #1a1a1a;
}

.contacts-section__subtitle {
    margin: var(--space-3) 0 0;
    color: #666;
    font-size: var(--text-md);
    line-height: 1.5;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px;
}

.contact-column {
    display: grid;
    gap: 14px;
    align-content: start;
}

.contact-item {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.contact-item__name {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: #95b05b;
}

.contact-item__position {
    margin: 6px 0 12px;
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    color: #4b4b4b;
}

.contact-item__position::after {
    content: "";
    display: block;
    margin-top: 8px;
    width: 56px;
    height: 1px;
    background: #b8bec8;
}

.contact-item__group-title {
    margin: 16px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
}

.contact-item__line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    color: #111111;
}

.contact-item__line i {
    width: 18px;
    margin-top: 2px;
    color: #111111;
    flex-shrink: 0;
}

.contact-item__line a,
.contact-item__line p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #111111;
    text-decoration: none;
}

.contact-item__line a:hover {
    text-decoration: underline;
}

.contact-item__messengers {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.contact-messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #95b05b;
    color: #5f7632;
    text-decoration: none;
    background: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-messenger-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.contact-messenger-btn--max {
    border-color: #95b05b;
    color: #5f7632;
    background: #f4f8eb;
}

.contact-messenger-btn--telegram {
    border-color: #95b05b;
    color: #5f7632;
    background: #f4f8eb;
}

.contact-messenger-btn:hover {
    background: #95b05b;
    color: #ffffff;
    border-color: #95b05b;
}

.contact-item--compact {
    padding: var(--space-4) var(--space-5);
}

.main .title-box {
    margin-bottom: var(--space-6);
}

.main .raspil-prim,
.main .home-brands,
.main .photos,
.main .contacts-section,
.main .th-footer {
    margin-top: var(--space-8);
}

.main .faq {
    padding-top: 0 !important;
}

.contact-item a:focus-visible,
.contact-messenger-btn:focus-visible {
    outline: 2px solid #95b05b;
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .contacts-section {
        padding-top: var(--space-7);
        padding-bottom: var(--space-7);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-item {
        padding: var(--space-4);
    }

    .contact-item__name {
        font-size: 22px;
    }

    .contact-item__line a,
    .contact-item__line p {
        font-size: 15px;
    }

    .contact-messenger-btn {
        width: 100%;
        justify-content: center;
    }

    .main .btn {
        min-height: 44px;
        padding: 0 var(--space-5);
    }

    .raspil-prim__btn-site {
        min-height: 44px;
    }

    .main .raspil-prim,
    .main .home-brands,
    .main .photos,
    .main .contacts-section,
    .main .th-footer {
        margin-top: var(--space-7);
    }
}
