/* New Footer Section */
.footer-new-section {
    background: #FFFFFF;
    color: #000000;
    position: relative;
    padding-top: 0;
    overflow: hidden;
}

/* Wave Background */
.footer-wave-background {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background-image: url('../images/footer/bg-footer-wave.svg');
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    min-height: 50%;
}

/* Ensure content is above the wave */
.footer-new-section .container {
    position: relative;
    z-index: 1;
}

/* Wave responsive adjustments - positioned from middle down */
@media (max-width: 1920px) {
    .footer-wave-background {
        background-size: 100% 100%;
        background-position: center bottom;
    }
}

@media (max-width: 1200px) {
    .footer-wave-background {
        background-size: 130% 100%;
        background-position: center bottom;
        top: 41%;
        height: 62%;
    }
}

@media (max-width: 1024px) {
    .footer-wave-background {
        background-size: 130% 100%;
        background-position: center bottom;
        top: 45%;
        height: 62%;
    }
}

@media (max-width: 768px) {
    .footer-wave-background {
        background-size: 150% 100%;
        background-position: center bottom;
        top: 47%;
        height: 65%;
    }
}

@media (max-width: 640px) {
    .footer-wave-background {
        background-size: 180% 100%;
        background-position: center bottom;
        top: 53%;
        height: 68%;
    }
}

@media (max-width: 480px) {
    .footer-wave-background {
        background-size: 270% 100%;
        background-position: center bottom;
        top: 50%;
        height: 79%;
    }
}

@media (max-width: 375px) {
    .footer-wave-background {
        background-size: 270% 100%;
        background-position: center bottom;
        top: 50%;
        height: 75%;
    }
}

@media (max-width: 320px) {
    .footer-wave-background {
        background-size: 100% 100%;
        background-position: center bottom;
        top: 25%;
        height: 75%;
    }
}

.footer-new-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1280px) {
    .footer-new-section .container {
        padding: 50px 0 20px 0px;
    }
}

/* Main Content */
.footer-content {
    border-top: 1px solid #e9ecef;
    padding-bottom: 40px;
}
body.dark .footer-content {
    border-top: 1px solid #4b5563;
}

@media (min-width: 640px) {
    .footer-content {
        padding-bottom: 50px;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        padding-bottom: 20px;
    }
}

/* Logo Section */
.footer-logo-section {
    max-width: 964px;
    margin-bottom: 0px;
}

@media (min-width: 640px) {
    .footer-logo-section {
        margin-bottom: 10px;
    }
}

/* Title with Icon Container */
.footer-title-with-icon {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-title-with-icon {
        gap: 24px;
    }
}

.footer-main-title {
    font-family: 'Gilroy-Semibold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 26px;
    color: #3F405B;
    margin: 0;
}
.footer-main {
    padding-top: 50px;
}

@media (min-width: 768px) {
    .footer-main-title {
        font-size: 32px;
        line-height: 32px;
    }
}

@media (min-width: 1280px) {
    .footer-main-title {
        font-size: 36px;
        line-height: 46.8px;
    }
}

/* Plane Icon - Non-clickable with hover animation */
.footer-plane-icon {
    display: inline-flex;
    align-items: center;
    cursor: default;
    transition: transform 0.3s ease;
}

.footer-plane-icon:hover {
    transform: translateX(5px) translateY(-3px) rotate(5deg);
}

