/* ============================================================
   ANKETA PAGE — Monochrome Elite
   ============================================================ */

.anketa-page {
    position: relative;
    padding: 150px 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
}

/* --- HERO (Заголовок + Скин) --- */
.anketa-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.anketa-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 24px;
}

.anketa-title .grad {
    background: var(--silver-grad);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    display: block;
}

.anketa-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-mute);
    max-width: 600px;
}

/* --- СКИН --- */
.anketa-skin-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1.15;
    border-radius: 40px;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.08), transparent 60%), rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.anketa-skin-img {
    position: absolute;
    top: 0%; left: -48%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 200%;
    height: auto;
    animation: heroFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

/* --- ФОРМА (В стеклянной карточке) --- */
.anketa-form-card {
    background: var(--surface);
    border: 1px solid var(--border-hi);
    border-radius: 32px;
    padding: 48px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.anketa-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* ══════════════════════════════════════════════════════════
   TOAST · платиновый стеклянный (4 типа)
   ══════════════════════════════════════════════════════════ */
#toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    min-width: 260px;
    max-width: 380px;
    padding: 14px 18px 14px 48px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(20, 22, 28, 0.98) 0%, rgba(10, 12, 16, 0.99) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.18) 100%) border-box;
    border: 1px solid transparent;
    color: #f6f7f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow:
        0 20px 40px -16px rgba(0, 0, 0, 0.9),
        0 8px 20px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    isolation: isolate;
}

#toast::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#toast.toast--success::before {
    background: linear-gradient(180deg, #ffffff 0%, #4b8c6b 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(75, 140, 107, 0.6));
}

#toast.toast--error::before {
    background: linear-gradient(180deg, #dbb8b8 0%, #9d5c5c 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(157, 92, 92, 0.6));
}

#toast.toast--warn::before {
    background: linear-gradient(180deg, #f0e0b8 0%, #a88440 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(168, 132, 64, 0.6));
}

#toast.toast--info::before {
    background: linear-gradient(180deg, #ffffff 0%, #c8ccd3 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

@media (max-width: 480px) {
    #toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        min-width: 0;
        max-width: none;
    }
}

/* ══════════════════════════════════════════════════════════
   BUSY-КНОПКИ · спиннер
   ══════════════════════════════════════════════════════════ */
.btn-action.is-busy { cursor: wait; pointer-events: none; opacity: 0.9; }

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.20);
    border-top-color: #ffffff;
    animation: toast-spin 0.9s linear infinite;
    flex-shrink: 0;
}

.btn-action--primary .btn-spinner {
    border-color: rgba(10, 11, 14, 0.25);
    border-top-color: #0a0b0e;
}

@keyframes toast-spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   SUCCESS-ЭКРАН АНКЕТЫ
   ══════════════════════════════════════════════════════════ */
.anketa-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
    animation: anketa-success-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.anketa-success-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    color: #dee1e6;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 12px 28px -12px rgba(0, 0, 0, 0.7),
        0 0 40px -16px rgba(255, 255, 255, 0.25);
    position: relative;
}

.anketa-success-icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.10);
    animation: toast-spin 24s linear infinite;
    pointer-events: none;
}

.anketa-success-icon svg {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.anketa-success-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 14px;
    color: transparent;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #f0f2f5 25%,
        #c8ccd3 55%,
        #a3a9b3 78%,
        #dee1e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.anketa-success-text {
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 460px;
    margin-bottom: 30px;
    color: #a3a9b3;
}

.anketa-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    color: #0a0b0e;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #f0f2f5 30%,
        #d0d4da 65%,
        #a3a9b3 100%);
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 3px rgba(0, 0, 0, 0.14),
        0 10px 26px -12px rgba(255, 255, 255, 0.20),
        0 5px 16px -8px rgba(0, 0, 0, 0.6);
    transition: background 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anketa-success-btn:hover {
    background: linear-gradient(180deg,
        #ffffff 0%,
        #ffffff 40%,
        #dee1e6 72%,
        #b8bdc5 100%);
    color: #040507;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 14px 32px -12px rgba(255, 255, 255, 0.30),
        0 6px 18px -8px rgba(0, 0, 0, 0.65);
}

.anketa-success-btn:active {
    transform: translateY(0) scale(0.99);
}

@keyframes anketa-success-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .anketa-success { padding: 32px 12px; }
    .anketa-success-icon { width: 60px; height: 60px; margin-bottom: 20px; }
    .anketa-success-icon svg { width: 28px; height: 28px; }
    .anketa-success-title { font-size: 20px; }
    .anketa-success-text { font-size: 13.5px; margin-bottom: 24px; }
    .anketa-success-btn { padding: 12px 24px; font-size: 13.5px; }
}

