*,
*::before,
*::after {
    box-sizing: border-box;

    margin: 0;
    padding: 0;
}

html, body {
    background-color: #f8f8f8;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;

    user-select: none;

    overscroll-behavior: none;

    scrollbar-width: none;
}

#tests, #features, #faq {
    scroll-margin-top: 128px;
}

header {
    width: 100%;
    min-width: 348px;
    height: 128px;

    background-color: rgba(248, 248, 248, 0.8);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    padding: 0 32px;

    display: flex;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 10240;
}

.header-left-box {
    border-radius: 32px;

    height: 64px;

    background-color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: right;

    flex: 1;
    min-width: 0;
}

.header-left-content-box {
    width: 516px;
    height: 48px;

    margin-right: 20px;

    display: flex;
    align-items: center;
    justify-content: left;
}

.header-left-content-box a {
    color: #000000;

    text-decoration: none;
}

.header-mark-box {
    border-radius: 18px;

    width: 112px;
    height: 36px;

    background: radial-gradient(circle, #fef6e4 8%, transparent 100%);

    display: flex;
    align-items: center;
    justify-content: center;
}

.header-center-box {
    border-radius: 50%;

    width: 88px;
    height: 88px;

    background: #ffffff;

    margin-left: 20px;
    margin-right: 20px;

    flex-shrink: 0;
}

.header-center-box > img {
    width: 88px;
    height: 88px;

    object-fit: cover;
}

.header-right-box {
    border-radius: 32px;

    height: 64px;

    background-color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: left;

    flex: 1;
    min-width: 0;
}

.header-right-content-box {
    width: 516px;
    height: 48px;

    /*background-color: #f3d2c1;*/

    margin-left: 20px;

    display: flex;
    align-items: center;
    justify-content: right;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.nav-links a {
    border-radius: 18px;

    height: 36px;

    padding-left: 18px;
    padding-right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 36px;

    color: #000000;

    text-decoration: none;

    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: #f8f8f8;

    color: #000000;
}

.common-container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;
}

main {
    min-width: 348px;

    margin-top: 128px;

    display: flex;
    justify-content: center;

    flex-wrap: wrap;
}

.hero {
    border-radius: 32px;

    width: 1200px;

    background-color: #ffffff;

    padding: 20px 0;
}

.hero-content {
    padding: 0 20px;

    text-align: center;
}

.main-tests {
    border-radius: 32px;

    width: 1200px;

    background-color: #ffffff;

    margin-top: 32px;
    margin-bottom: 32px;

    padding-top: 105px;
    padding-bottom: 105px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.features {
    border-radius: 32px;

    width: 1200px;

    background-color: #ffffff;

    margin-bottom: 32px;

    padding: 20px 0;
}

.faq {
    border-radius: 32px;

    width: 1200px;

    background-color: #ffffff;

    padding: 20px 0;

    text-align: center;
}

footer {
    min-width: 348px;

    height: auto;
    min-height: 128px;

    padding: 0 32px;

    display: flex;
    align-items: center;
}

.footer-center-box {
    border-radius: 32px;

    min-height: 64px;
    height: auto;

    background-color: #ffffff;

    padding: 10px 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
    min-width: 0;
}

.footer-center-content-box {
    border-radius: 999px;

    max-width: 100%;
    min-height: 44px;

    background: radial-gradient(circle, #fef6e4 8%, transparent 100%);

    padding: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-center-content-box p {
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1.4;

    color: #64748b;

    font-size: 14px;

    flex-wrap: wrap;

    gap: 8px 10px;
}

.footer-brand-line {
    border-radius: 999px;

    min-height: 32px;

    background: radial-gradient(circle, #ffffff 8%, transparent 100%);

    padding: 0 12px;

    display: inline-flex;
    align-items: center;

    font-weight: 600;

    color: #6f6256;

    white-space: nowrap;
}

.footer-link-line {
    border-radius: 999px;

    min-width: 0;

    background: radial-gradient(circle, #ffffff 8%, transparent 100%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;
}

.footer-center-content-box a {
    border-radius: 999px;

    min-height: 32px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;

    color: #6f6256;

    font-size: 13px;

    text-decoration: none;

    white-space: nowrap;
}

/* ✨ */

@media (min-width: 768px) and (max-width: 1263.98px) {
    header {
        padding: 0 32px;
    }

    main {
        padding: 0 32px;
    }

    footer {
        padding: 0 32px;
    }
}

/* ✨ */

@media (max-width: 1303.98px) {
    .header-left-content-box {
        margin-left: 20px;
    }

    .header-right-content-box {
        margin-right: 20px;
    }
}

@media (max-width: 911.98px) {
    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 859.98px) {
    .nav-links a {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 767.98px) {
    html, body {
        font-size: 14px;
    }

    header {
        padding: 0 14px;

        display: grid;

        grid-template-columns: 88px minmax(0, 1fr) 64px;

        column-gap: 14px;
    }

    main {
        padding: 0 14px;
    }

    footer {
        padding: 0 14px;
    }

    .footer-center-box {
        padding: 10px;

        margin-top: 32px;
        margin-bottom: 32px;
    }

    .footer-center-content-box {
        border-radius: 24px;

        width: 100%;

        background: transparent;

        padding: 8px;

        box-shadow: none;
    }

    .footer-center-content-box p {
        flex-direction: column;

        gap: 8px;
    }

    .footer-brand-line {
        order: 1;
    }

    .footer-link-line {
        order: 2;
        width: 100%;
    }

    .header-left-box {
        width: 100%;
        min-width: 0;

        justify-content: center;

        order: 2;

        grid-column: 2;

        overflow: hidden;
    }

    .header-left-content-box {
        width: auto;

        margin-left: 0;
        margin-right: 0;

        justify-content: center;
    }

    .header-center-box {
        margin-left: 0;
        margin-right: 0;

        order: 1;

        grid-column: 1;
    }

    .header-mark-box {
        margin-left: 0;
    }

    .header-right-box {
        width: 64px;

        margin-left: 0;

        justify-content: center;

        order: 3;

        grid-column: 3;

        flex: 0 0 auto;

        overflow: visible;
    }

    .header-right-content-box {
        width: 64px;
        height: 48px;

        margin-left: 0;
        margin-right: 0;

        justify-content: center;
    }

    .nav-links {
        width: 36px;
        min-width: 36px;

        justify-content: center;
    }

    .language-selector {
        display: flex;

        flex: 0 0 36px;
    }

    .language-dropdown {
        right: -8px;
    }

    .nav-links > a {
        display: none;
    }
}
