.newsletter-section {
    margin: 80px auto;
}

.contacts-hero {
    position: relative;
    height: 424px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: linear-gradient(to top, #05292F 13%, #003643 63%);
    overflow: hidden;
}

.contacts-hero > .container {
    max-width: 1360px;
}

.contacts-hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
    pointer-events: none;
}

.contacts-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
}

.contacts-hero__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 80px;
    line-height: 1;
    color: var(--color-platinum);
}

.contacts-hero__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(235, 237, 237, 0.8);
}

.contacts-office {
    position: relative;
    z-index: 2;
    margin-top: -75px;
}

.contacts-office__card {
    padding: 32px;
    background-color: #012930;
    border: 1px solid rgba(70, 100, 106, 0.5);
    border-radius: 16px;
}

.contacts-office__title {
    margin-bottom: 40px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    color: var(--color-frozen-water);
}

.contacts-office__row {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.contacts-office__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.contacts-office__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-blue-slate);
    border-radius: 50%;
    color: var(--color-frozen-water);
}

.contacts-office__divider {
    display: flex;
    justify-content: center;
    align-self: stretch;
    flex: 1;
    min-width: 24px;
}

.contacts-office__divider::before {
    content: '';
    width: 1px;
    background-color: rgba(70, 100, 106, 0.5);
}

.contacts-office__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.contacts-office__label {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-gold);
}

.contacts-office__value {
    display: flex;
    flex-direction: column;
    max-width: 285px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-platinum);
    text-decoration: none;
}

.contacts-office__value-line--muted {
    font-size: 14px;
    font-weight: 400;
}

.contacts-map {
    padding: 24px 0 100px;
}

.contacts-map__card {
    position: relative;
    height: 488px;
    padding: 6px;
    background-color: #012930;
    border: 1px solid rgba(70, 100, 106, 0.5);
    border-radius: 16px;
}

.contacts-map__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.contacts-map__info {
    position: absolute;
    left: 32px;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 372px;
    padding: 24px;
    background-color: #002F35;
    border-radius: 10px;
}

.contacts-map__info-label {
    font-size: 14px;
    letter-spacing: -0.07px;
    color: var(--color-gold);
}

.contacts-map__info-address {
    margin-top: 6px;
    font-size: 16px;
    letter-spacing: -0.08px;
    line-height: 1.4;
    color: var(--color-platinum);
}

.contacts-map__info-btn {
    height: 48px;
}

.contacts-message {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background-color: #01242A;
}

.contacts-message__bg-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.contacts-message__bg-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.contacts-message__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.contacts-message__decor svg {
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
}

.contacts-message__decor svg:first-child {
    left: -1%;
}

.contacts-message__decor svg:last-child {
    left: -1%;
}

.contacts-message > .container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
}

.contacts-message__row {
    display: flex;
    align-items: center;
    gap: 100px;
}

.contacts-message__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-message__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 38px;
    line-height: 1.2;
    color: var(--color-frozen-water);
}

.contacts-message__text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(235, 237, 237, 0.8);
}

.contacts-message__card {
    flex-shrink: 0;
    width: 100%;
    max-width: 600px;
    padding: 24px;
    background-color: #072E34;
    border: 1px solid rgba(70, 100, 106, 0.4);
    border-radius: 16px;
}

.contacts-message__no-form {
    text-align: center;
    color: var(--color-platinum);
}

.contacts-message__form-wrap .jet-form-builder {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-message__form-wrap .wp-block-columns {
    gap: 16px;
    margin-bottom: 0;
}

.contacts-message__form-wrap .jet-form-builder-row {
    margin: 0;
    padding: 0;
}

.contacts-message__form-wrap .jet-form-builder__field-wrap input[type="text"],
.contacts-message__form-wrap .jet-form-builder__field-wrap input[type="tel"],
.contacts-message__form-wrap .jet-form-builder__field-wrap input[type="email"] {
    width: 100%;
    height: 60px;
    padding: 10px 24px;
    background-color: rgba(0, 26, 34, 0.5) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(198, 227, 223, 0.4);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-platinum) !important;
    opacity: 0.8;
    transition: opacity var(--transition), border-color var(--transition);
}

.contacts-message__form-wrap .jet-form-builder__field-wrap textarea {
    width: 100%;
    height: 160px;
    padding: 24px 24px 10px;
    background-color: rgba(0, 26, 34, 0.5) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(198, 227, 223, 0.4);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-platinum) !important;
    opacity: 0.8;
    resize: none;
    transition: opacity var(--transition), border-color var(--transition);
}

.contacts-message__form-wrap .jet-form-builder__field-wrap input:focus,
.contacts-message__form-wrap .jet-form-builder__field-wrap textarea:focus {
    opacity: 1;
    border-color: var(--color-frozen-water);
    outline: none;
}

.contacts-message__form-wrap .jet-form-builder__field-wrap input::placeholder,
.contacts-message__form-wrap .jet-form-builder__field-wrap textarea::placeholder {
    color: rgba(235, 237, 237, 0.7);
    opacity: 1;
}

.contacts-message__form-wrap .jet-form-builder__field-wrap label {
    display: none;
}

.contacts-message__form-wrap .field-type-submit-field {
    margin: 0;
    display: flex;
    justify-content: center;
}

