html {
    scroll-behavior: smooth;
}

.footer__social {
    margin-top: 16px;
}

.footer__social a {
    color: #6ec1e4;
    margin: 0 8px;
    font-size: 1.18rem;
    text-decoration: none;
    transition: color 0.17s;
}

.footer__social a:hover {
    color: #fff;
}

/* Animation */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1 !important;
}

.lang-switcher {
    position: relative;
    margin-left: 24px;
    user-select: none;
}

.lang-switcher button {
    background: #ffffff;
    border: 1px solid #d0d7e2;
    color: #2a5298;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.08);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    height: 38px;
}

.lang-switcher button:hover {
    background: #f0f4fa;
    border-color: #b5c9e0;
}

.lang-menu {
    position: absolute;
    top: 120%;
    left: -16px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.lang-menu li {
    padding: 8px 14px;
    cursor: pointer;
    color: #2a5298;

    font-weight: 600;
}

.lang-menu li:hover {
    background-color: #f0f4fa;
    color: #1e3c72;
}

.navbar__links {
    display: flex;
    align-items: center;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7fafd;
    color: #222;
}

/* ------ NAVBAR ------ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e3c72;
    color: #fff;
    padding: 0 40px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 12px 0 rgba(30, 60, 114, 0.07);
}

.navbar__logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    color: #fff;
    transition: color 0.2s;
}

.navbar__logo:hover {
    color: #6ec1e4;
}

.navbar__links {
    display: flex;
    gap: 32px;
}

.navbar__links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar__links a:hover {
    color: #6ec1e4;
}

.burger {
    display: none;
}

/* ------ HERO ------ */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px 40px 40px;
    gap: 60px;
    background: linear-gradient(90deg, #1e3c72 60%, #2a5298 100%);
    color: #fff;
    box-shadow: 0 8px 28px 0 rgba(30, 60, 114, 0.10);
}

.hero__content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__title {
    font-size: 3.4rem;
    font-weight: bold;
    margin-bottom: 28px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.55rem;
    margin-bottom: 36px;
    opacity: 0.96;
    font-weight: 400;
}

.hero__cta {
    display: inline-block;
    padding: 18px 44px;
    background: #fff;
    color: #1e3c72;
    font-weight: bold;
    font-size: 1.25rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px 0 rgba(30, 60, 114, 0.07);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hero__cta:hover {
    background: #6ec1e4;
    color: #fff;
    box-shadow: 0 8px 24px 0 rgba(30, 60, 114, 0.14);
}

.hero__image {
    flex: 0.9;
    min-width: 260px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image img {
    width: 270px;
    max-width: 100%;
    border-radius: 32px;
    box-shadow: 0 12px 50px 0 rgba(30, 60, 114, 0.16);
    background: #fff;
}

/* ------ О КОМПАНИИ ------ */
.section--about .about-wrapper {
    display: flex;
    align-items: center;
    gap: 48px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-content {
    flex: 2;
}

.about-desc-large {
    font-size: 1.25rem;
    line-height: 1.7;
    background: #f7fafd;
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 4px 22px 0 rgba(60, 80, 130, 0.08);
}

.about-illustration {
    flex: 1.3;
    display: flex;
    min-width: 220px;
    text-align: center;
}

.about-illustration img {
    max-width: 340px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(30, 60, 114, 0.13);
    background: #fff;
}

/* ------ СЕКЦИИ ------ */
.section,
.section__title {
    scroll-margin-top: 88px;
}

.section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 82px 20px 32px 20px;
}

.section__title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 24px;
    color: #1e3c72;
    letter-spacing: 0.5px;
}

.section__desc {
    font-size: 1.13rem;
    margin-bottom: 28px;
    opacity: 0.88;
}

/* ------ ПРОДУКТЫ ------ */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 20px 0 rgba(60, 80, 130, 0.10);
    padding: 34px 26px;
    text-align: left;
    transition: box-shadow 0.2s, transform 0.15s;
}

.product-card:hover {
    box-shadow: 0 10px 38px 0 rgba(60, 80, 130, 0.17);
    transform: translateY(-4px) scale(1.03);
}

.product-card__title {
    font-size: 1.24rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2a5298;
    letter-spacing: 0.4px;
}

.product-card__desc {
    font-size: 1.03rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ------ ЧТО ВЫ ПОЛУЧИТЕ ------ */
.section--benefits {
    background: linear-gradient(90deg, #eef4fa 70%, #eef4fa 70%);
    border-radius: 16px;
    margin-top: 42px;
    margin-bottom: 30px;
    padding-left: 0;
    /* по умолчанию */
    display: block;
    /* убираем центрирование всей секции */
}

.section--benefits .section__title {
    text-align: left;
    /* Заголовок строго слева */
    margin-left: 34px;
    /* Красивый отступ как у других секций */
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 38px auto 0 auto;
    /* центрируем только список бенефитов */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 34px 0;
}

.benefit {
    background: linear-gradient(135deg, #eaf1fa 70%, #d4e2f8 100%);
    box-shadow: 0 8px 28px 0 rgba(30, 60, 114, 0.10);
    border-radius: 18px;
    padding: 32px 24px 24px 24px;
    font-size: 1.12rem;
    font-weight: 600;
    color: #1e3c72;
    letter-spacing: 0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
    width: 100%;
    max-width: 330px;
    text-align: center;
    /* Исправление "наложения" */
    box-sizing: border-box;
}

.benefit::before {
    content: '';
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf1fa 70%, #d4e2f8 100%);
    margin-bottom: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    box-shadow: 0 2px 12px 0 rgba(30, 60, 114, 0.13);
    border: 3px solid #fff;
}

.benefit:nth-child(1)::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 15l4 4 8-8" stroke="%231e3c72" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.benefit:nth-child(2)::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="14" cy="14" r="10" stroke="%231e3c72" stroke-width="2.5" fill="none"/><path d="M10 14l3 3 5-5" stroke="%231e3c72" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.benefit:nth-child(3)::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="5" y="5" width="18" height="18" rx="5" stroke="%231e3c72" stroke-width="2.5" fill="none"/><path d="M10 14h8" stroke="%231e3c72" stroke-width="2.5" stroke-linecap="round"/></svg>');
}

.benefit:nth-child(4)::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 23V5M7 16l7 7 7-7" stroke="%231e3c72" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.benefit:nth-child(5)::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="14" cy="14" r="12" stroke="%231e3c72" stroke-width="2.5" fill="none"/><circle cx="14" cy="14" r="5" fill="%231e3c72"/></svg>');
}

.benefit:nth-child(6)::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="7" width="20" height="4" fill="%231e3c72"/><rect x="4" y="13" width="13" height="4" fill="%231e3c72"/><rect x="4" y="19" width="20" height="4" fill="%231e3c72"/></svg>');
}

.to-top {
    display: none;
    position: fixed;
    right: 38px;
    bottom: 54px;
    z-index: 100;
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 6px 28px 0 rgba(30, 60, 114, 0.13);
    justify-content: center;
    align-items: center;
    transition: background 0.16s, box-shadow 0.16s;
}

.to-top:hover {
    background: #6ec1e4;
    color: #1e3c72;
}

.contacts {
    background: #eef4fa;
    border-radius: 16px;
    padding: 38px 22px;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 36px;
    box-shadow: 0 1px 16px 0 rgba(60, 80, 130, 0.05);
}

.contacts label {
    font-size: 1rem;
    color: #1e3c72;
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
}

.contacts input,
.contacts textarea {
    width: 96%;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #b3c6e0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: #fff;
}

.contacts button {
    background: #1e3c72;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 13px 38px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
}

.contacts button:hover {
    background: #2a5298;
}

.section--community {
    background: #f7fafd;
    border-radius: 18px;
    margin-top: 38px;
    margin-bottom: 30px;
    text-align: left;
    padding: 60px 20px 40px 20px;
    box-shadow: 0 8px 28px 0 rgba(30, 60, 114, 0.06);
}

.community-list {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    margin-top: 32px;
}

.community-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 32px;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 4px 18px 0 rgba(30, 60, 114, 0.07);
    font-size: 1.22rem;
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.2s, background 0.15s, color 0.15s;
}

