﻿/**
 * Footer component styles.
 *
 * @package MaxisTheme
 */

.site-footer {
    margin-top: 48px;
    background: linear-gradient(180deg, #0e1116 0%, #0b0d10 100%);
    border-top: 1px solid #242b36;
    color: #e8ecf3;
}

.site-footer__top {
    padding-top: 26px;
    padding-bottom: 20px;
}

.site-footer__grid {
    grid-template-columns: 1fr;
}

.site-footer__block {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 0;
}

.site-footer__block--brand {
    gap: 14px;
    padding-right: clamp(0px, 2vw, 24px);
}

.site-footer__block--brand .site-footer__brand-logo {
    display: flex;
    min-height: 46px;
    align-items: center;
}

.site-footer__brand-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #e8ecf3;
    text-decoration: none;
}

.site-footer__brand-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.site-footer__brand-logo .custom-logo {
    max-height: 44px;
    width: auto;
}

.site-footer__brand-text {
    font-size: 1.125rem;
    line-height: 1.25;
    font-weight: 700;
}

.site-footer__about {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #202630;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #b6bfcc;
    max-width: 48ch;
}

.site-footer__title {
    position: relative;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.25;
    font-weight: 700;
    color: #e8ecf3;
}

.site-footer__block--contacts>.site-footer__title::after {
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 11px;
    border-radius: 2px;
    background: #3b82f6;
    content: '';
}

.site-footer__block--contacts {
    padding-left: clamp(0px, 1.5vw, 20px);
    border-left: 1px solid #202630;
}

.site-footer__list,
.site-footer__social-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.site-footer__list a,
.site-footer__social-list a,
.site-footer__map-link,
.site-footer__privacy a {
    color: #b6bfcc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__list a,
.site-footer__social-list a,
.site-footer__map-link,
.site-footer__whatsapp,
.site-footer__privacy a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.site-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #202630;
}

.site-footer__social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #303947;
    border-radius: 12px;
    background: #151a21;
    color: #c7d0dc;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 2px 6px rgba(0, 0, 0, 0.14);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-footer__social-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.site-footer__social-link .site-footer__social-fill {
    fill: currentColor;
    stroke: none;
}

.site-footer__social-link .site-footer__social-dot {
    fill: currentColor;
    stroke: none;
}

.site-footer__social-list .site-footer__social-link--whatsapp {
    color: #62d987;
}

.site-footer__social-list .site-footer__social-link--instagram {
    color: #e891b5;
}

.site-footer__social-list .site-footer__social-link--youtube {
    color: #ff7777;
}

.site-footer__social-list .site-footer__social-link--tiktok {
    color: #80d9d3;
}

.site-footer__social-list .site-footer__social-link--telegram {
    color: #70bce0;
}

.site-footer__social-link:hover {
    border-color: currentColor;
    background: #1b222c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.site-footer__social-link--whatsapp:hover {
    border-color: #25d366;
    color: #48dc7b;
}

.site-footer__social-link--instagram:hover {
    border-color: #e879a8;
    color: #f08ab6;
}

.site-footer__social-link--youtube:hover {
    border-color: #ff5555;
    color: #ff6666;
}

.site-footer__social-link--tiktok:hover {
    border-color: #67e8e1;
    color: #82f0e9;
}

.site-footer__social-link--telegram:hover {
    border-color: #55b9e8;
    color: #6bc7f3;
}

.site-footer__list--contacts span,
.site-footer__list--contacts a {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #b6bfcc;
}

.site-footer__list--contacts {
    gap: 5px;
    margin-top: 4px;
}

.site-footer__list--contacts li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
}

.site-footer__list--contacts li>svg {
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    align-self: center;
    padding: 8px;
    border: 1px solid #242e3b;
    border-radius: 10px;
    background: #151a21;
    fill: none;
    stroke: #8fb7fa;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.site-footer__list--contacts li>a,
.site-footer__list--contacts li>span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer__list--contacts .site-footer__contact-item--phone>a {
    display: flex;
    min-height: 48px;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: #e3eaf4;
    font-weight: 600;
    white-space: nowrap;
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
}

.site-footer__list--contacts .site-footer__contact-item--address {
    align-items: start;
    padding-block: 7px;
}

.site-footer__list--contacts .site-footer__contact-item--address>svg {
    margin-top: 3px;
    align-self: start;
}

.site-footer__list--contacts li>a:hover {
    color: #fff;
}

.site-footer__list--contacts li>svg {
    transition: color 0.18s ease;
}

.site-footer__list--contacts li:has(> a:hover)>svg {
    color: #7caeff;
    stroke: currentColor;
}

.site-footer__actions {
    margin: 0;
}

.site-footer__contact-whatsapp {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.08);
    color: #a3f2bd;
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none;
}

