/**
 * smart-quiz.css - Премиальная дизайн-система смарт-квиза Notariatus.ru
 * Стиль: Linear × Typeform × Apple (чистый деловой интерфейс, Bento-сетка, цветные иконки, человеческое доверие)
 */

/* ==========================================================================
   1. БАЗОВЫЙ КОНТЕЙНЕР
   ========================================================================== */
.sq-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
}

.sq-wrapper *,
.sq-wrapper *::before,
.sq-wrapper *::after {
    box-sizing: border-box;
}

.sq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Внутри основной карточки консультации */
.consultant-main-card .sq-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    padding: 24px 28px;
    border-radius: 16px;
    background: #ffffff;
}

/* Компактный режим (внутри статей) */
.sq-wrapper.sq--compact {
    max-width: 100%;
    margin: 28px 0;
}

.sq-wrapper.sq--compact .sq-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   2. СЛУЖЕБНАЯ ВЕРХНЯЯ ПАНЕЛЬ И НАВИГАЦИЯ
   ========================================================================== */
.sq-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    min-height: 28px;
    position: relative;
}

.sq-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3.5px 9px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.sq-nav-back.is-hidden {
    visibility: hidden;
    pointer-events: none;
    display: inline-flex !important;
}

.sq-nav-back:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateX(-1px);
}

/* Специалисты строго по центру верхней служебной панели (абсолютно) */
.sq-specialists-pill {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    z-index: 2;
    pointer-events: none;
}

.sq-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    z-index: 1;
}

.sq-step-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sq-avatar-group {
    display: flex;
    align-items: center;
}

.sq-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-left: -8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
    background: #e2e8f0;
}

.sq-avatar-mini:first-child {
    margin-left: 0;
}

.sq-avatar-count {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 1.5px solid #ffffff;
}

.sq-specialists-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sq-specialists-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #15803d;
}

.sq-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
    animation: sqPulse 2s infinite;
}

@keyframes sqPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@media (max-width: 640px) {
    .sq-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        position: relative;
        min-height: 28px;
    }

    /* Скрываем бейдж примерного времени на мобильных */
    .sq-timing-badge {
        display: none !important;
    }

    /* На шаге 1 не резервируем невидимое место под кнопку Назад */
    .sq-nav-back.is-hidden {
        display: none !important;
    }

    /* Капсула специалистов в потоке без абсолютного наложения */
    .sq-specialists-pill {
        position: static;
        transform: none;
        padding: 2.5px 8px 2.5px 4px;
        gap: 6px;
        flex-shrink: 0;
    }

    .sq-avatar-mini {
        width: 22px;
        height: 22px;
        margin-left: -6px;
    }

    /* Показываем только 2 аватара на мобильном */
    .sq-avatar-group img:nth-child(n+3),
    .sq-avatar-count {
        display: none !important;
    }

    .sq-specialists-text {
        font-size: 11px;
    }

    .sq-step-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    /* На смартфонах сохраняем аватары и зеленую точку специалистов, скрывая только текстовую подпись */
    .sq-specialists-text {
        display: none !important;
    }
    .sq-specialists-pill {
        padding: 2px 6px 2px 4px;
        gap: 4px;
    }
}

/* Полоса прогресса */
.sq-progress-track {
    width: 100%;
    height: 3px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--portal-primary, #b21b3c) 0%, #e11d48 100%);
    border-radius: 3px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Плавные кинетические переходы экранов */
.sq-screen {
    animation-duration: 0.26s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

@keyframes sqSlideInRight {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sqSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sq-screen.sq-slide-next {
    animation-name: sqSlideInRight;
}

.sq-screen.sq-slide-prev {
    animation-name: sqSlideInLeft;
}

/* ==========================================================================
   3. ЗАГОЛОВОК И ВОПРОСЫ
   ========================================================================== */
.sq-prompt {
    margin-bottom: 18px;
}

.sq-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--portal-primary, #b21b3c);
    margin-bottom: 4px;
}

.sq-question-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.sq-question-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   4. BENTO-СЕТКА КАРТОЧЕК ВЫБОРА
   ========================================================================== */
.sq-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sq-card-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.sq-card-option.sq-card-full {
    grid-column: span 2;
}

.sq-card-option:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08);
}

