/**
 * assets/css/new-sections.css
 *
 * Стили новых разделов (Партия 10.6):
 *   - КДЛ (субсидиарная ответственность)
 *   - Оспаривание сделок
 *   - Имущество с торгов
 *
 * @package BFL_Theme
 * @subpackage New_Sections
 * @since 10.6
 */

/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */

:root {
    --ns-primary: #1a4d8f;
    --ns-primary-dark: #0f3460;
    --ns-primary-light: #e8f0fa;
    --ns-accent: #d97706;
    --ns-accent-light: #fef3c7;
    --ns-success: #059669;
    --ns-success-light: #d1fae5;
    --ns-danger: #dc2626;
    --ns-danger-light: #fee2e2;
    --ns-warning: #d97706;
    --ns-warning-light: #fef3c7;
    --ns-gray-50: #f9fafb;
    --ns-gray-100: #f3f4f6;
    --ns-gray-200: #e5e7eb;
    --ns-gray-300: #d1d5db;
    --ns-gray-500: #6b7280;
    --ns-gray-700: #374151;
    --ns-gray-900: #111827;
    --ns-radius: 12px;
    --ns-radius-sm: 8px;
    --ns-radius-lg: 16px;
    --ns-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ns-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ns-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --ns-transition: 0.2s ease;
}

/* ============================================================
   ОБЩИЙ КОНТЕЙНЕР
   ============================================================ */

.catalog-new-section {
    background: var(--ns-gray-50);
    padding-bottom: 0;
}

.catalog-new-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HERO
   ============================================================ */

.ns-hero {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, var(--ns-primary-dark) 0%, var(--ns-primary) 100%);
    color: #fff;
    overflow: hidden;
}

.ns-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.ns-hero .container {
    position: relative;
    z-index: 1;
}

.ns-hero--kdl {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a4d8f 100%);
}

.ns-hero--deal {
    background: linear-gradient(135deg, #4c1d3d 0%, #831843 100%);
}

.ns-hero--property {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
}

.ns-breadcrumbs {
    font-size: 13px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ns-breadcrumbs a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color var(--ns-transition);
}

.ns-breadcrumbs a:hover {
    border-bottom-color: #fff;
}

.ns-breadcrumbs span {
    margin: 0 8px;
    opacity: 0.6;
}

.ns-hero__title {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 16px;
    max-width: 800px;
    letter-spacing: -0.02em;
}

.ns-hero__lead {
    font-size: 17px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 28px;
    opacity: 0.95;
}

.ns-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ns-hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ns-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ns-stat__value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ns-stat__label {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   ФИЛЬТРЫ
   ============================================================ */

.ns-filters {
    background: #fff;
    border-bottom: 1px solid var(--ns-gray-200);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--ns-shadow);
}

.ns-filters__row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ns-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
    flex: 1 1 180px;
    max-width: 260px;
}

.ns-filter__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ns-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ns-filter__select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--ns-gray-50) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 12px;
    border: 1px solid var(--ns-gray-200);
    border-radius: var(--ns-radius-sm);
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    color: var(--ns-gray-900);
    cursor: pointer;
    transition: border-color var(--ns-transition), box-shadow var(--ns-transition);
    width: 100%;
}

.ns-filter__select:hover {
    border-color: var(--ns-gray-300);
}

.ns-filter__select:focus {
    outline: none;
    border-color: var(--ns-primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.12);
}

.ns-filters__actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

/* ============================================================
   СЕТКА КАРТОЧЕК
   ============================================================ */

.ns-list {
    padding: 40px 0 60px;
}

.ns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ============================================================
   КАРТОЧКА
   ============================================================ */

.ns-card {
    background: #fff;
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--ns-transition), box-shadow var(--ns-transition);
}

.ns-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ns-shadow-md);
}

.ns-card__thumb-link {
    display: block;
    text-decoration: none;
}

.ns-card__thumb {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--ns-gray-100);
    overflow: hidden;
}

.ns-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ns-card:hover .ns-card__img {
    transform: scale(1.04);
}

.ns-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ns-gray-500);
}

