/* ============================================================
   КонсультантПлюс — редизайн
   Тёмная «legal-tech» тема, адаптивная сетка, доступные состояния
   ============================================================ */

:root {
  --bg: #0a0f1e;
  --bg-2: #0d1526;
  --surface: #121c33;
  --surface-2: #16223d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0fb;
  --muted: #9aa8c2;
  --muted-2: #6f7f9c;
  --accent: #4f8cff;
  --accent-2: #7aa8ff;
  --gold: #f0b429;
  --telegram: #2aabee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 55px -28px rgba(0, 0, 0, 0.85);
  --container: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Фон ---------------------------------------------------- */
.bg-aura {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: -3;
  pointer-events: none;
}
.bg-aura--one { top: -22vw; left: -12vw; background: radial-gradient(circle, rgba(79,140,255,0.42), transparent 65%); }
.bg-aura--two { top: 40vh; right: -20vw; background: radial-gradient(circle, rgba(240,180,41,0.18), transparent 65%); }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
}

/* ---------- Элементы управления ----------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.button--small { padding: 10px 16px; font-size: 0.85rem; }
.button--block { width: 100%; }

.button--telegram { background: linear-gradient(135deg, #2aabee, #1c8fd0); box-shadow: 0 12px 26px -14px rgba(42,171,238,0.9); }
.icon-telegram { fill: currentColor !important; stroke: none !important; }

.button--email { background: linear-gradient(135deg, #4f8cff, #3568d6); }
.button--primary { background: linear-gradient(135deg, var(--accent), #3568d6); box-shadow: 0 14px 30px -16px rgba(79,140,255,0.95); }
.button--secondary { background: rgba(255,255,255,0.06); border-color: var(--line-strong); }
.button--secondary:hover { background: rgba(255,255,255,0.11); }
.button--ghost { background: transparent; border-color: var(--line-strong); color: var(--muted); }
.button--ghost:hover { color: #fff; border-color: var(--accent-2); }

/* ---------- Шапка -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 30, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
.brand img { height: 34px; width: auto; border-radius: 8px; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-size: 0.92rem; color: var(--muted); font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a:hover { color: #fff; }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: width 0.22s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- Hero --------------------------------------------------- */
.hero { padding: 92px 0 68px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700; color: var(--accent-2);
  margin-bottom: 16px;
}
.eyebrow span { width: 22px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }
.eyebrow--light { color: var(--gold); }

.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-lead { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 34em; }

