/**
 * Футер сайта: тёмный тил, четыре колонки.
 *
 * Файл подключается после style.css (зависимость 'gidkursov-style'), поэтому
 * перекрывает базовые правила .gk-site-footer из style.css без !important.
 * Токены --gk-* здесь недоступны (футер вне .gk-v4-shell), поэтому цвета
 * заданы напрямую, с fallback для акцентного зелёного.
 */

.gk-site-footer {
    display: block;
    justify-content: initial;
    width: 100%;
    margin-top: 8px;
    padding: 44px 0 0;
    border-top: 0;
    color: rgba(255, 255, 255, .72);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    background-color: #073d52;
    background-image:
        radial-gradient(720px 320px at 92% -20%, rgba(117, 218, 115, .16) 0, rgba(117, 218, 115, 0) 60%),
        linear-gradient(135deg, #073d52 0%, #0a4354 58%, #0e5566 100%);
    background-repeat: no-repeat;
}

.gk-site-footer *,
.gk-site-footer *::before,
.gk-site-footer *::after {
    box-sizing: border-box;
}

.gk-site-footer__inner {
    width: min(1240px, calc(100vw - 20px));
    margin: 0 auto;
}

.gk-site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* бренд */
.gk-site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.gk-site-footer__mark {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gk-accent, #75da73);
    color: #06364a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.gk-site-footer__name {
    display: inline-block;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.gk-site-footer__name small {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.gk-site-footer__about {
    margin: 14px 0 0;
    max-width: 36ch;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .6);
}

/* колонки */
.gk-site-footer__title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.gk-site-footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.gk-site-footer__col a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: color .16s ease;
}

.gk-site-footer__col a:hover {
    color: #ffffff;
}

.gk-site-footer__col a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 4px;
}

/* нижняя полоса */
.gk-site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 18px 0 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

.gk-site-footer__copy {
    margin: 0;
    flex: 0 1 50%;
    max-width: 50%;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .45);
}

.gk-site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* ссылки правового блока — на одной линии: тема задаёт #reset-cookie-consent
   min-height 44px и inline-flex, из-за чего он «прыгал» относительно соседней */
.gk-site-footer__legal a,
.gk-site-footer__legal #reset-cookie-consent {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 2px 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, .62);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .16s ease, border-color .16s ease;
}

.gk-site-footer__legal a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, .5);
}

.gk-site-footer__legal a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .gk-site-footer__grid {
        grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 960px) {
    .gk-site-footer {
        padding-top: 34px;
    }

    .gk-site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .gk-site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .gk-site-footer {
        padding-top: 28px;
    }

    .gk-site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding-bottom: 24px;
    }

    .gk-site-footer__about {
        max-width: none;
    }

    .gk-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0 22px;
    }

    /* в колоночной раскладке flex-basis 50% дал бы половину высоты */
    .gk-site-footer__copy {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-site-footer__col a,
    .gk-site-footer__legal a {
        transition: none;
    }
}
