:root {
    --api-main: #142346;
    --api-secondary: #ECF2FF;
    --api-grey: #7989A8;
    --white: #FFF;
    --api-danger: #FF3232;
}

html {
    scroll-behavior: smooth;
}

body {
    overscroll-behavior: none;
}

#logo {
    filter: invert(0%) !important;
}

li a {
    color: var(--api-main) !important;
}

#api-integration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100vw;
    height: 79px;
    padding: 0 32px;

    position: fixed;
    z-index: 9999;
}
#api-integration-header #logo-link {
    display: block;
    min-width: 183px;
}
#api-integration-header img {
    max-width: 183px;
}

#api-integration-header .link {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    text-align: left;
    color: var(--api-main);
}

#api-integration-header.background-change {
    animation: .3s forwards ease-in-out toWhite;
}

@keyframes toWhite {
    from { background-color: transparent }
    to { background-color: var(--white) }
}
@keyframes toTransparent {
    from { background-color: var(--white) }
    to { background-color: transparent }
}

#mobile-links {
    display: none;
}

.main-screen {
    width: 100vw;
    aspect-ratio: 16 / 9;
}

.main-screen .wrapper {
    background-image: -webkit-image-set(
            url("../images/api-and-parsing/api-bg.png"),
            url("../images/api-and-parsing/api-bg@2x.png") 2x
    );
    background-size: contain;
    background-repeat: no-repeat;
    width: inherit;
    height: 100%;

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

.main-screen__text {
    margin-top: 79px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    max-width: fit-content;
    position: relative;
}

.main-screen__text * {
    text-align: center;
}

.main-screen__text h1 {
    font-size: 100px;
    font-weight: 700;
    line-height: 104px;
    text-transform: uppercase;
    color: var(--api-main);
}
.main-screen__text h2 {
    font-size: 22px;
    font-weight: 400;
    line-height: 34px;
    margin-top: 32px;
    margin-left: 20%;
    margin-right: 20%;
    color: var(--api-grey);
    max-width: 40%;
}

.main-screen__text .logo {
    position: absolute;

    max-width: 100px;
}

.logo.stripe { left: 5%; top: 0; }
.logo.paypal { left: 25%; top: -25%; }
.logo.salesforce { left: 15%; top: 45%; }
.logo.googlemaps { right: 20%; top: -25%; }
.logo.mapbox { right: 10%; top: 40%; }
.logo.hubspot { right: 2%; top: 0; }

.cases-using-api-header {
    font-size: 48px;
    font-weight: 700;
    line-height: 54px;
    text-align: center;
    color: var(--api-main);

    margin-bottom: 64px;
    text-transform: uppercase;

    margin-top: -70px;
    padding: 70px 16px 0 16px;
}

#api-integration-list, #parsing-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
#api-integration-list {
    margin-bottom: 150px;
}

#cases-using-api {
    position: relative;
    margin-top: 235px;
}

.info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--api-secondary);
    margin: 0 32px;

    width: calc(100% - 64px);
    border-radius: 24px;
}

.info-block.row-reverse {
    flex-direction: row-reverse;
}

.info-block header, .info-block main {
    flex: 0 0 50%;
}

.info-block header .header-text {
    max-width: 75%;
    margin: 0 auto;
}

.info-block main > img {
    width: 100%;
}

.info-block-badge {
    padding: 8px 16px 8px 16px;
    gap: 0;
    border-radius: 100px;
    background: var(--white);

    max-width: fit-content;
    margin-bottom: 16px;
}

.info-block-title {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    text-align: left;
    color: var(--api-main);
}
.info-block-description {
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    text-align: left;
    color: var(--api-grey);
}

#api-and-parsing-contact-form {
    width: 100vw;
    aspect-ratio: 16 / 9;

    background-image: -webkit-image-set(url('../images/api-and-parsing/footer-bg.png') 1x, url('../images/api-and-parsing/footer-bg@2x.png') 2x);
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#api-and-parsing-contact-form h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 54px;
    text-align: center;
    text-transform: uppercase;
    color: var(--api-main);

    margin-bottom: 56px;
}
#api-and-parsing-contact-form h5 {
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    text-align: center;

    color: var(--api-grey);

    margin-bottom: 56px;
}

#contact-us-form {
    width: 602px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contact-us-form .input-group {
    display: flex;
    flex-direction: column;
}

#contact-us-form input:not([type=checkbox]) {
    padding: 15px 26px 15px 26px;
    border-radius: 40px;
    border: 1px solid #C1CFEE;
}

#contact-us-form textarea {
    padding: 15px 26px 15px 26px;
    border-radius: 28px;
    border: 1px solid #C1CFEE;
    resize: none;
}

#contact-us-form input::placeholder, #contact-us-form textarea::placeholder {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    text-align: left;
    color: var(--api-grey);
}

#contact-us-form [type="checkbox"]:not(:checked) + label:before, #contact-us-form [type="checkbox"]:checked + label:before {
    border: 2px solid var(--api-main);
    background: var(--white);
    border-radius: 6px;
    box-shadow: none;
}

#contact-us-form [type="checkbox"]:not(:checked):hover + label:before, #contact-us-form [type="checkbox"]:checked:hover + label:before {
    border: 2px solid var(--api-main);
}

.error-message {
    padding: 0 26px;
    color: var(--api-danger);
}

