/* Тема лендинга v2 — общий ключ lk-theme с ЛК */

.footer-theme {
  margin-top: 0.65rem;
}

/* Theme toggle — канон UI kit §5 (.lk-seg + icon), без зависимости от /public на :5500 */
body.landing-site .lk-theme-toggle.lk-seg {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.25rem;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius, 1rem);
  background: var(--bg-soft, #eef2f8);
}

body.landing-site .lk-theme-toggle .lk-seg__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: calc(var(--radius, 1rem) - 0.2rem);
  background: transparent;
  color: var(--accent, #2d6ef3);
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.12s ease, color 0.12s ease;
}

body.landing-site .lk-theme-toggle.lk-seg--md .lk-seg__item--icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
}

body.landing-site .lk-theme-toggle .lk-seg__item:hover,
body.landing-site .lk-theme-toggle .lk-seg__item.is-active {
  color: var(--accent, #2d6ef3);
}

body.landing-site .lk-theme-toggle .lk-seg__item.is-active {
  background: var(--accent-wash, rgba(45, 110, 243, 0.14));
}

body.landing-site .lk-theme-toggle .lk-seg__icon,
body.landing-site .lk-theme-toggle .lk-theme-toggle-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  pointer-events: none;
}

html.lk-theme-dark body.landing-site {
  --bg: #0e1118;
  --bg-soft: #151a24;
  --surface: #181c26;
  --ink: #f2f4f8;
  --ink-muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #4d8dff;
  --accent-soft: #6aa0ff;
  --accent-wash: rgba(77, 141, 255, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  background: var(--bg);
}

html.lk-theme-dark body.landing-site .header-bar {
  background: rgba(24, 28, 38, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

html.lk-theme-dark body.landing-site .nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.lk-theme-dark body.landing-site .header-phone:hover {
  background: var(--accent-wash);
}

html.lk-theme-dark body.landing-site .nav-burger {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

html.lk-theme-dark body.landing-site .nav-burger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(77, 141, 255, 0.35);
}

html.lk-theme-dark body.landing-site .btn-accent:hover {
  background: #6aa0ff;
}

html.lk-theme-dark body.landing-site .btn-light,
html.lk-theme-dark body.landing-site .btn-ghost {
  background: rgba(24, 28, 38, 0.88);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
}

html.lk-theme-dark body.landing-site .hero {
  background: var(--bg);
}

html.lk-theme-dark body.landing-site .hero-card,
html.lk-theme-dark body.landing-site .master-card,
html.lk-theme-dark body.landing-site .step-card,
html.lk-theme-dark body.landing-site .tariff-card,
html.lk-theme-dark body.landing-site .extra,
html.lk-theme-dark body.landing-site .review-card,
html.lk-theme-dark body.landing-site .faq-item,
html.lk-theme-dark body.landing-site .lead-form,
html.lk-theme-dark body.landing-site .compare-card--new,
html.lk-theme-dark body.landing-site .modal-window,
html.lk-theme-dark body.landing-site .nav-drawer-panel,
html.lk-theme-dark body.landing-site .system-detail {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.lk-theme-dark body.landing-site .compare-card--old {
  background: #12161f;
  color: var(--ink-muted);
}

html.lk-theme-dark body.landing-site .site-footer {
  background: #0a0c11;
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.lk-theme-dark body.landing-site .lk-theme-toggle.lk-seg {
  background: rgba(24, 28, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

html.lk-theme-dark body.landing-site .lk-theme-toggle .lk-seg__item,
html.lk-theme-dark body.landing-site .lk-theme-toggle .lk-seg__item:hover,
html.lk-theme-dark body.landing-site .lk-theme-toggle .lk-seg__item.is-active {
  color: var(--accent, #4d8dff);
}

html.lk-theme-dark body.landing-site .lk-theme-toggle .lk-seg__item.is-active {
  background: var(--accent-wash, rgba(77, 141, 255, 0.16));
}

html.lk-theme-dark body.landing-site .section-soft,
html.lk-theme-dark body.landing-site .pricing-shell,
html.lk-theme-dark body.landing-site .how-media-frame {
  background: var(--bg-soft);
}

html.lk-theme-dark body.landing-site .lead-form {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.lk-theme-dark body.landing-site .lead-form input[type="text"],
html.lk-theme-dark body.landing-site .lead-form input[type="tel"],
html.lk-theme-dark body.landing-site .lead-form select,
html.lk-theme-dark body.landing-site .lead-form textarea,
html.lk-theme-dark body.landing-site .cs-select-trigger,
html.lk-theme-dark body.landing-site .lead-form .cs-select-trigger,
html.lk-theme-dark body.landing-site .cs-select-list,
html.lk-theme-dark body.landing-site .lead-form .cs-select-list {
  background-color: #12161f !important;
  background-image: none;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.14);
}

html.lk-theme-dark body.landing-site .lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239aa3b5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
}

html.lk-theme-dark body.landing-site .cs-select-chevron,
html.lk-theme-dark body.landing-site .lead-form .cs-select-chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239aa3b5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html.lk-theme-dark body.landing-site .cs-select-option {
  color: var(--ink);
}

html.lk-theme-dark body.landing-site .cs-select-option:hover {
  background: var(--accent-wash);
}

html.lk-theme-dark body.landing-site .cs-select-option.is-selected {
  background: rgba(77, 141, 255, 0.18);
  color: var(--accent-soft);
}

html.lk-theme-dark body.landing-site .cs-select-label.is-placeholder {
  color: var(--ink-muted);
}

html.lk-theme-dark body.landing-site .tariff-constructor-row,
html.lk-theme-dark body.landing-site .billing-toggle {
  background: #12161f;
  border-color: rgba(255, 255, 255, 0.1);
}

html.lk-theme-dark body.landing-site .tariff-pick-card {
  background: linear-gradient(165deg, #1a2030 0%, #141820 100%);
  border-color: rgba(77, 141, 255, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

html.lk-theme-dark body.landing-site .tariff-pick-card--featured {
  background: linear-gradient(165deg, #1c2740 0%, #151a26 60%, #12161f 100%);
  border: 2px solid var(--accent-soft, #4d8dff);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

html.lk-theme-dark body.landing-site .tariff-pick-float {
  background: #1a2030;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8edf7;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25);
}

html.lk-theme-dark body.landing-site .tariff-pick-float:hover {
  color: var(--accent-soft, #6aa0ff);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(45, 110, 243, 0.2);
}

html.lk-theme-dark body.landing-site .tariff-pick-systems {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}

html.lk-theme-dark body.landing-site .tariff-pick-systems li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.lk-theme-dark body.landing-site .tariff-system-tag {
  background: transparent;
  border: 0;
  color: #d7deeb;
}

html.lk-theme-dark body.landing-site .tariff-system-tag:hover,
html.lk-theme-dark body.landing-site .tariff-system-tag:focus-visible {
  background: rgba(77, 141, 255, 0.14);
  color: var(--accent-soft, #6aa0ff);
}

html.lk-theme-dark body.landing-site .section-pricing {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(77, 141, 255, 0.16), transparent 58%),
    linear-gradient(180deg, #12161f 0%, #0e1118 45%, #0a0c11 100%);
  border-block-color: rgba(77, 141, 255, 0.18);
}

html.lk-theme-dark body.landing-site .section-pricing::before {
  background-image:
    linear-gradient(rgba(77, 141, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 141, 255, 0.06) 1px, transparent 1px);
  opacity: 0.45;
}

html.lk-theme-dark body.landing-site .pricing-constructor {
  background: var(--surface);
  border-color: rgba(77, 141, 255, 0.22);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

html.lk-theme-dark body.landing-site .section-pricing .billing-toggle {
  background: rgba(18, 22, 31, 0.92);
  border-color: rgba(77, 141, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

html.lk-theme-dark body.landing-site .billing-button {
  color: var(--ink-muted);
}

html.lk-theme-dark body.landing-site .billing-button.is-active {
  background: var(--accent);
  color: #fff;
}

html.lk-theme-dark body.landing-site .tariff-constructor-total {
  background: linear-gradient(180deg, #1a2233 0%, #151c2a 100%);
  border-top: 1px solid rgba(77, 141, 255, 0.16);
}

html.lk-theme-dark body.landing-site .tariff-constructor-row.is-detail:hover,
html.lk-theme-dark body.landing-site .tariff-constructor-row.is-detail:focus-visible {
  background: rgba(77, 141, 255, 0.08);
}

html.lk-theme-dark body.landing-site .tariff-constructor-switch {
  background: #3a4254;
}

html.lk-theme-dark body.landing-site .tariff-constructor-switch::after {
  background: #f2f4f8;
}

html.lk-theme-dark body.landing-site
  .tariff-constructor-switch-wrap
  input:checked
  + .tariff-constructor-switch {
  background: #6aa0ff;
  box-shadow:
    0 0 0 3px rgba(106, 160, 255, 0.35),
    0 0 18px rgba(106, 160, 255, 0.45);
}

html.lk-theme-dark body.landing-site
  .tariff-constructor-switch-wrap
  input:checked
  + .tariff-constructor-switch::after {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

html.lk-theme-dark body.landing-site .lead-form-consent-input {
  background-color: #12161f;
  border-color: rgba(255, 255, 255, 0.18);
}

html.lk-theme-dark body.landing-site .lead-form-consent-input:hover {
  border-color: rgba(106, 160, 255, 0.55);
}

html.lk-theme-dark body.landing-site .lead-form-consent-input:checked {
  background-color: #6aa0ff;
  border-color: #6aa0ff;
  box-shadow:
    0 0 0 3px rgba(106, 160, 255, 0.35),
    0 0 14px rgba(106, 160, 255, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11l6-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem;
}

html.lk-theme-dark body.landing-site .tariff-constructor-price-main strong {
  color: var(--ink);
}

html.lk-theme-dark body.landing-site .price-discount {
  color: #6ddea0;
  background: rgba(26, 143, 74, 0.22);
}

html.lk-theme-dark body.landing-site .included-tag {
  background: var(--accent-wash);
  color: var(--accent-soft);
}

html.lk-theme-dark body.landing-site .modal-backdrop,
html.lk-theme-dark body.landing-site .nav-drawer-backdrop {
  background: rgba(0, 0, 0, 0.55);
}

html.lk-theme-dark body.landing-site .modal-window--hero-system {
  background: linear-gradient(180deg, #1a2233 0%, var(--surface) 7rem);
  border-color: rgba(77, 141, 255, 0.18);
}

html.lk-theme-dark body.landing-site .modal-close {
  background: #12161f;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  box-shadow: none;
}

html.lk-theme-dark body.landing-site .modal-close:hover,
html.lk-theme-dark body.landing-site .modal-close:focus-visible {
  color: var(--ink);
  background: #1c2433;
  border-color: rgba(77, 141, 255, 0.35);
  box-shadow: none;
}

html.lk-theme-dark body.landing-site .nav-drawer-close {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #12161f;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 0;
}

html.lk-theme-dark body.landing-site .nav-drawer-close:hover,
html.lk-theme-dark body.landing-site .nav-drawer-close:focus-visible {
  color: var(--ink);
  background: #1c2433;
  border-color: rgba(77, 141, 255, 0.35);
  outline: none;
}
