/* Фон модального окна */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            display: none;
        }
        
        /* Само модальное окно */
        .modal-form {
			font-family: Circe;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            color: black;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            z-index: 10001;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-sizing: border-box;
            display: none;
        }
        
        /* Заголовок формы */
        .form-title {
            text-align: center;
            margin-bottom: 20px;
            font-size: 20px;
            font-weight: bold;
            color: black;
            line-height: 1.3;
        }
        
        /* Поля формы */
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: bold;
            font-size: 16px;
        }
        
        .form-group input {
            width: 100%;
            padding: 14px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 16px;
            -webkit-appearance: none;
        }
        
        /* Текст над чекбоксами */
        .checkbox-title {
            font-size: 14px;
            color: #666;
            margin-bottom: 12px;
            text-align: center;
            line-height: 1.4;
        }
        
        /* Чекбоксы */
        .checkbox-group {
            margin: 15px 0;
        }
        
        .checkbox-item {
            margin-bottom: 12px;
        }
        
        .checkbox-label {
            display: flex;
            align-items: flex-start;
            font-weight: normal;
            cursor: pointer;
            font-size: 14px;
            line-height: 1.4;
        }
        
        /* Кастомные чекбоксы */
        .checkbox-item input[type="checkbox"] {
            display: none;
        }
        
        .custom-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid #ddd;
            border-radius: 3px;
            margin-right: 10px;
            position: relative;
            flex-shrink: 0;
            margin-top: 2px;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .checkbox-item input[type="checkbox"]:checked + .custom-checkbox {
            background: #bfa382;
            border-color: #bfa382;
        }
        
        .checkbox-item input[type="checkbox"]:checked + .custom-checkbox::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }
        
        .checkbox-text {
            flex: 1;
            cursor: pointer;
            font-size: 14px;
            line-height: 1.4;
        }
        
        .checkbox-link {
            color: #bfa382;
            text-decoration: underline;
            margin-left: 3px;
            font-size: 14px;
			display: inline !important;
        }
        
        .checkbox-link:hover {
            text-decoration: none;
        }
        
        /* Кнопка отправки */
        .submit-btn {
            display: block;
            width: 100%;
            max-width: 280px;
            margin: 20px auto 0;
            padding: 16px 20px;
            background: #bfa382;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            font-weight: bold;
        }
        
        .submit-btn:hover {
            background: #a89072;
        }
        
        /* Крестик закрытия */
        .close-modal {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10002;
        }
        
        .close-modal:hover {
            color: #000;
        }
        
        /* Сообщения об ошибках */
        .error-message {
            color: #732805;
            font-size: 12px;
            margin-top: 4px;
            display: none;
            line-height: 1.3;
        }
        
        .input-error {
            border-color: #732805 !important;
        }
        
        .checkbox-error .custom-checkbox {
            border-color: #732805;
        }
        
        /* Адаптация для мобильных устройств */
        @media (max-width: 480px) {
            .modal-form {
                padding: 15px;
                width: 95%;
                max-height: 95vh;
            }
            
            .form-title {
                font-size: 18px;
                margin-bottom: 15px;
                padding-right: 30px;
            }
            
            .form-group input {
                padding: 12px;
                font-size: 16px; /* Увеличиваем для мобильных */
            }
            
            .checkbox-label {
                font-size: 14px;
            }
            
            .checkbox-text {
                font-size: 14px;
            }
            
            .checkbox-link {
                font-size: 14px;
            }
            
            .submit-btn {
                padding: 14px 20px;
                font-size: 16px;
            }
            
            .close-modal {
                top: 8px;
                right: 8px;
                width: 30px;
                height: 30px;
                font-size: 20px;
            }
        }
        
        @media (max-width: 360px) {
            .modal-form {
                padding: 12px;
            }
            
            .form-title {
                font-size: 16px;
            }
            
            .form-group label {
                font-size: 15px;
            }
            
            .form-group input {
                padding: 10px;
                font-size: 15px;
            }
            
            .checkbox-label {
                font-size: 13px;
            }
            
            .checkbox-text {
                font-size: 13px;
            }
        }
        
        /* Предотвращение масштабирования на iOS */
        @media (max-width: 768px) {
            .form-group input {
                font-size: 16px !important;
            }
        }
        
        /* Улучшение для очень высоких экранов */
        @media (min-height: 800px) and (max-width: 480px) {
            .modal-form {
                max-height: 80vh;
            }
        }
		
		
