/* Светлая тема. Включается атрибутом data-theme="light" на <html> (переключатель в шапке). */

/* ===== Переключатель темы (обе темы) ===== */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-grid; place-items: center;
  color: var(--text);
  background: rgba(186, 214, 247, .055);
  box-shadow: inset 0 0 0 1px rgba(186, 215, 247, .13);
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { background: rgba(186, 214, 247, .11); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 720px) {
  .theme-toggle { width: 46px; height: 46px; border-radius: 12px; }
}

/* ===== Палитра ===== */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .15);
  --text: #0f172a;
  --text-dim: #334155;
  --text-mute: #64748b;
  --cyan: #2563eb;
  --indigo: #4f46e5;
  --violet: #663af3;
  --grad: linear-gradient(100deg, #2563eb 0%, #663af3 100%);
  --grad-soft: linear-gradient(180deg, rgba(37, 99, 235, .06), rgba(102, 58, 243, .02));
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, .08);
  --glass-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07), 0 12px 32px rgba(15, 23, 42, .05);
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] ::selection { background: rgba(102, 58, 243, .2); color: var(--text); }

/* ===== Фон ===== */
html[data-theme="light"] body::before { background: radial-gradient(520px circle at var(--pointer-x, 50%) var(--pointer-y, 18%), rgba(37, 99, 235, .06), transparent 68%); }
html[data-theme="light"] .ambient::before { opacity: .18; }
html[data-theme="light"] .orb { opacity: .1; }
html[data-theme="light"] .grid-bg { background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px); }
html[data-theme="light"] .hero::before { background: radial-gradient(ellipse, rgba(37, 99, 235, .08), transparent 67%); }
html[data-theme="light"] section::after { background: radial-gradient(ellipse, rgba(37, 99, 235, .035), transparent 68%); }

/* ===== Шапка и меню ===== */
html[data-theme="light"] .header { background: rgba(245, 247, 251, .82); box-shadow: inset 0 -1px rgba(15, 23, 42, .08); }
html[data-theme="light"] .logo-mark,
html[data-theme="light"] .logo:hover .logo-mark { filter: invert(.9); }
html[data-theme="light"] .nav a::after { background: var(--text); }
html[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, .98); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06), 0 24px 60px rgba(15, 23, 42, .15); }
html[data-theme="light"] .menu-overlay { background: rgba(15, 23, 42, .25); }