.contacts-message__form-wrap .jet-form-builder__action-button-wrapper {
    display: flex;
    justify-content: center !important;
}

.contacts-message__form-wrap .jet-form-builder__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 55px;
    padding: 10px 24px;
    background-color: var(--color-frozen-water);
    color: #002F35;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 68px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition);
}

.contacts-message__form-wrap .jet-form-builder__submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    width: 5px;
    height: 71px;
    background-color: rgba(255, 255, 255, 0.8);
    filter: blur(6.5px);
    transform: translateY(-50%) rotate(-17deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.contacts-message__form-wrap .jet-form-builder__submit::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-color: #002F35;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contacts-message__form-wrap .jet-form-builder__submit:hover {
    background-color: var(--color-platinum);
}

.contacts-message__form-wrap .jet-form-builder__submit:hover::before {
    left: calc(100% + 30px);
}

@media (max-width: 1250px) {
    .contacts-office {
        margin-top: -60px;
    }

    .contacts-office__card {
        padding: 24px;
    }

    .contacts-office__title {
        margin-bottom: 28px;
        font-size: 20px;
    }

    .contacts-office__row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 40px;
    }

    .contacts-office__divider {
        display: none;
    }

    .contacts-office__divider:nth-of-type(4) {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        height: 1px;
        min-width: 0;
        background-color: rgba(70, 100, 106, 0.5);
    }

    .contacts-office__divider:nth-of-type(4)::before {
        content: none;
    }

    .contacts-office__item {
        gap: 12px;
    }

    .contacts-office__icon {
        width: 40px;
        height: 40px;
    }

    .contacts-office__icon .icon {
        width: 20px;
        height: 20px;
    }

    .contacts-office__value {
        max-width: 265px;
        font-size: 16px;
    }
}

@media (max-width: 1024px) {

    .contacts-hero {
        height: 360px;
    }

    .contacts-hero__content {
        gap: 16px;
    }

    .contacts-hero__title {
        font-size: 56px;
    }

    .contacts-hero__text {
        font-size: 16px;
    }

    .contacts-map__card {
        height: 400px;
    }

    .contacts-map__info {
        left: 24px;
        bottom: 24px;
        width: 320px;
        padding: 20px;
        gap: 16px;
    }

    .newsletter-section {
        margin: 60px auto;
    }

    .contacts-message {
        padding: 70px 0;
    }

    .contacts-message__row {
        gap: 40px;
    }

    .contacts-message__title {
        font-size: 32px;
    }

    .contacts-message__card {
        max-width: 460px;
        padding: 20px;
    }

    .contacts-message__form-wrap .jet-form-builder__field-wrap input[type="text"],
    .contacts-message__form-wrap .jet-form-builder__field-wrap input[type="tel"],
    .contacts-message__form-wrap .jet-form-builder__field-wrap input[type="email"] {
        height: 52px;
    }

    .contacts-message__form-wrap .jet-form-builder__field-wrap textarea {
        height: 140px;
    }
}

@media (max-width: 768px) {

    .contacts-hero {
        height: 332px;
        padding: 0 16px;
    }

    .contacts-hero__bg {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .contacts-hero__content {
        gap: 14px;
        max-width: 100%;
    }

    .contacts-hero__title {
        font-size: 32px;
    }

    .contacts-hero__text {
        font-size: 15px;
    }

    .contacts-office {
        margin-top: -80px;
    }

    .contacts-office__card {
        padding: 16px;
    }

    .contacts-office__title {
        display: none;
    }

    .contacts-office__row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .contacts-office__item {
        gap: 16px;
    }

    .contacts-office__icon {
        width: 32px;
        height: 32px;
    }

    .contacts-office__icon .icon {
        width: 16px;
        height: 16px;
    }

    .contacts-office__info {
        gap: 4px;
    }

    .contacts-office__value {
        max-width: 100%;
    }

    .contacts-office__divider {
        display: block;
        width: 100%;
        height: 1px;
        min-width: 0;
        flex: none;
        background-color: rgba(70, 100, 106, 0.5);
    }

    .contacts-office__divider::before {
        content: none;
    }

    .contacts-map > .container {
        max-width: none;
        padding: 0;
    }

    .contacts-map__card {
        height: auto;
        padding: 0;
        aspect-ratio: 375 / 488;
        border-radius: 0;
    }

    .contacts-map__bg {
        border-radius: 0;
    }

    .contacts-map__info {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 16px;
        gap: 12px;
    }

    .newsletter-section {
        margin: 50px auto;
    }

    .contacts-message {
        padding: 50px 0;
    }

    .contacts-message__row {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .contacts-message__content {
        text-align: center;
        align-items: center;
    }

    .contacts-message__title {
        font-size: 26px;
    }

    .contacts-message__text {
        font-size: 15px;
    }

    .contacts-message__card {
        max-width: 100%;
        padding: 24px;
    }

    .contacts-message__bg-logo {
        top: -40%;
        bottom: auto;
        height: 90%;
    }

    .contacts-message__form-wrap .jet-form-builder__field-wrap input[type="text"],
    .contacts-message__form-wrap .jet-form-builder__field-wrap input[type="tel"],
    .contacts-message__form-wrap .jet-form-builder__field-wrap input[type="email"] {
        height: 50px;
    }

    .contacts-message__form-wrap .jet-form-builder__field-wrap textarea {
        height: 120px;
    }
}