.ns-card__placeholder--kdl {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.ns-card__placeholder--deal {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9d174d;
}

.ns-card__placeholder--property {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.ns-card__placeholder-icon {
    font-size: 40px;
    line-height: 1;
}

.ns-card__placeholder-text {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

/* Бейджи */
.ns-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ns-gray-900);
    box-shadow: var(--ns-shadow);
    z-index: 2;
}

.ns-card__badge--right {
    left: auto;
    right: 12px;
}

.ns-card__badge--podacha      { background: #dbeafe; color: #1e40af; }
.ns-card__badge--rassmotrenie { background: #fef3c7; color: #92400e; }
.ns-card__badge--reshenie     { background: #d1fae5; color: #065f46; }
.ns-card__badge--obzhalovanie { background: #fee2e2; color: #991b1b; }

.ns-card__badge--type         { background: rgba(131, 24, 67, 0.95); color: #fff; }
.ns-card__badge--osparivaetsya { background: #fef3c7; color: #92400e; }
.ns-card__badge--priznana     { background: #d1fae5; color: #065f46; }
.ns-card__badge--otkazano     { background: #fee2e2; color: #991b1b; }

.ns-card__badge--discount {
    background: var(--ns-danger);
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
}

.ns-card__badge--opublikovano { background: #dbeafe; color: #1e40af; }
.ns-card__badge--priem       { background: #fef3c7; color: #92400e; }
.ns-card__badge--torgi       { background: #fce7f3; color: #9d174d; }
.ns-card__badge--zaversheno  { background: var(--ns-gray-200); color: var(--ns-gray-700); }

/* Тело карточки */
.ns-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.ns-card__region {
    font-size: 12px;
    color: var(--ns-gray-500);
}

.ns-card__region-link {
    color: var(--ns-gray-500);
    text-decoration: none;
    transition: color var(--ns-transition);
}

.ns-card__region-link:hover {
    color: var(--ns-primary);
}

.ns-card__title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0;
    color: var(--ns-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ns-transition);
}

.ns-card__title a:hover {
    color: var(--ns-primary);
}

.ns-card__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.ns-card__meta-item {
    display: flex;
    gap: 6px;
    align-items: baseline;
    color: var(--ns-gray-700);
}

.ns-card__meta-label {
    color: var(--ns-gray-500);
    flex-shrink: 0;
}

.ns-card__meta-value {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-card__amount {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--ns-primary-light);
    border-radius: var(--ns-radius-sm);
}

.ns-card__amount-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ns-primary-dark);
    opacity: 0.8;
}

.ns-card__amount-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--ns-primary-dark);
    letter-spacing: -0.01em;
}

.ns-card__status {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.ns-card__status--osparivaetsya { background: var(--ns-warning-light); color: #92400e; }
.ns-card__status--priznana      { background: var(--ns-success-light); color: #065f46; }
.ns-card__status--otkazano      { background: var(--ns-danger-light); color: #991b1b; }

.ns-card__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: #f0fdf4;
    border-radius: var(--ns-radius-sm);
}

.ns-card__price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #166534;
    opacity: 0.8;
}

.ns-card__price-old {
    font-size: 13px;
    color: var(--ns-gray-500);
    text-decoration: line-through;
}

.ns-card__price-current {
    font-size: 18px;
    font-weight: 800;
    color: #166534;
    letter-spacing: -0.01em;
}

.ns-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ns-gray-500);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ns-gray-100);
}

.ns-card__date {
    font-size: 12px;
    color: var(--ns-gray-500);
}

.ns-card__date--auction {
    color: var(--ns-primary);
    font-weight: 600;
}

.ns-card__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--ns-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--ns-transition), color var(--ns-transition);
}

.ns-card__more:hover {
    gap: 8px;
    color: var(--ns-primary-dark);
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */

.ns-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ns-pagination .nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ns-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--ns-gray-200);
    border-radius: var(--ns-radius-sm);
    color: var(--ns-gray-700);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ns-transition);
}

.ns-pagination .page-numbers:hover {
    border-color: var(--ns-primary);
    color: var(--ns-primary);
}

.ns-pagination .page-numbers.current {
    background: var(--ns-primary);
    border-color: var(--ns-primary);
    color: #fff;
}

.ns-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ============================================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================================ */

.ns-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
}

.ns-empty h2 {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--ns-gray-900);
}

.ns-empty p {
    color: var(--ns-gray-500);
    margin: 0 0 20px;
}

