/* ═══════════════════════════════════════════════════════
   GORDEZ POPUP
   ═══════════════════════════════════════════════════════ */

.gordez-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gordez-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.gordez-popup {
    background: #fff;
    width: 100%;
    max-width: 480px;
    padding: 48px 44px 44px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.gordez-overlay.active .gordez-popup {
    transform: translateY(0);
}

/* Закрыть */
.gordez-popup__close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.15s;
}
.gordez-popup__close:hover { color: #222; }

/* Заголовок */
.gordez-popup__title {
    font-size: 24px;
    font-weight: 900;
    color: var(--btn-dark);
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.1;
}

.gordez-popup__sub {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    margin-bottom: 28px;
}

/* Сводка калькулятора */
.gordez-popup__calc-summary {
    padding: 18px 0px;
    margin-bottom: 24px;
}

.gordez-popup__calc-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

/* Сводка акции */
.gordez-popup__promo-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: #fffbf0;
    border-left: 3px solid var(--accent-yellow);
    padding: 10px 14px;
    margin-bottom: 24px;
}
.gordez-popup__promo-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    white-space: nowrap;
}
.gordez-popup__promo-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--btn-dark);
    line-height: 1.3;
}

.gordez-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.gordez-calc-row span { opacity: 0.6; }

.gordez-popup__calc-total {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 1px solid rgba(0,0,0,0.15);
    padding-top: 10px;
    text-transform: uppercase;
}

.gordez-popup__calc-total strong {
    font-size: 22px;
    font-weight: 900;
    margin-left: 8px;
}

/* Поля формы */
.gordez-popup__field {
    margin-bottom: 14px;
}

.gordez-popup__field input {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--input-border);
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
    background: #fff;
}

.gordez-popup__field input:focus { border-color: var(--bg-teal); }
.gordez-popup__field input.error  { border-color: #e74c3c; }

/* Согласие */
.gordez-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 22px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    line-height: 1.4;
}

.gordez-popup__consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--bg-teal);
}

.gordez-popup__consent a {
    color: var(--bg-teal);
    text-decoration: underline;
}

.gordez-popup__consent.error span { color: #e74c3c; }

/* Ошибка */
.gordez-popup__error {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Кнопка */
.gordez-popup__submit {
    width: 100%;
    height: 54px;
    background: var(--btn-dark);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.gordez-popup__submit:hover    { background: #222; }
.gordez-popup__submit:disabled { background: #aaa; cursor: default; }

/* Успех */
.gordez-popup__success {
    text-align: center;
    padding: 20px 0;
}

.gordez-popup__success-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-teal);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.gordez-popup__success-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--btn-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gordez-popup__success-text {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* Блокировка скролла страницы */
body.popup-open { overflow: hidden; }

@media (max-width: 520px) {
    .gordez-popup { padding: 36px 22px 28px; }
}
