/* ==========================================================================
   ТИПОВОЕ РЕШЕНИЕ: САЙТ АДВОКАТА (ТЕХНОЛОГИЧНЫЙ СВЕТЛЫЙ СТИЛЬ & ЧИТАЕМОСТЬ)
   - Идеальная верстка хедера без переносов (white-space: nowrap)
   - Полнофункциональный Offcanvas Drawer (Бутерброд-меню с контактами)
   - Ритм контрастных фонов (белый / tech-gray / deep-slate)
   - Моушн-графика и микро-анимации
   - Поддержка живых фотографий
   ========================================================================== */

:root {
    /* Цветовая палитра */
    --bg-main: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-slate: #0F172A;        /* Глубокий технологичный сланец для контрастных секций */
    --bg-slate-card: #1E293B;

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --text-light-muted: #94A3B8;

    --border-light: #E2E8F0;
    --border-dark: rgba(255, 255, 255, 0.1);
    --border-accent: #3B82F6;

    --primary: #0F172A;
    --primary-hover: #1E293B;

    --accent-blue: #1D4ED8;
    --accent-cyan: #0284C7;
    --accent-gold: #B45309;

    --danger: #DC2626;
    --danger-hover: #B91C1C;
    --danger-light: #FEF2F2;

    --success: #059669;
    --success-light: #ECFDF5;

    --font-sans: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.12);

    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ДЕМО-ПЕРЕКЛЮЧАТЕЛЬ СЦЕНАРИЕВ
   ========================================================================== */
.scenario-switcher {
    background: #F1F5F9;
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    font-size: 0.82rem;
    position: relative;
    z-index: 101;
}

.scenario-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.scenario-label {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.scenario-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scenario-pill {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition);
}

.scenario-pill:hover, .scenario-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

/* ==========================================================================
   ШАПКА (HEADER) — БЕЗ ПЕРЕНОСОВ И С ПРЕМИУМ-БУТЕРБРОДОМ
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 16px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-monogram {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-status {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Десктопная навигация: строго в одну строку, компактно */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-phone {
    display: none;
    flex-direction: column;
    text-align: right;
    position: relative;
    padding-left: 18px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .header-phone {
        display: flex;
    }
}

