/* ============================= */
/*            VARIABLES          */
/* ============================= */

:root {
    --color-primary: #ff5319;
    --color-primary-hover: #fc6f40;
    --color-text: #4c4843;
    --color-light-text: #a5a19d;
    --color-text-hover: #292929;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #d9d9d9;
    --color-white: #ffffff;

    --font-family: 'Exo 2', sans-serif;
}

/* ============================= */
/*            RESET              */
/* ============================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-text);
    background-color: var(--color-white);
}
.layout-debug- {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    height: 100%;
    min-height: 100vh;

    background: url('images/bg.jpg') top center no-repeat;

    opacity: 0.2;
    pointer-events: none;
    z-index: 9999;
    filter: grayscale(1);

    min-height: 8299px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}
.text-center {
    text-align: center;
}
.link {
    text-decoration: underline;
}
/* ============================= */
/*            ROWS COLS          */
/* ============================= */
.flex-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* ============================= */
/*               INPUT           */
/* ============================= */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px
}
.input-group {
    border-radius: 8px;
    padding: 10px 16px 11px;
    width: 100%;
    height: 56px;
    background-color: var(--color-gray-100);
    display: flex;
    flex-direction: row;
}
.input-group input {
    border: none;
    background-color: transparent;
}

/* ============================= */
/*            BUTTONS            */
/* ============================= */
.btn {
    border-radius: 8px;
    border: none;
    padding: 10px 32px 12px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: 16px;
    line-height: 150%;

    gap: 10px;

    color: var(--color-text);
    cursor: pointer;
}
.btn:hover {
    color: var(--color-primary);
}

.btn-light {
    color: var(--color-text);
    background-color: var(--color-white);
}
.btn-light:hover {
    color: var(--color-text);
    background-color: var(--color-gray-200);
}
.btn-primary {
    color: var(--color-white);
    background-color: var(--color-primary);
}
.btn-primary:hover {
    color: var(--color-white);
    background-color: var(--color-primary-hover);
}
.btn-secondary  {
    color: var(--color-white);
    background-color: var(--color-text);
}
.btn-secondary:hover {
    color: var(--color-white);
    background-color: var(--color-text-hover);
}


.flex-1 { flex: 1; }
.w-100 {    width: 100%; }

/* ============================= */
/*         TYPOGRAPHY           */
/* ============================= */

h1 {
    margin: 0 0 24px;
    font-weight: 700;
    font-size: 40px;
    line-height: 115%;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

h2 {
    margin: 0 0 20px;
    font-weight: 600;
    font-size: 32px;
    line-height: 130%;
    color: var(--color-text);
}

h3 {
    margin: 0 0 16px;
    font-weight: 600;
    font-size: 24px;
    line-height: 115%;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

@media (max-width: 768px) {
    h2,
    .rubber__title {
        font-size: 28px;
        line-height: 115%;
        letter-spacing: 0.05em;
    }
}

/* ============================= */
/*           LAYOUT             */
/* ============================= */

.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    padding: 16px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-main {
    min-height: 60vh;
}

.site-footer {
    padding: 64px 0 40px;
    background: var(--color-white);
}
.site-footer__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.site-footer__row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.site-footer__row .col {
    flex: 1;
}
.site-footer__logo {
    display: block;
    margin-bottom: 32px;
}
.site-footer__title {
    font-weight: 600;
    font-size: 20px;
    color: #4c4843;
    margin-bottom: 16px;
}
.site-footer__contact {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 2px 0;
}
.site-footer__phone {
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    text-align: right;
    color: #4c4843;
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.site-footer__menu {
    list-style: none;
    padding: 0;
    line-height: 1.5;
    font-weight: 300;
    font-size: 16px;

    color: #4c4843;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.bx-breadcrumb {
    margin-top: 48px;
}

/* ============================= */
/*           UTILS              */
/* ============================= */

.text-primary {
    color: var(--color-primary);
}

.fill-primary {
    fill: var(--color-primary);
}

/* ============================= */
/*       HEADER STYLES           */
/* ============================= */

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    font-family: var(--font-family);
}

/* Верхняя строка */
.site-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    font-size: 14px;
    color: var(--color-text);
}

.site-header__top a {
    color: var(--color-text);
    text-decoration: none;
}

/* Адрес */
.site-header__left {
    display: flex;
    align-items: center;
    gap: 32px; /* адрес прижат к логотипу */
}

.site-header__address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--color-text);
}

.site-header__address svg {
    flex-shrink: 0;
}


/* контакты в шапке */
.site-header__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto; /* прижимаем весь блок вправо */
}

/* Контакты (колонка) */
.site-header__contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    text-align: right; /* текст вправо */
}

/* Отступ 24px между контактами и иконкой */
.site-header__messenger {


    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-gray-100);

    transition: background 0.3s;
}

