/* Adminyx landing — static, mobile-first */
:root {
  --bg: #0b0f14;
  --bg-elevated: #121820;
  --surface: #161d27;
  --surface-2: #1b2432;
  --border: #243040;
  --border-strong: #2f3d51;
  --text: #e8edf4;
  --text-muted: #8b9cb3;
  --text-dim: #6c7b92;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: #93c5fd;
  --accent-dim: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --cta-demo: #22c55e;
  --cta-demo-hover: #16a34a;
  --cta-demo-glow: rgba(34, 197, 94, 0.25);
  --cta-demo-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --radius: 12px;
  --radius-lg: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 60px rgba(0, 0, 0, 0.5), 0 0 80px var(--accent-glow);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 1000;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-dim);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(11, 15, 20, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-actions.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: var(--surface);
  }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn-demo {
  background: var(--cta-demo);
  color: #fff;
  border-color: var(--cta-demo);
}

.btn-demo:hover {
  background: var(--cta-demo-hover);
  border-color: var(--cta-demo-hover);
  box-shadow: 0 4px 20px var(--cta-demo-glow);
}

.btn-block {
  width: 100%;
}

/* ───── Hero ───── */
.hero {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-dim), transparent),
    var(--bg);
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  max-width: 100%;
  text-align: center;
  line-height: 1.35;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero h1 .hl {
  background: linear-gradient(90deg, var(--accent-hover), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 38ch;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-cta-link {
  align-self: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: color var(--transition), border-color var(--transition);
}

.hero-cta-link:hover {
  color: #fff;
  border-color: #fff;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-shot {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px var(--accent-dim);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5), 0 0 80px var(--accent-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .landing-hero-media {
    animation: heroFloat 6s ease-in-out infinite;
  }

  @keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

.hero-shot.hero-video,
video.hero-shot {
  display: block;
  background: var(--bg-elevated);
}

.landing-hero-media {
  width: 100%;
}

/* ───── Sections ───── */
section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
}

.section-intro {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

.section-intro code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ───── Card icons ───── */
.card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-hover);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: -1;
}

.pain-card:hover .card-icon::after,
.feature-card:hover .card-icon::after,
.why-card:hover .card-icon::after,
.audience-card:hover .card-icon::after {
  opacity: 1;
}

.card-icon--success {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.22);
}

.card-icon--warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22);
}

/* ───── Pain / solution ───── */
.pain-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pain-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pain-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pain-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.pain-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ───── Features ───── */
.features-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-hover);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ───── Screenshots ───── */
.shots-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .shots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.shot:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot-media video {
  background: #0a0e12;
}

.shot figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ───── How it works (steps) ───── */
.steps-grid {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ───── Audience ───── */
.audience-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audience-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.audience-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ───── Stats ───── */
#stats {
  background: linear-gradient(180deg, var(--accent-dim) 0%, transparent 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 1.5rem;
}

.stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-hover);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ───── Pricing ───── */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 32px var(--accent-dim);
  position: relative;
}

.price-card.featured::before {
  content: "Популярный";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.price-card .tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.price-card .price-amount {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  color: var(--text);
  line-height: 1.2;
}

.price-card .price-amount.is-custom {
  font-size: 1.15rem;
  font-weight: 600;
}

.price-card .price-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.price-card .price-yearly {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.price-card .price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: -0.25rem 0 1rem;
  line-height: 1.4;
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
}

.price-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

.pricing-sync-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 52rem;
}

.compare-heading {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

/* Compare table */
.compare-wrap {
  margin-top: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--surface);
  font-weight: 600;
}

.compare-table tbody th {
  background: var(--bg-elevated);
  font-weight: 500;
  color: var(--text-muted);
}

.compare-table td {
  text-align: center;
  color: var(--text-muted);
}

.compare-table .yes {
  color: var(--success);
  font-weight: 600;
}

.compare-table .opt {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ───── Compare (before/after) ───── */
.compare-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-col {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-before {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.compare-after {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
}

.compare-col-title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.compare-col-title--before {
  color: #f87171;
}

.compare-col-title--after {
  color: var(--success);
}

.compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.compare-before .compare-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 700;
  font-size: 0.8rem;
}

.compare-after .compare-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ───── Why Adminyx ───── */
.why-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-hover);
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ───── Case ───── */
.case-block {
  padding: 2rem;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.case-quote {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  max-width: 60ch;
}

.case-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.case-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-detail-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.case-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ───── FAQ ───── */
.faq-list {
  max-width: 700px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--accent-dim);
  color: var(--accent-hover);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ───── Trust strip ───── */
.trust-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  text-align: center;
}

.trust-headline {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .trust-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.trust-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.trust-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.integrations-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.integrations-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.integrations-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.integration-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}

.integration-badge.active {
  color: var(--cta-demo);
  border-color: var(--cta-demo);
}

.integrations-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
}

/* ───── Form ───── */
.lead-form {
  max-width: 520px;
}

.field {
  margin-bottom: 1rem;
}

/* Yandex SmartCaptcha slot (shown only when ADMINYX_CAPTCHA_SITE_KEY is set). */
.field.lead-captcha {
  margin: 1.25rem 0 0.75rem;
  min-height: 0; /* expands once SDK injects the widget (~102px) */
  display: flex;
  justify-content: center;
}

.field.lead-captcha[aria-hidden="true"] {
  display: none;
}

