﻿.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0a3d91;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ------------------------------------
   BASE STYLES
------------------------------------ */
:root {
    color-scheme: light dark;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Отступ для sticky header */
}

/* Toast уведомления */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: #fff;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid #1b4df0;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #238636;
    background: #f0fff4;
    color: #1a7f37;
}

.toast-error {
    border-left-color: #da3633;
    background: #fff5f5;
    color: #cf222e;
}

.toast-warning {
    border-left-color: #d29922;
    background: #fffbf0;
    color: #9e6a03;
}

.toast-info {
    border-left-color: #1b4df0;
    background: #f0f7ff;
    color: #0969da;
}

body.dark .toast {
    background: #161b22;
    color: #e6edf3;
    border-color: #30363d;
}

body.dark .toast-success {
    border-left-color: #238636;
    background: rgba(35, 134, 54, 0.1);
    color: #56d364;
}

body.dark .toast-error {
    border-left-color: #da3633;
    background: rgba(218, 54, 51, 0.1);
    color: #ff7b72;
}

body.dark .toast-warning {
    border-left-color: #d29922;
    background: rgba(210, 153, 34, 0.1);
    color: #d29922;
}

body.dark .toast-info {
    border-left-color: #1b4df0;
    background: rgba(27, 77, 240, 0.1);
    color: #58a6ff;
}