.site-footer__contact-whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.15);
    color: #c4f7d4;
}

.site-footer__block--remote {
    position: relative;
    isolation: isolate;
    gap: 12px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #303947;
    border-radius: 12px;
    background: linear-gradient(145deg, #19212d, #11151c 78%);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 8px 24px rgba(0, 0, 0, 0.14);
}

.site-footer__block--remote::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 150px;
    height: 120px;
    background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.15), transparent 70%);
    content: '';
    pointer-events: none;
}

.site-footer__remote-kicker {
    color: #7caeff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.site-footer__remote-title {
    max-width: 24ch;
    font-size: 1.125rem;
    line-height: 1.3;
}

.site-footer__remote-description {
    max-width: 42ch;
    margin: 0;
    color: #bac4d1;
    font-size: 0.875rem;
    line-height: 1.55;
}

.site-footer__remote-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 5px;
}

.site-footer__remote-button {
    display: inline-flex;
    min-height: 42px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    gap: 7px;
    border: 1px solid #303947;
    border-radius: 8px;
    background: #0b0d10;
    color: #e8ecf3;
    font-size: 0.78125rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-footer__remote-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-footer__remote-button--whatsapp {
    border-color: rgba(37, 211, 102, 0.48);
    background: rgba(37, 211, 102, 0.09);
    color: #b6f2c8;
}

.site-footer__remote-button--whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.16);
    color: #d3f8de;
}

.site-footer__remote-button--download {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    color: #c7dcff;
}

.site-footer__remote-button--download:hover {
    border-color: #72a8ff;
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
}

.site-footer__map-embed {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #242b36;
    background: #171c24;
    min-height: 180px;
}

.site-footer__map-embed iframe {
    display: block;
    width: 100%;
    min-height: 220px;
    border: 0;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 20px;
    border-top: 1px solid #202630;
}

.site-footer__bottom-item {
    color: #8d97a6;
    font-size: 0.875rem;
    line-height: 1.5;
}

.site-footer__copyright,
.site-footer__privacy {
    margin: 0;
}

.site-footer a:hover {
    color: #e8ecf3;
}

.site-footer__social-link:hover,
.site-footer__remote-button:hover,
.site-footer__contact-whatsapp:hover {
    transform: translateY(-1px);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 10px;
}

.site-footer__social-link:focus-visible,
.site-footer__remote-button:focus-visible,
.site-footer__contact-whatsapp:focus-visible {
    border-radius: 12px;
}

@media (min-width: 768px) {
    .site-footer {
        margin-top: 64px;
    }

    .site-footer__top {
        padding-top: 40px;
        padding-bottom: 24px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .site-footer__block--contacts {
        padding-left: 20px;
    }

    .site-footer__block--remote {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .site-footer__block--contacts {
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid #202630;
        border-left: 0;
    }

    .site-footer__list--contacts .site-footer__contact-item--phone>a {
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .site-footer__top {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(280px, 1.1fr);
        align-items: start;
        gap: clamp(24px, 3vw, 44px);
    }

    .site-footer__block--remote {
        grid-column: auto;
        padding: 20px;
    }

    .site-footer__bottom {
        padding-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .site-footer__top {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .site-footer__grid {
        gap: 22px;
    }

    .site-footer__block--remote {
        padding: 16px;
    }

    .site-footer__remote-button {
        width: 100%;
        padding-inline: 6px;
        gap: 5px;
        font-size: 0.75rem;
    }

    .site-footer__social-link {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .site-footer__bottom {
        justify-content: flex-start;
        gap: 4px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .site-footer__list a,
    .site-footer__social-list a,
    .site-footer__social-link,
    .site-footer__contact-whatsapp,
    .site-footer__remote-button,
    .site-footer__map-link,
    .site-footer__privacy a {
        transition: none;
    }

    .site-footer__social-link:hover,
    .site-footer__remote-button:hover,
    .site-footer__contact-whatsapp:hover {
        transform: none;
    }
}