.phone-pulse {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.phone-number {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.phone-badge {
    font-size: 0.7rem;
    color: var(--danger);
    font-weight: 700;
    text-transform: uppercase;
}

/* Премиальная кнопка-бутерброд (всегда стильная и доступная) */
.drawer-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.drawer-trigger-btn:hover {
    background: #FFFFFF;
    border-color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ==========================================================================
   БОКОВОЙ OFFCANVAS DRAWER (БУТЕРБРОД СО ВСЕМИ КОНТАКТАМИ И МЕНЮ)
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 440px;
    height: 100%;
    background: #FFFFFF;
    border-left: 1px solid var(--border-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.drawer-overlay.active .drawer-sidebar {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.close-drawer-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: all var(--transition);
}

.close-drawer-btn:hover {
    background: var(--primary);
    color: #FFF;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.drawer-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-link:hover {
    color: var(--accent-blue);
    padding-left: 6px;
}

.drawer-contacts-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer-contact-item {
    display: flex;
    flex-direction: column;
}

.drawer-contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.drawer-contact-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.drawer-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    user-select: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.btn-outline {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--text-primary);
}

.pulse-shadow {
    animation: lightDangerPulse 2.4s infinite;
}

@keyframes lightDangerPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН (HERO) С ТЕХНОЛОГИЧНОЙ СЕТКОЙ И ЖИВЫМ ФОТО
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 50px 0 60px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

/* Тонкая технологичная координатная сетка (Tech Grid) */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 992px) {
    .hero-section {
        padding: 80px 0 90px;
    }
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 60px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--danger);
    border-radius: 50%;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

.gradient-text {
    color: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 620px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

@media (min-width: 540px) {
    .hero-cta-group {
        flex-direction: row;
        align-items: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.35;
}

/* Карточка адвоката с живым фото */
.lawyer-card-wrapper {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

.lawyer-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}

.lawyer-card:hover {
    transform: translateY(-4px);
}

.lawyer-photo-box {
    height: 400px;
    background: #E2E8F0;
    position: relative;
    overflow: hidden;
}

.lawyer-real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.photo-overlay-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.photo-caption-float {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.caption-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.caption-spec {
    font-size: 0.75rem;
    color: #94A3B8;
}

.lawyer-card-footer {
    padding: 18px 20px;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lawyer-id {
    display: flex;
    flex-direction: column;
}

.id-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.id-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.check-pill {
    font-size: 0.74rem;
    color: var(--success);
    background: var(--success-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

/* ==========================================================================
   КОНТРАСТНАЯ SOS-СЕКЦИЯ (ТЕХНОЛОГИЧНЫЙ ТЕМНЫЙ СЛАНЕЦ)
   ========================================================================== */
.sos-strip {
    background: var(--bg-slate);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 30px 0;
    color: #FFFFFF;
    position: relative;
}

.sos-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .sos-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.sos-alert-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.sos-text {
    flex: 1;
}

.sos-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.sos-desc {
    font-size: 0.95rem;
    color: #94A3B8;
}

.sos-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   СЕКЦИИ И РИТМ ФОНОВ
   ========================================================================== */
.section {
    padding: 70px 0;
}

@media (min-width: 992px) {
    .section {
        padding: 95px 0;
    }
}

.section-light {
    background: #FFFFFF;
}

.section-subtle {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-slate {
    background: var(--bg-slate);
    color: #FFFFFF;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 50px;
}

.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.section-tag-light {
    color: #60A5FA;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-slate .section-title {
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.4rem;
    }
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.section-slate .section-subtitle {
    color: #94A3B8;
}

/* ==========================================================================
   КАРТОЧКИ ПРАКТИК (ТЕХНОЛОГИЧНЫЙ HOVER-ЭФФЕКТ)
   ========================================================================== */
.practices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .practices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.practice-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.practice-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-num {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #CBD5E1;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 20px;
}

.card-bullets {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-bullets li {
    font-size: 0.85rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 18px;
}

.card-bullets li::before {
    content: '•';
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* ==========================================================================
   КВИЗ ОЦЕНКИ РИСКОВ
   ========================================================================== */
.quiz-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
    .quiz-wrapper {
        grid-template-columns: 0.9fr 1.1fr;
        padding: 48px;
        gap: 60px;
    }
}

.quiz-intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quiz-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--success-light);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 600;
}

.quiz-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    position: absolute;
    top: 0;
    left: 0;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width var(--transition);
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.step-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.step-question {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.35;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.quiz-option:hover {
    border-color: var(--primary);
}

.quiz-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #94A3B8;
    position: relative;
    flex-shrink: 0;
}

.quiz-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary);
}

.quiz-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.quiz-option.selected {
    background: #EFF6FF;
    border-color: var(--accent-blue);
}

.option-text {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
}

.quiz-nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.contact-method-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.method-chip {
    padding: 9px 8px;
    font-size: 0.82rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition);
}

.method-chip input {
    display: none;
}

.method-chip.active {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    border-color: var(--primary);
}

.input-field {
    width: 100%;
    padding: 13px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
}

.input-field:focus {
    border-color: var(--primary);
}

.textarea-field {
    min-height: 90px;
    resize: vertical;
}

.form-privacy-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   КЕЙСЫ (АККОРДЕОН)
   ========================================================================== */
.cases-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.case-item {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.case-item.active {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.case-header {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

@media (min-width: 768px) {
    .case-header {
        padding-right: 60px;
    }
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.case-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: #FEF3C7;
    color: #B45309;
}

.case-article {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.case-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.case-toggle-icon {
    position: absolute;
    right: 22px;
    top: 24px;
    width: 34px;
    height: 34px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform var(--transition);
}

.case-item.active .case-toggle-icon {
    transform: rotate(45deg);
}

.case-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-subtle);
    border-top: 1px solid transparent;
}

.case-item.active .case-body {
    border-color: var(--border-light);
}

.case-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 860px) {
    .case-grid {
        grid-template-columns: 1fr 1fr 1.2fr;
    }
}

.case-col strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.case-col p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.highlight-success {
    color: var(--text-primary) !important;
    font-weight: 600;
    border-left: 3px solid var(--success);
    padding-left: 10px;
}

/* ==========================================================================
   ПРИНЦИПЫ ЗАЩИТЫ (В ТЕМНОМ СЛАНЦЕВОМ БЛОКЕ ДЛЯ РИТМА)
   ========================================================================== */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media (min-width: 860px) {
    .principles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.principle-card-dark {
    background: var(--bg-slate-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: transform var(--transition);
}

.principle-card-dark:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

.principle-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.principle-card-dark h4 {
    font-size: 1.15rem;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.principle-card-dark p {
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.55;
}

/* ==========================================================================
   КОНТАКТЫ И ОФИС С ФОТОГРАФИЕЙ
   ========================================================================== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
}

.contacts-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.office-preview-box {
    margin: 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    height: 220px;
    position: relative;
}

.office-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #FFF;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.contact-row strong {
    font-size: 0.92rem;
    color: var(--text-primary);
    display: block;
}

.contact-row p, .contact-row a {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contact-row a:hover {
    color: var(--primary);
}

.contacts-form-box {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.lead-form .form-group {
    margin-bottom: 14px;
}

/* ==========================================================================
   ПОДВАЛ (FOOTER) С БЛОКОМ РАЗРАБОТЧИКА DCW
   ========================================================================== */
.site-footer {
    background: #0B0F19;
    color: #FFFFFF;
    border-top: 1px solid var(--border-dark);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-monogram {
    margin-bottom: 14px;
}

.footer-lawyer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.footer-text {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.55;
    max-width: 380px;
}

.footer-col h4 {
    font-size: 0.92rem;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: #94A3B8;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-contacts p {
    font-size: 0.88rem;
    color: #94A3B8;
    margin-bottom: 8px;
}

.footer-contacts a:hover {
    color: #FFFFFF;
}

.footer-legal {
    color: #64748B !important;
    font-size: 0.78rem !important;
    margin-top: 12px;
}

/* Нижняя полоса копирайта и блок разработчика */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    background: #070A10;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-flex {
        flex-direction: row;
        text-align: left;
    }
}

.copyright-text {
    font-size: 0.82rem;
    color: #94A3B8;
}

/* Блок разработчика DCW (в темном футере используем светлый логотип для идеального контраста) */
.developer-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #94A3B8;
}

.dev-label {
    color: #64748B;
    font-weight: 500;
}

.dev-link {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition);
}

.dev-link:hover {
    opacity: 0.8;
}

.dev-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   МОБИЛЬНЫЙ STICKY БАР
   ========================================================================== */
.mobile-sticky-sos {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px 12px;
    z-index: 99;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

@media (min-width: 992px) {
    .mobile-sticky-sos {
        display: none;
    }
}

.sos-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.sos-mobile-btn.btn-call {
    background: var(--danger);
}

.sos-mobile-btn.btn-tg {
    background: #0284C7;
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-window {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(14px) scale(0.98);
    transition: transform var(--transition);
}

.modal-backdrop.active .modal-window {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.memo-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.memo-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.memo-num {
    width: 26px;
    height: 26px;
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.memo-item strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
}

.memo-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 18px; }

/* ==========================================================================
   СТИЛИ ДЛЯ ТОСТОВ УВЕДОМЛЕНИЙ И АНТИСПАМ-ЛОВУШЕК
   ========================================================================== */
.site-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90vw;
}

@media (max-width: 768px) {
    .site-toast {
        bottom: 80px;
        right: 16px;
        left: 16px;
        text-align: center;
    }
}

.site-toast.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.toast-success {
    background: #059669;
    color: #FFFFFF;
    border: 1px solid #10B981;
}

.toast-error {
    background: #DC2626;
    color: #FFFFFF;
    border: 1px solid #EF4444;
}

/* Скрытое honeypot поле для ботов */
.hp-field {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* Ссылка на проект готовый-сайт.рф */
.project-tag-link {
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--transition);
}

.project-tag-link:hover {
    opacity: 0.8;
}

.footer-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: #CBD5E1;
}

.footer-project-badge a {
    color: #60A5FA;
    font-weight: 700;
}

.footer-project-badge a:hover {
    color: #93C5FD;
    text-decoration: underline;
}
