/* ==========================================================================
   Light Theme + New Layout — Legal Services Website
   Overrides dark theme from style.css when body has class .light-theme
   ========================================================================== */

/* ── Design tokens ── */
body.light-theme {
  --bg: #f6f4f0;
  --bg-alt: #edeae4;
  --surface: #ffffff;
  --surface-hover: #faf9f7;
  --text: #1a2332;
  --text-muted: #5a6578;
  --primary: #6d3b4e;
  --primary-hover: #824659;
  --primary-soft: rgba(109, 59, 78, 0.08);
  --accent: #9a7b2f;
  --accent-hover: #b08f3a;
  --accent-soft: rgba(154, 123, 47, 0.12);
  --border: rgba(26, 35, 50, 0.1);
  --border-accent: rgba(154, 123, 47, 0.28);
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 35, 50, 0.1);
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --header-height: 72px;
  --section-pad: clamp(48px, 6vw, 80px);
  --content-max: 1200px;
  --transition: 0.25s ease;

  /* Map legacy vars used in style.css */
  --navy: var(--text);
  --navy-light: var(--surface);
  --dark: var(--bg);
  --dark-card: var(--surface);
  --dark-card-hover: var(--surface-hover);
  --text-muted: var(--text-muted);

  background: var(--bg);
  color: var(--text);
}

html.light-theme {
  scroll-behavior: smooth;
}

/* ── Background overlay ── */
body.light-theme .bg-overlay {
  background:
    linear-gradient(
      165deg,
      rgba(246, 244, 240, 0.92) 0%,
      rgba(246, 244, 240, 0.78) 45%,
      rgba(237, 234, 228, 0.85) 100%
    ),
    url("/images/hero-bg.webp") center 20% / cover no-repeat fixed;
  filter: saturate(0.85) brightness(1.08);
}

body.light-theme .page-wrap {
  position: relative;
  z-index: 1;
}

/* ── Scroll reveal ── */
body.light-theme .reveal {
  opacity: 0;
  transform: translateY(20px);
}

body.light-theme .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Typography helpers ── */
body.light-theme .section-label {
  color: var(--accent);
  font-weight: 600;
}

body.light-theme .section-title {
  color: var(--text);
}

body.light-theme .section-desc {
  color: var(--text-muted);
}

/* ── Buttons ── */
body.light-theme .btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

body.light-theme .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

body.light-theme .success-actions .btn-primary {
  width: 100%;
}

body.light-theme .telegram-fab-hint {
  background: var(--surface);
  border: 1px solid rgba(34, 158, 217, 0.35);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

body.light-theme .telegram-fab-hint::after {
  background: var(--surface);
  border-right-color: rgba(34, 158, 217, 0.35);
  border-bottom-color: rgba(34, 158, 217, 0.35);
}

body.light-theme .btn-ghost {
  color: var(--primary);
  border-bottom-color: rgba(109, 59, 78, 0.35);
}

body.light-theme .btn-ghost:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

body.light-theme .pill-toggle {
  background: var(--surface);
  border-color: var(--border-accent);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

body.light-theme .pill-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

body.light-theme .pill-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ── Light header ── */
body.light-theme .header {
  padding: 16px clamp(20px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body.light-theme .header.header-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}

body.light-theme .logo-main {
  color: var(--text);
}

body.light-theme .logo-amp {
  color: var(--primary);
}

body.light-theme .logo-sub {
  color: var(--text-muted);
}

body.light-theme .header-nav a {
  color: var(--text-muted);
}

body.light-theme .header-nav a:hover {
  color: var(--text);
}

body.light-theme .header-nav a::after {
  background: var(--accent);
}

body.light-theme .header-phone {
  color: var(--text-muted);
}

body.light-theme .btn-header-cta {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-btn);
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.light-theme .header.header-scrolled .btn-header-cta {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.light-theme .btn-header-cta:hover,
body.light-theme .header.header-scrolled .btn-header-cta:hover {
  background: var(--primary-hover);
}

body.light-theme .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.light-theme .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;
}

body.light-theme .faq-split-intro .faq-cta {
  margin-top: 24px;
}

body.light-theme .hero-trust-divider {
  opacity: 0.4;
  margin: 0 12px;
}

/* ── Nav burger (mobile) ── */
body.light-theme .nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition);
  z-index: 110;
}

body.light-theme .nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

body.light-theme .nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.light-theme .nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

body.light-theme .nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.light-theme .nav-burger:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
}