.footer-plane-icon svg {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .footer-plane-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1280px) {
    .footer-plane-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* Email Wrapper styles removed - no longer needed */

/* Email Link */
/* .footer-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #3F405B;
    font-family: 'Gilroy-semibold';
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    word-break: break-all;
    transition: all 0.3s ease;
} */

/* @media (min-width: 640px) {
    .footer-email-link {
        font-size: 40px;
        word-break: normal;
    }
} */

/* @media (min-width: 1280px) {
    .footer-email-link {
        font-size: 64px;
    }
} */

/* .footer-email-link:hover {
    color: #635BFE;
    text-decoration: none;
} */

/* .email-text {
    Removed flex: 1 to keep text and icon together
} */

/* Email Icon */
.email-icon-desktop {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 640px) {
    .email-icon-desktop {
        display: block;
    }
}

/* Mobile Icon */
.footer-mobile-icon {
    display: block;
    margin-top: 12px;
}

@media (min-width: 640px) {
    .footer-mobile-icon {
        display: none;
    }
}

.mobile-email-icon {
    width: 32px;
    height: 32px;
}



.mobile-apps-block {
    margin-bottom: 32px;
}

.mobile-apps-block:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .mobile-apps-block {
        margin-bottom: 40px;
    }
}

@media (min-width: 768px) {
    .mobile-apps-block {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .mobile-apps-block {
        margin-bottom: 32px;
    }
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 640px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (min-width: 900px) {
    .footer-columns {
        grid-template-columns: 2fr 1fr 277px;
        gap: 60px;
    }
}

/* Адаптивное центрирование для диапазона 321px - 899px */
@media (min-width: 321px) and (max-width: 899px) {
    .footer-content {
        text-align: center;
    }
    
    .footer-main {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo-section {
        text-align: center;
    }
    
    .footer-title-with-icon {
        justify-content: center;
    }
    
    .footer-columns {
        justify-items: center;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-column {
        text-align: center;
        max-width: 100%;
    }
    
    .mobile-apps-column {
        align-items: center;
    }
    
    .mobile-apps-grid {
        justify-content: center;
        width: 100%;
        max-width: 400px;
    }
    
    .company-links {
        align-items: center;
    }
    
    .contacts-list {
        align-items: center;
    }
    
    .social-text-links {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .security-certifications {
        text-align: center;
    }
    
    .security-text {
        text-align: center;
    }
    
    .certifications-logos {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
        justify-content: center;
    }
    
    .footer-bottom-left {
        justify-content: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-language-selector {
        justify-content: center;
    }
    
    .legal-entity-info {
        text-align: center;
    }
}

/* Новая компоновка для диапазона 640px - 899px */
@media (min-width: 640px) and (max-width: 899px) {
    .footer-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 60px;
        justify-items: start;
    }
    
    /* Первая колонка (Mobile Apps) занимает всю ширину первой строки */
    .footer-column:nth-child(1) {
        grid-column: 1 / -1;
        width: 100%;
    }
    
    /* Растягиваем приложения по ширине в ряд */
    .footer-column:nth-child(1) .mobile-apps-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        gap: 16px;
        width: 100%;
    }
    
    /* Предотвращаем перенос текста в кнопках приложений */
    .footer-column:nth-child(1) .app-link {
        min-width: 140px;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 12px 8px;
    }
    
    .footer-column:nth-child(1) .app-link span {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Вторая колонка (About company) - левая часть второй строки */
    .footer-column:nth-child(2) {
        grid-column: 1;
        text-align: center;
        justify-self: center;
    }
    
    /* Третья колонка (Contacts) - правая часть второй строки */
    .footer-column:nth-child(3) {
        grid-column: 2;
        text-align: center;
        justify-self: center;
    }
    
    /* Центрирование заголовков для колонок во второй строке */
    .footer-column:nth-child(2) .footer-column-title,
    .footer-column:nth-child(3) .footer-column-title {
        text-align: center;
    }
    
    /* Центрирование содержимого колонки "О компании" */
    .footer-column:nth-child(2) .company-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    /* Центрирование содержимого колонки "Контакты" */
    .footer-column:nth-child(3) .contacts-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .footer-column:nth-child(3) .contact-email {
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .footer-column:nth-child(3) .social-text-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .footer-column:nth-child(3) .social-icons {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr 277px;
        gap: 60px;
    }
}

@media (min-width: 320px) and (max-width: 375px) {
    .footer-plane-icon {
        display: none;
    }
    
    .mobile-apps-title {
        text-align: center;
        justify-content: center;
    }
}

/* Mobile Apps Column */
.mobile-apps-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-apps-block {
    margin-bottom: 0;
}

.mobile-apps-block:first-child {
    margin-bottom: 30px;
}

@media (min-width: 640px) {
    .mobile-apps-block:first-child {
        margin-bottom: 10px;
    }
}

.footer-column-title {
    font-family: 'Gilroy-Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 21px;
    color: #6c757d;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .footer-column-title {
        margin-bottom: 15px;
        font-size: 20px;
    }
}

/* Mobile Apps Grid */
.mobile-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #3F405B;
    font-family: 'Gilroy-Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.app-link:hover {
    background: #e9ecef;
    border-color: #635BFE;
    color: #635BFE;
    text-decoration: none;
}

/* Removed gradient animation that interfered with cursor */

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.app-icon img {
    width: 24px;
    height: 24px;
}

/* Company Links */
.company-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-link {
    font-family: 'Gilroy-Semibold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 23px;
    color: #3F405B;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

@media (min-width: 1024px) {
    .company-link {
        font-size: 18px;
        line-height: 26.5px;
    }
}

.company-link:hover {
    color: #635BFE;
    text-decoration: none;
}

.company-link::after {
    content: '';
    width: 14px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='15' viewBox='0 0 14 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.8373 3.3883C12.0542 3.60526 12.0542 3.95702 11.8373 4.17398L2.9484 13.0629C2.73143 13.2798 2.37968 13.2798 2.16272 13.0629C1.94576 12.8459 1.94576 12.4942 2.16272 12.2772L11.0516 3.3883C11.2686 3.17135 11.6203 3.17135 11.8373 3.3883Z' fill='currentColor'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.66602 3.78114C3.66602 3.47432 3.91474 3.22559 4.22157 3.22559H11.4438C11.7506 3.22559 11.9994 3.47432 11.9994 3.78114V11.0034C11.9994 11.3102 11.7506 11.5589 11.4438 11.5589C11.137 11.5589 10.8882 11.3102 10.8882 11.0034V4.3367H4.22157C3.91474 4.3367 3.66602 4.08796 3.66602 3.78114Z' fill='currentColor'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* Contacts */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-email {
    font-family: 'Gilroy-Semibold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: #3F405B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #635BFE;
    text-decoration: none;
}

/* Floating Images */
.footer-floating-images {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-money {
    display: none;
    position: absolute;
    right: 20px;
    top: 220px;
    width: auto;
    height: 300px;
}

@media (min-width: 1024px) {
    .floating-money {
        display: block;
    }
}

@media (min-width: 1280px) {
    .floating-money {
        right: 36px;
        top: -65px;
        height: 456px;
    }
}

.floating-man {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 600px;
}

@media (min-width: 1024px) {
    .floating-man {
        display: block;
    }
}

@media (min-width: 1280px) {
    .floating-man {
        height: 936px;
    }
}

/* Security & Certifications Section */
.security-certifications {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 640px) {
    .security-certifications {
        margin-top: 50px;
        padding-top: 10px;
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .security-certifications {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 1px;
        gap: 20px;
    }
}

.security-text {
    flex: 1;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .security-text {
        max-width: 39%;
    }
}

.security-text p {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6c757d;
    margin: 0;
    text-align: justify;
}

@media (min-width: 640px) {
    .security-text p {
        font-size: 12px;
        line-height: 21px;
    }
}

.certifications-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 640px) {
    .certifications-logos {
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .certifications-logos {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 10px;
    }
}

.cert-logo {
    height: 32px;
    width: auto;
    filter: grayscale(1) opacity(0.7) invert(1);
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .cert-logo {
        height: 36px;
    }
}

@media (min-width: 1024px) {
    .cert-logo {
        height: 40px;
    }
}

.cert-logo:hover {
    filter: grayscale(1) opacity(1) invert(1) brightness(0.7);
    transform: translateY(-2px);
}

/* Dark Theme Support for Security Section */
body.dark .security-certifications {
    border-top-color: #4b5563;
}

body.dark .security-text p {
    color: #d1d5db;
}

body.dark .cert-logo {
    filter: grayscale(1) opacity(0.7);
}

body.dark .cert-logo:hover {
    filter: grayscale(1) opacity(1) brightness(1.3);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

@media (min-width: 640px) {
    .footer-bottom {
        margin-top: 50px;
        margin-bottom: 20px;
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        margin-top: 10px;
        margin-bottom: 2px;
        flex-wrap: nowrap;
    }
}

body.dark .footer-bottom {
    border-top-color: #4b5563;
}

@media (min-width: 1024px) {
    .footer-bottom {
        position: relative;
    }
}

.footer-copyright {
    order: 2;
}

@media (min-width: 640px) {
    .footer-copyright {
        order: 1;
        flex: 1;
    }
}

.footer-copyright p {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 19.6px;
    color: #6c757d;
    margin: 0;
    white-space: pre-wrap;
    text-align: left;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .footer-bottom-left {
        flex-direction: row;
        align-items: center;
        width: auto;
        flex: 1;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

@media (min-width: 640px) {
    .footer-links {
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .footer-links {
        gap: 32px;
    }
}

.footer-links a {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 19.6px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #635BFE;
    text-decoration: none;
}

/* Language Selector */
.footer-language-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .footer-language-selector {
        margin-top: 0;
        margin-left: 24px;
    }
}

.footer-lang-label {
    font-family: 'Gilroy-Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
}

.footer-lang-select {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Gilroy-Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #3F405B;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.footer-lang-select:hover {
    border-color: #635BFE;
    background: #e9ecef;
}

.footer-lang-select:focus {
    outline: none;
    border-color: #635BFE;
    box-shadow: 0 0 0 2px rgba(99, 91, 254, 0.2);
}

/* Dark Theme Support */
body.dark .footer-new-section {
    background: #1a1a1a;
    color: #f9fafb;
}

/* Dark theme wave background - you may want to create a dark version of the wave SVG */
body.dark .footer-wave-background {
    opacity: 0.1;
    filter: invert(1);
}

body.dark .footer-main-title {
    color: #f9fafb;
}

/* body.dark .footer-email-link {
    color: #f9fafb;
} */

/* body.dark .footer-email-link:hover {
    color: #635BFE;
} */

body.dark .company-link {
    color: #f9fafb;
}

body.dark .company-link:hover {
    color: #635BFE;
}

body.dark .contact-email {
    color: #f9fafb;
}

body.dark .contact-email:hover {
    color: #635BFE;
}

body.dark .app-link {
    background: #374151;
    border-color: #6b7280;
    color: #f9fafb;
}

body.dark .app-link:hover {
    background: #4b5563;
    border-color: #635BFE;
    color: #635BFE;
}

body.dark .footer-lang-label {
    color: #d1d5db;
}

body.dark .footer-lang-select {
    background: #374151;
    border-color: #6b7280;
    color: #f9fafb;
}

body.dark .footer-lang-select:hover {
    border-color: #635BFE;
    background: #4b5563;
}

body.dark .footer-lang-select:focus {
    border-color: #635BFE;
    box-shadow: 0 0 0 2px rgba(99, 91, 254, 0.3);
}

body.dark .app-icon {
    background: rgba(0, 0, 0, 0.2);
}

/* Dark theme arrow icon for company links */
body.dark .company-link::after {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='15' viewBox='0 0 14 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.8373 3.3883C12.0542 3.60526 12.0542 3.95702 11.8373 4.17398L2.9484 13.0629C2.73143 13.2798 2.37968 13.2798 2.16272 13.0629C1.94576 12.8459 1.94576 12.4942 2.16272 12.2772L11.0516 3.3883C11.2686 3.17135 11.6203 3.17135 11.8373 3.3883Z' fill='%23f9fafb'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.66602 3.78114C3.66602 3.47432 3.91474 3.22559 4.22157 3.22559H11.4438C11.7506 3.22559 11.9994 3.47432 11.9994 3.78114V11.0034C11.9994 11.3102 11.7506 11.5589 11.4438 11.5589C11.137 11.5589 10.8882 11.3102 10.8882 11.0034V4.3367H4.22157C3.91474 4.3367 3.66602 4.08796 3.66602 3.78114Z' fill='%23f9fafb'/%3E%3C/svg%3E");
}

body.dark .company-link:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='15' viewBox='0 0 14 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.8373 3.3883C12.0542 3.60526 12.0542 3.95702 11.8373 4.17398L2.9484 13.0629C2.73143 13.2798 2.37968 13.2798 2.16272 13.0629C1.94576 12.8459 1.94576 12.4942 2.16272 12.2772L11.0516 3.3883C11.2686 3.17135 11.6203 3.17135 11.8373 3.3883Z' fill='%23635BFE'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.66602 3.78114C3.66602 3.47432 3.91474 3.22559 4.22157 3.22559H11.4438C11.7506 3.22559 11.9994 3.47432 11.9994 3.78114V11.0034C11.9994 11.3102 11.7506 11.5589 11.4438 11.5589C11.137 11.5589 10.8882 11.3102 10.8882 11.0034V4.3367H4.22157C3.91474 4.3367 3.66602 4.08796 3.66602 3.78114Z' fill='%23635BFE'/%3E%3C/svg%3E");
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
    .footer-new-section .container {
        padding: 0 16px;
        overflow-x: hidden;
    }
    
    
    .mobile-apps-block {
        margin-bottom: 24px;
    }
    
    .footer-columns {
        gap: 30px;
    }
    
    .mobile-apps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .app-link {
        padding: 10px;
        font-size: 13px;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* .footer-email-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        word-break: break-all;
        max-width: 100%;
        overflow-wrap: break-word;
    } */
    
    .footer-language-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 16px;
    }
    
    .footer-lang-select {
        width: 100%;
        min-width: auto;
    }
    
    .footer-main-title {
        font-size: 21px !important;
        line-height: 24px !important;
        word-break: break-word;
    }
    
    .footer-logo-section {
        max-width: 100%;
    }
}

body.dark .footer-column-title {
    color: #d1d5db;
}

body.dark .footer-copyright p {
    color: #d1d5db;
}

body.dark .footer-links a {
    color: #d1d5db;
}

body.dark .footer-links a:hover {
    color: #635BFE;
}

/* Legal Entity Information */
.legal-entity-info {
    margin-top: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

@media (min-width: 640px) {
    .legal-entity-info {
        margin-top: 15px;
        padding-top: 20px;
    }
}

.legal-entity-info p {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    color: #6c757d;
    margin: 0;
    text-align: center;
    word-break: break-word;
}

@media (min-width: 640px) {
    .legal-entity-info p {
        font-size: 11px;
        line-height: 15px;
    }
}

@media (min-width: 1024px) {
    .legal-entity-info p {
        font-size: 10px;
        line-height: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 1200px) {
    .legal-entity-info p {
        font-size: 13px;
        line-height: 15px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* Dark Theme Support for Legal Entity Info */
body.dark .legal-entity-info {
    border-top-color: #4b5563;
}

body.dark .legal-entity-info p {
    color: #9ca3af;
}

/* Old responsive styles removed - using new ones above */

/* Social Media Styles */
.social-text-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.social-text-link {
    font-family: 'Gilroy-Semibold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #635BFE;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

@media (min-width: 1024px) {
    .social-text-link {
        font-size: 18px;
    }
}

.social-text-link:hover {
    color: #4c46d6;
    text-decoration: none;
    transform: translateX(4px);
}

.social-text-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #635BFE;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.social-text-link:hover::before {
    opacity: 1;
    left: -16px;
}

/* Social Media Icon Buttons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: #3F405B;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .social-icon-btn {
        width: 56px;
        height: 56px;
    }
    
    .social-icon-btn svg {
        width: 28px;
        height: 28px;
    }
}

.social-icon-btn:hover {
    text-decoration: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 91, 254, 0.25);
}

.social-icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 91, 254, 0.404) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon-btn:hover::before {
    opacity: 1;
}

.social-icon-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon-btn:hover svg {
    transform: scale(1.1);
}

/* Specific icon colors and hover effects */
.telegram-icon:hover {
    border-color: #0088cc;
    background: linear-gradient(135deg, #0088cc, #0099dd);
    color: white;
}

.vk-icon:hover {
    border-color: #4680C2;
    background: linear-gradient(135deg, #4680C2, #5188cc);
    color: white;
}

.zen-icon:hover {
    border-color: #FF6B00;
    background: linear-gradient(135deg, #FF6B00, #FFA500);
    color: white;
}

/* Dark Theme Support for Social Media */
body.dark .social-text-link {
    color: #7c73ff;
}

body.dark .social-text-link:hover {
    color: #9490ff;
}

body.dark .social-text-link::before {
    background: #7c73ff;
}

body.dark .social-icon-btn {
    background: #374151;
    border-color: #6b7280;
    color: #f9fafb;
}

body.dark .social-icon-btn:hover {
    box-shadow: 0 8px 25px rgba(124, 115, 255, 0.3);
}

body.dark .telegram-icon:hover {
    border-color: #0088cc;
    background: linear-gradient(135deg, #0088cc, #0099dd);
    color: white;
}

body.dark .vk-icon:hover {
    border-color: #4680C2;
    background: linear-gradient(135deg, #4680C2, #5188cc);
    color: white;
}

body.dark .zen-icon:hover {
    border-color: #FFA500;
    background: linear-gradient(135deg, #FFA500, #FFB733);
    color: white;
}

/* Mobile Responsive Adjustments for Social Media */
@media (max-width: 640px) {
    .social-text-links {
        margin-top: 16px;
        gap: 10px;
    }
    
    .social-text-link {
        font-size: 15px;
    }
    
    .social-text-link::before {
        left: -16px;
    }
    
    .social-text-link:hover::before {
        left: -12px;
    }
    
    .social-icons {
        margin-top: 16px;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .social-icon-btn {
        width: 44px;
        height: 44px;
    }
    
    .social-icon-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .social-text-links {
        margin-top: 14px;
    }
    
    .social-icons {
        margin-top: 14px;
        gap: 8px;
    }
    
    .social-icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-icon-btn svg {
        width: 20px;
        height: 20px;
    }
    .security-certifications {
        margin-top: 5px;
        padding-top: 15px;
        border-top: 1px solid #e9ecef;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .footer-title-with-icon {
        margin-bottom: 10px;
    }
    .footer-logo-section {
        margin-bottom: 15px;
    }
    .footer-links {
        gap: 20px;
    }
    .footer-links a {
        font-size: 12px;
        line-height: 5.6px;
    }
    .footer-bottom {
        margin-top: 20px;
        margin-bottom: 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding-top: 0px;
        border-top: 1px solid #e9ecef;
    }
}

@media (max-width: 375px) {
    .social-icons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 320px) {
    
    .mobile-apps-block {
        margin-bottom: 20px;
    }
    
    .footer-columns {
        gap: 25px;
    }
    
    .footer-column-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .mobile-apps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .app-link {
        padding: 8px;
        font-size: 12px;
    }
    
    .company-link {
        font-size: 14px;
    }
    
    .contact-email {
        font-size: 16px;
    }
    
    .social-text-link {
        font-size: 14px;
    }
    
    .social-icons {
        gap: 6px;
    }
    
    .social-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .social-icon-btn svg {
        width: 18px;
        height: 18px;
    }
}