@font-face {
	font-family: "Circe Thin";
	src: url("/css/fonts/CRC15.otf") format("OpenType");
  font-display: swap;
}
@font-face {
  font-family: "Circe Extra Light";
  src: url("/css/fonts/CRC25.otf") format("OpenType");
  font-display: swap;
}
@font-face {
  font-family: "Circe Light";
  src: url("/css/fonts/CRC35.otf") format("OpenType");
  font-display: swap;
}
@font-face {
  font-family: "Circe";
  src: url("/css/fonts/CRC55.otf") format("OpenType");
  font-display: swap;
}
@font-face {
  font-family: "Circe Bold";
  src: url("/css/fonts/CRC65.otf") format("OpenType");
  font-display: swap;
}
@font-face {
  font-family: "Circe Extra Bold";
  src: url("/css/fonts/CRC75.otf") format("OpenType");
  font-display: swap;
}

/* catalog-shared-feedback-modal: start */
#modalOverlay.modal-overlay {
    background: rgba(28, 24, 19, 0.66);
    backdrop-filter: blur(2px);
}

#feedbackModal.modal-form {
    width: min(560px, calc(100% - 40px));
    max-height: min(760px, calc(100dvh - 40px));
    padding: clamp(32px, 5vw, 52px);
    overflow-x: hidden;
    border: 1px solid rgba(79, 63, 47, 0.22);
    border-radius: 0;
    background-color: #fff;
    background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.88)), url('/img/fon-wood.jpg');
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 44px rgba(25, 20, 15, 0.18);
    color: #28231e;
    scrollbar-color: #a98f70 #f6f3ee;
}

#feedbackModal.modal-form::before {
    content: '';
    display: block;
    width: 44px;
    height: 1px;
    margin: 0 0 20px;
    background: #b39a7c;
}

#feedbackModal .close-modal {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(79, 63, 47, 0.25);
    border-radius: 0;
    color: #5c5045;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

#feedbackModal .close-modal:hover {
    border-color: #8e755a;
    background-color: rgba(255, 255, 255, 0.58);
    color: #28231e;
}

#feedbackModal .form-title {
    max-width: calc(100% - 46px);
    margin: 0 0 26px;
    color: #28231e;
    font-family: 'Circe', Arial, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.12;
    text-align: left;
}

#feedbackModal #feedbackForm {
    padding-top: 22px;
    border-top: 1px solid rgba(79, 63, 47, 0.2);
}

#feedbackModal #feedbackForm.feedback-form--result {
    padding-top: 0;
    border-top: 0;
}

#feedbackModal .form-group {
    margin-bottom: 20px;
}

#feedbackModal .form-group label,
#feedbackModal .checkbox-title {
    color: #5b5046;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
}

#feedbackModal .form-group label {
    margin-bottom: 8px;
}

#feedbackModal .form-group input {
    min-height: 54px;
    padding: 13px 14px;
    border: 1px solid rgba(79, 63, 47, 0.28);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.74);
    color: #28231e;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    transition: border-color 160ms ease, background-color 160ms ease;
}

#feedbackModal .form-group input::placeholder {
    color: #8c8175;
    opacity: 1;
}

#feedbackModal .form-group input:hover {
    border-color: rgba(79, 63, 47, 0.5);
}

#feedbackModal .form-group input:focus {
    border-color: #967b5c;
    background-color: #fff;
    outline: 2px solid rgba(150, 123, 92, 0.32);
    outline-offset: 2px;
}

#feedbackModal .checkbox-title {
    margin: 26px 0 12px;
    color: #675c50;
}

#feedbackModal .checkbox-group {
    margin: 0;
}

#feedbackModal .checkbox-item {
    margin-bottom: 11px;
}

#feedbackModal .checkbox-label,
#feedbackModal .checkbox-text,
#feedbackModal .checkbox-link {
    color: #50463c;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

#feedbackModal .checkbox-item input[type="checkbox"] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

#feedbackModal .custom-checkbox {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 10px 0 0;
    border: 1px solid rgba(79, 63, 47, 0.42);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.64);
    transition: border-color 160ms ease, background-color 160ms ease;
}

