/* Custom footer layout */
.ys-site-footer {
    --ys-footer-surface: #303030;
    --ys-footer-rule: rgba(255, 255, 255, .26);
    --ys-footer-heading: #fff;
    --ys-footer-copy: #d0d0d0;
    --ys-footer-blue: #0086ca;

    background: var(--ys-footer-surface);
    color: var(--ys-footer-copy);
    font-family: var(--theme-font-family, Arial, sans-serif);
}

.ys-footer-shell {
    width: min(100% - 48px, 1390px);
    margin: 0 auto;
    padding: 32px 0 18px;
}

.ys-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 20px 28px;
    border-bottom: 1px solid var(--ys-footer-rule);
}

.ys-footer-brand .custom-logo-link,
.ys-footer-brand .custom-logo {
    display: block;
}

.ys-footer-brand .custom-logo {
    width: auto;
    max-width: 242px;
    max-height: 56px;
}

.ys-footer-name {
    color: var(--ys-footer-heading);
    font-size: clamp(26px, 2.1vw, 42px);
    font-weight: 700;
    letter-spacing: -.04em;
    text-decoration: none;
}

.ys-footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.ys-footer-socials a,
.ys-social-empty {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: var(--ys-footer-blue);
}

.ys-footer-socials a {
    transition: transform .2s ease, background-color .2s ease;
}

.ys-footer-socials a:hover,
.ys-footer-socials a:focus-visible {
    background: #00a1ed;
    transform: translateY(-3px);
}

.ys-footer-socials img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.ys-footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(155px, 1fr));
    gap: clamp(36px, 5vw, 98px);
    padding: 43px 20px 44px;
}

.ys-footer-menu h2,
.ys-footer-contact h2 {
    margin: 0 0 15px;
    color: var(--ys-footer-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.ys-footer-menu h2 a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.ys-footer-menu-list,
.ys-footer-contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ys-footer-menu-list li + li {
    margin-top: 7px;
}

.ys-site-footer a,
.ys-footer-contact li > span:last-child {
    color: var(--ys-footer-copy);
    font-size: 15px;
    line-height: 1.52;
    text-decoration: none;
}

.ys-footer-menu-list a:hover,
.ys-footer-menu-list a:focus-visible,
.ys-footer-contact a:hover,
.ys-footer-contact a:focus-visible {
    color: #fff;
}

.ys-footer-contact {
    min-width: 250px;
}

.ys-footer-contact li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.ys-footer-contact li + li {
    margin-top: 13px;
}

.ys-contact-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 50%;
}

.ys-contact-icon img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.ys-footer-bottom {
    padding: 16px 20px 0;
    border-top: 1px solid var(--ys-footer-rule);
    text-align: center;
}

.ys-footer-bottom p {
    margin: 0;
    color: var(--ys-footer-copy);
    font-size: 14px;
    line-height: 1.5;
}

@media (min-width: 1100px) {
    .ys-footer-content:has(.ys-footer-contact) {
        grid-template-columns: repeat(3, minmax(145px, 1fr)) minmax(250px, 1.25fr);
    }
}

@media (max-width: 900px) {
    .ys-footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 64px;
    }
}

@media (max-width: 560px) {
    .ys-footer-shell {
        width: min(100% - 32px, 1390px);
        padding-top: 25px;
    }

    .ys-footer-top {
        align-items: flex-start;
        flex-direction: column;
        padding: 0 0 24px;
    }

    .ys-footer-brand .custom-logo {
        max-width: 210px;
    }

    .ys-footer-socials {
        justify-content: flex-start;
        gap: 11px;
    }

    .ys-footer-socials a,
    .ys-social-empty {
        width: 42px;
        height: 42px;
    }

    .ys-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 34px 0;
    }

    .ys-footer-bottom {
        padding: 15px 0 0;
    }
}