/* ===== Кнопки ===== */
html[data-theme="light"] .header-cta,
html[data-theme="light"] .btn,
html[data-theme="light"] .work-btn,
html[data-theme="light"] .price .btn-quiet,
html[data-theme="light"] .burger,
html[data-theme="light"] .theme-toggle {
  background: rgba(15, 23, 42, .04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}
html[data-theme="light"] .header-cta:hover,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .price .btn-quiet:hover,
html[data-theme="light"] .theme-toggle:hover { background: rgba(15, 23, 42, .08); }
html[data-theme="light"] .btn-primary { background: #0f172a; color: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .18); }
html[data-theme="light"] .btn-primary:hover { background: #1e293b; box-shadow: 0 14px 32px rgba(15, 23, 42, .24); }
html[data-theme="light"] .form-foot .btn-primary { background: #663af3; box-shadow: 0 10px 30px rgba(102, 58, 243, .25); }
html[data-theme="light"] .form-foot .btn-primary:hover { background: #7650f5; }

/* ===== Первый экран ===== */
html[data-theme="light"] .hero-eyebrow::before { background: linear-gradient(90deg, transparent, rgba(15, 23, 42, .25)); }
html[data-theme="light"] .hero-stats { box-shadow: inset 0 1px rgba(15, 23, 42, .1); }

/* ===== Заголовки секций ===== */
html[data-theme="light"] .section-eyebrow::before,
html[data-theme="light"] .section-eyebrow::after { background: linear-gradient(90deg, transparent, rgba(15, 23, 42, .2)); }

/* ===== Карточки ===== */
html[data-theme="light"] .service,
html[data-theme="light"] .work,
html[data-theme="light"] .price,
html[data-theme="light"] .form,
html[data-theme="light"] .final-cta { background: #fff; box-shadow: var(--glass-shadow); }
html[data-theme="light"] .service::after,
html[data-theme="light"] .work::after,
html[data-theme="light"] .final-cta::after { background: linear-gradient(112deg, transparent 28%, rgba(37, 99, 235, .04) 45%, rgba(37, 99, 235, .09) 50%, rgba(37, 99, 235, .03) 55%, transparent 72%); }
html[data-theme="light"] .service::before { background: linear-gradient(180deg, rgba(37, 99, 235, .035), transparent 55%); }
html[data-theme="light"] .service:hover,
html[data-theme="light"] .work:hover,
html[data-theme="light"] .price:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .09), 0 22px 44px rgba(15, 23, 42, .1); }
html[data-theme="light"] .service-icon,
html[data-theme="light"] .why-icon,
html[data-theme="light"] .contact-list .ic { background: rgba(37, 99, 235, .06); color: #1e3a8a; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .14); }
html[data-theme="light"] .service:hover .service-icon { color: #1e3a8a; background: rgba(37, 99, 235, .12); }
html[data-theme="light"] .service-arrow { background: rgba(15, 23, 42, .04); color: var(--text-dim); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1); }
html[data-theme="light"] .service:hover .service-arrow { background: rgba(15, 23, 42, .08); }

html[data-theme="light"] .why-grid { background: rgba(15, 23, 42, .02); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); }
html[data-theme="light"] .why-cell,
html[data-theme="light"] .why-cell:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .04); }

html[data-theme="light"] .work:hover .work-btn { background: rgba(15, 23, 42, .08); color: var(--text); }
html[data-theme="light"] .mock-1,
html[data-theme="light"] .mock-2,
html[data-theme="light"] .mock-3,
html[data-theme="light"] .mock-4 { background: radial-gradient(circle at 50% 35%, rgba(37, 99, 235, .1), transparent 45%), #eef2f8; }
html[data-theme="light"] .mock .bar { background: rgba(15, 23, 42, .08); }
html[data-theme="light"] .mock-1 .block,
html[data-theme="light"] .mock-2 .block,
html[data-theme="light"] .mock-3 .block,
html[data-theme="light"] .mock-4 .block { background: linear-gradient(145deg, rgba(37, 99, 235, .14), rgba(102, 58, 243, .06)); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05); }

/* ===== Этапы ===== */
html[data-theme="light"] .process-line { background: rgba(15, 23, 42, .1); }
html[data-theme="light"] .process-line-fill { background: linear-gradient(90deg, rgba(37, 99, 235, .25), #2563eb); }
html[data-theme="light"] .step-dot { background: #fff; color: var(--text-dim); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
html[data-theme="light"] .step.active .step-dot { background: #0f172a; color: #fff; box-shadow: 0 8px 20px rgba(15, 23, 42, .18); }
html[data-theme="light"] .step.active .step-dot::after { border-color: rgba(15, 23, 42, .15); }

/* ===== Тарифы ===== */
html[data-theme="light"] .price.featured { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(102, 58, 243, .4), 0 22px 44px rgba(102, 58, 243, .1); }
html[data-theme="light"] .price.featured::before { background: #663af3; color: #fff; box-shadow: none; }
html[data-theme="light"] .price-desc { box-shadow: inset 0 -1px rgba(15, 23, 42, .08); }

/* ===== Призыв и форма ===== */
html[data-theme="light"] .final-cta::before { background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .08), transparent 56%); }
html[data-theme="light"] .quiz-card { box-shadow: inset 0 -1px rgba(15, 23, 42, .08); }
html[data-theme="light"] .quiz-progress { background: rgba(15, 23, 42, .08); }
html[data-theme="light"] .quiz-progress-bar { background: #2563eb; }
html[data-theme="light"] .quiz-option,
html[data-theme="light"] .input,
html[data-theme="light"] .select,
html[data-theme="light"] .textarea,
html[data-theme="light"] .file-drop { background-color: #f8fafc; color: var(--text); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
html[data-theme="light"] .quiz-option:hover,
html[data-theme="light"] .file-drop:hover { background-color: #f1f5f9; }
html[data-theme="light"] .quiz-option.is-selected { background: rgba(37, 99, 235, .08); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .5); }
html[data-theme="light"] .input:focus,
html[data-theme="light"] .select:focus,
html[data-theme="light"] .textarea:focus { background-color: #fff; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .55), 0 0 0 3px rgba(37, 99, 235, .1); }
html[data-theme="light"] .input::placeholder,
html[data-theme="light"] .textarea::placeholder { color: #94a3b8; }
html[data-theme="light"] .form-success .ic-success { background: rgba(37, 99, 235, .1); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .25); }
html[data-theme="light"] .form-success .ic-success path { stroke: #1e3a8a; }

html[data-theme="light"] .footer { box-shadow: inset 0 1px rgba(15, 23, 42, .08); }

/* ===== Блог, услуги, 404 ===== */
html[data-theme="light"] .chip { background: #fff; }
html[data-theme="light"] .chip.is-active { background: #0f172a; color: #fff; box-shadow: none; }
html[data-theme="light"] .post-card,
html[data-theme="light"] .service-link,
html[data-theme="light"] .svc-card,
html[data-theme="light"] .steps-list li,
html[data-theme="light"] .faq details,
html[data-theme="light"] .toc,
html[data-theme="light"] .aside-card { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
html[data-theme="light"] .post-card:hover,
html[data-theme="light"] .service-link:hover { box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }
html[data-theme="light"] .pagination a,
html[data-theme="light"] .pagination span { background: #fff; }
html[data-theme="light"] .pagination .is-current { color: #fff; }
html[data-theme="light"] .prose a { text-decoration-color: rgba(37, 99, 235, .45); }
html[data-theme="light"] .prose code { background: rgba(15, 23, 42, .06); }
html[data-theme="light"] .prose pre { background: #0f172a; border-color: #0f172a; color: #e2e8f0; }
html[data-theme="light"] .prose pre code { color: inherit; }
html[data-theme="light"] .prose blockquote { background: #fff; border-left-color: #2563eb; }
html[data-theme="light"] .prose th { background: #f1f5f9; }
html[data-theme="light"] .cta-box { background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(102, 58, 243, .06)), #fff; box-shadow: var(--shadow-soft); }
html[data-theme="light"] .empty-state { background: #fff; }
html[data-theme="light"] .lead-quiz .quiz-card, .lead-quiz .quiz-card { box-shadow: none; }
