/* ─────────────────────────────────────────────────
   AI Автоматизация ПРО — кастомные стили поверх Tailwind
   ──────────────────────────────────────────────────
   Тёмная тема, акцент cyan/violet, типографика Manrope+Inter.
   Tailwind покрывает 90% стилей, тут — только то, что
   неудобно/невозможно выразить утилитами (градиенты,
   мелкие декоративные элементы, свойства details/summary).
   ───────────────────────────────────────────────── */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* ─── НАВИГАЦИЯ ──────────────────────────────────── */
#topnav.is-scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37, 46, 61, 0.6);
}

/* ─── BURGER + MOBILE MENU ───────────────────────── */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid #252e3d;
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: #f5f7fa;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.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); }

.mobile-menu {
  position: absolute;
  top: 100%; left: 16px; right: 16px;
  margin-top: 8px;
  padding: 18px 18px 22px;
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #252e3d;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.mobile-menu a {
  padding: 14px 12px;
  color: #cbd5e1;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.mobile-menu a:hover { background: rgba(0, 212, 255, .08); color: #fff; }
.mobile-menu a.cta-btn { padding: 14px 20px; }

/* ─── COOKIE BANNER ─────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px; right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(17, 22, 31, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #252e3d;
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  font-size: 13.5px;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto;
  animation: cb-slide-up .4s ease;
}
@keyframes cb-slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner a { color: #00d4ff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner button {
  padding: 10px 18px;
  background: linear-gradient(120deg, #00d4ff, #0099cc);
  color: #051018;
  border: none;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter .2s, transform .2s;
}
.cookie-banner button:hover { filter: brightness(1.1); transform: translateY(-1px); }
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner button { width: 100%; }
}

/* ─── HERO BACKDROP ──────────────────────────────── */
.hero-glow {
  position: absolute;
  inset: -200px 0 0 0;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(0, 212, 255, 0.18), transparent 60%),
    radial-gradient(50% 40% at 80% 0%, rgba(139, 92, 246, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.text-gradient {
  background: linear-gradient(120deg, #00d4ff 20%, #8b5cf6 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── CTA-КНОПКА ──────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(120deg, #00d4ff 0%, #0099cc 100%);
  color: #051018;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(0, 212, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 40px -10px rgba(0, 212, 255, 0.55);
}
.cta-btn:active { transform: translateY(0); }
.cta-btn--sm { padding: 10px 18px; font-size: 14px; }
.cta-btn--full { width: 100%; padding: 16px 24px; }
.cta-btn--ghost {
  background: transparent;
  color: #f5f7fa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.cta-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  filter: none;
}

/* ─── ЗАГОЛОВКИ СЕКЦИЙ ───────────────────────────── */
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #00d4ff;
  margin-bottom: 14px;
  font-family: 'Manrope', sans-serif;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f5f7fa;
}

/* ─── DASHBOARD MOCK (HERO RIGHT) ────────────────── */
.dashboard-mock {
  position: relative;
  background: linear-gradient(180deg, #11161f 0%, #0a0e1a 100%);
  border: 1px solid #252e3d;
  border-radius: 18px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 212, 255, 0.08),
    0 0 80px -20px rgba(0, 212, 255, 0.25);
  overflow: hidden;
}
.dashboard-mock__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #252e3d;
  background: rgba(10, 14, 26, 0.6);
}
.dashboard-mock__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: #ff5f56; }
.dot--yellow { background: #ffbd2e; }
.dot--green { background: #27c93f; }

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  background: rgba(26, 33, 45, 0.5);
  border: 1px solid #252e3d;
  border-radius: 10px;
}
.metric-row__label { font-size: 13px; color: #b9c2d3; }
.metric-row__value {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #00d4ff;
}
.metric-row__bar {
  grid-column: 1 / -1;
  height: 4px;
  background: #1a212d;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.metric-row__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #33dfff);
  border-radius: 999px;
}
.metric-row__bar--violet > span {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.mock-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 12px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px dashed rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  font-size: 13px;
}
.mock-flow__node {
  padding: 6px 12px;
  background: #1a212d;
  border-radius: 8px;
  border: 1px solid #252e3d;
  white-space: nowrap;
}
.mock-flow__node--accent {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.35);
  color: #66e6ff;
}
.mock-flow__arrow { color: #475569; font-weight: 700; }

.mock-feed { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.mock-feed__item {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: #94a3b8;
}
.mock-feed__time {
  color: #00d4ff;
  font-family: 'Manrope', monospace;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ─── SERVICE CARDS ──────────────────────────────── */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(180deg, #11161f 0%, #0e1320 100%);
  border: 1px solid #252e3d;
  border-radius: 18px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: #3d4759;
}
.service-card--featured {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.15), 0 30px 80px -30px rgba(0, 212, 255, 0.35);
}
.service-card--featured:hover {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3), 0 40px 100px -30px rgba(0, 212, 255, 0.45);
}
.service-card__badge {
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #00d4ff 0%, #8b5cf6 100%);
  color: #051018;
  text-transform: uppercase;
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  margin-bottom: 18px;
}
.service-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #f5f7fa;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.service-card__desc {
  color: #b9c2d3;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.service-card__list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #cbd5e1;
}
.service-card__list li {
  position: relative;
  padding-left: 22px;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
}
.service-card__price {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #f5f7fa;
  border-top: 1px solid #252e3d;
  padding-top: 16px;
}
.service-card__price span {
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
}

/* ─── STEP CARDS ─────────────────────────────────── */
.step-card {
  padding: 26px 24px;
  border: 1px solid #252e3d;
  border-radius: 16px;
  background: rgba(17, 22, 31, 0.6);
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.35);
}
.step-card__num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 36px;
  background: linear-gradient(120deg, #00d4ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
}
.step-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #f5f7fa;
  margin-bottom: 8px;
}
.step-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #b9c2d3;
}
.step-card__time {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── CASE CARDS ─────────────────────────────────── */
.case-card {
  padding: 32px 28px;
  background: linear-gradient(180deg, #11161f 0%, #0e1320 100%);
  border: 1px solid #252e3d;
  border-radius: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 30px 60px -30px rgba(0, 212, 255, 0.25);
}
.case-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 16px;
}
.case-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #f5f7fa;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.case-card__desc {
  color: #b9c2d3;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.case-card__metric {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 20px;
  margin: 4px 0 14px;
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 14px;
}
.case-card__metric-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #00d4ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  white-space: nowrap;
}
.case-card__metric-label {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.case-card__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #1a212d;
  font-size: 13.5px;
  align-items: start;
}
.case-card__row span:first-child {
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.case-card__row strong { color: #e2e8f0; font-weight: 500; }

/* ─── INDUSTRY PILLS ─────────────────────────────── */
.industry-pill {
  padding: 14px 18px;
  background: #11161f;
  border: 1px solid #252e3d;
  border-radius: 12px;
  font-size: 14.5px;
  color: #cbd5e1;
  text-align: center;
  transition: all 0.2s;
}
.industry-pill:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: #fff;
  background: rgba(0, 212, 255, 0.05);
}

/* ─── EFFECT CARDS ───────────────────────────────── */
.effect-card {
  padding: 32px 28px;
  border: 1px solid #252e3d;
  border-radius: 18px;
  background: rgba(17, 22, 31, 0.5);
}
.effect-card--accent {
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  border-color: rgba(0, 212, 255, 0.35);
}
.effect-card__metric {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #00d4ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.effect-card__metric span {
  font-size: 18px;
  background: linear-gradient(120deg, #475569, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  margin-left: 4px;
}
.effect-card__label {
  margin-top: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #f5f7fa;
}
.effect-card__note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}

/* ─── STACK ──────────────────────────────────────── */
.stack-item {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 14px;
  border: 1px solid #252e3d;
  border-radius: 999px;
  color: #cbd5e1;
  white-space: nowrap;
}

/* ─── FAQ ────────────────────────────────────────── */
.faq-item {
  border: 1px solid #252e3d;
  border-radius: 12px;
  background: #11161f;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(0, 212, 255, 0.35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #f5f7fa;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  color: #b9c2d3;
  font-size: 15px;
  line-height: 1.65;
}

/* ─── CTA / ФОРМА ────────────────────────────────── */
.cta-glow {
  position: absolute;
  inset: -100px 0;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(0, 212, 255, 0.15), transparent 60%),
    radial-gradient(50% 60% at 80% 70%, rgba(139, 92, 246, 0.18), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #11161f;
  border: 1px solid #252e3d;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: #f5f7fa;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-line:hover { border-color: rgba(0, 212, 255, 0.4); transform: translateX(2px); }
.contact-line__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
  font-size: 16px;
  flex-shrink: 0;
}

.lead-form {
  padding: 32px;
  background: linear-gradient(180deg, #11161f 0%, #0e1320 100%);
  border: 1px solid #252e3d;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.lead-form__row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  font-family: 'Manrope', sans-serif;
}
.lead-form__row label span { color: #00d4ff; }
.lead-form__row input,
.lead-form__row textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  background: #0a0e1a;
  border: 1px solid #252e3d;
  border-radius: 10px;
  color: #f5f7fa;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.lead-form__row input:focus,
.lead-form__row textarea:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.lead-form__row textarea { resize: vertical; min-height: 90px; }
.lead-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}
.lead-form__check input { margin-top: 3px; flex-shrink: 0; accent-color: #00d4ff; }
.lead-form__check a { color: #00d4ff; }
.lead-form__check a:hover { text-decoration: underline; }
.lead-form__footnote {
  font-size: 12.5px;
  color: #64748b;
  margin-top: -4px;
}
.lead-form__success {
  padding: 14px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 10px;
  color: #66e6ff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .effect-card__metric { font-size: 36px; }
  .lead-form { padding: 24px; }
  .case-card__row { grid-template-columns: 1fr; gap: 4px; }
  .case-card__row span:first-child { padding-top: 0; }
}

/* ─── ACCESSIBILITY ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── FOCUS STATES (для клавиатурной навигации) ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 3px;
  border-radius: 6px;
}