.sq-card-option:active {
    transform: translateY(0);
}

.sq-card-option.selected {
    background: #ffffff;
    border-color: var(--portal-primary, #b21b3c);
    box-shadow: 0 0 0 1.5px var(--portal-primary, #b21b3c), 0 8px 20px -4px rgba(178, 27, 60, 0.15);
}

/* ==========================================================================
   ТАКТИЛЬНЫЕ КАРТОЧКИ С 3D АРТЕФАКТАМИ (HERITAGE & TRUST - FLUSH LEFT BAY)
   ========================================================================== */
.sq-cards-grid--tactile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sq-cards-grid--tactile .sq-card-option {
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 60px;
    gap: 0;
    position: relative;
    user-select: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-cards-grid--tactile .sq-card-option:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.sq-cards-grid--tactile .sq-card-option.selected {
    border-color: var(--portal-primary, #b21b3c);
    box-shadow: 0 0 0 1.5px var(--portal-primary, #b21b3c), 0 10px 24px -4px rgba(178, 27, 60, 0.16);
}

/* Встроенный левый отсек артефакта (Flush Left Bay) */
.sq-cards-grid--tactile .sq-option-media {
    width: 72px;
    min-height: 100%;
    background: linear-gradient(135deg, #fdfbf7 0%, #f6f3ed 100%);
    border: none;
    border-right: 1px solid #ede8e1;
    border-radius: 13px 0 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
    box-shadow: none;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.sq-cards-grid--tactile .sq-card-option:hover .sq-option-media {
    background: linear-gradient(135deg, #ffffff 0%, #f7f4ee 100%);
    border-right-color: #e2ddd5;
}

.sq-cards-grid--tactile .sq-card-option.selected .sq-option-media {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-right-color: #fecdd3;
}

.sq-cards-grid--tactile .sq-media-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-cards-grid--tactile .sq-card-option:hover .sq-media-img {
    transform: scale(1.08) translateY(-1px);
}

.sq-cards-grid--tactile .sq-option-body {
    flex: 1;
    min-width: 0;
    padding: 10px 14px 10px 16px;
    display: flex;
    align-items: center;
}

.sq-cards-grid--tactile .sq-option-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.sq-cards-grid--tactile .sq-card-radio {
    margin-right: 16px;
    align-self: center;
    flex-shrink: 0;
}

.sq-cards-grid--tactile .sq-card-option.sq-card-full {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .sq-cards-grid--tactile {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .sq-cards-grid--tactile .sq-card-option {
        min-height: 52px;
        border-radius: 12px;
    }
    .sq-cards-grid--tactile .sq-card-option.sq-card-full {
        grid-column: span 1;
    }
    .sq-cards-grid--tactile .sq-option-media {
        width: 60px;
        border-radius: 11px 0 0 11px;
        padding: 2px;
    }
    .sq-cards-grid--tactile .sq-media-img {
        width: 44px;
        height: 44px;
    }
    .sq-cards-grid--tactile .sq-option-body {
        padding: 8px 10px 8px 12px;
    }
    .sq-cards-grid--tactile .sq-option-title {
        font-size: 13.5px;
    }
    .sq-cards-grid--tactile .sq-card-radio {
        margin-right: 12px;
    }
}

/* Строгие монохромные иконки шагов 2 и 3 */
.sq-option-icon,
.sq-option-icon--executive {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Премиальные красочные и строгие подложки иконок (Executive Chromatic Icons) */
.sq-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.sq-card-option:hover .sq-option-icon {
    transform: scale(1.06);
}

.sq-card-option.selected .sq-option-icon {
    transform: scale(1.08);
}

/* Фирменная палитра: цветная, но статусная и сдержанная */
.sq-ic--amber {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}
.sq-card-option.selected .sq-ic--amber {
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.sq-ic--blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.sq-card-option.selected .sq-ic--blue {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.sq-ic--indigo {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.sq-card-option.selected .sq-ic--indigo {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.sq-ic--emerald {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.sq-card-option.selected .sq-ic--emerald {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.sq-ic--teal {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0f766e;
}
.sq-card-option.selected .sq-ic--teal {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.sq-ic--ruby {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #b21b3c;
}
.sq-card-option.selected .sq-ic--ruby {
    box-shadow: 0 0 0 3px rgba(178, 27, 60, 0.2);
}

.sq-ic--purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}
.sq-card-option.selected .sq-ic--purple {
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.sq-ic--slate {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
.sq-card-option.selected .sq-ic--slate {
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.2);
}

.sq-option-title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    text-wrap: balance;
}

/* Радио-кнопка в карточке (явная кликабельность) */
.sq-card-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-radio-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--portal-primary, #b21b3c);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-card-option:hover .sq-card-radio {
    border-color: #64748b;
}

.sq-card-option.selected .sq-card-radio {
    border-color: var(--portal-primary, #b21b3c);
    box-shadow: 0 0 0 3px rgba(178, 27, 60, 0.12);
}

.sq-card-option.selected .sq-radio-dot {
    transform: scale(1);
}

/* ==========================================================================
   5. ФАЗА АНАЛИЗА (РАДАР)
   ========================================================================== */
.sq-screen-radar {
    min-height: 380px;
    padding: 36px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.sq-radar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sq-radar-ring {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sq-radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--portal-primary, #b21b3c);
    opacity: 0;
    animation: sqRadarWave 1.4s ease-out infinite;
}

.sq-radar-center {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal-primary, #b21b3c) 0%, #e11d48 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(178, 27, 60, 0.3);
}

@keyframes sqRadarWave {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.sq-radar-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.sq-radar-status {
    min-height: 22px;
    font-size: 13px;
    color: #64748b;
}

.sq-radar-text {
    display: none;
}

.sq-radar-text.active {
    display: inline-block;
    animation: sqFadeIn 0.3s ease;
}

@keyframes sqFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. ЭКРАН КОНТАКТОВ (ШАГ 4) - СТРОГИЙ МОДУЛЬНЫЙ ДИЗАЙН
   ========================================================================== */
.sq-summary-card {
    margin-bottom: 12px;
}

.sq-summary-badge {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    width: 100%;
    box-sizing: border-box;
}

.sq-summary-badge__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.sq-summary-badge__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sq-summary-topic-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.35;
}

.sq-summary-topic-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.sq-summary-topic {
    font-weight: 700;
    color: #0f172a;
    font-size: 14.5px;
}

.sq-summary-details {
    color: #475569;
    font-weight: 500;
    font-size: 13.5px;
    line-height: 1.4;
    word-break: break-word;
}

/* Карточка дежурных специалистов в Шаге 4 */
.sq-lawyer-roster-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.sq-roster-avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sq-roster-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #ffffff;
    margin-left: -12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    background: #e2e8f0;
}

.sq-roster-avatar:first-child {
    margin-left: 0;
}

.sq-roster-meta {
    flex: 1;
    min-width: 0;
}

.sq-roster-status {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sq-live-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: sqPulse 2s infinite;
}

.sq-roster-hint {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
    margin-top: 2px;
}

/* Модульные блоки шагов 1-3 в контактах */
.sq-step-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.18s ease;
}

.sq-step-block:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.sq-block-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.sq-block-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sq-block-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.sq-input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: all 0.15s ease;
}

.sq-input:focus {
    border-color: var(--portal-primary, #b21b3c);
    box-shadow: 0 0 0 3px rgba(178, 27, 60, 0.1);
}

.sq-input.input-error {
    border-color: #ef4444;
    background: #fffafa;
}

/* Быстрые чипы городов */
.sq-city-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sq-chips-label {
    font-size: 11.5px;
    color: #64748b;
    margin-right: 2px;
}

.sq-city-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sq-city-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.sq-city-chip.active {
    background: var(--portal-primary, #b21b3c);
    border-color: var(--portal-primary, #b21b3c);
    color: #ffffff;
}

/* Разделение контактов на 2 колонки */
.sq-contacts-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sq-field-sublabel {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

/* Карточки каналов связи (Звонок юриста / MAX / Telegram) */
.sq-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sq-channel-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.16s ease;
    position: relative;
}

.sq-channel-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sq-channel-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.sq-channel-card.selected {
    background: #ffffff;
    border-color: var(--portal-primary, #b21b3c);
    box-shadow: 0 0 0 1px var(--portal-primary, #b21b3c), 0 4px 12px -2px rgba(178, 27, 60, 0.08);
}

.sq-channel-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sq-channel-icon--call {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.sq-channel-icon--max {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(76, 204, 255, 0.25);
    background: #ffffff;
}

.sq-channel-icon--tg {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(42, 171, 238, 0.28);
    background: #ffffff;
}

.sq-channel-brand-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sq-channel-card__content {
    flex: 1;
    min-width: 0;
}

.sq-channel-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.sq-channel-card__desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
    margin-top: 1px;
}

.sq-channel-card__radio-mark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sq-channel-card.selected .sq-channel-card__radio-mark {
    border-color: var(--portal-primary, #b21b3c);
    background: var(--portal-primary, #b21b3c);
}

.sq-channel-card.selected .sq-channel-card__radio-mark::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* Аккордеон комментария (вместо плюсика) */
.sq-comment-drawer {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sq-comment-drawer.is-open {
    background: #ffffff;
    border-style: solid;
    border-color: #94a3b8;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.sq-drawer-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    text-align: left;
    transition: color 0.15s ease;
}

.sq-drawer-trigger:hover {
    color: #0f172a;
}

.sq-drawer-icon {
    color: #64748b;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sq-drawer-label {
    flex: 1;
}

.sq-drawer-chevron {
    color: #94a3b8;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sq-comment-drawer.is-open .sq-drawer-chevron {
    transform: rotate(180deg);
}

.sq-drawer-content {
    padding: 0 14px 12px 14px;
}

.sq-comment-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    resize: vertical;
    background: #ffffff;
    min-height: 64px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sq-comment-textarea:focus {
    border-color: var(--portal-primary, #b21b3c);
    box-shadow: 0 0 0 3px rgba(178, 27, 60, 0.1);
}

/* Согласие */
.sq-consent-group {
    margin-top: 10px;
}

.sq-consent-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #64748b;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    box-sizing: border-box;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sq-consent-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--portal-primary, #b21b3c);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, outline 0.18s ease;
}

.sq-consent-row a {
    color: #334155;
    text-decoration: underline;
    text-decoration-color: #94a3b8;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.sq-consent-row a:hover {
    color: var(--portal-primary, #b21b3c);
    text-decoration-color: var(--portal-primary, #b21b3c);
}

/* Красивое zero-shift выделение при незаполненном согласии */
.sq-consent-row.has-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: sqConsentShake 0.38s ease-in-out;
}

.sq-consent-row.has-error input[type="checkbox"] {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.28);
    transform: scale(1.15);
}

.sq-consent-row.has-error a {
    color: #b91c1c;
    text-decoration-color: #dc2626;
    font-weight: 600;
}

@keyframes sqConsentShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Кнопка отправки */
.sq-actions-bar {
    margin-top: 14px;
}

.sq-btn-primary {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, #b21b3c 0%, #991b1b 100%);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(178, 27, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.sq-btn-text {
    position: relative;
    z-index: 1;
}

.sq-btn-icon-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
    z-index: 1;
}

.sq-btn-icon-bubble svg {
    display: block;
    width: 15px;
    height: 15px;
    margin: 0;
}

.sq-btn-primary:hover {
    background: linear-gradient(180deg, #991b1b 0%, #7f1d1d 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(178, 27, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sq-btn-primary:hover .sq-btn-icon-bubble {
    transform: translateX(3px) scale(1.08);
    background: rgba(255, 255, 255, 0.32);
}

.sq-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(178, 27, 60, 0.2);
}

.sq-btn-primary:disabled,
.sq-btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   7. ЭКРАН УСПЕХА
   ========================================================================== */
.sq-screen-success {
    text-align: center;
    padding: 24px 16px;
}

.sq-success-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.sq-success-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.sq-success-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto 14px auto;
}

.sq-success-details {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 11.5px;
    color: #64748b;
}

/* ==========================================================================
   8. АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 600px) {
    .sq-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .sq-cards-grid {
        grid-template-columns: 1fr;
    }

    .sq-card-option.sq-card-full {
        grid-column: span 1;
    }

    .sq-contacts-split {
        grid-template-columns: 1fr;
    }

    .sq-channels-grid {
        grid-template-columns: 1fr;
    }

    .sq-btn-primary {
        font-size: 13px;
        height: 44px;
    }
}

/* Компактная плашка города */
.sq-city-capsule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 14px;
}

.sq-city-capsule-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.sq-city-pin-icon {
    color: var(--portal-primary, #b21b3c);
    display: inline-flex;
}

.sq-city-capsule-label {
    color: #64748b;
    font-size: 13px;
}

.sq-city-current-label {
    color: #0f172a;
    font-weight: 700;
}

.sq-city-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-primary, #b21b3c);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sq-city-toggle-btn:hover {
    background: rgba(178, 27, 60, 0.06);
    color: #991b1b;
}

.sq-city-drawer-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.sq-city-autocomplete-wrap {
    position: relative;
    margin-bottom: 10px;
}

.sq-city-input-rel {
    position: relative;
    width: 100%;
}

.sq-city-loader {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sq-city-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--portal-primary, #b21b3c);
    border-radius: 50%;
    animation: sqCitySpin 0.6s linear infinite;
}

@keyframes sqCitySpin {
    to { transform: rotate(360deg); }
}

.sq-city-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    padding: 4px 0;
}

.sq-city-dd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    transition: background 0.12s ease;
}

.sq-city-dd-item:last-child {
    border-bottom: none;
}

.sq-city-dd-item:hover,
.sq-city-dd-item.is-selected {
    background: #f1f5f9;
}

.sq-city-dd-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sq-city-dd-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sq-city-dd-region {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sq-city-dd-badge {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sq-city-dd-empty {
    padding: 12px 14px;
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
}

.sq-step-block--clean {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 14px;
    box-shadow: none;
}

.sq-step-block--clean .sq-block-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

/* Сетка каналов связи */
.sq-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 640px) {
    .sq-channels-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   9. НОВЫЕ СТАНДАРТЫ UI/UX: ТАЙМИНГ, TRUST SYNC, ВАЛИДАЦИЯ И КАНАЛЫ
   ========================================================================== */

/* Минималистичный тайминг в шапке квиза */
.sq-timing-badge {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    letter-spacing: -0.01em;
}

/* Карточка доверия и синхронизации (Trust Sync) на Шаге 4 */
.sq-specialist-sync-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.4;
}

.sq-sync-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sq-sync-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.sq-sync-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    display: block;
    background: #e2e8f0;
}

.sq-sync-avatar-wrap .sq-sync-pulse {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: sqPulseGreen 2s infinite;
    flex-shrink: 0;
}

.sq-sync-text-wrap {
    flex: 1;
    min-width: 0;
}

.sq-sync-text {
    display: block;
}

.sq-specialist-sync-card .sq-city-toggle-btn {
    flex-shrink: 0;
    padding: 4px 9px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    white-space: nowrap;
}

.sq-specialist-sync-card .sq-city-toggle-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

@keyframes sqPulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.sq-sync-topic,
.sq-sync-city {
    color: #0f172a;
    font-weight: 700;
}

/* Разгрузка и отступы контактов */
.sq-contacts-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.sq-required-star {
    color: #ef4444;
}

/* Дружелюбная тактильная валидация телефона */
.sq-phone-feedback {
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.sq-phone-feedback.is-valid {
    color: #059669;
    font-weight: 600;
}

.sq-phone-feedback.is-incomplete {
    color: #d97706;
}

/* Блок каналов связи: нормальные отступы без прилипания */
.sq-step-block.sq-channels-block {
    margin-top: 20px !important;
    margin-bottom: 18px !important;
    padding: 0;
    background: transparent;
    border: none;
}

.sq-channels-block .sq-block-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: block;
}

/* Карточки каналов связи */
.sq-channel-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.sq-channel-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.sq-channel-card.selected {
    border-color: var(--portal-primary, #b21b3c);
    background: #fff8f8;
    box-shadow: 0 2px 8px rgba(178, 27, 60, 0.08);
}

.sq-channel-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.sq-channel-card__desc {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.3;
    margin-top: 2px;
}

/* Балансировка заголовков */
.sq-question-title,
.sq-card-title,
.sq-option-title,
.consultant-hero-title,
.consultant-process-header h2,
.consultant-faq-header h2 {
    text-wrap: balance;
}

/* ==========================================================================
   10. СРАВНИТЕЛЬНЫЕ СТИЛИ: ВАРИАНТ 1 (ШВЕЙЦАРСКИЙ) И ВАРИАНТ 2 (3D-РЕАЛИЗМ)
   ========================================================================== */

/* ВАРИАНТ 1: Швейцарский типографический минимализм */
.sq-card-option--swiss {
    padding: 13px 16px;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-card-option--swiss:hover {
    border-color: #0f172a;
    background: #f8fafc;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.sq-card-option--swiss.selected {
    border-color: var(--portal-primary, #b21b3c);
    background: #fff8f8;
    box-shadow: 0 4px 16px rgba(178, 27, 60, 0.09);
}

.sq-swiss-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sq-swiss-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sq-swiss-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 5px;
    line-height: 1.2;
}

.sq-card-option--swiss.selected .sq-swiss-tag {
    background: rgba(178, 27, 60, 0.08);
    border-color: rgba(178, 27, 60, 0.2);
    color: var(--portal-primary, #b21b3c);
}

.sq-swiss-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}

/* ВАРИАНТ 2: 3D микро-артефакты (в стиле Шага 1) */
.sq-card-option--3d {
    padding: 11px 15px;
    align-items: center;
    gap: 13px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-card-option--3d:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.sq-card-option--3d.selected {
    border-color: var(--portal-primary, #b21b3c);
    background: #fff8f8;
    box-shadow: 0 6px 20px rgba(178, 27, 60, 0.1);
}

.sq-option-3d-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 11px;
    padding: 2px;
    overflow: hidden;
    transition: transform 0.22s ease;
}

.sq-card-option--3d:hover .sq-option-3d-box {
    transform: scale(1.08) rotate(-1deg);
}

.sq-card-option--3d.selected .sq-option-3d-box {
    transform: scale(1.1) rotate(0deg);
    border-color: rgba(178, 27, 60, 0.2);
    background: #ffffff;
}

.sq-option-3d-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

.sq-3d-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sq-3d-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}

/* ЧИСТЫЙ МИНИМАЛИЗМ: Никаких статей, никакого лишнего текста, легкое сканирование */
.sq-card-option--clean {
    padding: 14px 18px;
    min-height: 54px;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-card-option--clean .sq-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.sq-card-option--clean:hover {
    border-color: #0f172a;
    background: #f8fafc;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.sq-card-option--clean.selected {
    border-color: var(--portal-primary, #b21b3c);
    background: #fff8f8;
    box-shadow: 0 4px 16px rgba(178, 27, 60, 0.09);
}

.sq-card-option--clean.selected .sq-option-title {
    color: var(--portal-primary, #b21b3c);
    font-weight: 700;
}

/* МАКРО-3D АРТЕФАКТЫ: Крупный узнаваемый предмет во весь кадр */
.sq-card-option--macro {
    padding: 10px 16px;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-card-option--macro .sq-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.sq-macro-box {
    width: 52px;
    height: 52px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 2px;
    transition: transform 0.22s ease, border-color 0.2s ease;
}

.sq-macro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.sq-card-option--macro:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.sq-card-option--macro:hover .sq-macro-box {
    transform: scale(1.08) rotate(-1deg);
    border-color: #94a3b8;
}

.sq-card-option--macro.selected {
    border-color: var(--portal-primary, #b21b3c);
    background: #fff8f8;
    box-shadow: 0 6px 20px rgba(178, 27, 60, 0.1);
}

.sq-card-option--macro.selected .sq-macro-box {
    transform: scale(1.1);
    border-color: rgba(178, 27, 60, 0.25);
    background: #ffffff;
}

/* ==========================================================================
   ФИНАЛЬНЫЕ ПРАВИЛА МОБИЛЬНОЙ АДАПТИВНОСТИ (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
    .sq-contacts-split {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: 14px;
    }

    .sq-specialist-sync-card {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .sq-specialist-sync-card .sq-sync-content {
        min-width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sq-sync-avatar-wrap {
        width: 32px;
        height: 32px;
    }

    .sq-sync-avatar {
        width: 32px;
        height: 32px;
    }

    .sq-sync-text {
        font-size: 12.5px;
        line-height: 1.35;
    }

    .sq-specialist-sync-card .sq-city-toggle-btn {
        margin-left: auto;
    }

    .sq-channels-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .sq-timing-badge {
        display: none;
    }
}

/* ==========================================================================
   ЭКРАН УСПЕШНОЙ ОТПРАВКИ (СТРОГИЙ ЮРИДИЧЕСКИЙ СТИЛЬ)
   ========================================================================== */
.sq-screen-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 24px 64px;
    box-sizing: border-box;
    width: 100%;
}

.sq-screen-success .sq-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    color: #059669;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
}

.sq-screen-success .sq-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.sq-screen-success .sq-success-desc {
    font-size: 15.5px;
    line-height: 1.55;
    color: #475569;
    max-width: 540px;
    margin: 0 auto 24px auto;
}

.sq-screen-success .sq-success-desc strong {
    color: #0f172a;
    font-weight: 600;
}

.sq-screen-success .sq-success-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-width: 620px;
    margin: 0 auto;
}

.sq-screen-success .sq-success-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

.sq-screen-success .sq-success-meta-item svg {
    color: #10b981;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sq-screen-success {
        padding: 40px 16px 48px;
    }
    .sq-screen-success .sq-success-title {
        font-size: 20px;
    }
    .sq-screen-success .sq-success-desc {
        font-size: 14.5px;
    }
    .sq-screen-success .sq-success-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   МУЛЬТИВЫБОР (ШАГ 3: ИМУЩЕСТВО)
   ========================================================================== */
.sq-card-option--multi {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sq-card-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-checkbox-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transform: scale(0);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-card-option:hover .sq-card-checkbox {
    border-color: #64748b;
}

.sq-card-option.selected .sq-card-checkbox {
    border-color: #059669;
    background: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.sq-card-option.selected .sq-checkbox-check {
    transform: scale(1);
    opacity: 1;
}

.sq-option-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.sq-option-hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.35;
}

.sq-card-option.selected .sq-option-hint {
    color: #047857;
}

/* Футер мультивыбора */
.sq-multiselect-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.sq-multiselect-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sq-multiselect-count {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
}

.sq-multiselect-count.has-selection {
    color: #065f46;
    font-weight: 600;
}

.sq-btn-multinext {
    min-width: 170px;
    padding: 11px 22px;
}

.sq-btn-multinext:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.5);
    box-shadow: none;
}

@media (max-width: 640px) {
    .sq-multiselect-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .sq-btn-multinext {
        width: 100%;
        justify-content: center;
    }
    .sq-multiselect-status {
        justify-content: center;
        text-align: center;
    }
}