.site-header__phone {
    display: flex;
    flex-direction: row;
    font-weight: 600;
    font-size: 20px;
    gap: 12px;
}

.site-header__email {
    font-size: 16px;
}




.site-header__button .btn {
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.site-header__button .btn:hover {
    background-color: #e24b15; /* немного темнее при ховере */
}

/* Нижняя строка */
.site-header__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px; /* отступ между строками */

}

.site-header__nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}


.site-menu__item a {
    height: 48px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-menu__item.active {
    font-weight: 600;
}

/* ============================= */
/*       HOME PAGE STYLES        */
/* ============================= */
.banner.banner--main {
    height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--color-gray-100); /* временно, можно убрать */
    background-image: url('images/banner-main-cover.jpg');
}
@media (max-width: 768px) {
    .banner.banner--main {
        background-position: -100%;
        background-size: auto 100%;
        height: 320px;
    }
}


/* ============================= */
/*         BLOCK: ROLL           */
/* ============================= */

.roll {
    background: var(--color-white);
    padding: 100px 0;
}

.roll__container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.roll__content {
    flex: 1;
    max-width: calc(50% - 10px);
    padding: 48px;
}

.roll__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 40px;
    line-height: 115%;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 24px;
}

.roll__text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-text);
}

/* Правая колонка: селекторы */
.roll__selectors {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    max-width: 600px;
}

.roll__selector {
    background: var(--color-gray-100);
    border-radius: 8px;
    padding: 24px 32px;
    width: 592px;
    height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roll__selector label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.roll__selector select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Кнопка */
.roll__btn {
    margin-top: 32px;
    width: 242px;
    height: 46px;
    border-radius: 8px;
    padding: 10px 20px 12px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.roll__btn:hover {
    opacity: 0.85;
}

/* Адаптив */
@media (max-width: 992px) {
    .roll__container {
        flex-direction: column;
        align-items: center;
    }
    .roll__selector {
        width: 100%;
        max-width: 592px;
    }
}


/* ============================= */
/*          BLOCK: SAMPLES       */
/* ============================= */

.samples {
    background: var(--color-gray-100);
    padding: 160px 0 151px; /* сверху и снизу */
    margin: 0 0 100px;
}

.samples__content {

    margin: 0 auto;
    text-align: left;
}

.samples__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 40px;
    line-height: 115%;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 24px;
}

.samples__text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-text);
    margin-bottom: 30px;
}

.samples__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 215px;
    height: 40px;
    padding: 10px 20px 12px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.samples__btn:hover {
    opacity: 0.85;
}

/* Адаптив */
@media (max-width: 768px) {
    .samples {
        padding: 40px 0 48px;
        margin: 0 0 64px;
    }
    .samples__content {
        padding: 0 20px;

    }
}


/* ============================= */
/*         BLOCK: BENEFITS       */
/* ============================= */
.benefits__bg {
    height: 400px;
    background-image: url("images/cta-banner-cover.jpg");
}

.benefits__content {
    padding: 90px 80px;
}

/* ============================= */
/*        CALCULATOR BLOCK        */
/* ============================= */

.calculator {
    background-color: var(--color-white);
    padding: 100px 0;
}

.calculator__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Левая колонка: картинка */
.calculator__image img {
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    object-fit: cover;
}

/* Правая колонка: контент */
.calculator__content {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.calculator__bg {
    position: absolute;
    inset: 0;
    background: var(--color-gray-100);
    border-radius: 12px;
    z-index: 1;
}

.calculator__text {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 40px;
}

.calculator__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
    line-height: 130%;
    color: var(--color-text);
    margin-bottom: 20px;
}

.calculator__description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-text);
    margin-bottom: 30px;
}

.calculator__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 215px;
    height: 40px;
    padding: 10px 20px 12px;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.calculator__btn:hover {
    opacity: 0.85;
}
/* Адаптив для мобильных */
@media (max-width: 992px) {
    .calculator__container {
        flex-direction: column;
    }
    .calculator__image img,
    .calculator__text {
        max-width: 100%;
    }
    .calculator__text {
        padding: 20px;
    }
}


/* ============================= */
/*     РАБОТАЕМ ПО ВСЕ РОССИИ    */
/* ============================= */
.geography__bg {
    background: #f3f3f3; /* light gray */
    padding: 80px 0;
}

.geography__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 40px;
    line-height: 115%;
    letter-spacing: 0.05em;
    color: #4c4843;

}

.geography__map {
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    height: 600px;
    max-width: 1300px;
}