/* --- ПОЛЯ ФОРМЫ --- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group label .required-star { color: #ff4757; margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 15px;
    color: #fff;
    font-family: var(--font);
    transition: all 0.3s var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-group textarea { min-height: 120px; resize: vertical; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}
.form-group select option { background: #1a1a1a; color: #fff; }

/* Ошибки */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: rgba(255, 80, 80, 0.9) !important;
    background: rgba(255, 80, 80, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(255, 80, 80, 0.18), 0 0 20px rgba(255, 80, 80, 0.45) !important;
}
.form-group .error-text { display: none; color: #ff8a8a; font-size: 13px; margin-top: 6px; padding-left: 20px; position: relative; }
.form-group .error-text::before { content: '⚠'; position: absolute; left: 0; }
.form-group.error .error-text { display: block; }

/* --- БЛОК "КАК УСТРОЕНА ПОДАЧА" --- */
.process-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    margin: 32px 0;
}
.process-box h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.process-box ol { padding: 0; margin: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.process-box ol li {
    counter-increment: step; position: relative; padding-left: 44px; color: var(--text-mute); font-size: 14px; line-height: 1.65;
}
.process-box ol li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-hi); color: #fff;
    font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.process-box ol li strong { color: #fff; }
.process-box ol li a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); }
.process-box ol li a:hover { text-decoration-color: #fff; }

/* --- ФУТЕР ФОРМЫ (Чекбокс + Кнопка) --- */
.form-footer {
    display: flex; flex-direction: column; gap: 24px; margin-top: 10px;
}
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; }
.checkbox-group input[type="checkbox"] {
    width: 20px; height: 20px; margin-top: 2px; accent-color: #2a2a2a; flex-shrink: 0; cursor: pointer;
    filter: invert(1) hue-rotate(180deg); background: #1a1a1a; border-radius: 4px;
}
.checkbox-group input[type="checkbox"]:checked { filter: invert(0) hue-rotate(0deg); accent-color: #fff; }
.checkbox-group label { color: var(--text-mute); font-size: 13.5px; line-height: 1.6; cursor: pointer; }
.checkbox-group label a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); }
.checkbox-group label a:hover { text-decoration-color: #fff; }

.btn-submit {
    background: var(--silver-grad);
    background-size: 200% 100%;
    color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 18px 48px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.35s var(--ease-spring);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 2px 0 #fff, 0 8px 30px rgba(255, 255, 255, 0.15);
    animation: silverShift 6s ease infinite;
    width: 100%;
}
.btn-submit:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: inset 0 2px 0 #fff, 0 12px 40px rgba(255, 255, 255, 0.35);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* --- QNA (Аккордеон) --- */
.qna-section {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 0 20px;
}
.qna-title { font-size: 36px; font-weight: 900; margin-bottom: 8px; color: #fff; letter-spacing: -0.03em; }
.qna-subtitle { color: var(--text-dim); font-size: 15px; margin-bottom: 32px; }

.qna-item { border-bottom: 1px solid var(--border); padding: 6px 0; }
.qna-item:last-child { border-bottom: none; }
.qna-header {
    padding: 20px 0; font-size: 17px; font-weight: 700; color: rgba(255, 255, 255, 0.9); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; transition: all 0.3s var(--ease);
    background: none; border: none; width: 100%; text-align: left; font-family: var(--font);
}
.qna-header:hover { color: #fff; padding-left: 6px; }
.qna-icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); transition: all 0.4s var(--ease-spring); flex-shrink: 0; }
.qna-header:hover .qna-icon-wrap { background: rgba(255, 255, 255, 0.15); }
.qna-item.open .qna-icon-wrap { background: rgba(255, 255, 255, 0.2); }
.qna-icon-wrap svg { width: 14px; height: 14px; fill: var(--text-dim); transition: all 0.4s var(--ease-spring); }
.qna-item.open .qna-icon-wrap svg { transform: rotate(90deg); fill: #fff; }

.qna-answer-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease), opacity 0.4s ease; opacity: 0; }
.qna-item.open .qna-answer-wrapper { grid-template-rows: 1fr; opacity: 1; }
.qna-answer-wrapper > .qna-answer { overflow: hidden; min-height: 0; }
.qna-answer { color: var(--text-mute); font-size: 15px; line-height: 1.7; padding: 0 0 20px 0; }
.qna-answer strong { color: #fff; }

/* --- АДАПТИВ --- */
@media (max-width: 1024px) {
    .anketa-page { padding: 120px 24px 60px; }
    .anketa-hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .anketa-skin-wrapper { max-width: 280px; margin: 0 auto; }
    .anketa-title { font-size: 48px; }
    .anketa-desc { margin: 0 auto; }
}
@media (max-width: 768px) {
    .anketa-page { padding: 100px 16px 40px; }
    .anketa-title { font-size: 36px; }
    .anketa-form-card { padding: 30px 20px; border-radius: 24px; }
    .form-group label { font-size: 13.5px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 14px; padding: 14px; }
    .process-box { padding: 20px; }
    .process-box ol li { font-size: 13px; padding-left: 36px; }
    .process-box ol li::before { width: 26px; height: 26px; font-size: 12px; }
    .qna-title { font-size: 28px; }
    .qna-header { font-size: 15px; }
}