/* Лендинг «Бесплатный аудит сайта». Все правила под .al-, чтобы не задеть остальной сайт. */

.al-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 3.5rem;
  background: var(--surface);
}

@media (min-width: 1024px) {
  .al-hero { padding: 2.5rem 0 4.5rem; }
}

.al-hero__mesh {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: 0;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(27, 111, 212, 0.28) 0%, transparent 62%),
    radial-gradient(34% 38% at 78% 12%, rgba(3, 105, 161, 0.22) 0%, transparent 64%),
    radial-gradient(42% 46% at 62% 78%, rgba(59, 130, 246, 0.18) 0%, transparent 66%);
  filter: blur(6px);
  animation: al-mesh 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes al-mesh {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.03); }
}

.al-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.al-hero .container { position: relative; z-index: 2; }

.al-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .al-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; }
}

.al-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(27, 111, 212, 0.22);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}

.al-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.al-hero__lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.al-facts { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.6rem; }

.al-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.al-facts__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

.al-facts__icon svg { width: 100%; height: 100%; }

/* Документ в hero */
.al-doc {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.al-doc__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid var(--border);
}

.al-doc__bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.al-doc__name {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.al-doc__list { padding: 0.6rem 0.9rem 0.9rem; display: flex; flex-direction: column; }

.al-doc__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.35rem;
  border-bottom: 1px dashed var(--border);
}

.al-doc__list li:last-child { border-bottom: 0; }

.al-doc__num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-light);
  width: 1.1rem;
}

.al-doc__label { font-size: 0.875rem; font-weight: 600; flex: 1; }

.al-doc__mark {
  width: 20px;
  height: 20px;
  color: var(--success);
  opacity: 0.25;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.al-doc__mark svg { width: 100%; height: 100%; }

.al-doc__mark svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.45s ease;
}

.al-doc__list li.is-done .al-doc__mark { opacity: 1; }
.al-doc__list li.is-done .al-doc__mark svg path { stroke-dashoffset: 0; }

/* Кому подходит */
.al-fit { display: grid; gap: 1rem; }

@media (min-width: 768px) { .al-fit { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.al-fit__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.al-fit__col h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  margin-bottom: 0.85rem;
}

.al-fit__col--yes { border-left: 3px solid var(--success); }
.al-fit__col--no { border-left: 3px solid #DC2626; }

.al-list { display: flex; flex-direction: column; gap: 0.55rem; }

.al-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.al-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.55;
}

.al-list--cross li::before { background: #DC2626; }

.al-micro {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 46rem;
}

/* Карточки 01–06 */
.al-cards { display: grid; gap: 1rem; }

@media (min-width: 640px) { .al-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .al-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

.al-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.al-cards .al-card[data-reveal] {
  transition-delay: var(--al-delay, 0ms);
}

.al-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(27, 111, 212, 0.12), transparent 70%);
  pointer-events: none;
}

.al-card:hover::after { opacity: 1; }

.al-card__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.7rem;
}

.al-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

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

/* ТЗ-КП */
.al-toc { display: flex; flex-direction: column; gap: 0.25rem; max-width: 52rem; }

.al-toc li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.al-toc li:last-child { border-bottom: 0; }

.al-toc__mark {
  width: 20px;
  height: 20px;
  color: var(--success);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.al-toc__mark svg { width: 100%; height: 100%; }

.al-toc__mark svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s ease;
}

.al-toc li.is-done .al-toc__mark { opacity: 1; }
.al-toc li.is-done .al-toc__mark svg path { stroke-dashoffset: 0; }

.al-toc__title { font-weight: 600; font-size: 0.9375rem; }

.al-toc__dots {
  border-bottom: 1px dotted var(--border-strong);
  min-width: 1.5rem;
  height: 0.9em;
  align-self: end;
}

.al-toc__page {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.al-toc__text {
  grid-column: 2 / -1;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Шаги */
.al-steps { position: relative; }

.al-steps__line {
  display: none;
}

@media (min-width: 768px) {
  .al-steps__line {
    display: block;
    position: absolute;
    left: 27px;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  .al-steps__line span {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-muted) 100%);
    transition: height 0.2s linear;
  }
}

.al-steps ol { display: flex; flex-direction: column; gap: 1.5rem; }

.al-step { display: flex; gap: 1rem; align-items: flex-start; }

.al-step__dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.al-step h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  margin-bottom: 0.3rem;
}

.al-step p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* Подвох */
.al-two { display: grid; gap: 2rem; }

@media (min-width: 900px) { .al-two { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } }

.al-promise {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.al-promise h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  margin-bottom: 0.85rem;
}

/* Кейс */
.al-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 52rem;
}

@media (min-width: 768px) { .al-case { padding: 2.25rem; } }

/* Форма */
.al-form-wrap { display: grid; gap: 2rem; }

@media (min-width: 1024px) {
  .al-form-wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem; align-items: start; }
}

.al-form-intro .section-desc { margin-bottom: 1.25rem; }

.al-facts--dark .al-facts__icon { color: var(--primary); }

.al-form-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

@media (min-width: 768px) { .al-form-card { padding: 2rem; } }

.al-steps-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.al-steps-bar__fill {
  display: block;
  width: 33.33%;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.al-steps-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}

.al-step-panel { border: 0; margin: 0; padding: 0; }

.al-step-panel[hidden] { display: none; }

.al-legend {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0;
}

.al-hint {
  font-size: 0.8125rem;
  color: #B91C1C;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.al-hint[hidden] { display: none; }

.al-nav-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

.al-nav-row .btn { flex: 1; justify-content: center; }

.al-legal {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

.al-radios { display: flex; flex-direction: column; gap: 0.5rem; }

@media (min-width: 520px) { .al-radios { flex-direction: row; flex-wrap: wrap; } }

.al-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.al-radio:hover { border-color: var(--primary-muted); }

.al-radio:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.al-msg {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.al-msg[hidden] { display: none; }

.al-msg--ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.al-msg--refuse { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.al-msg--err { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }

.al-msg a { text-decoration: underline; }

.al-form.is-sent .al-steps-bar,
.al-form.is-sent .al-steps-label,
.al-form.is-sent .al-step-panel { display: none; }

/* Прогресс чтения */
.al-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}

.al-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-muted) 60%, #38BDF8 100%);
  transition: width 0.1s linear;
}

/* Финальный блок */
.al-final { text-align: center; background: var(--surface); }

.al-final .section-title { margin-bottom: 1.25rem; }
.al-final .hero__actions { justify-content: center; }
.al-final .al-micro { margin-left: auto; margin-right: auto; }

/* Магнитная кнопка */
.btn[data-al-magnet] { transition: transform 0.18s ease; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .al-hero__mesh { animation: none; }
  .al-doc__mark svg path,
  .al-toc__mark svg path { transition: none; stroke-dashoffset: 0; }
  .al-cards .al-card[data-reveal] { transition-delay: 0ms; }
  .btn[data-al-magnet] { transition: none; }
}

.al-form-card.is-busy { pointer-events: none; opacity: 0.75; }