#feedbackModal .checkbox-item input[type="checkbox"]:checked + .custom-checkbox {
    border-color: #967b5c;
    background: #967b5c;
}

#feedbackModal .checkbox-item input[type="checkbox"]:checked + .custom-checkbox::after,
#feedbackModal .custom-checkbox.is-checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -52%);
}

#feedbackModal .custom-checkbox.is-checked {
    border-color: #967b5c;
    background: #967b5c;
}

#feedbackModal .checkbox-item input[type="checkbox"]:focus + .custom-checkbox {
    outline: 2px solid rgba(150, 123, 92, 0.45);
    outline-offset: 2px;
}

#feedbackModal .checkbox-link {
    color: #70583d;
    text-decoration-color: rgba(112, 88, 61, 0.55);
    text-underline-offset: 2px;
}

#feedbackModal .checkbox-link:hover {
    color: #4e3c29;
    text-decoration-thickness: 1px;
}

#feedbackModal .submit-btn {
    width: 100%;
    max-width: none;
    min-height: 56px;
    margin: 28px 0 0;
    padding: 15px 20px;
    border: 1px solid #332d27;
    border-radius: 0;
    background: #332d27;
    color: #fff;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

#feedbackModal .submit-btn:hover:not(:disabled) {
    border-color: #8e755a;
    background: #8e755a;
}

#feedbackModal .submit-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

#feedbackModal .submit-btn:focus-visible,
#feedbackModal .close-modal:focus-visible,
#feedbackModal .checkbox-link:focus-visible {
    outline: 2px solid #967b5c;
    outline-offset: 3px;
}

#feedbackModal .error-message {
    color: #7d321d;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

#feedbackModal .input-error {
    border-color: #7d321d !important;
}

#feedbackModal .form_blocker {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(79, 63, 47, 0.2);
    color: #3f352b;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
}

#feedbackModal .form_blocker a {
    color: #70583d;
}

/* FORM-2026-001: real feedback states replace the form; they never overlay it. */
#feedbackModal .feedback-form__status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    color: #5b5046;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

#feedbackModal .feedback-form__status-message,
#feedbackModal .feedback-form__status-note {
    display: block;
    max-width: 100%;
}

#feedbackModal .feedback-form__status-note {
    color: #5b5046;
    font-size: 14px;
}

#feedbackModal .feedback-form__status[data-state="error"],
#feedbackModal .feedback-form__status[data-state="uncertain"] {
    color: #7d321d;
}

#feedbackModal .feedback-form__result {
    display: grid;
    gap: 12px;
    padding: 32px 0 4px;
    color: #28231e;
    font-family: 'Circe', Arial, sans-serif;
}

#feedbackModal .feedback-form__result[hidden],
#feedbackModal .feedback-form__status[hidden] {
    display: none;
}

#feedbackModal .feedback-form__result-title {
    margin: 0;
    color: #28231e;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

#feedbackModal .feedback-form__result p {
    margin: 0;
    color: #5b5046;
    font-size: 16px;
    line-height: 1.5;
}

#feedbackModal .feedback-form__result-action,
#feedbackModal .feedback-form__retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 52px;
    margin-top: 12px;
    padding: 14px 20px;
    border: 1px solid #332d27;
    border-radius: 0;
    background: #332d27;
    color: #fff;
    font: inherit;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

#feedbackModal .feedback-form__close-result {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: fit-content;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #5b5046;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#feedbackModal .feedback-form__retry {
    align-self: flex-start;
    min-height: 44px;
    margin-top: 0;
    background: transparent;
    color: #5b5046;
}

#feedbackModal .feedback-form__result-action:hover,
#feedbackModal .feedback-form__retry:hover {
    border-color: #967b5c;
    background: #967b5c;
    color: #fff;
}

#feedbackModal .feedback-form__result-action:focus-visible,
#feedbackModal .feedback-form__retry:focus-visible,
#feedbackModal .feedback-form__close-result:focus-visible {
    outline: 2px solid #967b5c;
    outline-offset: 3px;
}

