/**
 * Страница «Контакты» `/contacts`
 */

.shopContactsPage {
    padding: 32px 0 80px;
    background: #fff;
}

.shopContactsPageHead {
    position: static;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.shopContactsPageHead .breadcrumbs {
    display: block;
    margin-bottom: 40px;
}

.shopContactsPageHead .breadcrumbs span[aria-current="page"] {
    color: var(--orange, #f39200);
}

.shopContactsPage__title {
    margin: 0 0 32px;
    font-family: Montserrat, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #282a31;
}

.shopContactsSupport__title {
    margin: 0 0 16px;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: #282a31;
}

.shopContactsSupport__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shopContactsSupport__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #282a31;
}

.shopContactsSupport__icon {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange, #f39200);
    color: #fff;
}

.shopContactsSupport__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.shopContactsSupport__link {
    color: #282a31;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shopContactsSupport__link:hover {
    color: var(--orange, #f39200);
}

.shopContactsFormSection {
    margin-top: 48px;
}

.shopContactsFormSection__title {
    margin: 0 0 16px;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #282a31;
}

.shopContactsFormSection__lead {
    margin: 0 0 16px;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #282a31;
}

.shopContactsForm__row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.shopContactsForm__row--fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shopContactsForm__field {
    display: block;
    margin: 0;
}

.shopContactsForm__field--message {
    margin-bottom: 24px;
}

/* main.css: button { width:200px } — сброс для полей формы */
.shopContactsPage .shopContactsForm__input,
.shopContactsPage .shopContactsForm__textarea {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #b8c5ce;
    border-radius: 0;
    background: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    color: #282a31;
    appearance: none;
    -webkit-appearance: none;
}

.shopContactsPage .shopContactsForm__input::placeholder,
.shopContactsPage .shopContactsForm__textarea::placeholder {
    color: #8a96a3;
    opacity: 1;
}

.shopContactsPage .shopContactsForm__input:focus,
.shopContactsPage .shopContactsForm__textarea:focus {
    outline: none;
    border-color: var(--orange, #f39200);
}

.shopContactsPage .shopContactsForm__textarea {
    min-height: 200px;
    resize: vertical;
}

.shopContactsForm__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.shopContactsForm__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

body.shopPage .shopContactsPage .shopContactsForm__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

body.shopPage .shopContactsPage .shopContactsForm__consent input[type="checkbox"]::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid var(--orange, #f39200);
    background: #fff;
}

body.shopPage .shopContactsPage .shopContactsForm__consent input[type="checkbox"]:checked::before {
    background: var(--orange, #f39200);
    border-color: var(--orange, #f39200);
}

body.shopPage .shopContactsPage .shopContactsForm__consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.shopContactsForm__consentText {
    flex: 1 1 auto;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #282a31;
}

.shopContactsForm__consentLink {
    color: #282a31;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shopContactsForm__consentLink:hover {
    color: var(--orange, #f39200);
}

.shopContactsPage .shopContactsForm__submit {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 180px;
    max-width: none !important;
    margin: 0;
    padding: 14px 40px;
    border: 0 !important;
    border-radius: 0;
    background: var(--orange, #f39200) !important;
    color: #fff !important;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}

.shopContactsPage .shopContactsForm__submit:hover,
.shopContactsPage .shopContactsForm__submit:focus,
.shopContactsPage .shopContactsForm__submit:focus-visible {
    filter: brightness(0.97);
    background: var(--orange, #f39200) !important;
    color: #fff !important;
}

.shopContactsPage .shopContactsForm__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.shopContactsForm__message {
    margin: 16px 0 0;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: #282a31;
}

.shopContactsForm__message--error {
    color: #c0392b;
}

.shopContactsForm__message--success {
    color: #1e7e34;
}

@media (max-width: 991px) {
    .shopContactsPageHead .breadcrumbs {
        margin-bottom: 24px;
    }

    .shopContactsPage__title {
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 28px;
    }

    .shopContactsSupport__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .shopContactsFormSection {
        margin-top: 32px;
    }

    .shopContactsForm__row--fields {
        grid-template-columns: 1fr;
    }

    .shopContactsForm__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .shopContactsPage .shopContactsForm__submit {
        width: 100% !important;
        min-width: 0;
    }

    .shopContactsForm__consentText {
        font-size: 16px;
    }
}