.hero-price {
  display: inline-flex; align-items: baseline; gap: 12px;
  margin-top: 26px; padding: 14px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-price strong { font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-price span { color: var(--muted); font-size: 0.9rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Панель справа */
.hero-panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.panel-topline { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 4px rgba(53,208,127,0.16); }
.panel-tag { margin-left: auto; font-size: 0.68rem; letter-spacing: 0.12em; font-weight: 700; color: var(--accent-2); border: 1px solid var(--line-strong); padding: 3px 9px; border-radius: 999px; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.metric { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.metric strong { display: block; font-size: 1.9rem; font-weight: 800; }
.metric sup { font-size: 0.9rem; color: var(--accent-2); }
.metric span { font-size: 0.82rem; color: var(--muted); }

.coverage { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coverage strong { font-size: 0.98rem; }
.coverage p { font-size: 0.84rem; color: var(--muted); }
.coverage-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; flex-shrink: 0; }
.coverage-map span { width: 9px; height: 9px; border-radius: 2px; background: rgba(79,140,255,0.55); }
.coverage-map span:nth-child(3n) { background: rgba(240,180,41,0.7); }
.panel-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 0.84rem; color: var(--muted); }
.checkmark { color: #35d07f; font-weight: 700; }

/* ---------- Общие секции ------------------------------------------- */
.section, .databases { padding: 78px 0; }
.section--updates { background: linear-gradient(180deg, transparent, rgba(79,140,255,0.05), transparent); }
.section--archive { background: linear-gradient(180deg, transparent, rgba(240,180,41,0.04), transparent); }

.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; }
.section-heading > p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

/* ---------- 1. Онлайн-доступ -------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(79,140,255,0.14); margin-bottom: 18px; }
.icon-wrap svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 2. Скачать -------------------------------------------- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.download-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.download-card__top { display: flex; align-items: center; gap: 14px; }
.download-card h3 { font-size: 1.25rem; }
.badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0a0f1e; background: #35d07f; padding: 4px 10px; border-radius: 999px; }
.badge--gold { background: var(--gold); }
.download-card > p { color: var(--muted); font-size: 0.95rem; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--muted); font-size: 0.93rem; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #35d07f; font-weight: 700;
}
.tick-list--lg li { color: var(--text); font-size: 1rem; padding-left: 30px; }
.download-card .button { margin-top: auto; }

/* ---------- 3. Обновления 2026 ------------------------------------ */
.update-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.update-shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.update-shot img { width: 100%; height: 210px; object-fit: cover; }
.update-shot figcaption { padding: 14px 18px; font-size: 0.88rem; color: var(--muted); }
.update-shot figcaption span { display: block; color: var(--accent-2); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }

.update-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.fact { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.fact strong { display: block; font-size: 1.12rem; margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 0.86rem; }

/* ---------- 4. Архив 2025 ----------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line-strong); display: grid; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(79,140,255,0.18);
}
.timeline__date { display: block; font-weight: 700; color: var(--gold); font-size: 0.86rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.timeline p { color: var(--muted); }

/* ---------- 5. Пополнения ----------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.split__copy .section-heading { margin-bottom: 24px; }
.split__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-row:last-of-type { grid-template-columns: 1fr; }
.stat { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat span { color: var(--muted); font-size: 0.84rem; }
.callout { display: flex; gap: 14px; align-items: flex-start; background: rgba(240,180,41,0.09); border: 1px solid rgba(240,180,41,0.28); border-radius: var(--radius-sm); padding: 16px; }
.callout__icon { font-size: 1.2rem; color: var(--gold); }
.callout p { color: var(--text); font-size: 0.9rem; }

/* ---------- Базы (аккордеон) -------------------------------------- */
.database-accordions { display: grid; gap: 12px; }
.database-accordion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.database-accordion[open] { border-color: var(--line-strong); }
.database-accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 1.02rem;
  list-style: none;
}
.database-accordion summary::-webkit-details-marker { display: none; }
.accordion-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.accordion-icon::before, .accordion-icon::after {
  content: ""; position: absolute; background: var(--muted); border-radius: 2px; transition: transform 0.22s ease, opacity 0.22s ease;
}
.accordion-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.accordion-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.database-accordion[open] .accordion-icon::after { transform: scaleY(0); opacity: 0; }

.database-content { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.database-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 26px; }
.database-list li { color: var(--muted); font-size: 0.9rem; padding-left: 18px; position: relative; }
.database-list li::before { content: "▪"; position: absolute; left: 0; color: var(--accent); }

/* ---------- 7. Контакт -------------------------------------------- */
.contact-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 46px;
  box-shadow: var(--shadow);
}
.contact-card__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.contact-card__copy p { color: var(--muted); }
.contact-card__action { display: grid; gap: 18px; justify-items: stretch; }
.price-tag { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
.price-tag strong { font-size: 2.1rem; font-weight: 800; }
.price-tag span { color: var(--muted); }
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-buttons .button { width: 100%; }

/* ---------- Подвал ------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-brand { display: grid; }
.footer-brand strong { font-size: 1rem; }
.footer-brand span { color: var(--muted-2); font-size: 0.84rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--muted); font-size: 0.88rem; }
.footer-nav a:hover { color: #fff; }

/* ---------- Анимация появления ------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal--delay { transition-delay: 0.12s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button:hover { transform: none; }
}

/* ---------- Адаптивность ------------------------------------------ */
@media (max-width: 1120px) and (min-width: 761px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 0.85rem; }
}

@media (max-width: 980px) {
  .hero-grid, .split, .contact-card { grid-template-columns: 1fr; }
  .contact-card { padding: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .update-gallery { grid-template-columns: 1fr; }
  .update-facts { grid-template-columns: 1fr; }
  .database-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .button--small { display: none; }
  .hero { padding: 62px 0 44px; }
  .section, .databases { padding: 56px 0; }
  .download-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .contact-buttons { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
}