/* ============================================================
   CTA-БЛОК
   ============================================================ */

.ns-cta {
    padding: 20px 0 40px;
}

.ns-cta__box {
    background: linear-gradient(135deg, var(--ns-primary-dark) 0%, var(--ns-primary) 100%);
    border-radius: var(--ns-radius-lg);
    padding: 40px;
    color: #fff;
    text-align: center;
}

.ns-cta__box h2 {
    font-size: 26px;
    margin: 0 0 12px;
    color: #fff;
}

.ns-cta__box p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 24px;
    opacity: 0.95;
}

.ns-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SEO-ТЕКСТ
   ============================================================ */

.ns-seo-text {
    background: #fff;
    padding: 50px 0;
    margin-top: 40px;
    border-top: 1px solid var(--ns-gray-200);
}

.ns-seo-text h2 {
    font-size: 26px;
    margin: 0 0 20px;
    color: var(--ns-gray-900);
    letter-spacing: -0.01em;
}

.ns-seo-text h3 {
    font-size: 19px;
    margin: 28px 0 12px;
    color: var(--ns-gray-900);
}

.ns-seo-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ns-gray-700);
    margin: 0 0 16px;
    max-width: 860px;
}

.ns-seo-text ul,
.ns-seo-text ol {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ns-gray-700);
    margin: 0 0 20px;
    padding-left: 24px;
    max-width: 860px;
}

.ns-seo-text li {
    margin-bottom: 6px;
}

.ns-seo-text a {
    color: var(--ns-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   КВИЗ
   ============================================================ */

.ns-quiz {
    background: #fff;
    border-radius: var(--ns-radius-lg);
    box-shadow: var(--ns-shadow-md);
    padding: 36px;
    max-width: 720px;
    margin: 0 auto;
}

.ns-quiz__header {
    text-align: center;
    margin-bottom: 28px;
}

.ns-quiz__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ns-gray-900);
    letter-spacing: -0.01em;
}

.ns-quiz__subtitle {
    font-size: 15px;
    color: var(--ns-gray-500);
    margin: 0;
    line-height: 1.5;
}

.ns-quiz__form {
    position: relative;
}

/* Прогресс */
.ns-quiz__progress {
    height: 6px;
    background: var(--ns-gray-100);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ns-quiz__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ns-primary) 0%, var(--ns-accent) 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.ns-quiz__step-counter {
    font-size: 12px;
    color: var(--ns-gray-500);
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* Шаги */
.ns-quiz__step {
    border: none;
    padding: 0;
    margin: 0;
    display: none;
}

.ns-quiz__step.is-active {
    display: block;
    animation: ns-fade-in 0.3s ease;
}

@keyframes ns-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ns-quiz__question {
    font-size: 18px;
    font-weight: 700;
    color: var(--ns-gray-900);
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.4;
}

.ns-quiz__hint {
    font-size: 14px;
    color: var(--ns-gray-500);
    margin: -8px 0 18px;
    line-height: 1.5;
}

/* Опции */
.ns-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.ns-quiz__option {
    display: block;
    cursor: pointer;
    position: relative;
}

.ns-quiz__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ns-quiz__option-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ns-gray-50);
    border: 2px solid var(--ns-gray-200);
    border-radius: var(--ns-radius-sm);
    transition: all var(--ns-transition);
}

.ns-quiz__option-box::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ns-gray-300);
    border-radius: 50%;
    background: #fff;
    transition: all var(--ns-transition);
    position: relative;
}

.ns-quiz__option--check .ns-quiz__option-box::before {
    border-radius: 5px;
}

.ns-quiz__option:hover .ns-quiz__option-box {
    border-color: var(--ns-primary);
    background: #fff;
}

.ns-quiz__option input:checked + .ns-quiz__option-box {
    border-color: var(--ns-primary);
    background: var(--ns-primary-light);
    box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.08);
}

.ns-quiz__option input:checked + .ns-quiz__option-box::before {
    border-color: var(--ns-primary);
    background: var(--ns-primary);
    box-shadow: inset 0 0 0 3px #fff;
}

.ns-quiz__option--check input:checked + .ns-quiz__option-box::before {
    box-shadow: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='%23fff' d='M4 10L0 6l1.4-1.4L4 7.2 10.6 0 12 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.ns-quiz__option-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ns-gray-900);
    line-height: 1.4;
}

