.contact-page {
    background: #f3f5f8;
    color: #132236;
    font-family: "Inter", sans-serif;
}

.contact-main {
    padding-top: 112px;
    padding-bottom: 0;
}

.contact-hero-strip {
    background: linear-gradient(90deg, #eaeef2 0%, #d8e0e8 55%, #eaeef2 100%);
    border-top: 1px solid #c5d1df;
    border-bottom: 1px solid #c5d1df;
}

.contact-hero-inner {
    width: min(100%, 1240px);
    margin: 0 auto;
    text-align: center;
    padding: 30px 20px;
}

.contact-hero-inner h1 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2.4rem, 3.8vw, 3.5rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f1b2a;
}

.contact-hero-inner p {
    margin: 10px 0 0;
    color: #435668;
    font-size: clamp(0.98rem, 1.45vw, 1.12rem);
}

.contact-content {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 28px 20px 42px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.contact-form-card,
.contact-details-card {
    border: 1px solid #d5dee8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 27, 42, 0.08);
}

.contact-form-card {
    padding: 22px;
}

.contact-form-card h2,
.contact-details-card h2 {
    margin: 0 0 16px;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.9rem;
    color: #0f1b2a;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.contact-float-field {
    position: relative;
    display: grid;
}

.contact-float-field input,
.contact-float-field select {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid #c5d1df;
    border-radius: 0;
    background: transparent;
    color: #111827;
    padding: 12px 0 6px;
    font-size: 0.98rem;
    font-family: "Inter", sans-serif;
}

.contact-float-field input::placeholder {
    color: transparent;
}

.contact-float-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 24px;
}

.contact-float-field label {
    position: absolute;
    left: 0;
    top: 16px;
    color: #637488;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform-origin: left center;
    transition: top 0.18s ease, transform 0.18s ease, color 0.18s ease;
    pointer-events: none;
}

.contact-float-field input:focus,
.contact-float-field select:focus {
    outline: none;
    border-bottom-color: #d61f1f;
    box-shadow: 0 1px 0 0 #d61f1f;
}

.contact-float-field input:focus+label,
.contact-float-field input:not(:placeholder-shown)+label,
.contact-float-field select:focus+label,
.contact-float-field select:valid+label {
    top: 2px;
    transform: scale(0.9);
    color: #d61f1f;
}

.contact-float-field input.is-invalid,
.contact-float-field select.is-invalid {
    border-bottom-color: #d92d20;
    box-shadow: 0 1px 0 0 #d92d20;
}

.contact-float-field input.is-invalid+label,
.contact-float-field select.is-invalid+label {
    color: #b42318;
}

.contact-submit {
    margin-top: 8px;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #d61f1f 0%, #b31010 100%);
    color: #ffffff;
    text-transform: uppercase;
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 0.03em;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
}

.contact-status {
    margin: 2px 0 0;
    font-size: 0.94rem;
    color: #1f7d40;
    font-weight: 700;
}

.contact-status.is-error {
    color: #c72828;
}

.contact-details-card {
    padding: 26px 24px;
    border-radius: 16px;
    border-color: #c3cfdb;
    background: linear-gradient(180deg, #f7f9fc 0%, #f2f5f9 100%);
}

.contact-details-card h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 2.4vw, 2.35rem);
    letter-spacing: 0.02em;
}

.contact-detail-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 19px;
}

.contact-detail-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f8e8eb 0%, #f5dfe4 100%);
    color: #d61f1f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.contact-detail-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: currentColor;
}

.contact-detail-icon-mark {
    fill: #ffffff;
}

.contact-detail-icon-stroke {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-detail-item h3 {
    margin: 2px 0 5px;
    font-size: 1.08rem;
    color: #0f1b2a;
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
}

.contact-detail-item p,
.contact-detail-item a {
    margin: 0;
    color: #42566d;
    font-size: 0.99rem;
    line-height: 1.35;
}

.contact-social-row {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #d5dee8;
    display: grid;
    gap: 10px;
}

.contact-social-row a {
    color: #d61f1f;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.15;
}

.contact-social-row a:hover {
    color: #980707;
}

.contact-map-wrap {
    position: relative;
    width: min(100%, 1240px);
    margin: 8px auto 72px;
    padding: 0 20px;
    margin-top: 8px;
}

.contact-map-wrap iframe {
    width: 100%;
    height: min(50vw, 460px);
    min-height: 320px;
    border: 1px solid #c5d1df;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(15, 27, 42, 0.08);
    display: block;
}

.contact-map-link {
    position: absolute;
    right: 36px;
    bottom: 18px;
    border-radius: 10px;
    background: rgba(15, 27, 42, 0.9);
    color: #f3f8fd;
    border: 1px solid rgba(15, 27, 42, 0.9);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .contact-main {
        padding-top: 150px;
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-hero-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-form-card,
    .contact-details-card {
        padding: 16px 12px;
    }

    .contact-map-wrap {
        margin-bottom: 52px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-map-wrap iframe {
        min-height: 280px;
    }

    .contact-map-link {
        right: 24px;
        bottom: 14px;
    }
}