/* Футер по рендеру № 06 (template-parts/site-footer.php).
   Размеры в rem, масштаб общий для сайта (main.css, .page); сетка — .container, как у шапки.
   Класс .ft, а не .footer: прежний .footer стилизуют main.css и new/style.css. */

.ft {
    --ft-accent: #602f95;
    --ft-accent-dark: #4d2279;
    --ft-ink: #0d0a37;
    --ft-text: #1f1d33;
    --ft-link: #62667a;
    --ft-muted: #8b8d9e;
    --ft-tg: #5462b9;
    --ft-line: #e8e8ef;
    padding: 5.2rem 0 4rem;
    /* Сверху — фон страниц-лендингов (их белый последний раздел скруглён снизу), ниже карточки — белый */
    background: linear-gradient(#f0f3fb 0, #f5f6fd 14rem, #fff 28rem);
    color: var(--ft-ink);
}

.ft a {
    text-decoration: none;
}

/* Сброс списков и абзацев без веса селектора — отступы компонентов ниже его перекрывают */
:where(.ft) ul,
:where(.ft) p {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft a:focus-visible,
.ft summary:focus-visible,
.ft-btn:focus-visible {
    outline: .2rem solid var(--ft-accent);
    outline-offset: .3rem;
    border-radius: .6rem;
}

.ft-icon {
    flex-shrink: 0;
    display: block;
}

/* Призыв к действию: карточка по ширине сетки (как на новой главной), текст слева, иллюстрация справа.
   Раньше карточка выступала за сетку на 6rem — при узких полях .container она уходила за край экрана. */

.ft-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin: 0;
    padding: 4.6rem 6rem 4rem 8rem;
    border-radius: 2.6rem;
    background-color: #eff0fd;
    background-image: linear-gradient(100deg, #f1f0fd 0%, #eceffd 100%);
    overflow: hidden;
}

.ft-cta__title {
    margin: 0;
    color: #04002a;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.ft-cta__desc {
    max-width: 62rem;
    margin-top: 1.2rem;
    color: #62657a;
    font-size: 1.9rem;
    line-height: 1.4;
}

.ft-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 2.6rem;
}

.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25rem;
    min-height: 5.3rem;
    padding: 0 3rem;
    border: .15rem solid var(--ft-accent);
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.ft-btn--primary {
    min-width: 26rem;
    background-color: var(--ft-accent);
    color: #fff;
}

.ft-btn--primary:hover {
    border-color: var(--ft-accent-dark);
    background-color: var(--ft-accent-dark);
    color: #fff;
}

.ft-btn--secondary {
    background-color: #fff;
    color: var(--ft-accent);
}

.ft-btn--secondary:hover {
    background-color: #f7f3fe;
    color: var(--ft-accent-dark);
}

.ft-cta__art {
    flex-shrink: 0;
    width: 36rem;
    height: auto;
    margin: -1.6rem 0;
}

/* Контакты и навигация: две строки сетки, чтобы соцсети и знаки доверия стояли на одной высоте */

.ft-main {
    display: grid;
    grid-template-columns: 33.5rem minmax(0, 1fr);
    grid-template-areas:
        "contacts nav"
        "socials trust";
    column-gap: 3.8rem;
    padding-top: 6.4rem;
}

.ft-contacts {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* У картинки логотипа прозрачные поля: видимая часть — 76% ширины и половина высоты */
.ft-logo {
    display: block;
    margin: -2.7rem 0 -2.9rem -2.4rem;
}

.ft-logo img {
    display: block;
    width: 29.3rem;
    height: auto;
}

.ft-contacts__tagline {
    margin-top: 1.4rem;
    color: #62657a;
    font-size: 1.7rem;
    line-height: 1.4;
}

.ft-contacts__phone,
.ft-contacts__mail {
    display: inline-flex;
    align-items: center;
    gap: 2.2rem;
    transition: color .15s;
}

.ft-contacts__phone {
    margin-top: 3rem;
    color: var(--ft-ink);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.ft-contacts__mail {
    margin-top: 1.6rem;
    color: var(--ft-text);
    font-size: 2rem;
    line-height: 1.3;
}

.ft-contacts__phone .ft-icon,
.ft-contacts__mail .ft-icon {
    width: 2.4rem;
    height: 2.4rem;
    color: #6f469d;
}

.ft-contacts__phone:hover,
.ft-contacts__mail:hover {
    color: var(--ft-accent);
}

.ft-contacts__tg {
    display: grid;
    gap: 1.2rem;
    margin-top: 2.6rem;
}

.ft-contacts__tg a {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    color: var(--ft-tg);
    font-size: 1.5rem;
    line-height: 1.35;
    transition: color .15s;
}

.ft-contacts__tg a:hover {
    color: var(--ft-accent);
}

.ft-contacts__tg .ft-icon {
    width: 2.7rem;
    height: 2.7rem;
}

.ft-socials {
    grid-area: socials;
    display: flex;
    align-items: center;
    gap: 2.6rem;
    margin-top: 6.4rem;
    /* центр кружков — на уровне центра знаков доверия: .1 линия + 3.8 отступ + 2.6 половина строки − 1.9 */
    padding-top: 4.6rem;
}

.ft-socials__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    background-color: #eceef4;
    color: #6f758a;
    transition: background-color .15s, color .15s;
}

.ft-socials__link:hover {
    background-color: var(--ft-accent);
    color: #fff;
}

.ft-socials__link .ft-icon {
    width: 1.9rem;
    height: 1.9rem;
}

.ft-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: 16fr 22fr 16fr 24fr;
    column-gap: 2rem;
}

.ft-group__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    color: #04002a;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    list-style: none;
    cursor: default;
}

