 * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background-color: #f8fafc;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Footer Styles */
    .footer {
        background-color: #1e293b;
        border-top: 1px solid #475569;
        color: #cbd5e1;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 1rem;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
        justify-items: center;
        text-align: center;
    }

    /* Tablet: 2 равные колонки */
    @media (min-width: 768px) {
        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 3rem;
            justify-content: space-evenly;
            justify-items: center;
        }
    }

    /* Desktop: 3 равные колонки */
    @media (min-width: 1024px) {
        .footer-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 4rem;
            justify-content: space-evenly;
            justify-items: center;
        }
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 200px;
        width: 100%;
        max-width: 300px;
        text-align: center;
        align-items: center;
    }

    /* Company Info Section */
    .brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .brand-logo {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 1rem;
        flex-shrink: 0;
        max-width: 150px;
    }

    .footer-logo img {
        border-radius: 10px;
        max-width: 100px;
        height: auto;
    }

    .brand-name {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
    }

    .brand-description {
        color: #cbd5e1;
        font-size: 0.95rem;
        line-height: 1.6;
        flex-grow: 1;
    }

    /* Navigation Section */
    .footer-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: white;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #3b82f6;
        display: inline-block;
        text-align: center;
        width: auto;
        max-width: 120px;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        flex-grow: 1;
        align-items: center;
        width: 100%;
    }

    .footer-link {
        color: #cbd5e1;
        text-decoration: none;
        font-size: 0.95rem;
        padding: 0.5rem 0;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        padding-left: 0;
        text-align: center;
        width: 100%;
        max-width: 200px;
    }

    .footer-link:hover {
        color: white;
        border-left-color: #3b82f6;
    }

    /* Contact Section */
    .contact-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        flex-grow: 1;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .contact-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .contact-icon {
        width: 1.25rem;
        height: 1.25rem;
        color: #3b82f6;
        flex-shrink: 0;
    }

    .contact-text {
        color: #cbd5e1;
        font-size: 0.95rem;
        word-break: break-all;
    }

    .contact-link {
        color: #cbd5e1;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .contact-link:hover {
        color: #3b82f6;
    }

    /* Social Media Icons */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.3rem;
        height: 2.3rem;
        color: #94a3b8;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-icon:hover {
        color: #cbd5e1;
        transform: translateY(-2px);
    }

    .social-icon svg {
        width: 1.55rem;
        height: 1.55rem;
        fill: currentColor;
    }

    /* Text icon for Yandex */
    .social-icon.text-icon {
        font-size: 1.2rem;
        font-weight: bold;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Footer Bottom */
    .footer-separator {
        height: 1px;
        background: linear-gradient(90deg, transparent, #475569, transparent);
        margin: 2rem 0 1.5rem 0;
    }

    .footer-bottom {
        text-align: center;
        padding: 1rem 0 0.5rem 0;
    }

    .copyright {
        font-size: 0.9rem;
        color: #94a3b8;
        font-weight: 500;
    }

    /* Mobile optimizations */
    @media (max-width: 767px) {
        .footer-container {
            padding: 2rem 1rem;
        }

        .footer-grid {
            gap: 2rem;
            justify-items: center;
        }

        .footer-section {
            min-height: auto;
            text-align: center;
            align-items: center;
            max-width: 100%;
        }

        .footer-link {
            text-align: center;
            border-left: none;
            border-bottom: 1px solid transparent;
            padding: 0.75rem 0;
            padding-left: 0;
        }

        .footer-link:hover {
            border-left: none;
            border-bottom-color: #3b82f6;
            padding-left: 0;
        }

        .social-icons {
            gap: 0.75rem;
        }

        .social-icon {
            width: 2.05rem;
            height: 2.05rem;
        }

        .social-icon svg {
            width: 1.4rem;
            height: 1.4rem;
        }

        .social-icon.text-icon {
            font-size: 1.1rem;
        }
    }

    .custom-link {
        display: inline-block;

        padding: 10px 10px;
        /* уменьшенные отступы */
        color: #b3b3b3;
        /* нейтральный серый */
        text-decoration: none;
        transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
        font-size: 0.875rem;
        /* чуть меньше шрифта (~14px) */
        line-height: 1;
        /* чтобы вертикально не было лишнего пространства */
    }

    .custom-link:hover,
    .custom-link:focus {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.30);
        border-radius: 20px;
        outline: none;
        background-color: rgba(255, 255, 255, 0.02);
        /* лёгкий фон при ховере (опционально) */
    }

    .custom-link:focus {
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
        /* доступная индикация фокуса (можно убрать) */
    }

    .custom-link-highlight {
        font-weight: 600;
        /* немного жирнее */
    }