:root {
    --bg: #4EB9B2;
    --white: #ffffff;
    --page-x: clamp(24px, 13vw, 260px);
    --logo-top: clamp(70px, 9vw, 172px);
    --logo-width: clamp(220px, 18.3vw, 351px);
    --faq-top: clamp(120px, 17.5vw, 336px);
    --content-width: min(882px, calc(100vw - var(--page-x) - 38vw - 36px));
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    margin: 0;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
}

body::after {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1;
    width: 44vw;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(78, 185, 178, 0.72) 18%, rgba(78, 185, 178, 0.38) 100%);
    content: "";
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

.decor,
.logo,
.image-right {
    position: fixed;
}

.decor-left {
    top: 0;
    left: 0;
    z-index: 2;
    width: clamp(260px, 31vw, 597px);
    max-width: 72vw;
}

.decor-right {
    right: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(520px, 60vw, 1150px);
    max-width: 100vw;
}

.logo {
    top: var(--logo-top);
    left: var(--page-x);
    z-index: 3;
    width: var(--logo-width);
}

.image-right {
    top: 0;
    right: 0;
    z-index: 0;
    width: 38vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.faq,
.page-info {
    position: relative;
    z-index: 3;
    margin-left: var(--page-x);
}

.faq {
    width: max(320px, var(--content-width));
    margin-top: var(--faq-top);
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    overflow: hidden;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 4px;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 10px 24px;
    gap: 24px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    list-style: none;
}

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

.faq-item p {
    margin: 0;
    padding: 0 24px 24px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.faq-icon {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.faq-icon::before,
.faq-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--white);
    content: "";
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 180ms ease;
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%);
}

.page-info {
    width: min(760px, var(--content-width));
    margin-top: 22px;
    margin-bottom: clamp(72px, 6.25vw, 120px);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.42;
}

.info-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 14px;
}

.info-row p {
    margin: 0;
    font-weight: 400;
}

.info-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 50%;
}

.mail-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0 54px;
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.mail-icon {
    position: relative;
    flex: 0 0 21px;
    width: 21px;
    height: 16px;
    border: 2px solid var(--white);
    border-radius: 2px;
}

.mail-icon::before,
.mail-icon::after {
    position: absolute;
    top: 3px;
    width: 11px;
    height: 2px;
    background: var(--white);
    content: "";
}

.mail-icon::before {
    left: 0;
    transform: rotate(34deg);
    transform-origin: left center;
}

.mail-icon::after {
    right: 0;
    transform: rotate(-34deg);
    transform-origin: right center;
}

.declaration-page {
    font-family: "DM Sans", Arial, Helvetica, sans-serif;
}

.declaration-content {
    position: relative;
    z-index: 3;
    width: min(540px, var(--content-width));
    margin-left: var(--page-x);
    padding-top: clamp(370px, 23.75vw, 456px);
}

.declaration-content h1,
.declaration-subtitle {
    margin: 0;
    color: var(--white);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.declaration-content h1 {
    font-size: 32px;
}

.declaration-subtitle {
    margin-top: 16px;
    font-size: 24px;
}

.declaration-button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    margin-top: 82px;
    padding: 10px 22px;
    gap: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    background: var(--pale-teal, #99d8d4);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.declaration-button:hover {
    background: #69c9c3;
    transform: translateY(-1px);
}

.declaration-button:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.declaration-arrow {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 1200px) {
    :root {
        --page-x: clamp(124px, 12vw, 152px);
        --content-width: min(720px, calc(100% - (var(--page-x) * 2)));
    }

    body::after,
    .image-right {
        display: none;
    }

    .faq {
        width: var(--content-width);
    }

    .page-info {
        width: min(680px, var(--content-width));
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    :root {
        --faq-top: clamp(160px, 18.5vw, 210px);
    }
}

@media (max-width: 900px) {
    :root {
        --page-x: clamp(58px, 9vw, 82px);
        --logo-top: clamp(112px, 16vw, 144px);
        --logo-width: min(300px, calc(100vw - var(--page-x) - 24px));
        --faq-top: clamp(238px, 31vw, 292px);
        --content-width: min(620px, calc(100% - var(--page-x) - 24px));
    }

    .faq {
        width: var(--content-width);
        margin-bottom: 64px;
    }

    .page-info {
        width: var(--content-width);
        margin-top: -42px;
        margin-bottom: 96px;
    }

    .declaration-content {
        width: var(--content-width);
        padding-top: clamp(350px, 48vw, 430px);
    }
}

@media (max-width: 560px) {
    :root {
        --page-x: clamp(42px, 11vw, 58px);
        --logo-top: clamp(96px, 28vw, 134px);
        --logo-width: min(240px, calc(100vw - var(--page-x) - 14px));
        --faq-top: clamp(210px, 56vw, 248px);
        --content-width: calc(100% - var(--page-x) - 14px);
    }

    .decor-left {
        width: clamp(230px, 78vw, 360px);
        max-width: 88vw;
    }

    .decor-right {
        right: -46vw;
        width: clamp(640px, 160vw, 900px);
        max-width: none;
    }

    .faq-item summary {
        min-height: 48px;
        padding: 10px 14px;
        font-size: 16px;
    }

    .faq-item p {
        padding: 0 18px 20px;
        font-size: 14px;
    }

    .page-info {
        margin-bottom: 72px;
        font-size: 14px;
    }

    .info-row {
        grid-template-columns: 34px 1fr;
        gap: 12px;
    }

    .info-icon {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .mail-link {
        margin-left: 46px;
    }

    .declaration-content {
        padding-top: clamp(300px, 76vw, 350px);
    }

    .declaration-content h1 {
        font-size: clamp(26px, 8vw, 32px);
    }

    .declaration-subtitle {
        margin-top: 12px;
        font-size: clamp(19px, 5.8vw, 24px);
    }

    .declaration-button {
        margin-top: 52px;
        padding-inline: 18px;
        font-size: 14px;
    }
}
