* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    color: rgb(10, 13, 49);
    background-color: white;
}

a {
    color: inherit;
}

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    background-color: white;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 12px;
    height: 1px;
    background-color: black;
}

.logo img {
    display: block;
    width: 150px;
    height: 90px;
}

.main-nav {
    position: absolute;
    left: 50%;
    display: flex;
    gap: 30px;
    transform: translateX(-50%);
}

.main-nav a {
    color: black;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[href="faq.html"] {
    color: rgb(40, 120, 247);
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    border-radius: 4px;
    background-color: rgb(40, 120, 247);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    background-color: rgb(36, 38, 39);
}

.page-label {
    max-width: 800px;
    margin: 0 auto;
    padding: 54px 24px 0;
    text-align: center;
}

.page-label span {
    display: inline-flex;
    padding: 7px 9px 6px;
    border-radius: 4px;
    background-color: rgb(245, 245, 245);
    color: rgb(95, 101, 103);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.faq-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    text-align: center;
}

.faq-hero h1 {
    margin: 0;
    color: rgb(10, 13, 49);
    font-size: 60px;
    font-weight: 600;
    line-height: 1;
}

.faq-section {
    padding: 0 30px 90px;
    background: linear-gradient(180deg, white 0%, rgb(246, 247, 255) 100%);
}

.faq-list {
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.faq-list details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.faq-list summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 24px 64px 24px 0;
    color: rgb(10, 13, 49);
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(40, 120, 247, 0.35);
    border-radius: 50%;
    color: rgb(40, 120, 247);
    font-size: 26px;
    font-weight: 400;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: '-';
}

.faq-list p {
    max-width: 780px;
    margin: 0;
    padding: 0 64px 28px 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 17px;
    line-height: 1.65;
}

.faq-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: calc(100% - 60px);
    max-width: 1150px;
    margin: 0 auto 70px;
    padding: 42px 50px;
    border-radius: 40px;
    background-color: rgb(40, 120, 247);
    background-image: url("../images/Shape-dots-arrow-right.svg");
    background-position: 48% center;
    background-repeat: no-repeat;
    background-size: 220px auto;
    color: white;
}

.faq-contact span {
    display: inline-flex;
    margin-bottom: 12px;
    color: rgb(222, 224, 255);
    font-size: 14px;
    font-weight: 700;
}

.faq-contact h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
}

.faq-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    background-color: rgb(222, 224, 255);
    color: rgb(1, 14, 208);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-contact a:hover {
    background-color: white;
    color: rgb(36, 38, 39);
}

@media (max-width: 1024px) {
    .faq-hero h1 {
        font-size: 35px;
    }

    .faq-list summary {
        font-size: 20px;
    }

    .faq-contact h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .site-header {
        padding: 14px 20px;
        align-items: center;
    }

    .site-header::after {
        left: 20px;
        right: 20px;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.14);
    }

    .main-nav {
        position: static;
        display: flex;
        transform: none;
    }

    .main-nav .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        position: relative;
        z-index: 1000;
    }

    .main-nav .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 3px;
        background-color: rgb(20, 28, 58);
    }

    .main-nav > a {
        position: absolute;
        top: calc(100% + 12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .main-nav.open > a {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .main-nav a {
        font-size: 14px;
        white-space: nowrap;
    }

    .main-nav::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 42px;
        background-color: white;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }

    .main-nav.open::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav > a:nth-of-type(1) {
        left: calc(50% - 116px);
    }

    .main-nav > a:nth-of-type(2) {
        left: calc(50% - 48px);
    }

    .main-nav > a:nth-of-type(3) {
        left: calc(50% + 22px);
    }

    .main-nav > a:nth-of-type(4) {
        left: calc(50% + 78px);
    }

    .main-nav > a {
        z-index: 999;
    }

    .header-button {
        display: inline-flex;
        width: 96px;
        height: 36px;
        font-size: 12px;
        border-radius: 8px;
    }

    .logo img {
        width: 108px;
        height: auto;
    }

    .page-label {
        padding-top: 44px;
    }

    .faq-hero {
        padding: 22px 20px 42px;
    }

    .faq-hero h1 {
        font-size: 30px;
    }

    .faq-section {
        padding: 0 20px 56px;
    }

    .faq-list summary {
        min-height: 66px;
        padding: 18px 48px 18px 0;
        font-size: 17px;
    }

    .faq-list summary::after {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }

    .faq-list p {
        padding: 0 0 22px;
        font-size: 15px;
    }

    .faq-contact {
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 40px);
        margin-bottom: 40px;
        padding: 30px 20px;
        border-radius: 24px;
        background-position: right 24px top 24px;
        background-size: 150px auto;
    }

    .faq-contact h2 {
        font-size: 28px;
    }
}
