/* ========================================
   КОНТАКТЫ
======================================== */

.contacts {
    position: relative;

    width: 100%;

    background:
        linear-gradient(
            90deg,
            #f3efeb 0%,
            #f7f4f1 48%,
            #f4f1ee 100%
        );

    color: #1c1c1c;

    font-family: "Manrope", Arial, sans-serif;

    overflow: hidden;
}

.contacts__container {
    width: 100%;
    max-width: 1220px;

    margin: 0 auto;

    padding: 42px 24px;

    display: grid;
    grid-template-columns: 0.95fr 1.45fr;

    gap: 65px;

    align-items: stretch;

    box-sizing: border-box;
}


/* ========================================
   ЛЕВАЯ ЧАСТЬ
======================================== */

.contacts__info {
    position: relative;

    min-height: 345px;
}

.contacts__content {
    position: relative;
    z-index: 2;
}


/* Маленькая подпись */

.contacts__label {
    margin-bottom: 10px;

    color: #a17856;

    font-size: 10px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* Заголовок */

.contacts__title {
    margin: 0;

    color: #191919;

    font-size: 31px;
    line-height: 1.15;

    font-weight: 500;

    letter-spacing: -0.8px;
}


/* Описание */

.contacts__description {
    margin: 14px 0 0;

    color: #57534f;

    font-size: 12px;
    line-height: 1.7;

    font-weight: 500;
}


/* ========================================
   ФЕМИДА НА ФОНЕ
======================================== */

.contacts__decor {
    position: absolute;

    z-index: 1;

    width: 270px;
    height: 270px;

    right: -40px;
    bottom: -42px;

    object-fit: contain;

    opacity: 0.065;

    filter: grayscale(1);

    pointer-events: none;
    user-select: none;
}


/* ========================================
   КОНТАКТЫ
======================================== */

.contacts__list {
    margin-top: 29px;

    display: flex;
    flex-direction: column;

    gap: 18px;
}

.contacts__item {
    display: flex;
    align-items: center;

    gap: 14px;

    color: #292827;

    font-size: 16px;
    line-height: 1.3;

    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}

a.contacts__item:hover {
    color: #9b6c47;
}


/* Иконка */

.contacts__icon {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #aa815f;
}

.contacts__icon svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ========================================
   ФОРМА
======================================== */

.contacts__form-wrap {
    width: 100%;

    box-sizing: border-box;
}

.contacts-form {
    width: 100%;
    height: 100%;

    min-height: 345px;

    padding: 17px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.55);

    border: 1px solid rgba(255, 255, 255, 0.85);

    border-radius: 11px;

    box-shadow:
        0 8px 30px rgba(57, 45, 35, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}


/* ========================================
   СТРОКА ИМЯ / ТЕЛЕФОН
======================================== */

.contacts-form__row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}


/* ========================================
   ПОЛЯ
======================================== */

.contacts-form__field {
    width: 100%;

    margin-bottom: 8px;
}