/* Поля */
.ns-quiz__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.ns-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ns-field--full {
    grid-column: 1 / -1;
}

.ns-field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ns-gray-700);
}

.ns-field__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ns-gray-200);
    border-radius: var(--ns-radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--ns-gray-900);
    background: #fff;
    transition: border-color var(--ns-transition), box-shadow var(--ns-transition);
    box-sizing: border-box;
}

.ns-field__input:focus {
    outline: none;
    border-color: var(--ns-primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.12);
}

.ns-field__input::placeholder {
    color: var(--ns-gray-300);
}

.ns-field__textarea {
    resize: vertical;
    min-height: 80px;
}

/* Навигация */
.ns-quiz__nav {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.ns-quiz__nav .btn {
    min-width: 130px;
}

.ns-quiz__nav .btn--primary:only-child,
.ns-quiz__nav .js-quiz-next:first-child {
    margin-left: auto;
}

.ns-quiz__legal {
    font-size: 12px;
    color: var(--ns-gray-500);
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}

.ns-quiz__legal a {
    color: var(--ns-primary);
    text-decoration: underline;
}

/* Успех */
.ns-quiz__success {
    text-align: center;
    padding: 20px 0;
    animation: ns-fade-in 0.4s ease;
}

.ns-quiz__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--ns-success-light);
    color: var(--ns-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.ns-quiz__success-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ns-gray-900);
}

.ns-quiz__success-text {
    font-size: 15px;
    color: var(--ns-gray-700);
    margin: 0 0 12px;
    line-height: 1.5;
}

.ns-quiz__success-phone {
    font-size: 15px;
    margin: 0;
    color: var(--ns-gray-700);
}

.ns-quiz__success-phone a {
    color: var(--ns-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Ошибка */
.ns-quiz__error {
    text-align: center;
    padding: 16px;
    background: var(--ns-danger-light);
    border-radius: var(--ns-radius-sm);
    margin-top: 16px;
}

.ns-quiz__error-text {
    color: #991b1b;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Подсветка незаполненного */
.ns-quiz__option.is-invalid .ns-quiz__option-box {
    border-color: var(--ns-danger);
    background: #fef2f2;
}

.ns-quiz__step.is-invalid .ns-field__input:invalid,
.ns-quiz__step.is-invalid .ns-field__input.is-invalid {
    border-color: var(--ns-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 900px) {
    .ns-hero {
        padding: 44px 0 36px;
    }

    .ns-hero__title {
        font-size: 32px;
    }

    .ns-hero__lead {
        font-size: 15px;
    }

    .ns-hero__stats {
        gap: 28px;
    }

    .ns-stat__value {
        font-size: 26px;
    }

    .ns-filter {
        min-width: 140px;
    }

    .ns-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }

    .ns-seo-text h2 {
        font-size: 22px;
    }

    .ns-seo-text h3 {
        font-size: 17px;
    }

    .ns-quiz {
        padding: 28px 22px;
    }

    .ns-quiz__title {
        font-size: 20px;
    }

    .ns-quiz__fields {
        grid-template-columns: 1fr;
    }

    .ns-cta__box {
        padding: 28px 22px;
    }

    .ns-cta__box h2 {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .ns-hero__title {
        font-size: 26px;
    }

    .ns-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ns-hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .ns-filters {
        position: static;
    }

    .ns-filters__row {
        flex-direction: column;
        align-items: stretch;
    }

    .ns-filter {
        max-width: none;
    }

    .ns-filters__actions {
        width: 100%;
    }

    .ns-filters__actions .btn {
        flex: 1;
        text-align: center;
    }

    .ns-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ns-card__body {
        padding: 16px;
    }

    .ns-quiz {
        padding: 22px 16px;
        border-radius: var(--ns-radius);
    }

    .ns-quiz__title {
        font-size: 18px;
    }

    .ns-quiz__question {
        font-size: 16px;
    }

    .ns-quiz__nav {
        flex-direction: column-reverse;
    }

    .ns-quiz__nav .btn {
        width: 100%;
        min-width: 0;
    }

    .ns-cta__actions {
        flex-direction: column;
    }

    .ns-cta__actions .btn {
        width: 100%;
        text-align: center;
    }
}