:root {
  --nova-bg: #0f172a;
  --nova-primary: #4f46e5;
  --nova-primary-soft: #eef2ff;
  --nova-accent: #22c55e;
  --nova-text: #0f172a;
  --nova-muted: #64748b;
  --nova-border: #e2e8f0;

  --bg: #f7f9fc;
  --panel: #ffffff;
  --text: var(--nova-text);
  --muted: var(--nova-muted);
  --accent: var(--nova-primary);
  --accent-2: #0ea5e9;
  --border: var(--nova-border);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

header {
  background: var(--nova-bg);
  color: #e2e8f0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-img {
  height: 34px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-links .nav-btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, 0.25);
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
}
.nav-links .nav-btn:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.28);
}

.nav-links a {
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, transform 0.15s ease;
}

.nav-links a.active, .nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--nova-primary), var(--nova-accent));
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn:hover { transform: translateY(-1px); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.section p.lead { color: var(--muted); max-width: 760px; }

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.plan-card h3 { margin: 0 0 6px; }
.plan-price { font-size: 22px; font-weight: 700; margin: 4px 0 12px; }
.plan-meta { color: var(--muted); margin: 0 0 12px; }
.plan-specs { list-style: none; padding: 0; margin: 0 0 14px; color: var(--muted); }
.plan-specs li { margin: 4px 0; }

.faq {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.faq-item { margin-bottom: 14px; }
.faq-item h4 { margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--muted); }

.footer {
  background: #0b1220;
  color: #e2e8f0;
  padding: 28px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a { color: #cbd5e1; }

.kb-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.kb-sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
}

.kb-sidebar ul { list-style: none; padding: 0; margin: 0; }
.kb-sidebar li { margin-bottom: 8px; }

.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.article-list li { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.article-list a { font-weight: 600; color: var(--text); }
.article-list p { margin: 6px 0 0; color: var(--muted); }

.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--accent); }

.article-body h1 { margin-top: 0; }
.article-body h2 { margin-top: 22px; margin-bottom: 8px; }
.article-body ul { padding-left: 20px; }
.article-body li { margin: 6px 0; }
.article-body { max-width: 840px; }

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

.notice {
  padding: 12px 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  color: #3730a3;
  margin: 10px 0;
}

@media (max-width: 900px) {
  .navbar { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; }
  .kb-layout { grid-template-columns: 1fr; }
  .kb-sidebar { position: static; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

/* --- Лого: сделать текст крупнее и выровнять по иконке --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  font-size: 1.3rem;      /* крупнее текст */
  font-weight: 700;
  line-height: 1;         /* без лишнего вертикального воздуха */
  position: relative;
  top: -1px;              /* чуть приподнять, чтобы было по центру иконки */
  color: #f9fafb;
  white-space: nowrap;
}

/* --- Точная подгонка логотипа --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  font-size: 2rem;        /* ещё крупнее текст */
  font-weight: 800;
  line-height: 1.05;
  position: relative;
  top: -1px;              /* чуть приподнять, чтобы было по центру иконки */
  color: #ffffff;
  white-space: nowrap;
}

/* --- Повышенная специфичность для шапки --- */
header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

header .logo-icon {
  width: 44px;
  height: 44px;
}

header .logo-text {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff !important;
  letter-spacing: 0.02em;
}

/* --- Логотип: только текст с градиентом, без иконки --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-icon {
  display: none;
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #6d5dfc 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- База знаний (KB) --- */

.kb-layout-page {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kb-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
}

/* Sidebar */

.kb-sidebar {
  background: #020617;
  border-radius: 1.5rem;
  padding: 1.25rem 1rem 1.5rem;
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}

.kb-sidebar-header {
  margin-bottom: 0.75rem;
}

.kb-sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.kb-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.kb-sidebar-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e5e7eb;
}

.kb-sidebar-link {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  color: #cbd5f5;
  text-decoration: none;
}

.kb-sidebar-link:hover {
  background: rgba(148, 163, 253, 0.14);
  color: #ffffff;
}

/* Content */

.kb-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.kb-hero {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 1.5rem;
  padding: 1.75rem 1.75rem 1.9rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.kb-hero-label {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 253, 0.15);
  color: #c7d2fe;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.kb-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.kb-hero p {
  max-width: 640px;
  font-size: 0.98rem;
  color: #cbd5f5;
  margin-bottom: 1.1rem;
}