.contacts-form__field input,
.contacts-form__field textarea {
    width: 100%;

    padding: 0 16px;

    box-sizing: border-box;

    border: 1px solid rgba(114, 102, 91, 0.075);

    border-radius: 4px;

    outline: none;

    background: rgba(255, 255, 255, 0.42);

    color: #292725;

    font-family: "Manrope", Arial, sans-serif;

    font-size: 11px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* Input */

.contacts-form__field input {
    height: 48px;
}


/* Textarea */

.contacts-form__field--textarea textarea {
    display: block;

    height: 100px;

    padding-top: 15px;
    padding-bottom: 15px;

    resize: vertical;
}


/* Placeholder */

.contacts-form__field input::placeholder,
.contacts-form__field textarea::placeholder {
    color: #8b8783;

    opacity: 1;
}


/* Focus */

.contacts-form__field input:focus,
.contacts-form__field textarea:focus {
    background: rgba(255, 255, 255, 0.75);

    border-color: rgba(159, 109, 72, 0.4);

    box-shadow:
        0 0 0 2px rgba(159, 109, 72, 0.05);
}


/* ========================================
   КНОПКА
======================================== */

.contacts-form__submit {
    width: 100%;
    height: 43px;

    margin-top: 1px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #a17350;

    border-radius: 6px;

    background:
        linear-gradient(
            180deg,
            #a87650 0%,
            #92613e 100%
        );

    color: #ffffff;

    font-family: "Manrope", Arial, sans-serif;

    font-size: 11px;
    line-height: 1;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contacts-form__submit:hover {
    background:
        linear-gradient(
            180deg,
            #b18059 0%,
            #9b6843 100%
        );

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px rgba(84, 55, 34, 0.13);
}


/* ========================================
   СОГЛАСИЕ
======================================== */

.contacts-form__privacy {
    margin-top: 14px;

    display: flex;
    align-items: flex-start;

    gap: 9px;
}

.contacts-form__privacy-icon {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    color: #a67a58;
}

.contacts-form__privacy-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.contacts-form__privacy p {
    margin: 0;

    color: #89847f;

    font-size: 8px;
    line-height: 1.5;
}


/* ========================================
   ПЛАНШЕТ
======================================== */

@media (max-width: 900px) {

    .contacts__container {
        grid-template-columns: 1fr;

        gap: 35px;

        padding-top: 38px;
        padding-bottom: 38px;
    }

    .contacts__info {
        min-height: auto;
    }

    .contacts__decor {
        width: 230px;
        height: 230px;

        right: 20px;
        bottom: -20px;
    }

    .contacts-form {
        min-height: 0;
    }
}


/* ========================================
   МОБИЛЬНЫЕ
======================================== */

@media (max-width: 600px) {

    .contacts__container {
        padding:
            34px
            16px;

        gap: 30px;
    }

    .contacts__title {
        font-size: 27px;
    }

    .contacts__description {
        font-size: 12px;
    }

    .contacts__description br {
        display: none;
    }

    .contacts__list {
        margin-top: 25px;

        gap: 16px;
    }

    .contacts__item {
        gap: 12px;

        font-size: 15px;
    }

    .contacts__decor {
        width: 200px;
        height: 200px;

        right: -40px;
        bottom: -20px;

        opacity: 0.045;
    }

    .contacts-form {
        padding: 12px;
    }

    .contacts-form__row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .contacts-form__field input {
        height: 50px;
    }

    .contacts-form__field--textarea textarea {
        height: 115px;
    }

    .contacts-form__submit {
        height: 48px;

        font-size: 12px;
    }

    .contacts-form__privacy p {
        font-size: 8px;
    }
}

/* ========================================
   СОГЛАСИЯ В ФОРМЕ
======================================== */

.contacts-form__agreements {
    margin-top: 15px;

    display: flex;
    flex-direction: column;

    gap: 9px;
}


/* Одна строка согласия */

.contacts-form__agreement {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    cursor: pointer;

    color: #817c77;

    font-size: 9px;
    line-height: 1.5;
}


/* Прячем стандартный checkbox */

.contacts-form__agreement input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


/* Кастомный checkbox */

.contacts-form__checkbox {
    position: relative;

    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    margin-top: 1px;

    border: 1px solid #b18462;

    border-radius: 3px;

    background: rgba(255, 255, 255, 0.75);

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


/* Галочка */

.contacts-form__checkbox::after {
    content: "";

    position: absolute;

    left: 4px;
    top: 1px;

    width: 4px;
    height: 8px;

    border: solid #ffffff;

    border-width: 0 2px 2px 0;

    transform:
        rotate(45deg)
        scale(0);

    transition: transform 0.15s ease;
}


/* Выбранный checkbox */

.contacts-form__agreement input:checked + .contacts-form__checkbox {
    background: #a8734c;
    border-color: #a8734c;
}

.contacts-form__agreement input:checked + .contacts-form__checkbox::after {
    transform:
        rotate(45deg)
        scale(1);
}


/* Фокус с клавиатуры */

.contacts-form__agreement input:focus-visible + .contacts-form__checkbox {
    outline: 2px solid rgba(168, 115, 76, 0.25);
    outline-offset: 2px;
}


/* Текст */

.contacts-form__agreement-text {
    display: block;
}


/* Ссылки */

.contacts-form__agreement-text a {
    color: #8d6040;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;

    transition: color 0.2s ease;
}

.contacts-form__agreement-text a:hover {
    color: #684328;
}


/* ========================================
   МОБИЛЬНЫЕ
======================================== */

@media (max-width: 600px) {

    .contacts-form__agreements {
        margin-top: 14px;

        gap: 11px;
    }

    .contacts-form__agreement {
        font-size: 10px;
        line-height: 1.45;
    }

    .contacts-form__checkbox {
        width: 17px;
        height: 17px;

        flex-basis: 17px;
    }

    .contacts-form__checkbox::after {
        left: 5px;
        top: 2px;
    }

}