/* ==============================
   CONTACT PAGE — COMPACT VERSION
============================== */

.contact-processing[hidden],
.contact-success[hidden],
.contact-cart[hidden] {
    display: none !important;
}

.contact-hero,
.contact-page {
    overflow-x: clip;
}

.contact-label {
    margin: 0 0 14px;
    color: #b98b35;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.contact-hero {
    position: relative;
    min-height: calc(72svh - var(--header-height, 78px));
    display: flex;
    align-items: center;
    color: #ffffff;
    background-image: url("../images/about-hero.webp");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

.contact-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(5, 7, 10, 0.96) 0%,
            rgba(5, 7, 10, 0.88) 34%,
            rgba(5, 7, 10, 0.56) 64%,
            rgba(5, 7, 10, 0.72) 100%);
}

.contact-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100% - 40px, 1240px);
    margin-inline: auto;
    padding: 86px 0;
}

.contact-hero__content {
    max-width: 680px;
    min-width: 0;
}

.contact-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 7vw, 86px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.contact-hero p:not(.contact-label) {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.48;
}

.contact-page {
    padding: 72px 0;
    background: #f7f3ed;
}

.contact-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.contact-side,
.contact-form,
.contact-cart {
    border: 1px solid rgba(202, 168, 92, 0.26);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(17, 21, 27, 0.06);
}

.contact-side {
    position: sticky;
    top: calc(var(--header-height, 78px) + 22px);
    padding: 24px;
}

.contact-side h2,
.contact-form__head h2,
.contact-cart__head h2 {
    margin: 0;
    color: #11151b;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.contact-side__cards {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.contact-side__cards div {
    padding: 14px;
    border-radius: 14px;
    background: #f7f3ed;
}

.contact-side__cards strong {
    display: block;
    margin-bottom: 4px;
    color: #11151b;
    font-size: 15px;
}

.contact-side__cards span,
.contact-address {
    color: #67615a;
    font-size: 14px;
    line-height: 1.55;
}

.contact-address {
    font-style: normal;
}

.contact-address strong {
    color: #11151b;
}

.contact-address a {
    color: #a87924;
    font-weight: 900;
}

.contact-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

/* Basket */

.contact-cart {
    padding: 22px;
}

.contact-cart__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.contact-cart__head button,
.contact-cart-item button {
    border: 1px solid rgba(17, 21, 27, 0.14);
    border-radius: 999px;
    color: #11151b;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.contact-cart__head button {
    min-height: 38px;
    padding: 0 14px;
}

.contact-cart__items {
    display: grid;
    gap: 10px;
}

.contact-cart-item {
    display: grid;
    grid-template-columns: 66px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f7f3ed;
}

.contact-cart-item__image {
    width: 66px;
    height: 66px;
    overflow: hidden;
    border-radius: 12px;
    background: #11151b;
}

.contact-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-cart-item h3 {
    margin: 0 0 4px;
    color: #11151b;
    font-size: 16px;
    line-height: 1.2;
}

.contact-cart-item p {
    margin: 0;
    color: #67615a;
    font-size: 14px;
    line-height: 1.35;
}

.contact-cart-item button {
    min-height: 34px;
    padding: 0 12px;
}

.contact-cart__total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(202, 168, 92, 0.26);
}

.contact-cart__total span {
    color: #67615a;
    font-weight: 900;
}

.contact-cart__total strong {
    color: #11151b;
    font-size: 26px;
    font-weight: 900;
}

/* Form */

.contact-form {
    padding: 24px;
}

.contact-form__head {
    margin-bottom: 20px;
}

.contact-form__head p:not(.contact-label) {
    max-width: 680px;
    margin: 12px 0 0;
    color: #67615a;
    font-size: 15px;
    line-height: 1.5;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-form__grid--compact {
    grid-template-columns: 260px minmax(0, 1fr);
}

.contact-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.contact-field label {
    color: #11151b;
    font-size: 13px;
    font-weight: 900;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(17, 21, 27, 0.14);
    border-radius: 13px;
    padding: 0 14px;
    color: #11151b;
    background: #ffffff;
    font: inherit;
    font-size: 15px;
}

.contact-field textarea {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #caa85c;
    outline: 3px solid rgba(202, 168, 92, 0.18);
}

.contact-field input.is-invalid,
.contact-field select.is-invalid,
.contact-field textarea.is-invalid,
.contact-consent.is-invalid {
    border-color: #b32626;
    outline: 3px solid rgba(179, 38, 38, 0.14);
}

.contact-consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    margin: 2px 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(17, 21, 27, 0.10);
    border-radius: 14px;
    background: #ffffff;
    color: #67615a;
    font-size: 13px;
    line-height: 1.45;
}

.contact-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #c89b3c;
}

.contact-consent a {
    color: #a87924;
    font-weight: 900;
}

.contact-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 4px solid #caa85c;
    border-radius: 13px;
    color: #67615a;
    background: #f7f3ed;
    font-size: 13px;
    line-height: 1.5;
}

.contact-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    color: #071018;
    background: linear-gradient(135deg, #c89b3c, #f0d486);
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    filter: brightness(1.03);
    transform: translateY(-1px);
    outline: none;
}

.contact-submit:disabled {
    opacity: 0.62;
    cursor: wait;
}

/* Processing / success */

.contact-processing,
.contact-success {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 7, 10, 0.76);
    backdrop-filter: blur(10px);
}

.contact-processing__box,
.contact-success__dialog {
    width: min(100%, 500px);
    padding: 32px;
    border: 1px solid rgba(202, 168, 92, 0.34);
    border-radius: 24px;
    text-align: center;
    background: #f7f3ed;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.contact-spinner {
    width: 54px;
    height: 54px;
    display: inline-block;
    margin-bottom: 22px;
    border: 4px solid rgba(202, 168, 92, 0.22);
    border-top-color: #caa85c;
    border-radius: 50%;
    animation: contactSpin 0.8s linear infinite;
}

@keyframes contactSpin {
    to {
        transform: rotate(360deg);
    }
}

.contact-processing h2,
.contact-success h2 {
    margin: 0 0 12px;
    color: #11151b;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.contact-processing p,
.contact-success p {
    margin: 0;
    color: #67615a;
    line-height: 1.6;
}

.contact-success__dialog button {
    min-height: 50px;
    margin-top: 24px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #071018;
    background: linear-gradient(135deg, #c89b3c, #f0d486);
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1120px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-side {
        position: static;
    }

    .contact-form__grid--three,
    .contact-form__grid--compact {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .contact-hero {
        min-height: calc(92svh - var(--header-height, 78px));
        background-position: center;
    }

    .contact-hero__overlay {
        background: linear-gradient(180deg, rgba(5, 7, 10, 0.78), rgba(5, 7, 10, 0.96));
    }

    .contact-hero__inner {
        padding: 68px 0;
    }

    .contact-hero h1 {
        font-size: clamp(42px, 13vw, 64px);
        letter-spacing: -0.06em;
    }

    .contact-hero p:not(.contact-label) {
        font-size: 17px;
    }

    .contact-page {
        padding: 54px 0;
    }

    .contact-form,
    .contact-cart,
    .contact-side {
        padding: 20px;
        border-radius: 20px;
    }

    .contact-form__grid,
    .contact-form__grid--three,
    .contact-form__grid--compact {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-cart__head {
        display: grid;
    }

    .contact-cart-item {
        grid-template-columns: 58px 1fr;
    }

    .contact-cart-item button {
        grid-column: 2;
        width: fit-content;
    }
}