.field.lead-captcha .smart-captcha {
  max-width: 302px;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checkbox-field input {
  margin-top: 0.2rem;
  width: auto;
}

.checkbox-field a {
  color: var(--accent-hover);
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  color: var(--success);
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.form-success.visible {
  display: block;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-hint code {
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.lead-alt {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.lead-alt a {
  color: var(--accent-hover);
}

/* ───── Footer ───── */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-hover);
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copy p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-made {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ───── Scroll animations ───── */
@media (prefers-reduced-motion: no-preference) {
  .pain-card,
  .feature-card,
  .step-card,
  .audience-card,
  .price-card,
  .shot,
  .stat-item,
  .faq-item,
  .case-block,
  .compare-col,
  .why-card,
  .trust-item,
  .integrations-strip {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .pain-card:nth-child(1) { animation-delay: 0.05s; }
  .pain-card:nth-child(2) { animation-delay: 0.1s; }
  .pain-card:nth-child(3) { animation-delay: 0.15s; }
  .pain-card:nth-child(4) { animation-delay: 0.2s; }

  .feature-card:nth-child(1) { animation-delay: 0.05s; }
  .feature-card:nth-child(2) { animation-delay: 0.1s; }
  .feature-card:nth-child(3) { animation-delay: 0.15s; }
  .feature-card:nth-child(4) { animation-delay: 0.2s; }
  .feature-card:nth-child(5) { animation-delay: 0.25s; }
  .feature-card:nth-child(6) { animation-delay: 0.3s; }
  .feature-card:nth-child(7) { animation-delay: 0.35s; }
  .feature-card:nth-child(8) { animation-delay: 0.4s; }
  .feature-card:nth-child(9) { animation-delay: 0.45s; }

  .step-card:nth-child(1) { animation-delay: 0.05s; }
  .step-card:nth-child(2) { animation-delay: 0.15s; }
  .step-card:nth-child(3) { animation-delay: 0.25s; }

  .stat-item:nth-child(1) { animation-delay: 0.05s; }
  .stat-item:nth-child(2) { animation-delay: 0.12s; }
  .stat-item:nth-child(3) { animation-delay: 0.19s; }
  .stat-item:nth-child(4) { animation-delay: 0.26s; }

  .shot:nth-child(1) { animation-delay: 0.05s; }
  .shot:nth-child(2) { animation-delay: 0.15s; }
  .shot:nth-child(3) { animation-delay: 0.25s; }
}

/* ───── Scroll progress bar ───── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.08s linear;
}

/* ───── Back to top ───── */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition),
    background var(--transition), border-color var(--transition);
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .to-top {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ───── Sticky mobile CTA ───── */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 80;
    transform: translateY(110%);
    transition: transform var(--transition);
  }

  .sticky-cta.visible {
    transform: translateY(0);
  }

  .sticky-cta .btn {
    flex: 1;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }

  /* приподнимаем back-to-top, если видна sticky-cta */
  .sticky-cta.visible ~ .to-top {
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  /* отступ снизу контента, чтобы sticky-cta не перекрывала footer */
  body:has(.sticky-cta.visible) {
    padding-bottom: 3.25rem;
  }
}

/* ───── Active nav highlight ───── */
.nav-link.is-active {
  color: var(--text);
  background: var(--accent-dim);
}

/* ───── Channels section (Telegram / VK reports) ───── */
.channels-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .channels-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.channel-card {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.channel-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.channel-card__logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.channel-card__logo.tg {
  background: linear-gradient(135deg, #37a8e0 0%, #1e88e5 100%);
}

.channel-card__logo.vk {
  background: linear-gradient(135deg, #0077ff 0%, #0056d6 100%);
}

.channel-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.channel-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.channel-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.channel-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.channel-card__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.channel-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-hover);
  font-weight: 700;
}

/* ───── Employee portal section ───── */
.portal-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .portal-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.portal-features {
  display: grid;
  gap: 0.9rem;
}

.portal-feature {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.portal-feature:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

.portal-feature__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent-hover);
  flex-shrink: 0;
}

.portal-feature h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.portal-feature p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.portal-mock {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19;
  padding: 14px 10px;
  background: #05080c;
  border: 2px solid var(--border-strong);
  border-radius: 36px;
  box-shadow: var(--shadow-md), 0 0 60px var(--accent-dim);
}

.portal-mock::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 90px;
  height: 18px;
  background: #05080c;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
  z-index: 2;
}

.portal-mock__screen {
  position: relative;
  height: 100%;
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  padding: 2.5rem 0.75rem 0.75rem;
  font-size: 0.72rem;
}

.portal-mock__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
  margin-bottom: 0.6rem;
}

.portal-mock__card {
  padding: 0.6rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.portal-mock__card--accent {
  background: var(--accent-dim);
  border-color: rgba(59, 130, 246, 0.35);
}

.portal-mock__label {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.portal-mock__value {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

.portal-mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.portal-mock__tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

/* ───── Security section ───── */
.security-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .security-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.security-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.security-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.security-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.security-card h3 {
  margin: 0;
  font-size: 1rem;
}

.security-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ───── Noscript fallback ───── */
.noscript-banner {
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ───── Extend fadeUp to new blocks ───── */
@media (prefers-reduced-motion: no-preference) {
  .channel-card,
  .portal-feature,
  .security-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
  }

  .channel-card:nth-child(1) { animation-delay: 0.05s; }
  .channel-card:nth-child(2) { animation-delay: 0.15s; }

  .portal-feature:nth-child(1) { animation-delay: 0.05s; }
  .portal-feature:nth-child(2) { animation-delay: 0.12s; }
  .portal-feature:nth-child(3) { animation-delay: 0.19s; }
  .portal-feature:nth-child(4) { animation-delay: 0.26s; }

  .security-card:nth-child(1) { animation-delay: 0.05s; }
  .security-card:nth-child(2) { animation-delay: 0.12s; }
  .security-card:nth-child(3) { animation-delay: 0.19s; }
  .security-card:nth-child(4) { animation-delay: 0.26s; }
  .security-card:nth-child(5) { animation-delay: 0.33s; }
  .security-card:nth-child(6) { animation-delay: 0.4s; }
}
