/*
    RzhevskyRobotics 2024
    CyberneticCore Team
    style.css
    Author: Burdin E.A.
*/

/* ==== ШРИФТЫ ==== */
@font-face {
    font-family: "InvolveMedium";
    src: url('../fonts/Involve-Medium.ttf');
}

@font-face {
    font-family: "InvolveRegular";
    src: url('../fonts/Involve-Regular.ttf');
}

@font-face {
    font-family: "InvolveBold";
    src: url('../fonts/Involve-Bold.ttf');
}

/* ==== БАЗА ==== */
* {
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    background: white;
    color: #FFFEE4;
    font-family: 'Chava';
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

input,
select,
textarea {
    font-size: 16px;
}

h1 {
    font-family: 'Chava';
}

a {
    text-decoration: none;
}

img:active {
    -webkit-tap-highlight-color: transparent;
}

.highlight {
    background-color: yellow;
}

/* ==== HEADER ==== */
header {
    display: flex;
    background: #7E8E18;
    color: white;
    height: 220px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-family: 'InvolveRegular';
}

.logo__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo__header__mobile {
    display: none;
}

.name__box {
    display: flex;
    padding: 0 90px;
    flex-direction: column;
    background-image: url("../image/Rectangle.svg");
    background-repeat: no-repeat;
    background-position: left;
    background-size: 80px;
}

.name__box h1 {
    font-family: 'InvolveBold';
    font-size: 4.4em;
}

.name__box h3 {
    font-size: 1.1em;
    font-family: 'InvolveRegular';
    font-weight: 500;
}

.button__box {
    padding: 0 90px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.button__box button {
    padding: 10px 16px;
    border-radius: 40px;
    background-color: white;
    border: none;
    font-size: 1.3em;
    font-family: 'InvolveRegular';
    margin-right: 40px;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

.button__box button:hover {
    background-color: #dddddd;
}

.button__box button:active {
    transform: scale(0.95);
}

.text__block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text__block p,
.text__block a {
    font-family: 'InvolveRegular';
    font-size: 1.3em;
}

.text__block a {
    cursor: pointer;
    color: white;
}

.search__block {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.input__box {
    margin-top: 20px;
    width: 100%;
    padding: 0 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'InvolveRegular';
    position: relative;
    gap: 20px;
}

.input__box input {
    width: 1000px;
    max-width: 100%;
    padding: 8px 10px 8px 40px;
    border-radius: 10px;
    border: none;
    font-size: 1.1em;
    font-family: 'InvolveRegular';
}

.input__box input::placeholder {
    font-family: 'InvolveRegular';
}

.input__box::before {
    content: '';
    background: url('../image/search.svg') no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 1;
}

.input__box button {
    padding: 10px 40px;
    border-radius: 10px;
    border: none;
    font-size: 1.1em;
    background-color: #516050;
    color: white;
    transition: transform 0.1s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
}

.input__box button:hover {
    background-color: #6b7d69;
}

.input__box button:active {
    transform: scale(0.95);
}

footer:not(.footer) {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 40px;
    color: #FFFEE4;
}

/* ==== МОДАЛКИ ==== */
.modal,
.modal__applications,
.modal__more {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100dvh;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #7E8E18;
    margin: max(16px, env(safe-area-inset-top)) auto;
    padding: 20px;
    border: 2px solid white;
    width: min(520px, 100%);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    position: relative;
}

.modal-content h2 {
    font-family: 'InvolveRegular';
}

.modal-content.error {
    background-color: #f24545;
}

.modal-content-data-style {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.modal__content__applications {
    background-color: #7E8E18;
    margin: 0 auto;
    padding: 20px 16px;
    border: 2px solid white;
    width: min(560px, 100%);
    min-height: unset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    position: relative;
    max-height: calc(100dvh - 24px);
}

.modal__content__applications .contact__form {
    width: 420px;
    /* height: 380px; */
    display: flex;
    align-items: center;
    background-color: transparent;
    margin: 0;
}

.modal__content__applications .contact__form p {
    color: white;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.modal__content__applications .contact__form p.error {
    color: #fff423;
    font-family: 'InvolveRegular';
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 3px;
}

.modal__content__applications .contact__form h3 {
    color: white;
}

.modal__content__applications .contact__form button {
    background: white;
    color: #7E8E18;
    font-weight: bold;
    transition: transform 0.1s ease-in-out;
    cursor: pointer;
}

.modal__content__applications .contact__form button:active {
    transform: scale(0.95);
}

.modal__content__more {
    background-color: #7E8E18;
    margin: max(16px, env(safe-area-inset-top)) auto;
    padding: 40px;
    border: 1px solid white;
    width: min(760px, 100%);
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
}

.modal__content__more h3 {
    font-family: 'InvolveRegular';
    font-size: 1.6em;
    margin-bottom: 20px;
}

.block__more {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-family: 'InvolveRegular';
}

.block__more h3 {
    font-size: 1.6em;
}

.block__more__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.block__more__text span {
    font-weight: bold;
    margin-right: 0;
    font-size: 1em;
}

.block__more__text p {
    font-size: 1.1em;
    margin: 0;
    width: 100%;
}

.block__more__text:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

#box-modal,
#box-modal-more,
#box-modal-applications {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#box-modal .modal-content,
#box-modal-more .modal__content__more,
#box-modal-applications .modal__content__applications {
    margin: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
}

/* ==== ОСНОВНОЙ КОНТЕНТ ==== */
.main-container {
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Chava';
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.box__main {
    width: 100%;
    height: 64vh;
    background-image: url("../image/background.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position-y: -40px;
}

.main__header {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: white;
    height: 40px;
}

.menu__box {
    padding: 0 8px;
    width: 50%;
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 1.2em;
    font-family: 'InvolveRegular';
}

.menu__box a {
    cursor: pointer;
    color: black;
}

.menu__box a:hover {
    font-weight: bold;
}

.main__header__mobile {
    display: none;
}

.catalog-dropdown {
    position: relative;
}

.catalog-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.catalog-dropdown:hover .catalog-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalog-menu a {
    padding: 8px 20px;
    color: #555;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.catalog-menu a:hover {
    background: #f8f9fa;
    color: #7E8E18;
    padding-left: 25px;
}

.catalog-menu .catalog-menu__separator {
    height: 1px;
    background: #d0d0d0;
    margin: 6px 12px;
}

.block__product {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-image: url("../image/background__block.svg");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 400px;
}

.block__product2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-size: 400px;
}

.h2__box {
    margin-top: 50px;
    display: flex;
    align-items: center;
    color: #516050;
}

.h2__box img {
    margin-right: 10px;
    width: 60px;
}

.h2__box h2 {
    font-family: 'InvolveBold';
    font-size: 3.5em;
}

.h2__box__mobile,
.h3__box__mobile,
.box__product__card__mobile {
    display: none;
}

.h3__box {
    width: 60%;
    padding: 20px 0 0 70px;
    display: flex;
    align-items: center;
    color: #516050;
}

.h3__box h3 {
    font-family: 'InvolveRegular';
    font-size: 1.4em;
}

.box__product__card {
    padding: 90px 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
}

.box__product__card2 {
    padding: 40px 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
}

.card__product {
    width: 350px;
    height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: black;
    font-family: 'InvolveRegular';
}

.card__product h3 {
    width: 100%;
    text-align: center;
}

.card__product img {
    width: 280px;
}

.card__product span {
    color: #A2B52F;
    font-size: 1.4em;
}

.card__product p {
    text-align: center;
}

.card__product a {
    margin-top: 10px;
    font-weight: bold;
    cursor: pointer;
}

.card__product button {
    margin-top: 10px;
    padding: 10px 24px;
    border-radius: 40px;
    background-color: #A2B52F;
    color: white;
    border: none;
    font-size: 1.3em;
    font-family: 'InvolveRegular';
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

.card__product button:hover {
    background-color: #7e8e26;
}

.card__product button:active {
    transform: scale(0.95);
}

.block__text {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #7E8E18;
    background-image: url("../image/background__block__3.svg");
    background-position: bottom right;
    background-repeat: no-repeat;
    color: white;
    font-family: 'InvolveRegular';
}

.text__box {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    padding: 60px 80px;
    font-size: 1.8em;
}

.text__box h3 {
    margin-bottom: 10px;
    font-weight: bold;
    text-align: start;
    font-size: 1.8em;
}

.block__text__mobile {
    display: none;
}

.text__box__installation {
    width: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: black;
    font-family: 'InvolveRegular';
}

.text__box__installation span {
    font-weight: bold;
    font-size: 2em;
    margin-bottom: 10px;
    color: #A2B52F;
}

.text__box__installation p {
    width: 80%;
    font-size: 1.4em;
}

.block__form {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-image: url("../image/kontak__form.svg");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-color: #7E8E18;
    color: white;
    background-size: 25%;
}

.block__form2 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #7E8E18;
    color: white;
}

.block__form2 .h2__box,
.block__form .h2__box {
    color: white;
}

.block__form .h2__box h2 {
    white-space: normal;
}

.contact__form {
    padding: 40px;
    margin: 40px 76px;
    /* width: 520px; */
    /* height: 380px; */
    background-color: white;
    border-radius: 20px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'InvolveRegular';
}

.contact__form p {
    width: 460px;
    font-size: 1em;
    margin-bottom: 10px;
}

.contact__form p.error {
    color: #f11e1e;
    font-family: 'InvolveRegular';
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 3px;
}

.contact__form input {
    width: 380px;
    padding: 8px;
    border-radius: 14px;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact__form input::placeholder {
    padding-left: 10px;
}

.contact__form h3 {
    font-size: 2em;
}

.contact__form button {
    width: 280px;
    padding: 10px;
    border-radius: 14px;
    font-size: 1.2em;
    background-color: #7e8e18;
    color: white;
    border: none;
}

.block__info {
    width: 80%;
    margin: 40px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'InvolveRegular';
}

.info__card a {
    color: white;
    margin-bottom: 10px;
    font-size: 1.6em;
}

.info__card h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.info__card p {
    margin-bottom: 10px;
    font-size: 1.6em;
}

.info__card img {
    width: 240px;
    margin-bottom: 10px;
    border-radius: 20px;
}

.info__card .vk__img {
    margin-top: 20px;
    width: 80px;
}

.footer {
    display: none;
}

/* ==== MOBILE ==== */
@media only screen and (max-width: 667px) {
    html,

    body {
        width: 100%;
        height: 100dvh;
        position: absolute;
        inset: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
     
    }

    header {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 150px !important;
        margin: 0 !important;
        z-index: 3000 !important;
        border-radius: 0 0 40px 0 !important;
    }

    .main-container {
        position: absolute !important;
        top: 150px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
  

        padding-bottom: 140px !important;
        justify-content: flex-start !important;
    }

    .logo__header {
        display: none;
    }

    .logo__header__mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .name__box__mobile {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background-image: url("../image/Rectangle.svg");
        background-repeat: no-repeat;
        background-position: left;
        background-size: 35px;
    }

    .name__box__mobile h1 {
        font-family: 'InvolveRegular';
        margin-left: 40px;
    }

    .logo__header__mobile h3 {
        margin-left: 40px;
        font-size: 0.7em;
        font-weight: 500;
    }

    .search__block,
    .main__header,
    .box__main,
    .h2__box,
    .h3__box,
    .box__product__card,
    .box__product__card2,
    .text__box,
    .block__text {
        display: none;
    }

    .main__header__mobile {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        background-color: white;
    }

    /* .sticky-header {
        position: static;
        top: auto;
        z-index: auto;
    } */

    .sticky-header {
        top: 0 !important;
        z-index: 2500 !important;
    }

    .number__box__mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 10px;
    }

    .img__box__mobile {
        display: flex;
        color: black;
        font-family: 'InvolveRegular';
        font-weight: bold;
        font-size: 1.2em;
    }

    .img__box__mobile img {
        margin-right: 5px;
        width: 30px;
    }

    .img__box__mobile a {
        color: black;
    }

    .main__header__mobile button {
        padding: 10px 10px;
        border-radius: 40px;
        background-color: white;
        border: 6px solid #7E8E18;
        color: black;
        font-size: 1em;
        font-family: 'InvolveRegular';
        cursor: pointer;
        transition: transform 0.1s ease-in-out;
    }

    .main__header__mobile button:active {
        transform: scale(0.95);
    }

    .block__product {
        background-image: none;
    }

    .h2__box__mobile {
        width: 100%;
        display: flex;
        align-items: center;
        background-color: #7E8E18;
        color: white;
        font-family: 'InvolveRegular';
    }

    .h2__box__mobile h2 {
        padding: 20px 40px;
        font-size: 2em;
        text-wrap: wrap;
    }

    .h3__box__mobile {
        width: 100%;
        display: flex;
        align-items: center;
        color: #4c550f;
        font-family: 'InvolveRegular';
    }

    .h3__box__mobile h3 {
        width: 100%;
        padding: 20px;
        font-size: 1.2em;
        text-wrap: wrap;
        text-align: center;
    }

    .box__product__card__mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 20px 0;
    }

    .button__block__line__mobile {
        width: 80%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin-top: 30px;
        gap: 10px;
    }

    .box__button {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        background: white;
        color: black;
        border: 2px solid #7E8E18;
        border-radius: 15px;
        font-family: 'InvolveRegular';
        cursor: pointer;
    }

    .box__button span {
        font-weight: bold;
    }

    .box__button.active {
        background: #7E8E18;
        border: 2px solid #4c550f;
        color: white;
    }

    .swiper-container {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .card__product {
        text-align: center;
        padding: 20px;
        border-radius: 10px;
        height: auto;
        width: auto;
    }

    .swiper-button-next,
    .swiper-button-prev {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .block__text__mobile {
        padding: 60px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        color: white;
        font-family: 'InvolveRegular';
        background-color: #7E8E18;
        background-image: url("../image/bakcground__mobile1.svg"), url("../image/background__mobile2.svg");
        background-position: top right, bottom left;
        background-repeat: no-repeat;
        background-size: auto;
    }

    .text__box__mobile {
        width: 80%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
        padding-top: 60px;
        padding-bottom: 20vh;
        font-size: 1.4em;
    }

    .text__box__mobile h3 {
        margin-top: 40px;
        margin-bottom: 10px;
        font-weight: bold;
        text-align: start;
        font-size: 1.4em;
    }

    .text__box__installation {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        color: black;
        font-family: 'InvolveRegular';
        padding: 20px 40px;
    }

    .text__box__installation span {
        width: 80%;
        font-size: 1.8em;
        text-wrap: wrap;
        margin-bottom: 10px;
        margin-top: 20px;
    }

    .contact__form {
        padding: 20px;
        margin: 40px 40px;
        width: 310px;
        height: fit-content;
        background-color: white;
        border-radius: 20px;
        color: black;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: 'InvolveRegular';
    }

    .contact__form p {
        width: 280px;
        margin-bottom: 10px;
        font-size: 0.8em;
    }

    .contact__form input {
        width: 280px;
        padding: 6px;
        border-radius: 14px;
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .contact__form h3 {
        font-size: 2em;
    }

    .contact__form button {
        width: 220px;
        padding: 10px;
        border-radius: 14px;
        font-size: 1.2em;
        background-color: #7e8e18;
        color: white;
        border: none;
    }

    .block__form {
        width: 100%;
        height: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #7E8E18;
        color: white;
        background-image: none;
    }

    .block__form2 {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #7E8E18;
        color: white;
        padding-bottom: 120px;
    }

    .block__info {
        height: auto;
        width: 100%;
        margin: 40px 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        background-color: #7E8E18;
        padding-bottom: 40px;
    }

    .info__card {
        padding: 40px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: 'InvolveRegular';
    }

    .info__card h3 {
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
        font-size: 1.8em;
    }

    .info__card p {
        margin-bottom: 10px;
        font-size: 1.6em;
    }

    .info__card img {
        display: none;
    }

    .info__card .vk__img {
        display: block;
        margin-top: 20px;
        margin-bottom: 60px;
        width: 80px;
        cursor: pointer;
    }

    #box-elem6-green {
        width: 90%;
    }

    .modal,
    .modal__applications,
    .modal__more {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }

    .modal-content,
    .modal__content__applications,
    .modal__content__more {
        border-radius: 18px;
    }

    .modal__content__more h3 {
        text-align: left;
        font-size: 1.35em;
        padding-right: 36px;
        margin-bottom: 16px;
    }

    .block__more {
        gap: 10px;
    }

    .block__more__text {
        gap: 4px;
        padding-bottom: 10px;
    }

    .block__more__text span,
    .block__more__text p {
        text-align: left;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    #box-modal-applications .modal__content__applications {
        width: min(340px, calc(100vw - 24px)) !important;
        min-height: unset !important;
        height: auto !important;
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }

    #box-modal-applications .contact__form {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        color: white !important;
        align-items: center !important;
    }

    #box-modal-applications .contact__form input {
        width: 100% !important;
        max-width: 280px !important;
    }

    #box-modal-applications .contact__form p {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
    }

    #box-modal-applications .contact__form button {
        width: auto !important;
        max-width: 100% !important;
    }

    #box-modal-more .modal__content__more,
    #box-modal .modal-content {
        width: min(340px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }

    .footer {
        display: flex !important;
        position: fixed !important;
        left: 8px !important;
        right: auto !important;
        bottom: 8px !important;
        /* width: auto !important; */
        width: 96px !important;
        height: 56px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #7E8E18 !important;
        color: white !important;
        border-radius: 28px !important;
        z-index: 5000 !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        overflow: hidden !important;
        transform: none !important;
        /* transition: left 0.25s ease !important;   плавное выезжание */
        transition: width 0.3s ease !important;
    }

    /* Свёрнутый футер: контент с ссылками/поиском скрыт */
    .footer .footer__menu__content {
        display: none !important;
    }

    /* Развёрнутый футер — занимает всю ширину и показывает контент */
    .footer.expanded {
        /* right: 8px !important; */
        width: calc(100vw - 16px) !important;
    }

    .footer.expanded .footer__menu__content {
        display: flex !important;
        overflow: visible !important;
        min-width: 0 !important;
    }

    .footer.footer__white {
        background: white !important;
    }

    .footer.footer__white .footer-main > a,
    .footer.footer__white .footer-catalog__toggle {
        color: #7E8E18 !important;
    }

    .footer__menu {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 14px !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    .footer__menu__content {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .footer-main {
        display: flex;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .footer-main > a,
    .footer-catalog__toggle {
        color: white !important;
        font-family: 'InvolveRegular' !important;
        font-size: 0.95em !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .footer-catalog {
        position: relative !important;
    }

    .footer-catalog__toggle::after {
        content: " ▾";
        font-size: 0.8em;
        display: inline-block;
        transition: transform 0.2s ease;
    }

    .footer-catalog__toggle.active::after {
        transform: rotate(180deg);
    }

    .footer__menu img#search-toggle,
    .footer__menu img#menu-toggle {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
        display: block !important;
        cursor: pointer !important;
    }

    .footer-catalog__dropdown {
        position: fixed !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 72px !important;
        width: auto !important;
        max-height: min(60dvh, 420px) !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        background: #7E8E18 !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 4999 !important;
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: none !important;
        transition: opacity 0.25s ease, visibility 0.25s ease !important;
    }

    .footer-catalog__dropdown.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .footer-catalog__dropdown a {
        display: block !important;
        padding: 10px 20px !important;
        color: white !important;
        font-family: 'InvolveRegular' !important;
        font-size: 0.95em !important;
        white-space: normal !important;
        text-align: left !important;
    }

    .footer-catalog__dropdown.white {
        background: white !important;
    }

    .footer-catalog__dropdown.white a,
    .footer-catalog__dropdown a.green {
        color: #7E8E18 !important;
    }

    .catalog-menu__separator {
        height: 1px;
        margin: 6px 20px;
        background: rgba(255, 255, 255, 0.3);
    }

    .footer-catalog__dropdown.white .catalog-menu__separator {
        background: rgba(126, 142, 24, 0.3);
    }

    #footer-search-wrap {
        display: flex !important;
        flex: 1 1 0 !important;
        align-items: center !important;
        width: auto !important;
        min-width: 0 !important;
    }

    #footer-search-input {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 14px !important;
        border-radius: 20px !important;
        border: 2px solid white !important;
        background: white !important;
        color: black !important;
        font-size: 16px !important;
        outline: none !important;
        font-family: 'InvolveRegular' !important;
    }

    .main-content {
        height: auto !important;
    }
}

@media only screen and (max-width: 380px) {
    .footer-main > a,
    .footer-catalog__toggle {
        font-size: 0.85em !important;
    }

    .footer-main {
        gap: 10px !important;
    }

    .footer__menu {
        padding: 0 14px !important;
    }
}