/* ── Nav drawer (mobile slide menu) ── */
body.light-theme .nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

body.light-theme .nav-drawer.open {
  transform: translateX(0);
}

body.light-theme .nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.35);
  backdrop-filter: blur(4px);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

body.light-theme .nav-drawer.open + .nav-drawer-overlay,
body.light-theme .nav-drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

body.light-theme .nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

body.light-theme .nav-drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface-hover);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

body.light-theme .nav-drawer-close:hover {
  background: var(--bg-alt);
}

body.light-theme .nav-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.light-theme .nav-drawer-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
}

body.light-theme .nav-drawer-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

body.light-theme .nav-drawer-cta {
  margin-top: auto;
  padding-top: 24px;
}

body.light-theme .nav-drawer-cta .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
}

body.light-theme.nav-open {
  overflow: hidden;
}

/* ── Section nav (fixed right dots) ── */
body.light-theme .section-nav {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

body.light-theme .section-nav a {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  position: relative;
  transition: background var(--transition), transform var(--transition);
}

body.light-theme .section-nav a::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

body.light-theme .section-nav a:hover::before,
body.light-theme .section-nav a:focus-visible::before {
  opacity: 1;
}

body.light-theme .section-nav a:hover,
body.light-theme .section-nav a.active {
  background: var(--primary);
  transform: scale(1.2);
}

body.light-theme .section-nav a.active {
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ── Section blocks (alternating backgrounds) ── */
body.light-theme .section-block {
  padding: var(--section-pad) clamp(20px, 4vw, 40px);
}

body.light-theme .section-block:nth-child(odd) {
  background: var(--bg);
}

body.light-theme .section-block:nth-child(even) {
  background: var(--bg-alt);
}

body.light-theme .section-block--surface {
  background: var(--surface) !important;
}

body.light-theme .section-block--accent {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%) !important;
}

body.light-theme .section-block-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ── Hero split (2-column) ── */
body.light-theme .hero.hero-split {
  min-height: auto;
  max-width: none;
  margin: 0 auto clamp(32px, 5vw, 56px);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

body.light-theme .hero-split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--header-height) + 48px) clamp(20px, 4vw, 40px) clamp(28px, 4vw, 40px);
  box-sizing: border-box;
}

body.light-theme .hero-split .hero-content {
  max-width: none;
  align-items: flex-start;
  text-align: left;
}

body.light-theme .hero-split .hero-badge {
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.1em;
}

body.light-theme .hero-split .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

body.light-theme .hero-split .hero-keywords {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 17px);
  margin-bottom: 12px;
}

body.light-theme .hero-split .hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

body.light-theme .hero-split .hero-actions {
  justify-content: flex-start;
}

body.light-theme .hero-split .hero-visual {
  position: relative;
}

body.light-theme .hero-split .hero-visual-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 36px);
  position: relative;
  overflow: hidden;
}

body.light-theme .hero-split .hero-visual-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

body.light-theme .hero-split .hero-visual-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-card) - 4px);
  margin-bottom: 24px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

body.light-theme .hero-split .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  max-width: none;
}

body.light-theme .hero-split .hero-stat {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

body.light-theme .hero-split .hero-stat strong,
body.light-theme .hero-split .hero-stat .stat-number,
body.light-theme .hero-split .hero-stat .stat-number-static {
  display: block;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

body.light-theme .hero-split .hero-stat span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

body.light-theme .hero-split .hero-footer {
  grid-column: 1 / -1;
  text-align: left;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

body.light-theme .hero-split .hero-privacy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 8px;
}

/* ── Hero trust bar ── */
body.light-theme .hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 20px clamp(20px, 4vw, 40px);
  margin: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

body.light-theme .hero-trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

body.light-theme .hero-trust-bar-item svg,
body.light-theme .hero-trust-bar-item .trust-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

body.light-theme .hero-trust-bar-item strong {
  color: var(--text);
  font-weight: 600;
}

body.light-theme .hero-trust-bar-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* ── Light cards (global) ── */
body.light-theme .service-card,
body.light-theme .about-feature,
body.light-theme .info-card,
body.light-theme .review-card,
body.light-theme .team-grid-card,
body.light-theme .photo-card,
body.light-theme .faq-item,
body.light-theme .service-accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

body.light-theme .service-card:hover,
body.light-theme .about-feature:hover,
body.light-theme .review-card:hover,
body.light-theme .team-grid-card:hover,
body.light-theme .photo-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

body.light-theme .service-icon,
body.light-theme .about-feature-icon {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--accent);
}

body.light-theme .service-card p,
body.light-theme .about-feature p,
body.light-theme .about-text {
  color: var(--text-muted);
}

/* ── Services bento grid ── */
body.light-theme .services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
}