.community-item img {
    width: 30px;
    height: 30px;
}

.community-item:hover {
    background: #6ec1e4;
    color: #fff;
    box-shadow: 0 12px 34px 0 rgba(30, 60, 114, 0.14);
}

.success-popup {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #19bb5c;
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    font-weight: 600;
}

/* ------ FOOTER ------ */
footer {
    margin-top: 70px;
    background: #1e3c72;
    color: #b3c6e0;
    text-align: center;
    font-size: 1rem;
    padding: 30px 12px 18px 12px;
}

/* ------ MEDIA ------ */
@media (max-width: 900px) {

    .section--benefits .section__title {
        margin-left: 0;
        text-align: center;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-left: 0;
        margin-right: 0;
    }

    .benefit {
        max-width: 100%;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .to-top {
        right: 12px;
        bottom: 18px;
    }

    .hero {
        flex-direction: column;
        padding: 50px 10px 30px 10px;
        text-align: center;
        min-height: unset;
    }

    .hero__content {
        flex: unset;
    }

    .hero__image {
        display: none;
    }

    .section {
        padding-top: 36px;
    }

    .hero__image img {
        width: 170px;
        border-radius: 18px;
    }

    .section--about .about-wrapper {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .section__title {
        text-align: center;
    }

    .about-content {
        flex: unset;
    }

    .about-illustration {
        display: none;
    }

    .about-illustration img {
        max-width: 200px;
        margin-top: 20px;
    }

    .burger {
        background: none;
        border: none;
        cursor: pointer;
        display: none;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .burger__icon {
        fill: #ffffff;
        transition: transform 0.3s ease;
    }

    .burger:hover .burger__icon {
        fill: #6ec1e4;
    }

    .burger {
        display: flex;
    }

    .navbar__links {
        position: fixed;
        display: none;
        top: 70px;
        left: 0;
        right: 0;
        background: #1e3c72;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        padding: 22px 32px 24px 32px;
        transition: transform 0.25s;
        transform: translateY(-120%);
        z-index: 100;
        box-shadow: 0 4px 24px rgba(30, 60, 114, 0.13);
    }

    .navbar__links.open {
        transform: translateY(0);
        display: flex;
        flex-direction: column;
    }

    .navbar__links a,
    .navbar__links .lang-switcher {
        width: 100%;
        padding: 14px 0;
        text-align: left;
    }

    .lang-switcher {
        position: relative;
        margin-left: auto;
        margin-right: 16px;
    }

    .lang-menu {
        position: absolute;
        top: 120%;
        left: 0;
        right: auto;
        background: white;
        border: 1px solid #ccc;
        border-radius: 6px;
        list-style: none;
        padding: 0;
        margin: 0;
        display: none;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        z-index: 10;
        max-height: 280px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #d0d7e2 #fff;
        margin-top: -20px;
    }

    .lang-menu::-webkit-scrollbar {
        width: 4px;
        background: #fff;
    }

    .lang-menu::-webkit-scrollbar-thumb {
        background: #d0d7e2;
        border-radius: 8px;
    }
}

.hero__image img {
    transition: transform 0.4s ease;
}

.hero__image:hover img {
    transform: translateY(-6px) scale(1.02);
}

.community-item {
    opacity: 0;
    transform: translateY(20px);
}

.to-top {
    transition: all 0.3s ease-in-out;
}

.to-top:hover {
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.product-card:hover {
    transform: translateY(-6px) rotate(-1deg) scale(1.03);
    box-shadow: 0 14px 38px rgba(30, 60, 114, 0.2);
}

.benefit:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(30, 60, 114, 0.15);
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.success-popup {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}