.kb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Sections / cards */

.kb-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.kb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.kb-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--nova-border, #e2e8f0);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kb-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.kb-card p {
  font-size: 0.9rem;
  color: var(--nova-muted, #64748b);
}

.kb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border-color: var(--nova-primary, #4f46e5);
}

.kb-text-list {
  padding-left: 1.25rem;
  color: var(--nova-muted, #64748b);
}

.kb-section-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--nova-muted, #64748b);
}

/* Адаптив */

@media (max-width: 960px) {
  .kb-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-sidebar {
    position: static;
    order: 2;
  }

  .kb-content {
    order: 1;
  }

  .kb-layout-page {
    padding-top: 2rem;
  }
}

/* --- KB sidebar accordion (final) --- */

.kb-sidebar-group {
  border-radius: 0.9rem;
  padding: 0.1rem 0.2rem;
}

.kb-sidebar-group + .kb-sidebar-group {
  margin-top: 0.4rem;
}

.kb-sidebar-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.4rem;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 0.7rem;
  font: inherit;
}

.kb-sidebar-group-toggle:hover {
  background: rgba(148, 163, 253, 0.18);
}

.kb-sidebar-group-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.kb-sidebar-group-toggle-icon {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.kb-sidebar-group-links {
  margin-top: 0.15rem;
  padding-left: 0.1rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.kb-sidebar-group.is-open .kb-sidebar-group-links {
  max-height: 600px;
  opacity: 1;
}

.kb-sidebar-group.is-open .kb-sidebar-group-toggle-icon {
  transform: rotate(180deg);
}

/* --- KB Article layout --- */

.kb-article {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.8rem 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}

.kb-article h1 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.kb-article h2 {
  font-size: 1.3rem;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.kb-article p,
.kb-article li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--nova-muted, #64748b);
}

.kb-breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--nova-muted, #64748b);
}

.kb-breadcrumbs a {
  color: var(--nova-primary, #4f46e5);
  text-decoration: none;
}

.kb-breadcrumbs a:hover {
  text-decoration: underline;
}

/* --- KB breadcrumbs (красивый бейдж) --- */

.kb-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.10), rgba(56, 189, 248, 0.08));
  color: #0f172a;
  margin-bottom: 1rem;
}

.kb-breadcrumbs a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
}

.kb-breadcrumbs a:hover {
  text-decoration: underline;
  color: #4338ca;
}

.kb-breadcrumbs a:visited {
  color: #0f172a;
}

.kb-breadcrumbs-separator {
  opacity: 0.5;
}

/* На всякий если стрелка просто текстом "→" */
.kb-breadcrumbs span,
.kb-breadcrumbs {
  white-space: nowrap;
}

/* --- Карточки тарифов NV (новый дизайн) --- */

.nv-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.plans-section {
  background: #ffffff;
  border: 1px solid var(--nova-border, #e2e8f0);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.nv-plan-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid var(--nova-border, #e2e8f0);
  padding: 1.1rem 1.25rem 1.3rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nv-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  border-color: rgba(79, 70, 229, 0.45);
}

.nv-plan-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.nv-plan-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(16, 185, 129, 0.12));
  color: #0f172a;
}

