@font-face {
    font-family: "MuseoCyrl";
    src: url("./fonts/MuseoSansCyrl/museosanscyrl-500.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "MuseoCyrl";
    src: url("./fonts/MuseoSansCyrl/museosanscyrl-500italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "MuseoCyrl";
    src: url("./fonts/MuseoSansCyrl/museosanscyrl-700.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "MuseoCyrl";
    src: url("./fonts/MuseoSansCyrl/museosanscyrl-700italic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body, button, input, select {
    font-family: MuseoCyrl, Helvetica, Arial, sans-serif;
}

body {
    padding-top: 120px; /* равно высоте header */
}
ul {
    list-style: none;
}
.wrapper {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
}
header {
    background: #F7F7F7;
    height: 120px;
    display: flex;

    position: fixed;      /* фиксируем */
    top: 0;               /* прижимаем к верху */
    left: 0;
    width: 100%;          /* на всю ширину */
    z-index: 999;         /* поверх всех блоков */
}
.header-wrapper {
    display: flex;
    align-items: center;
}
.logo {
    height: 25px;        /* контролируем размер */
    width: auto;         /* сохраняем пропорции */
    object-fit: contain;
    margin-right: 40px;
}
.nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.nav-list {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: black;
}
.nav-link.active {
    color: #65B360;
    font-weight: 700;
}
.nav-whatsapp {
    display: block;
    margin: 0 5px;
}
.nav-whatsapp-img {
    width: 40px;
    display: block;
    margin: auto;
}
.btn {
    border-radius: 23px;
    background: #55AD63;
    padding: 15px 20px;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
}
/* Стили Бургер-меню */
.burger-menu {
    display: none;
    cursor: pointer;
}
.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px auto;
    transition: all 0.3s ease;
}
/* Анимации для активного состояния бургер-меню */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Адаптивные стили */
@media screen and (max-width: 1280px) {
    .burger-menu {
        display: block;
    }
    .nav {
        justify-content: space-between;
    }
    .nav-list {
        display: none;
        width: 50%;
        flex-direction: column;
        text-align: center;
        justify-content: flex-end;
        background: white;
        border-radius: 20px;
        position: absolute;
        top: 50px;
        right: 0;
        z-index: 1;
    }
    .nav-item {
        margin: 15px 0;
        padding: 10px 0;
        border-bottom: 1px solid #f2f2f2;
    }
    .nav-link {
        font-size: 24px;
    }
    .btn { 
        font-size: 24px;
    }
}
.nav-list.active {
    display: flex;
}
footer {
    padding: 50px 0;
    background: var(--1, linear-gradient(90deg, #ABCB56 0%, #52AC62 100%));
    color: white;
}
.footer-logo {
    margin-bottom: 25px;
}
.footer-left {
    width: 30%;
}
.footer-left a {
    display: block;
    text-decoration: none;
    color: white;
}
.footer-right {
    width: 65%;
}
.footer-email {
    margin: 40px 0;
}
.footer-graphic {
    margin: 20px 0;
}
.footer-offices {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.footer-offices li {
    margin-bottom: 6px;
    line-height: 1.4;
}
.footer-callback {
    display: flex;
    align-items: center;
}
.footer-whatsapp {
    display: block;
}
.footer-whatsapp-img {
    width: 50px;
    display: block;
    margin-right: 20px;
}
.footer-phone {
    font-size: 28px;
}
.footer-list {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 35px;
}
.footer-link {
    text-decoration: none;
    color: white;
}
/* Стили для всплывающего окна */
.footer-form-popup {
    display: none;
    position: fixed;
    z-index: 101; /* Сидит над другими элементами */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%;
    overflow: auto; /* Включить прокрутку, если нужно */
    background-color: rgb(0,0,0); /* Цвет фона */
    background-color: rgba(0,0,0,0.4); /* Цвет фона с прозрачностью */
    align-items: center;
}

/* Стиль контента всплывающего окна */
.footer-form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #ABCB56 0%, #52AC62 100%);
    padding: 50px;
    padding-right: 0;
    border: 1px solid #888;
    margin: auto;
    border-radius: 38px;
    position: relative;
}
.footer-form {
    display: flex;
    flex-direction: column;
    width: 45%;
}
.form-img {
    width: 45%;
}
.footer-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
}
.footer-form label {
    margin-bottom: 35px;
}
.footer-form-input {
    display: block;
    width: 100%;
    margin: 10px 0 20px;
    padding: 15px;
    padding-left: 60px;
    border-radius: 58px;
    background-color: #FFF;
    border: none;
    outline: none;
    color: black;
    font-size: 16px;
}
.footer-form-control {
    position: relative;
}
.footer-form-control::before {
    z-index: 1;
    display: block;
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    top: 40px;
    left: 20px;
    background: url(./images/input-user-icon.png) no-repeat scroll!important;
}
#phone-control::before {
    background: url(./images/input-tel-icon.png) no-repeat scroll!important;
    top: 40px;
}
.footer-form-submit {
    align-self: self-start;
    padding: 15px 50px;
    border-radius: 87px;
    color: white;
    font-size: 24px;
    border: none;
    outline: none;
    background: #47AF16;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
.close {
    position: absolute;
    color: #aaa;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.footer-form-thank {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; 
    align-items: center; 
    justify-content: center; 
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1000; 
}
.footer-form-thank-wrapper {
    padding: 40px 20px;
    background-color: #fff; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
}
.footer-form-thank-text {
    font-size: 20px; 
    color: #333; 
    line-height: 1.5; 
}
.sticky-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 50px;
    right: 50px;
    z-index: 10;
}
.sticky-whatsapp-img {
    width: 100%;
    height: auto;
}
@media (max-width: 968px) {
    .footer-left {
        width: 100%;
    }
    .footer-right {
        width: 100%;
    }
    .footer-list {
        margin: 20px 0;
        flex-wrap: wrap;
    }
    .footer-item {
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-phone {
        font-size: 20px;
    }
    .footer-form-wrapper {
        flex-direction: column-reverse;
        padding: 20px;
        padding-right: unset;
    }
    .footer-form {
        width: 70%;
        margin: auto;
    }
    .footer-title {
        text-align: center;
    }
    .footer-form-submit {
        width: 100%;
        padding: 10px 0;
    }
    .sticky-whatsapp {
        position: fixed;
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 30px;
        z-index: 10;
    }
}

/* вторичная кнопка "Войти в личный кабинет" */
.btn-login {
    background: #FFFFFF;
    text-decoration: none;
    color: #55AD63;
    border: 1px solid #55AD63;
    padding-inline: 26px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.btn-login:hover {
    background: #55AD63;
    color: #FFFFFF;
}

/* выравнивание правого блока с кнопками на десктопе */
.nav-item-whatsapp,
.nav-item-login,
.nav-item-cta {
    display: flex;
    align-items: center;
}

/* чтобы последние элементы визуально были справа */
.nav-list {
    gap: 18px;
}

/* ---------- Адаптив шапки ---------- */
@media screen and (max-width: 1280px) {
    header {
        height: auto;
        padding: 20px 0;
    }

    body {
        padding-top: 100px; /* примерное значение для мобилки */
    }

    .logo {
        height: 20px;
        width: auto;
        margin-right: 0;
    }

    .nav {
        justify-content: space-between;
    }

    .nav-list {
        display: none;
        width: 80%;
        max-width: 360px;
        flex-direction: column;
        text-align: center;
        justify-content: flex-start;
        background: #ffffff;
        border-radius: 20px;
        position: absolute;
        top: 70px;
        right: 0;
        z-index: 10;
        padding: 15px 20px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
        gap: 0;
    }

    .nav-item {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #f2f2f2;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 18px;
    }

    .btn,
    .btn-login {
        text-decoration: none;
        font-size: 16px;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 14px 20px;
    }

    .nav-item-whatsapp {
        justify-content: center;
    }

    .nav-whatsapp-img {
        width: 36px;
    }
}

/* меню открыто */
.nav-list.active {
    display: flex;
}


/* --- Кнопки в главном блоке "интро" --- */

.intro-actions {
    display: flex;
    justify-content: space-between; /* одна слева, другая справа */
    gap: 16px;
    max-width: 420px;              /* чтобы не расползались слишком широко */
    margin-top: 30px;
}

.intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* чтобы <a> выглядела как кнопка */
    cursor: pointer;
    white-space: nowrap;
}

/* если нужно, чтобы обе кнопки были одинаковой ширины */
.intro-btn,
.intro-btn-online {
    flex: 1 1 auto;
    text-decoration: none;
}

/* адаптив: на мобилке кнопки одна под другой, на всю ширину */
@media (max-width: 768px) {
    .intro-actions {
        flex-direction: column;
        max-width: 100%;
    }

    .intro-btn,
    .intro-btn-online {
        width: 100%;
    }
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px; /* чтобы отделить от остального футера */
}

.footer-logo {
    max-width: 220px;
    height: auto;
}

.footer-banner-logo {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

/* Адаптив: на мобиле можно в колонку */
@media (max-width: 600px) {
    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-banner-logo {
        max-width: 260px;
    }
}
.nav-item-cta a {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item-cta a:hover {
    background: #4CAF50;
    color: #fff;
}

.nav-item-cta a {
    display: inline-block;
    padding: 8px 18px;
    background: #4CAF50;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item-cta a:hover {
    background: #43a047;
    border-color: #43a047;
}
/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #65B360;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: #f0f0f0;
}

.lang-btn.active {
    background: #65B360;
    color: white;
    font-weight: 700;
}

@media screen and (max-width: 1024px) {
    .language-switcher {
        margin: 10px 0;
        justify-content: center;
    }
}
.nav-item.nav-phone .nav-phone-link {
    color: #000; /* черный цвет текста */
    font-weight: 500; /* средний вес, аккуратнее чем bold */
    font-family: 'Roboto', 'Helvetica', sans-serif; /* современный шрифт */
    font-size: 16px; /* размер текста */
    text-decoration: none; /* убираем подчеркивание */
    position: relative; /* нужно для псевдоэлемента hover */
    transition: all 0.3s ease; /* плавные анимации */
}

/* Псевдоэлемент для плавного underline при hover */
.nav-item.nav-phone .nav-phone-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px; /* немного ниже текста */
    width: 0;
    height: 2px;
    background-color: #000; /* подчеркивание черное */
    transition: width 0.3s ease;
}

/* Hover эффект */
.nav-item.nav-phone .nav-phone-link:hover::after {
    width: 100%; /* подчеркивание растягивается по всей длине текста */
}

.nav-item.nav-phone .nav-phone-link:hover {
    color: #333; /* легкое затемнение текста */
    transform: translateY(-2px); /* плавное поднятие текста */
}

/* --- Мобильная адаптация для popup формы --- */
@media (max-width: 968px) {
    .footer-form-wrapper {
        flex-direction: column-reverse;
        padding: 20px;
        padding-right: 20px;
        width: 90%;
        height: auto;
        max-width: 500px;
    }

    .footer-form {
        width: 100%;
        margin: 0 auto 20px;
    }

    .form-img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
        object-fit: contain;
    }

    .footer-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .footer-form label {
        margin-bottom: 20px;
    }

    .footer-form-input {
        padding: 12px 50px 12px 50px;
        font-size: 16px;
    }

    .footer-form-submit {
        width: 100%;
        padding: 12px 0;
        font-size: 18px;
    }
}

/* --- Для небольших экранов (меньше 600px) --- */
@media (max-width: 600px) {
    .footer-form-wrapper {
        padding: 15px;
        border-radius: 20px;
    }

    .footer-title {
        font-size: 24px;
    }

    .footer-form-input {
        padding: 10px 45px 10px 45px;
    }

    .footer-form-submit {
        font-size: 16px;
        padding: 10px 0;
    }
}

/* Контейнер */
.footer-form-control {
    position: relative;
}

/* Инпут */
.footer-form-input {
    width: 100%;
    padding: 15px 20px 15px 55px; /* слева место под иконку */
    border-radius: 58px;
}
