.contact-page {
    --contact-shell: min(1040px, calc(100% - 24px));
    background: var(--site-bg);
    color: #22242a;
    padding: calc(var(--topbar-height) + 12px) 0 24px;
}

.contact-shell {
    width: var(--contact-shell);
    margin: 0 auto;
}

.contact-page__intro {
    text-align: center;
    padding: 10px 0 20px;
}

.contact-page__intro h1 {
    margin: 0;
    color: #212126;
    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 3.8vw, 50px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-page__intro p {
    margin: 10px auto 0;
    max-width: 640px;
    color: #383b42;
    font-family: "Manrope", sans-serif;
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.45;
    font-weight: 500;
}

.contact-page__intro p span {
    display: block;
}

.contact-page__hero {
    width: 100vw;
    margin: 0 0 24px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.contact-page__hero img {
    width: 100%;
    height: clamp(220px, 24vw, 330px);
    object-fit: cover;
    display: block;
}

.contact-page__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #d7d1c8;
}

.contact-detail {
    text-align: center;
    padding: 6px 16px 24px;
    border-right: 1px solid #d7d1c8;
}

.contact-detail:last-child {
    border-right: 0;
}

.contact-detail__icon {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    color: #b59161;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-detail__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-detail h2 {
    margin: 10px 0 0;
    color: #2a2c32;
    font-family: "Manrope", sans-serif;
    font-size: clamp(15px, 1.2vw, 20px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-detail__value {
    margin: 10px 0 0;
    color: #22242a;
    font-family: "Manrope", sans-serif;
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.contact-detail__value:hover {
    color: #111319;
}

.contact-detail__value--text {
    display: block;
    white-space: pre-line;
}

.contact-detail p {
    margin: 7px 0 0;
    color: #4a4d55;
    font-family: "Manrope", sans-serif;
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.45;
}

.contact-page__form {
    border-bottom: 1px solid #d7d1c8;
    padding: 28px 0 26px;
}

.contact-page__form h2 {
    margin: 0;
    text-align: center;
    color: #2a2c32;
    font-family: "Manrope", sans-serif;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1;
    font-weight: 600;
}

.contact-page__form form {
    width: min(760px, 100%);
    margin: 18px auto 0;
    display: grid;
    gap: 10px;
}

.contact-page__feedback {
    width: min(760px, 100%);
    margin: 16px auto 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.45;
    text-align: center;
}

.contact-page__feedback--success {
    border: 1px solid #c9dbc3;
    background: #edf6e9;
    color: #29422a;
}

.contact-page__feedback--error {
    border: 1px solid #e3c2bf;
    background: #fff0ef;
    color: #7a2f29;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-form__field {
    display: block;
}

.contact-form__error {
    display: block;
    margin-top: 6px;
    color: #9a3d33;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.contact-page input,
.contact-page textarea,
.contact-page select {
    width: 100%;
    border: 1px solid #d2ccc4;
    background: var(--site-surface);
    color: #2a2d34;
    font-family: "Manrope", sans-serif;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.2;
    font-weight: 500;
    padding: 0 14px;
    outline: 0;
}

.contact-page input,
.contact-page select {
    min-height: 50px;
}

.contact-page textarea {
    min-height: 150px;
    resize: vertical;
    padding-top: 12px;
}

.contact-page input::placeholder,
.contact-page textarea::placeholder,
.contact-page select {
    color: #75777d;
}

.contact-page select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='%235f626a' d='M2.2 1.6 8 7.4l5.8-5.8L15 2.8l-7 7-7-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 10px;
    padding-right: 36px;
}

.contact-page input:focus,
.contact-page textarea:focus,
.contact-page select:focus {
    border-color: #b99362;
}

.contact-page button {
    width: min(300px, 100%);
    min-height: 50px;
    margin: 10px auto 0;
    border: 0;
    background: linear-gradient(90deg, #b79060 0%, #d2ae7c 100%);
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.contact-page button:hover {
    filter: brightness(0.96);
}

.contact-page__note {
    margin: 12px 0 0;
    text-align: center;
    color: #393c44;
    font-family: "Manrope", sans-serif;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.4;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1080px) {
    .contact-page {
        --contact-shell: calc(100% - 16px);
    }

    .contact-page__details {
        grid-template-columns: 1fr;
    }

    .contact-detail {
        border-right: 0;
        border-bottom: 1px solid #d7d1c8;
        padding: 12px 12px 20px;
    }

    .contact-detail:last-child {
        border-bottom: 0;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .contact-page {
        --contact-shell: calc(100% - 10px);
        padding: calc(var(--topbar-height) + 6px) 0 18px;
    }

    .contact-page__intro {
        padding: 4px 0 10px;
    }

    .contact-page__intro h1 {
        font-size: clamp(28px, 9vw, 44px);
    }

    .contact-page__intro p {
        margin-top: 8px;
        font-size: clamp(14px, 3.8vw, 16px);
    }

    .contact-page__hero {
        margin-bottom: 12px;
    }

    .contact-page__hero img {
        height: 170px;
    }

    .contact-detail h2 {
        font-size: clamp(16px, 6.2vw, 20px);
    }

    .contact-detail__value {
        font-size: clamp(15px, 5.8vw, 18px);
    }

    .contact-detail p {
        font-size: clamp(14px, 3.7vw, 15px);
        margin-top: 6px;
    }

    .contact-page__form {
        padding: 14px 0;
    }

    .contact-page__form h2 {
        font-size: clamp(26px, 9vw, 34px);
    }

    .contact-page__form form {
        margin-top: 10px;
        gap: 7px;
    }

    .contact-page__feedback {
        margin-top: 10px;
        padding: 10px;
        font-size: clamp(14px, 3.4vw, 15px);
    }

    .contact-page input,
    .contact-page select {
        min-height: 40px;
        font-size: 14px;
        padding: 0 10px;
    }

    .contact-page textarea {
        min-height: 108px;
        font-size: 14px;
        padding: 10px;
    }

    .contact-page button {
        min-height: 40px;
        margin-top: 6px;
        font-size: 13px;
    }

    .contact-page__note {
        margin-top: 8px;
        font-size: clamp(14px, 3.5vw, 15px);
    }
}
