.footer-grid h5 {
    margin-bottom: 0.85rem;
}

.footer-nav-links {
    margin: 0;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.15s, transform 0.15s;
}

.footer-nav-link i {
    font-size: 1rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.footer-nav-link:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.footer-nav-link.is-active {
    color: #fff;
    font-weight: 700;
}

.footer-nav-links li {
    margin-bottom: 0.45rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-social-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.75rem;
}

.footer-social-group + .footer-social-group {
    margin-top: 0.85rem;
}

.footer-social-group-title {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.45rem;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    opacity: 1;
    filter: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.site-footer .footer-social-links .footer-social-link {
    color: inherit;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.footer-social-link:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.footer-social-link.is-disabled {
    cursor: default;
}

.site-footer .footer-social-links .footer-social-link:hover,
.site-footer .footer-social-links .footer-social-link:focus-visible {
    text-decoration: none;
}

.footer-social-icon {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.22s ease, opacity 0.15s ease;
    opacity: 1;
}

.footer-social-link:hover .footer-social-icon,
.footer-social-link:focus-visible .footer-social-icon {
    transform: scale(1.04);
}

.footer-social-link:active .footer-social-icon {
    transform: scale(0.96);
}

.footer-social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.footer-social-link--dzen:hover,
.footer-social-link--dzen:focus-visible {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.footer-social-link--dzen:active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.footer-social-link--vk:hover,
.footer-social-link--vk:focus-visible {
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.45);
}

.footer-social-link--vk:active {
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.55);
}

.footer-social-link--max:hover,
.footer-social-link--max:focus-visible {
    box-shadow: 0 8px 20px rgba(91, 79, 214, 0.45);
}

.footer-social-link--max:active {
    box-shadow: 0 4px 12px rgba(91, 79, 214, 0.55);
}

.footer-social-link--rutube:hover,
.footer-social-link--rutube:focus-visible {
    box-shadow: 0 8px 20px rgba(16, 24, 64, 0.45);
}

.footer-social-link--rutube:active {
    box-shadow: 0 4px 12px rgba(16, 24, 64, 0.55);
}

.footer-social-link--telegram:hover,
.footer-social-link--telegram:focus-visible {
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.45);
}

.footer-social-link--telegram:active {
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.55);
}

.footer-social-link[class*="footer-social-link--custom_"]:hover,
.footer-social-link[class*="footer-social-link--custom_"]:focus-visible {
    box-shadow: 0 8px 20px rgba(18, 107, 133, 0.4);
}

.footer-social-link[class*="footer-social-link--custom_"]:active {
    box-shadow: 0 4px 12px rgba(18, 107, 133, 0.5);
}

.footer-feedback-form .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #1a323c;
    padding: 0.55rem 0.75rem;
}

.footer-feedback-form .form-control::placeholder {
    color: #7a8f99;
}

.footer-feedback-form .form-control:focus {
    background: #fff;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(110, 184, 212, 0.35);
    color: #1a323c;
}

.footer-feedback-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.footer-feedback-challenge-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
}

.footer-feedback-challenge-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.footer-feedback-actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.footer-feedback-submit {
    background: #0e5f78;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.92rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.footer-feedback-submit:hover:not(:disabled) {
    background: #117a98;
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.footer-feedback-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    transition-duration: 0.1s;
}

.footer-feedback-submit:disabled {
    background: #0e5f78;
    border-color: rgba(255, 255, 255, 0.35);
    opacity: 0.75;
    cursor: not-allowed;
    box-shadow: none;
}

.footer-feedback-status {
    min-height: 1.1rem;
    font-size: 0.82rem;
}

.footer-feedback-status.is-error {
    color: #ffd6d6;
}

.footer-feedback-status.is-success {
    color: #d1fae5;
}

.footer-contacts {
    margin-bottom: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

.footer-contact-item a {
    color: #fff;
    text-decoration: none;
}

.footer-contact-item a:hover {
    text-decoration: underline;
}

.footer-contact-extra {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0.35rem 0 0;
}

.footer-developers-block {
    margin-top: 0.35rem;
}

.footer-developers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
    max-width: calc(96px * 3 + 0.75rem * 2);
}

.footer-developers--count-2 {
    justify-content: space-around;
    gap: 0;
}

.footer-developer {
    margin: 0;
    text-align: center;
    flex: 0 0 auto;
    max-width: 96px;
}

.footer-developer-photo-btn {
    display: block;
    margin: 0 auto 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.footer-developer-photo-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 14px;
}

.footer-developer-photo-btn.is-zoomed {
    z-index: 20;
}

.footer-developer-photo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.footer-developer-photo-btn.is-zoomed .footer-developer-photo,
.footer-developer-photo-btn.is-zoomed .footer-developer-photo--placeholder {
    transform: scale(2.7);
}

.footer-developer-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-developer-caption {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-developer-name {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.footer-developer-role {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
    line-height: 1.2;
}

.footer-developer-text {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
}

.footer-developers-quote {
    margin: 0.55rem 0 0;
    padding: 0;
    border: none;
    width: 100%;
    max-width: calc(96px * 3 + 0.75rem * 2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    quotes: none;
}

@media (max-width: 991.98px) {
    .footer-grid > [class*="col-"] + [class*="col-"] {
        margin-top: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .footer-col-brand,
    .footer-col-nav,
    .site-footer .footer-bottom {
        display: none;
    }

    .footer-col-contacts .footer-contact-item--phone {
        display: none;
    }

    .site-footer {
        padding: 2rem 0 1.75rem;
        margin-top: 2rem;
    }

    .footer-grid {
        --bs-gutter-y: 1.25rem;
    }

    .footer-col-contacts + .footer-col-feedback {
        margin-top: 0;
    }

    .footer-developers {
        max-width: none;
    }

    .footer-developers-quote {
        max-width: none;
    }
}
