@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/Fira sans/FiraSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/Fira sans/FiraSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

.joyin-site-footer {
    background: #f4f3ee;
    color: #29323d;
    font-family: 'Roboto', 'Fira Sans', Arial, sans-serif;
}

.joyin-footer-inner {
    width: min(1400px, calc(100% - 64px));
    min-height: 320px;
    display: flex;
    justify-content: space-between;
    gap: clamp(48px, 7vw, 120px);
    margin: 0 auto;
    padding: clamp(78px, 9vw, 118px) 0 clamp(64px, 7vw, 92px);
}

.joyin-footer-brand {
    display: flex;
    min-width: min(520px, 42vw);
    flex-direction: column;
    align-items: flex-start;
}

.joyin-footer-logo {
    display: inline-flex;
    width: clamp(170px, 16vw, 244px);
    line-height: 0;
}

.joyin-footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.joyin-footer-brand p {
    max-width: none;
    margin: 28px 0 0;
    color: #343d48;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(12px, 1.09375vw, 16px);
    font-weight: 400;
    line-height: 1.45;
}

.joyin-footer-social-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.joyin-footer-social {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.joyin-footer-social:hover,
.joyin-footer-social:focus-visible {
    opacity: 0.72;
}

.joyin-footer-social img {
    width: clamp(18px, 1.875vw, 30px);
    height: clamp(18px, 1.875vw, 30px);
    display: block;
    object-fit: contain;
}

.joyin-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    align-items: start;
    gap: clamp(56px, 7vw, 116px);
}

.joyin-footer-col {
    display: grid;
    grid-auto-rows: max-content;
    row-gap: 16px;
    align-items: flex-start;
}

.joyin-footer-col h2 {
    margin: 0 0 26px;
    color: #29323d;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(15px, 1.40625vw, 22px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

.joyin-footer-accordion-control {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.joyin-footer-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: left;
    cursor: default;
}

.joyin-footer-accordion-icon {
    display: none;
}

.joyin-footer-links {
    display: grid;
    row-gap: 16px;
}

.joyin-footer-col a {
    margin: 0;
    color: #5c6570;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(12px, 1.09375vw, 16px);
    font-weight: 300;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.joyin-footer-col a:hover,
.joyin-footer-col a:focus-visible {
    color: #f37022;
}

.joyin-footer-copyright {
    display: none;
}

@media (max-width: 1024px) {
    .joyin-footer-inner {
        flex-direction: column;
        gap: 64px;
    }

    .joyin-footer-brand {
        min-width: 100%;
        min-height: 190px;
    }

    .joyin-footer-nav {
        gap: 42px;
    }
}

@media (max-width: 767px) {
    .joyin-site-footer {
        font-size: clamp(12px, 3.17vw, 16px);
    }

    .joyin-footer-inner {
        width: calc(100% - 40px);
        min-height: 0;
        gap: 0;
        padding: 28px 0 34px;
    }

    .joyin-footer-brand {
        min-height: 0;
        margin-bottom: 38px;
    }

    .joyin-footer-logo {
        width: 45%;
    }

    .joyin-footer-brand p {
        margin: 5% 0;
        font-size: clamp(12px, 3.17vw, 16px);
        line-height: 1.35;
    }

    .joyin-footer-social-list {
        gap: 8px;
        margin-top: 0;
    }

    .joyin-footer-social img {
        width: 24px;
        height: 24px;
    }

    .joyin-footer-nav {
        width: calc(100% + 40px);
        margin-left: -20px;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .joyin-footer-col {
        row-gap: 0;
        padding: 0 20px;
        border-bottom: 1px solid rgba(39, 49, 60, 0.18);
    }

    .joyin-footer-col h2 {
        margin: 0;
        font-size: clamp(12px, 3.17vw, 16px);
        line-height: 1.15;
    }

    .joyin-footer-accordion-toggle {
        min-height: 56px;
        cursor: pointer;
    }

    .joyin-footer-accordion-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        color: #29323d;
        font-size: clamp(18px, 4.52vw, 24px);
        font-weight: 300;
        line-height: 1;
        transition: transform 0.24s ease;
    }

    .joyin-footer-accordion-control:checked + h2 .joyin-footer-accordion-icon,
    .joyin-footer-col.is-open .joyin-footer-accordion-icon {
        transform: rotate(45deg);
    }

    .joyin-footer-links {
        max-height: 0;
        overflow: hidden;
        row-gap: 10px;
        opacity: 0;
        transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
    }

    .joyin-footer-accordion-control:checked ~ .joyin-footer-links,
    .joyin-footer-col.is-open .joyin-footer-links {
        max-height: 60vh;
        padding: 0 0 18px;
        opacity: 1;
    }

    .joyin-footer-col a {
        font-size: clamp(12px, 3.17vw, 16px);
        line-height: 1.25;
    }

    .joyin-footer-copyright {
        display: block;
        width: 100%;
        margin: 20px 0 0;
        color: #29323d;
        font-family: 'Roboto', Arial, sans-serif;
        font-size: clamp(10px, 2.71vw, 14px);
        font-weight: 400;
        line-height: 1.2;
    }
}