#contact-us-form .contact-us-submit {
    margin-top: 40px;

    padding: 12px 24px 12px 24px;
    border-radius: 40px;
    outline: none;
    border: none;
    cursor: pointer;
    background: var(--api-main);

    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
    color: var(--white);
}

.api-and-parsing-footer {
    width: 100vw;
    background: var(--api-main);

    padding: 50px 32px;
}

#delimiter-footer {
    margin: 40px auto;
    border: 1px solid #2E4270;
}

#top-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
#top-footer img {
    filter: invert(1);
    max-width: 165px;
}

#addresses {
    display: flex;
    gap: 24px
}

#addresses address {
    max-width: 288px;
    font-style: normal;
}

#addresses .cntry {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    text-align: left;
    color: var(--white);

    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

#addresses .street {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

#addresses .street .h7 {
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
    text-align: left;
    color: var(--api-grey);
}

#bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: var(--white);
}

#bottom-footer img {
    filter: contrast(0) brightness(100);
}

#bottom-footer .right {
    display: flex;
    gap: 24px;
}

#desktop-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

#desktop-links .page-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

#message-link {
    padding: 15px 30px 15px 30px;
    border-radius: 30px;
    background: var(--api-main);
    color: var(--white);

    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

#form-slide-button-desk {
    padding: 15px 30px 15px 30px;
    border-radius: 30px;
    background: var(--api-main);
    color: var(--white);

    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

@media screen and (max-width: 1280px) and (min-width: 1025px) {
    .main-screen__text {
        margin-top: 190px;
    }
    #api-integration-list {
        margin-bottom: 100px;
    }
    #cases-using-api {
        margin-top: 185px;
    }
}

@media screen and (max-width: 1024px) {
    .info-block {
        flex-direction: column-reverse;

        margin: 0 16px;
        width: calc(100% - 32px);
    }
    .info-block.row-reverse {
        flex-direction: column-reverse;
    }
    .info-block header .header-text {
        max-width: 100%;
        margin: 0 auto;

        padding: 24px;
    }
    .info-block-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 32px;
        text-align: left;

        margin-bottom: 16px;
    }
    .info-block-description {
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        text-align: left;
    }
    .info-block-badge {
        font-size: 18px;
        font-weight: 500;
        line-height: 26px;
        text-align: left;

        margin-bottom: 8px;
    }
    #api-integration-list {
        gap: 16px;
        margin-bottom: 50px;
    }

    .main-screen {
        aspect-ratio: auto;
    }
    .main-screen .wrapper {
        background-size: cover;
        background-position: center;
    }

    .main-screen__text {
        margin-top: 146px;
        max-width: 100%;
    }

    .main-screen__text h1 {
        font-size: 38px;
        font-weight: 700;
        line-height: 42px;
        text-align: center;
    }
    .main-screen__text h2 {
        font-size: 18px;
        font-weight: 400;
        line-height: 26px;
        text-align: center;

        margin: 32px 24px;

        max-width: 100%;
    }
    #api-integration-header {
        height: 60px;
        padding: 0 16px;
    }
    #api-integration-header img {
        max-width: 129px;
    }

    #desktop-links {
        display: none;
    }
    #mobile-links {
        display: flex;
        gap: 16px;
    }
    .burger-menu-list {
        position: absolute;
        top: 60px;
        left: 100%;
        background: var(--white);
        width: 100vw;
        height: calc(100svh - 60px);

        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .burger-menu-list.active {
        animation: .3s forwards ease-in slideOnLeft;
    }
    .burger-menu-list.inactive {
        animation: .3s forwards ease-in slideOnRight;
    }
    #api-integration-header:has(.burger-menu-list.active):not(.background-change) {
        animation: .2s forwards ease-in toWhite;
    }
    #api-integration-header:has(.burger-menu-list.inactive):not(.background-change) {
        animation: .2s forwards ease-in toTransparent;
    }

    .burger-page-links {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    @keyframes slideOnLeft {
        from { left: 100% }
        to { left: 0 }
    }
    @keyframes slideOnRight {
        from { left: 0 }
        to { left: 100% }
    }

    .cases-using-api-header {
        font-size: 32px;
        font-weight: 700;
        line-height: 40px;
        text-align: center;
        margin-bottom: 32px;
    }

    #api-and-parsing-contact-form {
        padding: 50px 16px 0 16px;
    }
    #api-and-parsing-contact-form h1 {
        font-size: 32px;
        font-weight: 700;
        line-height: 40px;
        text-align: center;

        margin-bottom: 32px;
    }
    #api-and-parsing-contact-form h5 {
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        text-align: center;

        margin-bottom: 32px;
    }

    #contact-us-form {
        width: 100%;
    }
    #contact-us-form .contact-us-submit {
        margin-bottom: 50px;
    }
    #top-footer {
        flex-direction: column;
    }
    #addresses {
        flex-direction: column;

        margin-top: 50px;
    }
    .api-and-parsing-footer {
        padding: 32px 16px;
    }

    .logo {
        width: 50px;
        aspect-ratio: 1 / 1;
    }
    .logo.stripe { left: 5%; top: -10%; }
    .logo.paypal { left: 25%; top: -20%; }
    .logo.salesforce { left: 10%; top: 23%; }
    .logo.googlemaps { right: 25%; top: -20%; }
    .logo.mapbox { right: 10%; top: 26%; }
    .logo.hubspot { right: 2%; top: -15%; }

    #cases-using-api {
        margin-top: 92px;
    }
}