/* Лендинг: первый экран, возможности, модули, шаги, тарифы, вопросы */

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 104px; }
.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 820px; pointer-events: none;
  background:
    radial-gradient(520px 360px at 78% 30%, rgba(115, 128, 235, 0.28), transparent 70%),
    radial-gradient(420px 320px at 12% 12%, rgba(138, 92, 200, 0.14), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-title { margin-top: 18px; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -1.4px; text-wrap: balance; }
.hero-title .grad { display: block; }
.grad { background: linear-gradient(100deg, #4d5ac2 10%, #7a5cd0 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 20px; max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--text-secondary); }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.hero-note .ico { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.hero-copy > * { animation: hero-in 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Иллюстрация кабинета */
.mock { position: relative; animation: hero-in 1s 0.15s var(--ease) both; }
.mock-window {
  position: relative; border-radius: var(--radius-2xl); background: var(--surface); border: 1px solid #e4e6f3;
  box-shadow: var(--shadow-hero); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.8s var(--ease);
}
.mock:hover .mock-window { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--divider); background: var(--surface-muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe1ea; }
.mock-bar span { margin-left: 12px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mock-body { display: flex; min-height: 356px; }
.mock-side { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 64px; padding: 16px 0; border-right: 1px solid var(--divider); }
.mock-side span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--text-muted); }
.mock-side span .ico { width: 18px; height: 18px; }
.mock-side .on { background: var(--accent-soft); color: var(--accent); }
.mock-side .mock-logo { background: linear-gradient(135deg, #5b68d6, #4652b8); color: #fff; margin-bottom: 8px; }
.mock-main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { padding: 10px 12px; border-radius: 12px; background: var(--surface-muted); display: flex; flex-direction: column; }
.mock-kpis span { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.mock-kpis b { font-size: 20px; font-weight: 800; }
.mock-kpis .ok { color: var(--success-fg); }
.mock-kpis .acc { color: var(--accent); }
.mock-list { display: flex; flex-direction: column; gap: 4px; }
.mock-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; }
.mock-row:first-child { background: var(--accent-soft-2); }
.mock-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-muted); color: var(--text-secondary); }
.mock-ic .ico { width: 15px; height: 15px; }
.mock-name { display: flex; flex-direction: column; min-width: 0; }
.mock-name b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-name i { font-style: normal; font-size: 11px; color: var(--text-muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.run { background: var(--accent-soft); color: var(--accent-ink); }
.pill.run i { animation: pulse 1.6s infinite; }
.pill.cyc { background: var(--purple-bg); color: var(--purple-fg); }
.pill.ok { background: var(--success-bg); color: var(--success-fg); }
.mock-res { font-size: 12px; font-weight: 700; text-align: right; color: var(--danger-fg); }
.mock-res em { font-style: normal; color: var(--success-fg); }
.mock-log { margin-top: auto; padding: 10px 12px; border-radius: 12px; background: #1b1d29; color: #d7d9e4; font-size: 11.5px; display: flex; flex-direction: column; gap: 5px; }
.mock-log p { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-log p:last-child { animation: log-in 3.2s 1.2s var(--ease) infinite; }
.mock-log .t { color: #8a8fa0; font-variant-numeric: tabular-nums; }
.mock-log .d { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mock-log .d.ok { background: #3fbf85; }
.mock-log .d.warn { background: #e8b04a; }
@keyframes log-in { 0%, 12% { opacity: 0; transform: translateY(4px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.mock-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); box-shadow: var(--shadow-pop);
  animation: float 6s var(--ease) infinite;
}
.mock-float .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.mock-float .icon-tile .ico { width: 18px; height: 18px; }
.mock-float b { display: block; font-size: 13px; }
.mock-float i { display: block; font-style: normal; font-size: 12px; color: var(--text-muted); }
/* Вынесены за края окна, чтобы не закрывать содержимое макета */
.mock-float-a { left: -36px; bottom: -30px; }
.mock-float-b { right: -22px; top: -30px; animation-delay: -3s; }
.ok-tile { background: var(--success-bg); color: var(--success); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Возможности ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { margin-top: 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.feature p { color: var(--text-secondary); font-size: 15px; }
.features .reveal:nth-child(3n + 2) { transition-delay: 0.06s; }
.features .reveal:nth-child(3n + 3) { transition-delay: 0.12s; }

/* ---------- Модули ---------- */
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.module-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.module-group { padding: 20px; border-radius: var(--radius-xl); background: var(--surface-muted); border: 1px solid var(--border); }
.module-group:nth-child(2) { transition-delay: 0.06s; }
.module-group:nth-child(3) { transition-delay: 0.12s; }
.module-group-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.module-group-title span { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; }
.modules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.module {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px;
  transition: background-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.module:hover { background: var(--surface); box-shadow: var(--shadow-soft); }
.module .icon-tile { flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); }
.module .icon-tile .ico { width: 17px; height: 17px; }
.module b { display: block; font-size: 14.5px; line-height: 1.35; }
.module b + span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-muted); }

/* ---------- Шаги ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step { position: relative; padding: 28px 26px; }
.step:nth-child(2) { transition-delay: 0.06s; }
.step:nth-child(3) { transition-delay: 0.12s; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #5b68d6, #4652b8); box-shadow: 0 8px 18px rgba(77, 90, 194, 0.3);
}
.step h3 { margin-top: 18px; font-size: 18px; font-weight: 800; }
.step p { margin-top: 8px; font-size: 15px; color: var(--text-secondary); }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); justify-content: center; gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; }
.plan:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan-desc { margin-top: -8px; font-size: 14px; color: var(--text-muted); }
.plan-price { font-size: 16px; font-weight: 700; }
.plan-price b { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; flex-grow: 1; font-size: 15px; color: var(--text-secondary); }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e9e6a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan-top { border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.plan-top:hover { border-color: var(--accent-hover); box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow-soft); }
.plan-badge {
  position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #fff; background: linear-gradient(100deg, #4d5ac2, #7a5cd0); box-shadow: 0 6px 14px rgba(77, 90, 194, 0.3);
}
.plans-note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* ---------- Вопросы ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px;
  font-size: 17px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--accent); transition: transform var(--dur-2) var(--ease); }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-item[open] { border-color: #d8dbf3; }
.faq-item p { padding: 0 22px 20px; font-size: 15px; color: var(--text-secondary); animation: hero-in 0.4s var(--ease) both; }

/* ---------- Призыв ---------- */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px 48px;
  border-radius: var(--radius-2xl); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(420px 260px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 70%), linear-gradient(120deg, #4652b8, #6a58c9);
  box-shadow: var(--shadow-hero);
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.cta-inner p { margin-top: 8px; color: rgba(255, 255, 255, 0.82); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .mock { max-width: 640px; margin: 0 auto; width: 100%; }
  .mock-window { transform: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-groups { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 40px 0 72px; }
  .hero-title { letter-spacing: -1px; }
  .hero-lead { font-size: 17px; }
  .features, .steps { grid-template-columns: 1fr; }
  .mock-float { display: none; }
  .mock-side { display: none; }
  .mock-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .mock-res { display: none; }
  .cta-band { padding-bottom: 64px; }
  .cta-inner { padding: 32px 24px; }
  .cta-inner .btn { width: 100%; }
}
@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
}