body.light-theme .services-bento .bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
  perspective: 800px;
}

body.light-theme .services-bento .bento-item:hover {
  box-shadow: var(--shadow-md);
}

body.light-theme .services-bento .bento-item.span-2 {
  grid-column: span 2;
}

body.light-theme .services-bento .bento-item.span-row-2 {
  grid-row: span 2;
}

body.light-theme .services-bento .bento-item.featured {
  background: linear-gradient(145deg, var(--primary) 0%, #5a3040 100%);
  color: #ffffff;
  border-color: transparent;
}

body.light-theme .services-bento .bento-item.featured h3,
body.light-theme .services-bento .bento-item.featured p {
  color: rgba(255, 255, 255, 0.92);
}

body.light-theme .services-bento .bento-item.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

body.light-theme .services-bento .bento-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

body.light-theme .services-bento .bento-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text);
  margin: 0;
}

body.light-theme .services-bento .bento-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

body.light-theme .services-bento .bento-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

body.light-theme .services-bento .bento-item.featured .bento-link {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Process tabs ── */
body.light-theme .process-tabs {
  max-width: var(--content-max);
  margin: 0 auto;
}

body.light-theme .process-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

body.light-theme .process-tab {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

body.light-theme .process-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

body.light-theme .process-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

body.light-theme .process-tab-panel {
  display: none;
  animation: lightFadeIn 0.35s ease;
}

body.light-theme .process-tab-panel.active {
  display: block;
}

@keyframes lightFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.light-theme .process-tab-panel .process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

body.light-theme .process-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

body.light-theme .process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

body.light-theme .process-step-card h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}

body.light-theme .process-step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

body.light-theme .process-section {
  background: transparent;
  backdrop-filter: none;
}

/* ── Team horizontal scroll ── */
body.light-theme .team-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-accent) transparent;
}

body.light-theme .team-scroll::-webkit-scrollbar {
  height: 6px;
}

body.light-theme .team-scroll::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 3px;
}

body.light-theme .team-scroll .team-grid-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
}

body.light-theme .team-scroll-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Photo grid (masonry feel) ── */
body.light-theme .photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
}

body.light-theme .photo-grid .photo-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-card);
}

body.light-theme .photo-grid .photo-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

body.light-theme .photo-grid .photo-card:nth-child(4) {
  grid-row: span 2;
}

body.light-theme .photo-grid .photo-card:nth-child(6) {
  grid-column: span 2;
}

body.light-theme .photo-grid .photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

body.light-theme .photo-grid .photo-card:hover img {
  transform: scale(1.04);
}

body.light-theme .photo-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
}

body.light-theme .photo-caption strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

body.light-theme .photo-section.alt-bg {
  background: var(--bg-alt);
  backdrop-filter: none;
}

/* ── Articles grid + filters ── */
body.light-theme .articles-layout {
  max-width: var(--content-max);
  margin: 0 auto;
}

body.light-theme .articles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

body.light-theme .filter-chip {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

body.light-theme .filter-chip:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

body.light-theme .filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

body.light-theme .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

body.light-theme .articles-grid .article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}

body.light-theme .articles-grid .article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

body.light-theme .articles-grid .article-card.hidden {
  display: none;
}

body.light-theme .articles-grid .article-card img {
  height: 160px;
  object-fit: cover;
}

body.light-theme .articles-grid .article-card h3 {
  color: var(--text);
  padding: 0 20px;
  margin: 18px 0 8px;
}

body.light-theme .articles-grid .article-card p {
  color: var(--text-muted);
  padding: 0 20px;
  flex: 1;
}

body.light-theme .articles-grid .article-read-more {
  color: var(--primary);
  padding: 0 20px 20px;
}

body.light-theme .articles-layout .articles-carousel-wrap {
  display: none;
}

body.light-theme .articles-section {
  background: transparent;
}

/* ── FAQ split (2 columns) ── */
body.light-theme .faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 56px);
  max-width: var(--content-max);
  margin: 0 auto;
  align-items: start;
}

