/* Shared header and contact layout for every page. */
.header .header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 64px;
}

.header .header-title-box {
    min-width: 0;
    max-width: none;
    padding: 0;
    text-align: left;
}

.header .header-title {
    margin: 0;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.header .header-form {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.header .form {
    width: 100%;
    margin: 0;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    text-align: left;
}

.header .form-title {
    margin-bottom: 24px;
    line-height: 1.4;
}

.header .mb_form {
    gap: 0;
}

.header .mb_form label {
    margin-bottom: 8px;
    color: #f6f2ee;
}

.header .input-input--box--component,
.header .textarea-input--box--component {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 8px;
}

.header .textarea-input--box--component {
    min-height: 112px;
    resize: vertical;
    margin-bottom: 0;
}

.header .form-check {
    margin: 20px 0 0;
}

.header .submit-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    border-radius: 8px;
}

.footer .footer-light-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer .contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 48px 0;
    margin: 0;
    text-align: center;
}

.footer .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.footer .contact-icon {
    position: static;
    transform: none;
    color: #321d2f;
    font-size: 28px;
    line-height: 1;
}

.footer .contact-text {
    display: block;
    max-width: 100%;
    margin: 0;
    color: #321d2f;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.footer a.contact-text:hover,
.footer a.contact-text:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1199px) {
    .header .header-content {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
        gap: 32px;
    }
}

@media (max-width: 991px) {
    .header .header-content {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 32px;
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .header .header-title-box {
        width: 100%;
        max-width: 620px;
        text-align: center;
    }

    .header .header-form {
        max-width: 620px;
    }
}

@media (max-width: 575px) {
    .header .header-content {
        padding-top: 32px;
        padding-bottom: 32px;
        gap: 24px;
    }

    .header .header-title {
        font-size: 30px;
    }

    .header .form {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .footer .contact-list {
        padding: 36px 0;
    }
}