/* Стили для печати */
@media print {
    .theme-toggle,
    .scroll-to-top,
    .skip-link,
    header,
    footer,
    .modal-overlay,
    .guide-navigation {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .guide-content {
        color: black !important;
    }
    
    .guide-content h1,
    .guide-content h2,
    .guide-content h3 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .guide-content p,
    .guide-content li {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Отключаем плавную прокрутку для кнопок навигации в секциях на десктопе */
@media (min-width: 769px) {
    .section-toc a {
        scroll-behavior: auto;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f9fc;
    color: #1f2a44;
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    overflow-x: hidden;
}

/* Плавное появление элементов при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Отключаем анимацию для пользователей, предпочитающих уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* HEADER */
header {
    background: #0a3d91;
    color: #fff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social {
    display: flex;
    align-items: center;
}

@media (min-width: 769px) {
    .logo-wrapper .header-social {
        display: none;
    }
    .header-social-desktop {
        display: flex;
    }
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

nav a.nav-cta::after {
    display: none;
}

nav a:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

nav a:hover::after {
    width: 100%;
}

nav a.nav-cta:hover::after {
    display: none;
}

nav a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 2px;
}

nav a.active {
    opacity: 1;
    font-weight: 600;
}

nav a.active::after {
    width: 100%;
}

nav a.nav-cta.active::after {
    display: none;
}

.nav-cta {
    margin-left: 30px;
    padding: 10px 24px;
    border-radius: 999px;
    background: #ffffff;
    color: #0a3d91;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(10, 61, 145, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(10, 61, 145, 0.35);
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.burger {
    width: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger:hover span {
    background: rgba(255, 255, 255, 0.9);
}

.burger:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 4px;
}

.mobile-menu {
    display: none;
    background: #062964;
    flex-direction: column;
    padding: 16px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .nav-cta {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
    border: none;
    display: inline-flex;
    justify-content: center;
    color: #0a3d91;
    background: #ffffff;
}

.mobile-menu.open {
    display: flex;
    max-height: 500px;
    padding: 16px 20px;
}

.mobile-menu.open a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }

/* HERO */
.hero {
    text-align: center;
    padding: 90px 0;
    background: linear-gradient(180deg, #e9f1ff, #f7f9fc);
}

.hero h1 {
    font-size: 44px;
    color: #0a3d91;
    margin-bottom: 16px;
}

.hero .eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.25em;
    color: #6c7ba8;
    margin-bottom: 12px;
}

.hero .lead {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #35415c;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    background: #1b4df0;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 77, 240, 0.3);
    background: #0f3cc7;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    outline: 2px solid rgba(27, 77, 240, 0.5);
    outline-offset: 4px;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 18px;
    color: #0a1d4f;
}

.section p {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 30px;
    color: #36415d;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 48px);
}

.section-head p {
    margin-bottom: 0;
}

.section-toc {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.section-toc a {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(10, 61, 145, 0.25);
    color: #0a3d91;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.section-toc a:hover {
    background: rgba(10, 61, 145, 0.08);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 12px;
    color: #6c7ba8;
    margin-bottom: 12px;
    display: inline-block;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.about-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    text-align: left;
    border: 1px solid rgba(13, 37, 107, 0.08);
    box-shadow: 0 12px 30px rgba(8, 33, 94, 0.08);
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e6efff;
    color: #0a3d91;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0a1d4f;
}

.about-card p {
    text-align: left;
    margin: 0;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(8, 33, 94, 0.08);
    text-align: left;
    border: 1px solid rgba(13, 37, 107, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(8, 33, 94, 0.12);
    border-color: rgba(13, 37, 107, 0.12);
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.feature:active {
    transform: translateY(-2px);
}

.feature:focus {
    outline: 2px solid #1b4df0;
    outline-offset: 2px;
}

.feature:active {
    transform: translateY(-2px);
}

.feature:focus {
    outline: 2px solid #1b4df0;
    outline-offset: 2px;
}

.feature-top {
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.feature-top h3 {
    margin: 8px 0 12px;
    color: #0a1d4f;
}

.feature-top p {
    margin: 0;
    padding: 0;
    color: #353f5c;
    line-height: 1.65;
    text-align: left;
    text-indent: 0;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.feature-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(27, 77, 240, 0.1);
    color: #1b4df0;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #48526f;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-list li::before {
    content: '•';
    color: #1b4df0;
    line-height: 1.4;
}

.feature-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 61, 145, 0.08);
    font-size: 22px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.feature-guides {
    background: linear-gradient(180deg, rgba(224, 235, 255, 0.6), #fff);
}

.feature-guides .feature-label {
    background: rgba(27, 77, 240, 0.12);
    color: #1b4df0;
}

.feature-cases {
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.6), #fff);
}

.feature-cases .feature-label {
    background: rgba(248, 175, 45, 0.2);
    color: #b45309;
}

.feature-consult {
    background: linear-gradient(180deg, rgba(209, 250, 229, 0.6), #fff);
}

.feature-consult .feature-label {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.feature-price {
    font-size: 22px;
    font-weight: 700;
    color: #0a1d4f;
}

.feature-note {
    font-size: 14px;
    color: #6c7ba8;
}

/* SLIDER */
#slider {
    background: linear-gradient(135deg, #eef3ff 0%, #f8fbff 100%);
}

.slider {
    margin-top: 40px;
    width: 100%;
    min-height: 300px;
    position: relative;
    display: block !important;
    visibility: visible !important;
}

.slide {
    display: none !important;
    padding: 32px;
    background: #fff;
    border-radius: 18px;
    transition: 0.3s;
    box-shadow: 0 30px 60px rgba(13, 37, 107, 0.12);
    min-height: 260px;
    max-height: 420px;
    overflow-y: auto;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.slide p {
    margin: 0 0 6px;
    line-height: 1.7;
    color: #2c3552;
    text-align: left;
}

.slide p strong {
    color: #0a1d4f;
    font-weight: 700;
}

.slide .client-quote {
    font-style: italic;
    color: #1a36c2;
    border-top: 2px solid rgba(27, 77, 240, 0.25);
    padding-top: 12px;
    margin-top: 4px;
}

.slide.active {
    display: flex !important;
    animation: fadeSlide 0.4s ease;
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.case-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #0a3d91;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.case-name {
    margin: 0;
    font-weight: 700;
    color: #0a1d4f;
}

.case-tag {
    font-size: 13px;
    color: #6c7ba8;
}

.case-rating {
    margin-left: auto;
    color: #f8af2d;
    font-size: 16px;
    letter-spacing: 0.2em;
}

.case-body {
    text-align: left;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.slider-btn {
    padding: 12px 24px;
    background: #0a3d91;
    color: #fff;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    min-width: 120px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.slider-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #1b4df0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.active {
    background: #1b4df0;
    transform: scale(1.1);
}

.slider-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    font-weight: 600;
    color: #0a1d4f;
    flex-wrap: wrap;
}

.slider-toggle {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    background: rgba(10, 61, 145, 0.1);
    color: #0a3d91;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-toggle:hover {
    background: rgba(10, 61, 145, 0.2);
}

.slider-toggle span[aria-hidden="true"] {
    font-size: 18px;
    line-height: 1;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA */
.cta {
    background: #1b4df0;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: rgba(255,255,255,0.9);
}

.btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    padding: 12px 26px;
    border-radius: 10px;
    color: #1b4df0;
    background: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* FORM */
form {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15,29,64,0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: flex-start;
}

.form-field {
    margin-top: 16px;
}

label {
    display: block;
    margin-top: 16px;
    font-weight: 600;
    color: #0a1d4f;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    margin-top: 8px;
    background: white;
    color: #222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #1b4df0;
    box-shadow: 0 0 0 3px rgba(27, 77, 240, 0.15);
    transform: translateY(-1px);
}

input:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: #a0a0a0;
}

input:invalid:not(:placeholder-shown):not(:focus),
textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

button[type="submit"] {
    margin-top: 20px;
    padding: 14px 18px;
    background: #0a3d91;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

button[type="submit"]:hover:not(:disabled) {
    background: #07275f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 61, 145, 0.3);
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
}

button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 77, 240, 0.3);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Индикатор загрузки для кнопки */
button[type="submit"]:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-hint {
    margin-top: 12px;
    font-size: 14px;
    color: #6c7ba8;
    min-height: 20px;
}

.form-helper {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6c7ba8;
}

.char-counter {
    margin-top: 4px;
    font-size: 12px;
    color: #6c7ba8;
    text-align: right;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #dc3545;
}

/* Валидация в реальном времени */
.form-field input:valid:not(:placeholder-shown),
.form-field textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.form-field input:invalid:not(:placeholder-shown):not(:focus),
.form-field textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.challenge-block {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(10, 61, 145, 0.2);
    border-radius: 14px;
    background: #f7faff;
}

/* Чекбокс согласия на обработку ПДн */
.privacy-consent-field {
    margin-top: 20px;
}

.privacy-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #0a1d4f;
    margin: 0;
    text-align: left;
}

.privacy-consent-label input[type="checkbox"] {
    margin: 0 !important;
    margin-right: 10px !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    border: 1.5px solid #dcdcdc !important;
    border-radius: 2px !important;
    background: white !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

.privacy-consent-label input[type="checkbox"]:hover {
    border-color: #1b4df0;
}

.privacy-consent-label input[type="checkbox"]:focus {
    outline: none;
    border-color: #1b4df0;
    box-shadow: 0 0 0 3px rgba(27, 77, 240, 0.15);
}

.privacy-consent-label input[type="checkbox"]:checked {
    background: #1b4df0 !important;
    border-color: #1b4df0 !important;
}

.privacy-consent-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 7px;
    margin-left: -2.5px;
    margin-top: -4.5px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.privacy-consent-label input[type="checkbox"]:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.privacy-consent-label span {
    flex: 1;
    line-height: 1.6;
}

.privacy-consent-label a {
    color: #1b4df0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-consent-label a:hover {
    color: #0f3cc7;
    text-decoration: none;
}

.challenge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0a1d4f;
}

.challenge-refresh {
    border: none;
    background: rgba(10, 61, 145, 0.08);
    color: #0a3d91;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.challenge-refresh:hover {
    background: rgba(10, 61, 145, 0.16);
    transform: rotate(90deg);
}

.challenge-refresh.is-loading {
    animation: spin 0.8s linear infinite;
    pointer-events: none;
}

#challengeQuestion.is-loading {
    position: relative;
    padding-left: 22px;
}

#challengeQuestion.is-loading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    border: 2px solid rgba(10, 61, 145, 0.2);
    border-top-color: #0a3d91;
    animation: spin 0.8s linear infinite;
}

.challenge-block input[type="text"] {
    margin-top: 0;
}

body.dark .challenge-block {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(240, 180, 41, 0.35);
}

body.dark .challenge-row {
    color: #e6edf3;
}

body.dark .challenge-refresh {
    background: rgba(240, 180, 41, 0.15);
    color: #facc15;
}

body.dark .challenge-refresh:hover {
    background: rgba(240, 180, 41, 0.3);
}

.contact-benefits {
    background: #0a3d91;
    color: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(10, 61, 145, 0.25);
    text-align: left;
}

.contact-benefits .eyebrow {
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.2em;
}

.contact-benefits ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-benefits li::before {
    content: '✓';
    color: #facc15;
    font-weight: 700;
}

.contact-benefits p {
    text-align: left;
    color: rgba(255,255,255,0.92);
}

.contact-benefits .contact-note {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
}


@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* FOOTER */
footer {
    background: #0f1d40;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-inner p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.social-icon:active {
    transform: translateY(0) scale(0.95);
}

.social-icon:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 50%;
}

/* THEME TOGGLE */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #0a3d91;
    color: white;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 22px;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #1b4df0;
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(27, 77, 240, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, background 0.2s ease;
    opacity: 0;
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 77, 240, 0.4);
    background: #0f3cc7;
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* CASES CTA */
.cases-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
}

.cases-cta p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #35415c;
    font-weight: 500;
}

body.dark .cases-cta p {
    color: #c9d1d9;
}

/* FAQ SECTION */
#faq {
    background: #f7f9fc;
}

body.dark #faq {
    background: #0d1117;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    margin-bottom: 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark .faq-item {
    background: #161b22;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark .faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0a3d91;
    font-weight: 600;
}

body.dark .faq-item h3 {
    color: #58a6ff;
}

.faq-item p {
    color: #35415c;
    line-height: 1.7;
    margin: 0;
}

body.dark .faq-item p {
    color: #c9d1d9;
}

/* OBJECTIONS HANDLING */
.objections-handling {
    margin-top: 30px;
    padding: 20px;
    background: #f7f9fc;
    border-radius: 10px;
}

body.dark .objections-handling {
    background: #161b22;
}

.objections-handling p {
    font-weight: bold;
    margin-bottom: 15px;
    color: #0a3d91;
}

body.dark .objections-handling p {
    color: #58a6ff;
}

.objections-handling ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objections-handling li {
    margin-bottom: 10px;
    color: #35415c;
}

body.dark .objections-handling li {
    color: #c9d1d9;
}

@media (max-width: 768px) {
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .cases-cta {
        padding: 20px 15px;
    }
    
    .cases-cta p {
        font-size: 16px;
    }
    
    .objections-handling {
        padding: 15px;
    }
}

.section-highlight {
    animation: sectionGlow 1.4s ease-in-out 2;
}

@keyframes sectionGlow {
    0% {
        box-shadow: 0 0 0 rgba(27, 77, 240, 0);
        background-color: inherit;
    }
    30% {
        box-shadow: 0 0 30px rgba(27, 77, 240, 0.25);
        background-color: rgba(27, 77, 240, 0.05);
    }
    60% {
        box-shadow: 0 0 0 rgba(27, 77, 240, 0);
        background-color: inherit;
    }
    100% {
        box-shadow: 0 0 0 rgba(27, 77, 240, 0);
        background-color: inherit;
    }
}

/* DARK THEME */
body.dark {
    background: #0b0f18;
    color: #dae4ff;
}

body.dark header {
    background: #010409;
}

body.dark nav a {
    color: #e6edf3;
}

body.dark .nav-cta {
    background: #f0b429;
    color: #0a1d4f;
    box-shadow: 0 8px 20px rgba(240, 180, 41, 0.3);
}

body.dark .mobile-menu {
    background: #0d1117;
}

body.dark .hero {
    background: linear-gradient(180deg, #0d1117, #161b22);
}

body.dark .hero h1,
body.dark .hero .eyebrow,
body.dark .hero .lead {
    color: #e6edf3;
}

body.dark .section p {
    color: #c0ccf3;
}

body.dark .section-toc a {
    border-color: rgba(240, 180, 41, 0.4);
    color: #facc15;
}

body.dark .section-toc a:hover {
    background: rgba(240, 180, 41, 0.15);
}

body.dark .section h2,
body.dark .section-head h2,
body.dark h1,
body.dark h2,
body.dark h3 {
    color: #e6edf3;
}

body.dark .section .eyebrow {
    color: #e6edf3;
}

body.dark #slider {
    background: linear-gradient(135deg, #0d1324 0%, #090f1a 100%);
}

body.dark .slide,
body.dark form,
body.dark .feature,
body.dark .about-card {
    background: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
}

body.dark .feature-icon {
    background: rgba(240, 180, 41, 0.12);
}

body.dark .feature-guides {
    background: linear-gradient(180deg, rgba(12, 19, 33, 0.85), #161b22);
}

body.dark .feature-cases {
    background: linear-gradient(180deg, rgba(28, 22, 4, 0.65), #161b22);
}

body.dark .feature-consult {
    background: linear-gradient(180deg, rgba(4, 24, 19, 0.65), #161b22);
}

body.dark .about-card h3,
body.dark .feature-top h3 {
    color: #e6edf3;
}

body.dark .case-avatar {
    background: #1b4df0;
}

body.dark .slider-dot {
    border-color: #f0b429;
}

body.dark .slider-dot.active {
    background: #f0b429;
}

body.dark .slider-meta {
    color: #e6edf3;
}

body.dark .slider-toggle {
    background: rgba(240, 180, 41, 0.2);
    color: #facc15;
}

body.dark label {
    color: #e6edf3;
}

body.dark input,
body.dark textarea {
    background: #0d1117;
    color: #e6edf3;
    border: 1px solid #30363d;
}

body.dark .form-helper {
    color: #9aaad4;
}

body.dark .char-counter {
    color: #9aaad4;
}

body.dark .char-counter.warning {
    color: #fbbf24;
}

body.dark .char-counter.error {
    color: #f87171;
}

body.dark .field-error {
    color: #f87171;
}

body.dark .form-field input:valid:not(:placeholder-shown),
body.dark .form-field textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

body.dark .skip-link {
    background: #238636;
    color: #fff;
}

body.dark .contact-benefits {
    background: #0f172a;
}


body.dark .feature-label {
    background: rgba(240, 180, 41, 0.15);
    color: #facc15;
}

body.dark .feature-price {
    color: #e6edf3;
}

body.dark .feature-note {
    color: #b3c4ec;
}

body.dark .feature-list li::before {
    color: #ffd452;
}

body.dark .feature-top p,
body.dark .feature-list li,
body.dark .about-card p {
    color: #d7e0ff;
}

body.dark .form-message.success {
    background: rgba(35, 134, 54, 0.2);
    color: #56d364;
    border: 1px solid rgba(35, 134, 54, 0.4);
}

body.dark .form-message.error {
    background: rgba(248, 81, 73, 0.15);
    color: #ff7b72;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

/* Темная тема для чекбокса согласия */
body.dark .privacy-consent-label {
    color: #e6edf3;
}

body.dark .privacy-consent-label input[type="checkbox"] {
    background: #0d1117 !important;
    border-color: #30363d !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    border-width: 1.5px !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

body.dark .privacy-consent-label input[type="checkbox"]:hover {
    border-color: #58a6ff;
}

body.dark .privacy-consent-label input[type="checkbox"]:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

body.dark .privacy-consent-label input[type="checkbox"]:checked {
    background: #238636 !important;
    border-color: #238636 !important;
}

body.dark .privacy-consent-label input[type="checkbox"]:checked::after {
    border-color: white !important;
}

body.dark .privacy-consent-label input[type="checkbox"]:invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

body.dark .privacy-consent-label a {
    color: #58a6ff;
}

body.dark .privacy-consent-label a:hover {
    color: #79c0ff;
}

body.dark .slider-btn,
body.dark button:not(.burger):not(.theme-toggle):not(.scroll-to-top),
body.dark .btn {
    background: #238636;
}

body.dark .slider-btn:hover,
body.dark button:not(.burger):not(.theme-toggle):not(.scroll-to-top):hover,
body.dark .btn:hover {
    background: #1f6f31;
}

body.dark .burger {
    background: transparent;
}

body.dark .burger span {
    background: #fff;
}

body.dark .cta {
    background: #0a284f;
}

body.dark footer {
    background: #010409;
}

body.dark .footer-inner p {
    color: rgba(201, 209, 217, 0.8);
}

body.dark .theme-toggle {
    background: #238636;
}

body.dark .scroll-to-top {
    background: #238636;
    box-shadow: 0 4px 14px rgba(35, 134, 54, 0.3);
}

body.dark .scroll-to-top:hover {
    background: #1f6f31;
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
}

body.dark .social-icon {
    background: rgba(35, 134, 54, 0.25);
}

body.dark .social-icon:hover {
    background: rgba(35, 134, 54, 0.45);
}

body.dark .case-avatar {
    background: #1b4df0;
}

body.dark .case-tag {
    color: #a3b5d9;
}

body.dark .case-rating {
    color: #ffd452;
}

body.dark .slide p {
    color: #e4ebff;
}

body.dark .slide p strong {
    color: #f8fafc;
}

body.dark .about-card p {
    color: #d7e0ff;
}

body.dark .slider-dot {
    border-color: #ffd452;
}

body.dark .slider-dot.active {
    background: #ffd452;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    nav { display: none; }
    .header-inner {
        justify-content: space-between;
        gap: 12px;
    }
    .logo-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 0 0 auto;
    }
    .header-social-desktop {
        display: none !important;
    }
    .header-social {
        display: flex;
    }
    .header-social .social-icon {
        width: 32px;
        height: 32px;
    }
    .header-social .social-icon svg {
        width: 16px;
        height: 16px;
    }
    .burger {
        display: flex;
        margin-left: auto;
    }
    .section, .hero { padding: 60px 0; }
    .hero h1 { font-size: 32px; }
    .section-head h2 { font-size: 30px; }
    .section h2 { font-size: 30px; }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-benefits {
        order: -1;
    }
}

@media (max-width: 640px) {
    .slide {
        padding: 24px;
        max-height: none;
    }

    .case-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-rating {
        margin-left: 0;
    }

    .section-toc {
        justify-content: flex-start;
    }
}

/* Мобильная версия - темная тема */
@media (max-width: 768px) {
    body.dark label,
    body.dark h1,
    body.dark h2,
    body.dark h3,
    body.dark .hero h1,
    body.dark .hero .eyebrow,
    body.dark .hero .lead,
    body.dark .section h2,
    body.dark .section-head h2,
    body.dark .section .eyebrow,
    body.dark .about-card h3,
    body.dark .feature-top h3,
    body.dark .challenge-row,
    body.dark .slider-meta,
    body.dark .feature-price {
        color: #e6edf3;
    }

    body.dark .feature:hover {
        border-color: rgba(139, 148, 158, 0.2);
    }
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    pointer-events: auto; /* Позволяет кликать внутри модального окна */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #6c7ba8;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(108, 123, 168, 0.1);
    color: #0a1d4f;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #0a1d4f;
    margin: 0 0 24px 0;
}

body.dark .modal-content {
    background: #0d1117;
}

body.dark .modal-title {
    color: #e6edf3;
}

body.dark .modal-close {
    color: #8b949e;
}

body.dark .modal-close:hover {
    background: rgba(139, 148, 158, 0.1);
    color: #e6edf3;
}