body.light-theme .faq-split-intro {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

body.light-theme .faq-split-intro .section-label,
body.light-theme .faq-split-intro .section-title,
body.light-theme .faq-split-intro .section-desc {
  text-align: left;
  margin-left: 0;
}

body.light-theme .faq-split-intro .section-desc {
  margin-bottom: 24px;
}

body.light-theme .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.light-theme .faq-item {
  padding: 0;
  overflow: hidden;
}

body.light-theme .faq-item > summary {
  padding: 20px 48px 20px 24px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

body.light-theme .faq-item > summary::after {
  color: var(--accent);
}

body.light-theme .faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

body.light-theme .faq-answer a {
  color: var(--primary);
}

body.light-theme .faq-section.alt-bg {
  background: var(--bg-alt);
  backdrop-filter: none;
}

/* ── Contacts split ── */
body.light-theme .info-section {
  padding: var(--section-pad) clamp(20px, 4vw, 40px);
}

body.light-theme .info-section .section-label,
body.light-theme .info-section .section-title,
body.light-theme .info-section .section-desc {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

body.light-theme .contacts-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: left;
}

body.light-theme .contacts-split .contacts-summary,
body.light-theme .contacts-split .contacts-offices,
body.light-theme .contacts-split .contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

body.light-theme .contacts-summary h3,
body.light-theme .contacts-split .contact-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 16px;
  text-align: left;
}

body.light-theme .contacts-summary .contact-schedule,
body.light-theme .contacts-summary .contact-phone,
body.light-theme .contacts-summary .contact-requisites,
body.light-theme .contacts-split .contact-card p,
body.light-theme .contacts-split .contact-card li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

body.light-theme .contacts-summary .contact-requisites:last-child,
body.light-theme .contacts-summary .contact-phone:last-child {
  margin-bottom: 0;
}

body.light-theme .contacts-offices .pill-toggle-group {
  justify-content: flex-start;
  margin: 0 0 20px;
}

body.light-theme .contacts-offices .office-panel {
  padding: 0;
}

body.light-theme .contacts-offices .contact-address-text {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

body.light-theme .contacts-split .contact-phone a {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

body.light-theme .contacts-split .contact-phone a:hover {
  color: var(--primary-hover);
}

body.light-theme .contacts-layout {
  gap: 32px;
}

body.light-theme .contact-map {
  border-color: var(--border);
  border-radius: 12px;
}

body.light-theme .info-card .info-row {
  border-bottom-color: var(--border);
}

body.light-theme .info-card .info-row span:first-child {
  color: var(--text);
}

/* ── About section ── */
body.light-theme .about {
  background: transparent;
}

body.light-theme .about-copy .section-label,
body.light-theme .about-copy .section-title,
body.light-theme .about-copy .section-desc {
  text-align: left;
}

/* ── Services section override ── */
body.light-theme .services {
  background: transparent;
  backdrop-filter: none;
}

body.light-theme .services.section-block {
  padding-top: clamp(56px, 7vw, 88px);
}

body.light-theme .service-accordion-item > summary {
  color: var(--text);
}

body.light-theme .service-accordion-num {
  color: var(--accent);
}

/* ── Reviews / carousel ── */
body.light-theme .reviews-section.alt-bg {
  background: var(--bg-alt);
  backdrop-filter: none;
}

body.light-theme .carousel-arrow {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

body.light-theme .carousel-arrow:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
}

body.light-theme .review-stars {
  color: var(--accent);
}

/* ── CTA section ── */
body.light-theme .cta-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

body.light-theme .cta-section p {
  color: var(--text-muted);
}

/* ── Light quiz overlay ── */
body.light-theme .quiz-overlay {
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(246, 244, 240, 0.92) 100%
    );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.light-theme .quiz-question {
  color: var(--text);
}

body.light-theme .quiz-option {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
}

body.light-theme .quiz-option:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
}

body.light-theme .quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

body.light-theme .quiz-option-radio {
  border-color: var(--border-accent);
}

body.light-theme .quiz-option.selected .quiz-option-radio {
  border-color: var(--primary);
}

body.light-theme .quiz-option.selected .quiz-option-radio::after {
  background: var(--primary);
}

body.light-theme .quiz-input {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

body.light-theme .quiz-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

body.light-theme .quiz-input::placeholder,
body.light-theme .quiz-textarea::placeholder {
  color: rgba(90, 101, 120, 0.55);
}

body.light-theme .quiz-textarea-hint {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-muted);
}

body.light-theme .quiz-nav {
  background: linear-gradient(to top, rgba(246, 244, 240, 0.95), transparent);
}

body.light-theme .quiz-progress-bar {
  background: var(--border);
}

body.light-theme .quiz-progress-fill {
  background: var(--primary);
}

body.light-theme .btn-back,
body.light-theme .btn-next {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

body.light-theme .btn-back:hover,
body.light-theme .btn-next:hover {
  background: var(--surface-hover);
}

body.light-theme .btn-next.gold {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}

body.light-theme .btn-next.gold:hover {
  background: var(--primary-hover);
}

body.light-theme .quiz-consent {
  color: var(--text-muted);
}

body.light-theme .quiz-consent a {
  color: var(--primary);
}

/* ── Light modals ── */
body.light-theme .modal-overlay {
  background: rgba(26, 35, 50, 0.4);
  backdrop-filter: blur(6px);
}

body.light-theme .modal-box,
body.light-theme .team-modal-box {
  background: var(--surface);
  border-color: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}

body.light-theme .modal-close {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

body.light-theme .modal-close:hover {
  background: var(--surface-hover);
}

body.light-theme .modal-content h2 {
  color: var(--text);
}

body.light-theme .modal-content h3 {
  color: var(--accent);
}

body.light-theme .modal-content p,
body.light-theme .modal-content li {
  color: var(--text-muted);
}

body.light-theme .modal-content strong {
  color: var(--text);
}

body.light-theme .team-modal-text h2 {
  color: var(--text);
}

body.light-theme .team-modal-role {
  color: var(--accent);
}

body.light-theme .team-modal-text p:not(.team-modal-role) {
  color: var(--text-muted);
}

/* ── FAB buttons ── */
body.light-theme .fab-stack {
  z-index: 95;
}

body.light-theme .fab-cta {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border: none;
}

body.light-theme .fab-cta:hover {
  background: var(--primary-hover);
}

body.light-theme .fab-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

body.light-theme .fab-notice::after {
  border-top-color: var(--surface);
}

body.light-theme .fab-notice-text {
  color: var(--text-muted);
}

body.light-theme .fab-notice-close {
  color: var(--text-muted);
}

body.light-theme .fab-notice-close:hover {
  color: var(--text);
}

body.light-theme .fab-top {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

body.light-theme .fab-top:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
}

/* ── Footer ── */
body.light-theme .site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 32px clamp(20px, 4vw, 40px);
}

body.light-theme .site-footer a {
  color: var(--primary);
  transition: color var(--transition);
}

body.light-theme .site-footer a:hover {
  color: var(--primary-hover);
}

/* ── Article pages ── */
body.light-theme .article-page {
  background: var(--bg);
}

body.light-theme .article-breadcrumb {
  color: var(--text-muted);
}

body.light-theme .article-breadcrumb a {
  color: var(--primary);
}

body.light-theme .article-title {
  color: var(--text);
}

body.light-theme .article-meta {
  color: var(--text-muted);
}

body.light-theme .article-hero-figure {
  border-color: var(--border);
  border-radius: var(--radius-card);
}

body.light-theme .article-body h2 {
  color: var(--text);
}

body.light-theme .article-body p {
  color: var(--text-muted);
}

body.light-theme .article-body a {
  color: var(--primary);
}

/* ── Legacy hero (non-split) light overrides ── */
body.light-theme .hero:not(.hero-split) {
  text-align: center;
}

body.light-theme .hero:not(.hero-split) .hero-title {
  color: var(--text);
}

body.light-theme .hero:not(.hero-split) .hero-stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

body.light-theme .hero:not(.hero-split) .hero-stat strong,
body.light-theme .hero:not(.hero-split) .hero-stat .stat-number {
  color: var(--primary);
}

body.light-theme .hero:not(.hero-split) .hero-stat span {
  color: var(--text-muted);
}

body.light-theme .hero:not(.hero-split) .hero-footer,
body.light-theme .hero:not(.hero-split) .hero-privacy {
  color: var(--text-muted);
}

/* ── Utility: light card mixin class ── */
body.light-theme .light-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

body.light-theme .light-card--elevated {
  box-shadow: var(--shadow-md);
}

/* ── Selection & focus ── */
body.light-theme ::selection {
  background: var(--primary-soft);
  color: var(--text);
}

body.light-theme :focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive — 900px breakpoint
   ========================================================================== */
@media (max-width: 900px) {
  body.light-theme .section-nav {
    display: none;
  }

  body.light-theme .nav-burger {
    display: flex;
  }

  body.light-theme .header-nav {
    display: none;
  }

  body.light-theme .hero.hero-split {
    margin-bottom: clamp(24px, 4vw, 40px);
  }

  body.light-theme .hero-split-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: calc(var(--header-height) + 32px) clamp(20px, 4vw, 24px) 28px;
  }

  body.light-theme .hero-split .hero-content {
    align-items: center;
    text-align: center;
  }

  body.light-theme .hero-split .hero-actions {
    justify-content: center;
  }

  body.light-theme .hero-split .hero-footer {
    text-align: center;
  }

  body.light-theme .services-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  body.light-theme .services-bento .bento-item.span-2 {
    grid-column: span 2;
  }

  body.light-theme .services-bento .bento-item.span-row-2 {
    grid-row: span 1;
  }

  body.light-theme .faq-split {
    grid-template-columns: 1fr;
  }

  body.light-theme .faq-split-intro {
    position: static;
  }

  body.light-theme .faq-split-intro .section-label,
  body.light-theme .faq-split-intro .section-title,
  body.light-theme .faq-split-intro .section-desc {
    text-align: center;
  }

  body.light-theme .contacts-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.light-theme .contacts-split .contacts-summary,
  body.light-theme .contacts-split .contacts-offices,
  body.light-theme .contacts-split .contact-card {
    padding: clamp(20px, 5vw, 28px);
  }

  body.light-theme .services.section-block {
    padding-top: clamp(48px, 8vw, 64px);
  }

  body.light-theme .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.light-theme .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  body.light-theme .photo-grid .photo-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  body.light-theme .photo-grid .photo-card:nth-child(4),
  body.light-theme .photo-grid .photo-card:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  body.light-theme .about-inner {
    grid-template-columns: 1fr;
  }

  body.light-theme .hero-trust-bar-divider {
    display: none;
  }

  body.light-theme .hero-trust-bar {
    gap: 20px;
  }

  body.light-theme .process-tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  body.light-theme .process-tab-list::-webkit-scrollbar {
    display: none;
  }

  body.light-theme .process-tab {
    flex: 0 0 auto;
  }
}

/* ==========================================================================
   Responsive — 600px breakpoint
   ========================================================================== */
@media (max-width: 600px) {
  body.light-theme .header {
    padding: 12px 16px;
  }

  body.light-theme .hero.hero-split {
    margin-bottom: 20px;
  }

  body.light-theme .hero-split-inner {
    padding: calc(var(--header-height) + 24px) 16px 24px;
    gap: 24px;
  }

  body.light-theme .hero-split .hero-stats {
    grid-template-columns: 1fr;
  }

  body.light-theme .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

  body.light-theme .services-bento {
    grid-template-columns: 1fr;
  }

  body.light-theme .services-bento .bento-item.span-2 {
    grid-column: span 1;
  }

  body.light-theme .articles-grid {
    grid-template-columns: 1fr;
  }

  body.light-theme .articles-layout .articles-grid {
    display: none;
  }

  body.light-theme .articles-layout .articles-carousel-wrap {
    display: block;
  }

  body.light-theme .articles-layout .reviews-carousel {
    margin-top: 0;
  }

  body.light-theme .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  body.light-theme .photo-grid .photo-card:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  body.light-theme .process-tab-panel .process-steps {
    grid-template-columns: 1fr;
  }

  body.light-theme .nav-drawer {
    width: 100vw;
    border-radius: 0;
  }

  body.light-theme .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  body.light-theme .quiz-overlay {
    padding: 24px 16px 80px;
  }

  body.light-theme .quiz-nav {
    padding: 16px;
  }

  body.light-theme .fab-stack {
    right: 16px;
    bottom: 16px;
  }

  body.light-theme .team-scroll .team-grid-card {
    flex: 0 0 85vw;
  }

  body.light-theme .contacts-split .contacts-summary,
  body.light-theme .contacts-split .contacts-offices,
  body.light-theme .contacts-split .contact-card {
    padding: 20px 18px;
  }

  body.light-theme .info-section {
    padding: 40px 16px;
  }

  body.light-theme .services.section-block {
    padding-top: 40px;
  }

  body.light-theme .section-block {
    padding: 40px 16px;
  }

  body.light-theme .filter-chip {
    font-size: 12px;
    padding: 6px 14px;
  }

  body.light-theme .hero-split .hero-visual-card {
    padding: 20px;
  }
}
