.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-height);
    background: var(--color-white);
    box-shadow: 0 5px 12px #0000000d;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 87.5%;
    height: 100%;
    margin-inline: auto;
}

.brand img {
    width: 210px;
    height: auto;
}

.main-navigation ul {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    display: block;
    padding: 14px 20px;
    color: var(--color-brand);
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
}

.main-navigation a:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.menu-toggle {
    display: none;
}

.carousel {
    position: relative;
    --slides-visible: 1;
}

.carousel-viewport {
    overflow: auto;
    scrollbar-width: thin;
}

.carousel.is-ready .carousel-viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    align-items: stretch;
}

.carousel-slide {
    flex: 0 0 calc(100% / var(--slides-visible));
    min-width: 0;
}

.carousel.is-ready .carousel-track {
    transition: transform var(--duration-slide) ease;
}

.carousel.is-resetting .carousel-track {
    transition: none;
}

.carousel-arrow {
    position: absolute;
    top: calc(50% - 36px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-control);
    font-family: Arial, sans-serif;
    font-size: 43px;
    font-weight: 300;
    line-height: 1;
}

.carousel-previous {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 16px;
}

.carousel-pagination button {
    display: grid;
    place-items: center;
    width: 16px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
}

.carousel-pagination button::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-dot);
    content: "";
}

.carousel-pagination button[aria-current="true"]::after {
    background: #000000;
}

.contact-preview {
    padding: 25px 0 50px;
    background: var(--color-light);
}

.contact-preview h2 {
    margin-bottom: 20px;
    text-align: center;
}

.contact-form {
    width: 80%;
    margin-inline: auto;
    padding-bottom: 50px;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 8px 16px;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 12px;
    line-height: 42px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    opacity: 1;
    color: #777777;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-form textarea {
    grid-column: 1 / -1;
    min-height: 263px;
    resize: vertical;
    padding: 5px 14px;
}

.contact-button {
    width: 100%;
    margin-top: 10px;
    background: var(--color-accent);
}

.form-status {
    margin-top: 15px;
    font-size: 15px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 30px 0;
    color: var(--color-white);
    background: var(--color-accent);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand img {
    width: 70%;
    height: auto;
}

.footer-group summary {
    min-height: 40px;
    padding: 10px 0;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.footer-group summary::-webkit-details-marker {
    display: none;
}

.footer-group ul {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 12px;
    line-height: 18px;
}

.footer-group a:hover {
    text-decoration: underline;
}

.mobile-label {
    display: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px 20px 0;
    background: var(--color-footer);
    color: #f3f5f8;
    font-size: 13px;
    line-height: 30px;
}

.footer-bottom p:last-child {
    font-size: 11px;
}

@media (max-width: 1024px) {
    :root {
        --header-height: 140px;
    }

    .header-inner {
        width: 95%;
    }

    .brand img {
        width: 170px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 0;
        color: var(--color-control);
        background: transparent;
    }

    .menu-toggle span {
        width: 20px;
        height: 3px;
        background: currentColor;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        background: var(--color-white);
        box-shadow: 0 8px 12px #00000012;
    }

    .navigation-ready .main-navigation:not(.is-open) {
        display: none;
    }

    .main-navigation ul {
        display: block;
    }

    .main-navigation a {
        padding: 13px 25px;
    }

    .footer-main {
        display: block;
        padding: 30px 0;
        background: var(--color-brand);
    }

    .footer-brand {
        margin-bottom: 30px;
    }

    .footer-brand img {
        width: 80%;
        max-width: 350px;
    }

    .footer-group {
        border: 1px solid #ffffff70;
    }

    .footer-group + .footer-group {
        border-top: 0;
    }

    .footer-group summary {
        padding: 24px;
        text-align: center;
        cursor: pointer;
        font-size: 16px;
        font-weight: 400;
    }

    .footer-group summary::before {
        margin-right: 10px;
        font-size: 22px;
        font-weight: 700;
        content: "+";
    }

    .footer-group[open] summary::before {
        content: "−";
    }

    .footer-group ul {
        padding: 10px 30px 20px;
        line-height: 26px;
        text-align: center;
    }

    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .footer-bottom {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .contact-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-preview h2 {
        padding-inline: 15px;
        font-size: 20px;
        font-weight: 400;
    }
}
