/* Inter Display Font */
@font-face {
    font-family: 'Inter Display';
    src: url('/fonts/InterDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Display';
    src: url('/fonts/InterDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Display';
    src: url('/fonts/InterDisplay-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Display';
    src: url('/fonts/InterDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== FOOTER ===== */
/* Figma: bg #2C2D2E, border-radius 32px top, container 1340px with 50px padding */
.footer {
    background: #2C2D2E;
    border-radius: 32px 32px 0 0;
    padding: 42.5px 0 81.5px;
    color: #fff;
    margin-top: 80px;
}

.footer > .container {
    max-width: 1340px;
    padding: 0 50px;
}

/* Figma positions: Brand=50, Клиентам=369, Услуги=580 (w217), Legal=824 (w461) */
.footer__inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* Brand section - Figma: left=50 (starts at container edge), gap 20px */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 auto;
    width: 285px;
    margin-right: 34px;
}

.footer__logo {
    display: block;
    width: 172px;
    height: 50px;
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #fff;
    font-family: 'Inter Display', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background 0.3s ease;
}

.footer__social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer__social-btn img {
    width: 24px;
    height: 24px;
}

.footer__email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Inter Display', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__email:hover {
    opacity: 0.8;
    color: #fff;
}

.footer__email img {
    width: 24px;
    height: 24px;
}

.footer__support {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__support-link {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #fff;
    font-family: 'Inter Display', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__support-link:hover {
    opacity: 0.8;
    color: #fff;
}

.footer__support-link svg,
.footer__support-link img {
    width: 20px;
    height: 20px;
}

.footer__support-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1;
}

/* Nav section - Clients - Figma: left=369, gap 16px title to links, gap 10px between links */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 auto;
    width: 144px;
    margin: 15.5px 67px 0 0;
}

.footer__nav-title {
    font-family: 'Inter Display', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.footer__nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav-links a {
    color: #fff;
    font-family: 'Inter Display', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__nav-links a:hover {
    opacity: 0.7;
    color: #fff;
}

/* Services section - Figma: left=580, width=217px, gap 16px, 2 columns with 32px gap */
.footer__services {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 217px;
    flex: 0 0 217px;
    margin: 15.5px 27px 0 0;
}

.footer__services-cols {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* Legal section - Figma: left=824, width=461px, gap 20px */
.footer__legal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 461px;
    width: 461px;
    margin-top: 15.5px;
}

.footer__legal-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer__legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter Display', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer__legal-meta {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter Display', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
}

.footer__payments {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__payment-icon {
    width: 48px;
    height: 34px;
    border-radius: 9999px;
    object-fit: contain;
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer__inner {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer__brand {
        width: auto;
        margin-right: 0;
    }

    .footer__nav {
        margin: 0;
        width: auto;
    }

    .footer__services {
        margin: 0;
        width: auto;
        flex: 0 0 auto;
    }

    .footer__legal {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 20px 40px;
        border-radius: 24px 24px 0 0;
    }

    .footer > .container {
        padding: 0;
    }

    .footer__inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer__brand {
        min-width: auto;
    }

    .footer__services {
        width: 100%;
    }

    .footer__services-cols {
        gap: 40px;
    }

    .footer__payments {
        flex-wrap: wrap;
    }
}