/* ============================= */
/*          FAQ_CONTACT          */
/* ============================= */
section.faq-contact {
    background-color: var(--color-text);
    background-image: url('images/bg/faq-contact-bg.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto 100%;
    color: var(--color-white);
    padding: 80px 0;
}
.faq-contact__row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.faq-contact__form {
    padding: 0 80px 0 0;
    max-width: 50%;
}
.faq-contact__title {
    color: var(--color-white);
    font-weight: 700;
    font-size: 40px;
    line-height: 115%;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}
.faq-contact__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
}
.faq-contact__image img {
    border-radius: 20px;
    overflow: hidden;
}
.faq-contact .form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-contact .form-field-container input,
.faq-contact .form-field-container textarea {
    color: white;
    border-radius: 8px;
    padding: 10px 16px 11px;
    width: 580px;
    max-width: 100%;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
}
.faq-contact .form-field-container *::placeholder {
    color: var(--color-white);
}
.faq-contact textarea {
    height: 102px;
}

@media (max-width: 768px) {
    .faq-contact__row {
        flex-direction: column;
    }
    .faq-contact__form {
        max-width: 100%;
        padding: 0;
    }
}


/* ============================= */
/*          FAQ            */
/* ============================= */
.faq {
    padding-bottom: 100px;
}
.faq__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 40px;

    letter-spacing: 0.05em;
    text-align: center;
    color: #4c4843;
    margin: 120px auto 40px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq__item {
    border-radius: 8px;

    width: 100%;

    background: #f3f3f3;
}
.faq__head {
    display: flex;
    flex-direction: row;

    width: 100%;
    min-height: 72px;


    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 22px 24px;

    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    color: #4c4843;
}
.faq__question {
    cursor: pointer;
}
.faq__answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq__answer-inner {
    padding: 2px 16px 20px 24px;

    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #4c4843;
    max-width: 820px;
}

.faq__item.active .faq__answer {
    opacity: 1;
}
.faq__toggle {
    cursor: pointer;
    width: 40px;
    flex: none;
}
.faq__toggle img {
    transition: transform 0.3s ease;
}
.faq__item.active .faq__toggle img {
    transform: rotate(180deg);
}
@media (max-width: 768px) {
    .faq {
        padding-bottom: 64px;
    }
    .faq__title {
        font-weight: 700;
        font-size: 28px;
        line-height: 115%;
        letter-spacing: 0.05em;
    }
    .faq__head {
        align-items: flex-start;
    }
}

/* ============================= */
/*          CONTACTS             */
/* ============================= */
.page-contacts__content {
    width: calc(100% / 12 * 5);
    border-radius: 20px;
    padding: 40px 40px 48px;
    background-color: var(--color-gray-100);
}
.bx-yandex-view-layout {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
}
.bx-yandex-map {
    width: 100% !important;
}
.page-contacts__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.page-contacts__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.page-contacts__item .label {
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #a5a19d;
}

/* ============================= */
/*          FORM-INLINE          */
/* ============================= */
.form-inline {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}
.form-control {
    border: none;
    border-radius: 8px;
    padding: 10px 16px 12px;
    height: 48px;
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
}

.form-inline .form-control {flex: 1;}

@media (max-width: 768px) {
    .form-inline {
        flex-wrap: wrap;
    }
    .form-inline .btn {
        width: 100%;
    }

}

.alert.alert-warning.alert-dismissible.show {
    display: none;

    flex-direction: row;
    /*background-color: var(--color-primary);*/
    background-color: #ff531929;
    border: var(--color-primary-hover) 1px solid;
    color: var(--color-white);
    border-radius: 8px;
    padding: 10px 16px 12px;
    margin-bottom: 16px;
    justify-content: space-between;
}
.alert.alert-warning.alert-dismissible.show {
    display: flex;
}


.section-question {
    background-color: var(--color-text);
    background-image: url(images/bg/section-question-bg.svg);
    background-position: left bottom;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 80px 0;
    margin-top: 100px;
}
.block-question-form {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.block-question-description {
    flex: 1;
    flex-direction: column;

}

.block-question-description h2 {
    font-weight: 600;
    font-size: 32px;
    line-height: 115%;
    letter-spacing: 0.05em;
    color: #fff;
}
.block-question-description p {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
}

.block-question-form form {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: calc((100% - 20px) / 2);

}

.block-question-form form .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 16px 11px;
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
}
.block-question-form form .privacy-text {
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    color: #dadada;
}
.block-question-form form .form-control::placeholder {
    color: #dadada;
}

@media (max-width: 768px) {
    .section-question {
        padding: 48px 0;
    }
    .block-question-form {
        flex-direction: column;
    }
    .block-question-description h2 {
        font-size: 24px;
    }
    .block-question-form form{
        width: 100%;
    }
}

Basic Modal Styles
\**************************/

.modal {
    font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.modal__close {
    background: transparent;
    border: 0;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0,0,0,.8);
}

.modal__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0,0,0,.8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.modal__btn:focus, .modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.modal__btn-primary {
    background-color: #00449e;
    color: #fff;
}



/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mmslideIn {
    from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}