.nv-plan-price {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.nv-plan-price-period {
  font-size: 0.85rem;
  color: var(--nova-muted, #64748b);
  margin-left: 0.25rem;
}

.nv-plan-specs {
  border-radius: 1rem;
  background: #f9fafb;
  padding: 0.7rem 0.9rem;
}

.nv-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.nv-plan-row:last-child {
  border-bottom: none;
}

.nv-plan-row-label {
  color: #6b7280;
  white-space: nowrap;
}

.nv-plan-row-value {
  color: #111827;
  font-weight: 500;
  margin-left: 0.75rem;
  text-align: right;
  white-space: nowrap;
}

.nv-plan-order {
  margin-top: 0.9rem;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.nv-plan-order.btn {
  background: #020617;
  color: #f9fafb;
  border-radius: 0.9rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.nv-plan-order.btn:hover {
  filter: brightness(1.05);
}

/* --- Фикс: убрать чёрный фон у заголовка блока тарифов --- */
.plans-section-header {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 1rem 0;
  color: #0f172a;
}

/* --- Переключатель локации над тарифами --- */

.nv-location-switch {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.nv-location-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--nova-muted, #64748b);
}

.nv-location-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-location-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #0f172a;
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
}

.nv-location-btn-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.nv-location-note {
  font-size: 0.75rem;
  opacity: 0.75;
}

.nv-location-btn.is-active {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #ffffff;
  border-color: transparent;
}

.nv-location-btn.is-disabled {
  background: #111827;
  color: #9ca3af;
  cursor: default;
  opacity: 0.75;
}

.nv-location-btn.is-disabled .nv-location-note {
  text-transform: lowercase;
}

@media (max-width: 768px) {
  .nv-location-switch {
    align-items: stretch;
  }
}

/* Юридические страницы: политика/условия */
.legal-text {
  max-width: 840px;
  font-size: 15px;
  line-height: 1.7;
}
.legal-text h2 {
  font-size: 20px;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.legal-text ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.legal-text li {
  margin-bottom: 0.4rem;
}

/* Поиск по базе знаний */
.kb-search {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.kb-search-input {
  flex: 1 1 260px;
  max-width: 420px;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 135, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.kb-search-input:focus {
  border-color: rgba(80, 120, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(80, 120, 255, 0.35);
}

.kb-search-clear {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  background: #edf0ff;
  color: #1f3f8f;
  transition: background 0.15s ease, transform 0.05s ease;
}

.kb-search-clear:hover {
  background: #e1e5ff;
}

.kb-search-clear:active {
  transform: translateY(1px);
}

.kb-search-hint {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.72);
}

.kb-search-empty {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: rgba(248, 250, 252, 0.98);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.92rem;
}

/* Контакты в футере */
.footer-contacts {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-contacts a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contacts a:hover {
  text-decoration: underline;
}

/* Блок поддержки на главной */
.section-support .section-head {
  text-align: left;
  margin-bottom: 1.5rem;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.support-card {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.support-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.support-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.support-card ul {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.support-card a {
  color: #0f172a;
  text-decoration: none;
}

.support-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Аккордеон для политики конфиденциальности */
.legal-accordion {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.legal-item {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.legal-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 0.4rem 0.9rem 0.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.05));
}

.legal-item[open] summary {
  color: #0b1224;
}

.legal-item summary::-webkit-details-marker {
  display: none;
}

.legal-item summary::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(99, 102, 241, 0.8);
  border-left-color: transparent;
  border-top-color: transparent;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.legal-item[open] summary::before {
  transform: rotate(225deg);
}

.legal-body {
  padding: 0.65rem 1rem 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.legal-body p {
  margin: 0.4rem 0;
}

.legal-body ul {
  padding-left: 1.1rem;
  margin: 0.45rem 0 0.7rem;
}

.legal-body li {
  margin-bottom: 0.32rem;
}

/* --- Legal pages layout (privacy / terms) --- */
html {
  scroll-behavior: smooth;
}

.legal-layout {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 32px;
}

.legal-nav {
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

.legal-nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.legal-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-nav-item a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 0.9rem;
  color: #111827;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.legal-nav-item.is-active a,
.legal-nav-item a:hover {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-title {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.legal-subtitle {
  margin: 0 0 16px;
  color: #6b7280;
}

.legal-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.legal-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.legal-section p {
  margin-bottom: 10px;
}

.legal-section ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    margin: 24px auto 48px;
  }

  .legal-nav {
    position: static;
  }

  .legal-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .legal-nav-item a {
    font-size: 0.8rem;
  }
}

/* --- Новое лого PNG --- */
header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-image: none;
  border-radius: 14px;
  background: radial-gradient(circle at 28% 35%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0)) center/118% 118%,
              linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 244, 255, 0.75) 45%, rgba(225, 232, 255, 0.6) 100%);
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.5),
              inset 0 -6px 16px rgba(79, 70, 229, 0.14),
              0 0 0 1px rgba(255, 255, 255, 0.25),
              0 14px 34px rgba(0, 0, 0, 0.16),
              0 0 20px rgba(99, 102, 241, 0.2),
              0 0 14px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Акцентный блик на рамке */
header .logo::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25), transparent 50%),
              linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.75;
  pointer-events: none;
}

header .logo-img {
  height: 56px;
  width: auto;
  display: block;
}

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