/* ============ FOOTER ============ */

.footer {
    position: relative;
    width: 100%;
    background: #001435;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    z-index: 10;
}

/* --- декоративные боковые картинки --- */
.footer__bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 345px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}
.footer__bg img {

    height: 100%;
    object-fit: cover;
}
.footer__bg--left  { left: 0; }
.footer__bg--right { right: 0; }

/* --- основная сетка --- */
.footer__inner {
    position: relative;
    z-index: 2;
    max-width: 1920px;
    margin: 0 auto;
    padding: 70px 24px 56px;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1.1fr 1.1fr;
    gap: 40px;
    align-items: stretch;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

/* колонка с лого: лого вверху, язык внизу */
.footer__col--brand {
    justify-content: space-between;
    min-height: 230px;
}

.footer__logo img {
    width: 190px;
    max-width: 100%;
    display: block;
}

/* --- заголовки колонок --- */
.footer__col-title {
    color: #2A90FF;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 26px;
}


/* --- ссылки --- */
.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer__links li + li {
    margin-top: 20px;
}
.footer__links a {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}
.footer__links a:hover {
    color: #2A90FF;
}

/* --- соцсети --- */
.footer__socials {
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding-top: 32px;
}
.footer__social {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(42, 144, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.footer__social:hover {
    background: rgb(42 144 255 / 0.32);
    color: #FFFFFF;
}

/* --- правая колонка: контакты --- */
.footer__col--contacts {
    align-items: flex-end;
    text-align: right;
    gap: 34px;
}

.footer__demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    background: #FF8C00;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.footer__demo-btn:hover {
    background: #E07C00;
}

.footer__phone {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer__phone a {
    color: #2A90FF;
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.footer__phone-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.footer__email {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}
.footer__email:hover {
    color: #2A90FF;
}

/* --- переключатель языка --- */
.lang-selector-footer {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    user-select: none;
    transition: color 0.2s;
}
.lang-selector-footer:hover {
    color: #2A90FF;
}
.lang-selector-footer .arrow {
    width: 10px;
    transition: transform 0.2s;
}
.lang-selector-footer.open .arrow {
    transform: rotate(180deg);
}

.lang-dropdown-footer {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    min-width: 150px;
    background: #001435;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 99999;
}
.lang-selector-footer.open .lang-dropdown-footer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.lang-dropdown-footer .dropdown-link {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.lang-dropdown-footer .dropdown-link:hover {
    background: rgba(42, 144, 255, 0.15);
    color: #2A90FF;
}

/* --- нижняя полоса --- */
.footer__bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(42, 144, 255, 0.25);
}
.footer__bottom-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(128, 135, 148, 1);
    font-size: 14px;
}
.footer__privacy {
    color: rgba(128, 135, 148, 1);
    text-decoration: underline;
    transition: color 0.2s;
}
.footer__privacy:hover {
    color: #FFFFFF;
}

/* ============ АДАПТИВ ============ */

@media (max-width: 1100px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px 32px;
    }
    .footer__col--brand {
        min-height: 0;
        gap: 28px;
    }
    .footer__col--contacts {
        align-items: flex-start;
        text-align: left;
    }
    .footer__bg { display: none; }
}

@media (max-width: 600px) {
    .footer__inner {
        grid-template-columns: 1fr;
        padding: 48px 20px 40px;
        gap: 40px;
    }
    .footer__phone a {
        font-size: 24px;
    }
    .footer__bottom-inner {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        height: auto;
        padding: 16px 20px;
    }
}