@media (max-width: 560px) {
    #feedbackModal.modal-form {
        width: calc(100% - 28px);
        max-height: calc(100dvh - 28px);
        padding: 30px 22px 24px;
    }

    #feedbackModal .close-modal {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    #feedbackModal .form-title {
        max-width: calc(100% - 42px);
        margin-bottom: 22px;
        font-size: 25px;
    }

    #feedbackModal .form-group input {
        min-height: 52px;
    }

    #feedbackModal .feedback-form__result {
        padding-top: 24px;
    }

    #feedbackModal .feedback-form__result-title {
        font-size: 25px;
        line-height: 1.2;
    }

    #feedbackModal .feedback-form__result-action,
    #feedbackModal .feedback-form__retry,
    #feedbackModal .feedback-form__close-result {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #feedbackModal *,
    #modalOverlay {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* catalog-shared-feedback-modal: end */

/* modal-wide-consent-20260812: start */
body.black_page #feedbackModal .checkbox-link {
    color: #70583d !important;
    text-decoration-color: rgba(112, 88, 61, 0.55) !important;
}

body.black_page #feedbackModal .checkbox-link:hover,
body.black_page #feedbackModal .checkbox-link:focus-visible {
    color: #4e3c29 !important;
}

@media (min-width: 561px) {
    #feedbackModal.modal-form {
        width: min(680px, calc(100% - 48px));
        max-height: min(760px, calc(100dvh - 32px));
        padding: 32px 48px 30px;
    }

    #feedbackModal .checkbox-title {
        margin: 20px 0 9px;
    }

    #feedbackModal .checkbox-item {
        margin-bottom: 8px;
    }

    #feedbackModal .submit-btn {
        margin-top: 20px;
        min-height: 52px;
    }
}
/* modal-wide-consent-20260812: end */

/* FORM-2026-001 design v1.1: catalog success state only. */
#feedbackModal.feedback-modal--catalog-result {
    box-sizing: border-box;
    width: min(540px, calc(100vw - 48px));
    max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 36px 40px 32px;
    overflow-x: hidden;
    overflow-y: auto;
}

#feedbackModal.feedback-modal--catalog-result::before {
    margin-bottom: 20px;
}

#feedbackModal.feedback-modal--catalog-result .close-modal {
    box-sizing: border-box;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-color: transparent;
    background: transparent;
    font-size: 20px;
}

#feedbackModal.feedback-modal--catalog-result .close-modal:hover {
    border-color: transparent;
    background: #f6f3ee;
    color: #28231e;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result {
    display: block;
    margin: 0;
    padding: 0;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result-title {
    margin: 0;
    color: #28231e;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 36px;
    text-transform: none;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result p {
    margin: 10px 0 0;
    color: #5b5046;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result-action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    height: auto;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid #967b5c;
    border-radius: 0;
    background: #fff;
    color: #332d27;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 22px;
    text-decoration: none;
    text-transform: none;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result-action:hover {
    border-color: #70583d;
    background: #f6f3ee;
    color: #332d27;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result-action:active {
    border-color: #70583d;
    background: #eee8e0;
    color: #332d27;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__close-result {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: fit-content;
    margin: 0;
    padding: 11px 8px;
    border: 0;
    background: transparent;
    color: #5b5046;
    font-family: 'Circe', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 22px;
    text-decoration: none;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__close-result:hover {
    color: #28231e;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

#feedbackModal.feedback-modal--catalog-result .feedback-form__result-action:focus-visible,
#feedbackModal.feedback-modal--catalog-result .feedback-form__close-result:focus-visible,
#feedbackModal.feedback-modal--catalog-result .close-modal:focus-visible {
    outline: 2px solid #70583d;
    outline-offset: 3px;
}

#feedbackModal .feedback-form__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 560px) {
    #feedbackModal.feedback-modal--catalog-result {
        width: calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right));
        max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding: 32px 24px 24px;
    }

    #feedbackModal.feedback-modal--catalog-result .feedback-form__result-title {
        font-size: 25px;
        line-height: 30px;
    }

    #feedbackModal.feedback-modal--catalog-result .feedback-form__result-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 20px;
    }

    #feedbackModal.feedback-modal--catalog-result .feedback-form__result-action,
    #feedbackModal.feedback-modal--catalog-result .feedback-form__close-result {
        width: 100%;
    }

    #feedbackModal.feedback-modal--catalog-result .feedback-form__close-result {
        justify-content: center;
    }
}