.ft-group__title::-webkit-details-marker {
    display: none;
}

.ft-group__title .hn-icon {
    display: none;
    width: 2rem;
    height: 2rem;
    color: var(--ft-muted);
    transition: transform .2s;
}

.ft-group__list {
    display: grid;
    gap: 1.8rem;
}

.ft-group__link {
    color: var(--ft-link);
    font-size: 1.45rem;
    line-height: 1.4;
    transition: color .15s;
}

.ft-group__link:hover {
    color: var(--ft-accent);
}

/* Знаки доверия — под колонками ссылок, отделены линией и вертикальными разделителями */

.ft-trust {
    grid-area: trust;
    display: grid;
    grid-template-columns: 28.6fr 37.9fr 33.5fr;
    align-items: center;
    margin-top: 6.4rem;
    padding-top: 3.8rem;
    border-top: .1rem solid var(--ft-line);
}

.ft-trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.2rem;
}

.ft-trust__item:first-child {
    justify-content: flex-start;
    padding-left: 2rem;
}

.ft-trust__item + .ft-trust__item {
    border-left: .1rem solid var(--ft-line);
}

.ft-badge {
    display: block;
    transition: opacity .15s;
}

a.ft-badge:hover {
    opacity: .75;
}

.ft-badge__img {
    display: block;
    width: auto;
    height: 4.4rem;
}

/* Копирайт и реквизиты */

.ft-legal {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 5.2rem;
    padding-top: 3.4rem;
    border-top: .1rem solid var(--ft-line);
    color: var(--ft-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

.ft-legal__note {
    flex-shrink: 0;
    text-align: right;
}

/* Телефон */

@media (max-width: 640px) {
    .ft {
        padding: 3.2rem 0;
        background: linear-gradient(#f0f3fb 0, #fff 40rem);
    }

    .ft-cta {
        display: block;
        margin: 0;
        padding: 2.8rem 2rem;
        border-radius: 2rem;
    }

    .ft-cta__title {
        font-size: 2.6rem;
    }

    .ft-cta__desc {
        font-size: 1.5rem;
    }

    .ft-cta__actions {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 2.4rem;
    }

    .ft-btn,
    .ft-btn--primary {
        width: 100%;
        min-width: 0;
        min-height: 5.2rem;
        font-size: 1.6rem;
    }

    .ft-cta__art {
        display: none;
    }

    .ft-main {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "contacts"
            "socials"
            "nav"
            "trust";
        padding-top: 4rem;
    }

    .ft-logo {
        margin: -2rem 0 -2.2rem -1.8rem;
    }

    .ft-logo img {
        width: 22rem;
    }

    .ft-contacts__tagline {
        font-size: 1.5rem;
    }

    .ft-contacts__phone {
        gap: 1.6rem;
        margin-top: 2.4rem;
        font-size: 2.4rem;
    }

    .ft-contacts__mail {
        gap: 1.6rem;
        font-size: 1.7rem;
    }

    .ft-contacts__tg a {
        gap: 1.6rem;
    }

    .ft-socials {
        margin: 0;
        padding: 2.4rem 0 3.2rem;
    }

    .ft-nav {
        grid-template-columns: minmax(0, 1fr);
        border-top: .1rem solid var(--ft-line);
    }

    .ft-group {
        border-bottom: .1rem solid var(--ft-line);
    }

    .ft-group__title {
        min-height: 5.2rem;
        margin: 0;
        padding: 1.4rem 0;
        font-size: 1.6rem;
        cursor: pointer;
    }

    .ft-group__title .hn-icon {
        display: block;
    }

    .ft-group[open] .ft-group__title .hn-icon {
        transform: rotate(180deg);
    }

    .ft-group__list {
        gap: 1.4rem;
        padding-bottom: 1.8rem;
    }

    .ft-trust {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        margin: 0;
        padding-top: 2.4rem;
        border-top: 0;
    }

    .ft-trust__item,
    .ft-trust__item:first-child {
        justify-content: flex-start;
        min-height: 0;
        padding-left: 0;
    }

    .ft-trust__item + .ft-trust__item {
        border-left: 0;
    }

    .ft-badge__img {
        height: 4rem;
    }

    .ft-legal {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 3.2rem;
        padding-top: 2.4rem;
        font-size: 1.3rem;
    }

    .ft-legal__note {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft-btn,
    .ft-group__title .hn-icon {
        transition: none;
    }
}
