.young-footer {
    margin-top: auto;
    border-top: 1px solid var(--footer-border-color);
    background: var(--footer-background-color);
    color: var(--footer-title-color);
}

.young-footer__inner {
    margin: 0 auto;
    max-width: 1280px;
    padding: 48px 24px 64px;
}

.young-footer__top {
    display: grid;
    gap: 32px;
}

.young-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.young-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.young-footer__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.young-footer__logo-text {
    color: var(--footer-title-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.young-footer__description {
    margin: 0;
    max-width: 340px;
    color: var(--footer-text-color);
    font-size: 14px;
    line-height: 1.7;
}

.young-footer__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.young-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--footer-social-background-color);
    color: var(--footer-social-color);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.young-footer__social-link:hover,
.young-footer__social-link:focus-visible {
    background: var(--footer-social-hover-background-color);
    color: var(--footer-social-hover-color);
    transform: translateY(-1px);
}

.young-footer__social-link:hover .young-footer__social-icon svg,
.young-footer__social-link:focus-visible .young-footer__social-icon svg {
    opacity: 1;
}

.young-footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.young-footer__social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    opacity: 0.9;
}

.young-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.young-footer__column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.young-footer__column-title {
    margin: 0;
    color: var(--footer-title-color);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.young-footer__menu,
.young-footer__legal-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.young-footer__menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.young-footer__menu-item {
    margin: 0;
}

.young-footer__menu a,
.young-footer__legal-menu a,
.young-footer__menu-link {
    color: var(--footer-text-color);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.young-footer__menu a:hover,
.young-footer__menu a:focus-visible,
.young-footer__legal-menu a:hover,
.young-footer__legal-menu a:focus-visible,
.young-footer__menu-link:hover,
.young-footer__menu-link:focus-visible {
    color: var(--footer-social-hover-color);
}

.young-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--footer-bottom-border-color);
}

.young-footer__copyright {
    margin: 0;
    color: var(--footer-bottom-text-color);
    font-size: 12px;
    line-height: 1.5;
}

.young-footer__legal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.young-footer__bottom .young-footer__menu-link,
.young-footer__bottom .young-footer__legal-menu a {
    color: var(--footer-bottom-text-color);
    font-size: 12px;
}

.young-footer__bottom .young-footer__legal-menu a:hover,
.young-footer__bottom .young-footer__legal-menu a:focus-visible,
.young-footer__bottom .young-footer__menu-link:hover,
.young-footer__bottom .young-footer__menu-link:focus-visible {
    color: var(--footer-bottom-hover-color);
}

@media (min-width: 768px) {
    .young-footer__inner {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .young-footer__top {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 48px;
    }

    .young-footer__brand {
        grid-column: span 4;
    }

    .young-footer__columns {
        grid-column: span 8;
        gap: 32px;
    }

    .young-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .young-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .young-footer__legal-menu {
        gap: 16px;
    }
}
