@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/Fira sans/FiraSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/Fira sans/FiraSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --contact-orange: #f37022;
    --contact-orange-dark: #db5f13;
    --contact-text: #242b35;
    --contact-muted: #b8bdc2;
    --contact-line: #d9dce0;
    --contact-error: #d93025;
}

.contact-page {
    overflow-x: hidden;
    background: #fff;
    color: var(--contact-text);
    font-family: 'Roboto', 'Fira Sans', Arial, sans-serif;
}

.contact-section-inner,
.contact-form-inner {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
}

.contact-hero {
    position: relative;
    min-height: 75vh;
    min-height: 75dvh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    padding: 0 0 clamp(40px, 8vh, 86px);
}

.contact-hero h1 {
    margin: 0;
    color: #fff;
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: clamp(58px, 8vw, 112px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.contact-form-section {
    padding: 36px 0 64px;
    background: #fff;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
}

.contact-field {
    display: grid;
    gap: 7px;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field label {
    color: var(--contact-text);
    font-size: 13px;
    line-height: 1.2;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--contact-line);
    border-radius: 8px;
    background: #fff;
    color: var(--contact-text);
    font-size: 14px;
    line-height: 1.4;
    outline: 0;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-field input,
.contact-field select {
    height: 38px;
    padding: 0 14px;
}

.contact-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #aab0b6 50%), linear-gradient(135deg, #aab0b6 50%, transparent 50%);
    background-position: calc(100% - 18px) 16px, calc(100% - 12px) 16px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    color: #6b737b;
}

.contact-field textarea {
    min-height: 210px;
    resize: vertical;
    padding: 14px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: var(--contact-muted);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--contact-orange);
    box-shadow: 0 0 0 3px rgba(243, 112, 34, 0.14);
}

.contact-field.has-error input,
.contact-field.has-error select {
    border-color: var(--contact-error);
}

.contact-error {
    min-height: 16px;
    margin: 0;
    color: var(--contact-error);
    font-size: 12px;
    line-height: 1.3;
}

.contact-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.contact-submit-btn {
    min-width: 88px;
    min-height: 34px;
    padding: 6px 18px;
    border: 1px solid var(--contact-orange);
    border-radius: 999px;
    background: #fff;
    color: var(--contact-orange);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus-visible {
    background: var(--contact-orange);
    color: #fff;
    transform: translateY(-1px);
}

.contact-submit-btn[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.contact-form.is-submitted .contact-submit-row {
    display: none;
}

.contact-form-status {
    min-height: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--contact-orange);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.24s ease, transform 0.24s ease, margin 0.24s ease, padding 0.24s ease;
}

.contact-form-status:not(:empty) {
    margin: 16px auto 0;
    padding: 0;
    opacity: 1;
    transform: translateY(0);
}

.contact-form-status.is-error {
    color: var(--contact-error);
}

.contact-form-status.is-success {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    color: var(--contact-orange);
    font-size: 28px;
    line-height: 1.2;
}

.contact-form-status.is-success::before {
    content: '';
    width: 28px;
    height: 16px;
    border-left: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    transform: rotate(-45deg) translateY(-1px);
    flex: 0 0 auto;
}

.contact-explore {
    padding: 0 0 72px;
}

.contact-explore h2 {
    margin: 0 0 28px;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.15;
}

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

.contact-explore-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.contact-explore-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58) 100%);
}

.contact-explore-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.contact-explore-card:hover img {
    transform: scale(1.05);
}

.contact-explore-card span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 1;
    font-size: clamp(20px, 2.5vw, 34px);
    line-height: 1;
}

@media (max-width: 1024px) {
    .contact-hero {
        min-height: 68vh;
        min-height: 68dvh;
    }
}

@media (max-width: 767px) {
    .contact-section-inner,
    .contact-form-inner,
    .contact-hero-inner {
        width: calc(100% - 40px);
    }

    .contact-hero {
        box-sizing: border-box;
        height: 76.4045vw;
        min-height: 76.4045vw;
        max-height: 76.4045vw;
        background-position: center;
    }

    .contact-hero-inner {
        padding-bottom: 24px;
    }

    .contact-hero h1 {
        font-size: clamp(28px, 7.64vw, 40px);
        line-height: 0.98;
    }

    .contact-form-section {
        padding: 18px 0 34px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-field {
        gap: 8px;
    }

    .contact-field label {
        font-size: clamp(12px, 3.17vw, 16px);
        line-height: 1.2;
    }

    .contact-field input,
    .contact-field select {
        height: 34px;
        border-radius: 10px;
        font-size: clamp(12px, 3.17vw, 16px);
        padding: 0 18px;
    }

    .contact-field select {
        background-position: calc(100% - 24px) 14px, calc(100% - 17px) 14px;
    }

    .contact-field textarea {
        min-height: clamp(200px, 54vw, 260px);
        border-radius: 10px;
        font-size: clamp(12px, 3.17vw, 16px);
        padding: 14px 18px;
    }

    .contact-error {
        font-size: clamp(11px, 2.72vw, 14px);
    }

    .contact-submit-row {
        margin-top: 18px;
    }

    .contact-submit-btn {
        width: 100%;
        min-height: 40px;
        border: 0;
        background: var(--contact-orange);
        color: #fff;
        font-size: clamp(15px, 4.07vw, 18px);
        font-weight: 400;
    }

    .contact-form-status.is-success {
        font-size: clamp(18px, 5.43vw, 26px);
    }

    .contact-explore {
        padding: 0 0 34px;
    }

    .contact-explore h2 {
        margin-bottom: 18px;
        font-size: clamp(24px, 5.43vw, 32px);
        line-height: 1.15;
    }

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

    .contact-explore-card {
        border-radius: 8px;
        aspect-ratio: 1 / 1;
    }

    .contact-explore-card:hover img {
        transform: none;
    }

    .contact-explore-card span {
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        font-size: clamp(12px, 3.17vw, 16px);
        line-height: 1.05;
    }
}
