/* ═══════════════════════════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════ */
:root {
  --blue:        #E8352A;
  --blue-dark:   #c82a20;
  --blue-light:  #fff0f0;
  --violet:      #E8352A;
  --violet-light:#fff0f0;
  --green:       #10B981;
  --green-light: #ECFDF5;
  --red:         #E8352A;
  --red-light:   #fff0f0;
  --yellow:      #F59E0B;
  --yellow-light:#FFFBEB;
  --gray-50:     #F7F7F7;
  --gray-100:    #F7F7F7;
  --gray-200:    #E8E8E8;
  --gray-400:    #B1B1B1;
  --gray-500:    #666666;
  --gray-700:    #3D3D3D;
  --gray-900:    #282828;
  --text:        #282828;
  --text-light:  #666666;
  --border:      #E8E8E8;
  --radius-sm:   12px;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.12);
  --font:        'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #F7F7F7;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
input, button { font-family: inherit; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   SCREENS
═══════════════════════════════════════════════════════════ */
.screen {
  display: none;
  min-height: 100vh;
  animation: fadeIn .35s ease;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  background: #2b2b2b;
  border-bottom: none;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.lp-dark-top {
  background: #1a1a1a;
}
.lp-header {
  background: transparent;
  box-shadow: none;
  position: static;
}
.lp-header .container {
  max-width: 1060px;
  background: rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 10px 24px;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.logo-icon { font-size: 22px; }
.logo-icon-img { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.logo-text strong { color: var(--blue); }

.progress-bar-wrap {
  flex: 1;
  max-width: 220px;
  height: 6px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width .5s ease;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-ghost:hover { background: var(--blue-light); }

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.btn-full { width: 100%; justify-content: center; margin-top: 24px; }

.btn-arrow { font-size: 18px; transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-link {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--blue-dark); }

.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #229ED9;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: background .2s;
}
.btn-tg:hover { background: #1a86b8; }

.btn-cta {
  background: var(--blue);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.btn-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   HERO (Экран 1)
═══════════════════════════════════════════════════════════ */
.hero {
  background: transparent;
  padding: 60px 0 80px;
  border-bottom: none;
}
.hero .container { max-width: 1060px; }
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-title-red {
  color: #E8352A;
  display: block;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251,73,73,.15);
  color: #E8352A;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(251,73,73,.3);
}

/* Поле ввода */
.input-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: 480px;
  margin: 0 0 16px;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 0 16px;
  border: 1.5px solid rgba(255,255,255,.15);
  transition: border-color .2s;
}
.input-wrap:focus-within {
  border-color: rgba(251,73,73,.6);
  background: rgba(255,255,255,.13);
}
.input-prefix { font-size: 18px; flex-shrink: 0; }

.url-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #fff;
  background: transparent;
  padding: 14px 0;
}
.url-input::placeholder { color: rgba(255,255,255,.35); }

.input-error {
  color: #E8352A;
  font-size: 13px;
  padding: 6px 0 0;
  text-align: left;
}

/* Правая колонка hero */
.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Карточка-иллюстрация */
.hero-mockup {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  width: 300px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(2deg);
}
.hm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  position: relative;
}
.hm-ad-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #E8352A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.hm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.hm-row-icon {
  width: 36px;
  height: 36px;
  background: #fff0f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hm-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}
.hm-value {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.hm-divider {
  height: 1px;
  background: #f0f0f0;
}

/* Фичи */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-500);
}
.feature-icon { font-size: 16px; }

/* Social proof / как работает */
.social-proof {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.sp-inner { text-align: center; }
.sp-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.steps-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.step-prev {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.sp-num {
  width: 26px;
  height: 26px;
  background: #E8352A;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sp-arrow { color: var(--gray-400); font-size: 18px; }

/* ═══════════════════════════════════════════════════════════
   LOADING (Экран 2)
═══════════════════════════════════════════════════════════ */
.loading-wrap {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.loading-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--gray-200);
  border-top-color: #E8352A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  transition: color .3s;
}
.loading-url {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 28px;
  word-break: break-all;
}

.loading-steps { text-align: left; }
.ls-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-500);
  transition: color .3s;
}
.ls-step.active { color: var(--text); }
.ls-step.done { color: var(--green); }

.ls-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ls-dot--pending { background: var(--gray-200); }
.ls-dot--active {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
  animation: pulse 1s infinite;
}
.ls-dot--done { background: var(--green); }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ═══════════════════════════════════════════════════════════
   STEP WRAP (Экраны 3, 4)
═══════════════════════════════════════════════════════════ */
.step-wrap {
  padding: 48px 0 80px;
}
.step-badge {
  display: inline-block;
  background: rgba(251,73,73,.1);
  color: var(--blue);
  border: 1px solid rgba(251,73,73,.25);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.step-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step-sub {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* Карточка ниши */
.niche-detected-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-50);
  border: 2px solid rgba(251,73,73,.25);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 28px;
  max-width: 480px;
}
.niche-icon { font-size: 36px; }
.niche-label { font-size: 22px; font-weight: 700; color: var(--gray-900); }

.confirm-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Пикер ниш */
.niche-picker { margin-top: 8px; }
.picker-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Поиск по нишам */
.niche-search-wrap { margin-bottom: 16px; }
.niche-search {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.niche-search:focus { border-color: var(--blue); }

/* Категории */
.niche-cat-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.niche-cat-header:first-child { margin-top: 0; }

.niche-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.niche-grid { /* контейнер всего пикера */ }

.niche-item {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.niche-item:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.niche-item.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.niche-empty {
  color: var(--gray-400);
  font-size: 14px;
  padding: 16px 0;
  text-align: center;
}

.step-note {
  font-size: 13px;
  color: var(--yellow);
  margin-top: 16px;
}

/* Кнопка "Назад" — тихая, в стороне */
.back-wrap {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.btn-back {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}
.btn-back:hover { color: var(--gray-500); }

/* ═══════════════════════════════════════════════════════════
   РЕГИОНЫ (Экран 4)
═══════════════════════════════════════════════════════════ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.region-btn {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.region-btn:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.region-btn.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.region-btn.selected .region-coef { color: rgba(255,255,255,.7); }
.region-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.region-coef {
  font-size: 12px;
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════
   АУДИТ КАЧЕСТВА САЙТА
═══════════════════════════════════════════════════════════ */
.quality-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
}
.quality-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.quality-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}
.quality-score-badge {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.qs-max { font-size: 14px; color: var(--gray-400); font-weight: 500; }

.quality-bar-wrap { margin-bottom: 20px; }
.quality-bar-bg {
  height: 8px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.quality-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s ease;
  background: linear-gradient(90deg, var(--green), #34d399);
}
.quality-bar-fill.mid { background: linear-gradient(90deg, var(--yellow), #fcd34d); }
.quality-bar-fill.low { background: linear-gradient(90deg, var(--red), #f87171); }

.quality-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.qc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.qc-icon { font-size: 16px; flex-shrink: 0; }
.qc-label { font-weight: 600; color: var(--gray-700); flex: 1; }
.qc-detail { color: var(--gray-500); font-size: 13px; }

.quality-note {
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   РЕЗУЛЬТАТЫ (Экран 5)
═══════════════════════════════════════════════════════════ */
.results-wrap { padding: 48px 0 80px; }

.results-header {
  text-align: center;
  margin-bottom: 32px;
}
.results-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.results-sub {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Конкуренты */
.competitors-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.comp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.comp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.comp-chip {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.comp-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* Карточки прогноза */
.forecast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Первая карточка на всю ширину */
.forecast-card:first-child {
  grid-column: 1 / -1;
}

.forecast-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.forecast-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.forecast-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.fc-budget::before { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.fc-cpc::before    { background: linear-gradient(90deg, #3B82F6, #93C5FD); }
.fc-cpl::before    { background: linear-gradient(90deg, #8B5CF6, #C4B5FD); }
.fc-leads::before  { background: linear-gradient(90deg, #10B981, #6EE7B7); }
.fc-region::before { background: linear-gradient(90deg, #64748B, #CBD5E1); }

.fc-icon { line-height: 0; margin-bottom: 12px; }
.fc-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.fc-value {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.2;
}
.fc-note {
  font-size: 12px;
  color: var(--gray-400);
}

/* fc-region — горизонтальный */
.fc-region {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
}
.fc-region .fc-icon { margin-bottom: 0; }
.fc-region .fc-value { font-size: 20px; }
.fc-region .fc-info { flex: 1; }

/* Дисклеймер */
.forecast-disclaimer {
  background: var(--yellow-light);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: #92400E;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.disc-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* CTA блок */
.cta-block {
  background: #282828;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: #fff;
}
.cta-title {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-sub {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.cta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.cta-input {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  color: var(--text);
  background: rgba(255,255,255,.95);
  outline: none;
  transition: box-shadow .2s;
}
.cta-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.cta-or {
  font-size: 13px;
  opacity: .6;
  margin-bottom: 12px;
}
.cta-success {
  font-size: 15px;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-top: 12px;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   АНИМАЦИИ ПОЯВЛЕНИЯ КАРТОЧЕК
═══════════════════════════════════════════════════════════ */
.forecast-card, .competitors-block {
  animation: slideUp .4s ease both;
}
.forecast-card:nth-child(1) { animation-delay: .05s; }
.forecast-card:nth-child(2) { animation-delay: .1s; }
.forecast-card:nth-child(3) { animation-delay: .15s; }
.forecast-card:nth-child(4) { animation-delay: .2s; }
.forecast-card:nth-child(5) { animation-delay: .25s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero { padding: 40px 0 36px; }

  .input-row { flex-direction: column; padding: 8px; gap: 8px; }
  .input-card { padding: 12px; }
  .btn-large { width: 100%; justify-content: center; }

  .confirm-btns { flex-direction: column; }
  .confirm-btns .btn { width: 100%; justify-content: center; }

  .region-grid { grid-template-columns: 1fr; }

  .forecast-grid { grid-template-columns: 1fr; }
  .forecast-card:first-child { grid-column: auto; }

  .cta-block { padding: 28px 20px; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-input { max-width: 100%; }

  .comp-list { flex-direction: column; }

  .steps-preview { flex-direction: column; align-items: flex-start; }
  .sp-arrow { transform: rotate(90deg); align-self: center; }
}

@media (max-width: 400px) {
  .niche-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ — навбар
═══════════════════════════════════════════════════════════ */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-logo-pill .logo-text { color: #fff; }
.lp-nav-links {
  display: flex;
  gap: 24px;
}
.lp-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: color .2s;
  white-space: nowrap;
}
.lp-nav-links a:hover { color: #fff; }
.lp-nav-cta {
  padding: 8px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ — hero
═══════════════════════════════════════════════════════════ */
.hero-title-accent {
  color: #E8352A;
  display: block;
}
.hero-trust {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin-top: 12px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ — секции
═══════════════════════════════════════════════════════════ */
.lp-section {
  padding: 80px 0;
  background: #fff;
}
.lp-section-gray {
  background: #F7F7F7;
}
.lp-section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #E8352A;
  margin-bottom: 12px;
}
.lp-section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #282828;
  margin-bottom: 48px;
  line-height: 1.3;
}
.lp-title-center {
  text-align: center;
}
.title-accent {
  color: #E8352A;
}

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ — карточки
═══════════════════════════════════════════════════════════ */
.lp-cards-grid {
  display: grid;
  gap: 20px;
}
.lp-cards-4 { grid-template-columns: repeat(4, 1fr); }
.lp-cards-3 { grid-template-columns: repeat(3, 1fr); }
.lp-cards-2 { grid-template-columns: repeat(2, 1fr); }

.lp-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #E8E8E8;
  transition: box-shadow .2s, transform .2s;
}
.lp-section-gray .lp-card { background: #fff; }
.lp-section .lp-card { background: #F7F7F7; border-color: transparent; }

.lp-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.lp-card-icon {
  margin-bottom: 16px;
  display: block;
  line-height: 0;
}
.lp-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #282828;
  margin-bottom: 8px;
  line-height: 1.3;
}
.lp-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* Пронумерованные карточки */
.lp-card-numbered {
  background: #F7F7F7;
  border-color: transparent;
}
.lp-section-gray .lp-card-numbered {
  background: #fff;
  border-color: transparent;
}
.lp-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #E8352A;
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Карточки доверия */
.lp-card-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-card-trust .lp-card-icon { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ — FAQ
═══════════════════════════════════════════════════════════ */
.lp-faq {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 720px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #282828;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: #E8352A;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #666666;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ — нижний CTA
═══════════════════════════════════════════════════════════ */
/* CTA-форма перед FAQ */
.lp-cta-form-section {
  background: #fff;
  text-align: center;
}
.lp-cta-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.lp-cta-form-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.2;
}
.lp-cta-form-sub {
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
}
.lp-cta-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-cta-field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: #F3F3F3;
  font-family: var(--font);
  font-size: 15px;
  color: #282828;
  outline: none;
  transition: box-shadow .2s;
}
.lp-cta-field:focus { box-shadow: 0 0 0 3px rgba(251,73,73,.25); }
.lp-cta-phone-wrap {
  position: relative;
}
.lp-cta-phone-wrap .lp-cta-field {
  padding-right: 40px;
}
.lp-cta-phone-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  pointer-events: none;
}
.lp-cta-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  text-align: left;
}
.lp-cta-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #E8352A;
  cursor: pointer;
}
.lp-cta-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  background: #E8352A;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.lp-cta-submit:hover { background: #e03030; }
.lp-cta-submit:active { transform: scale(.98); }
.lp-cta-no-spam {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}
.lp-cta-success {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  background: #f3f3f3;
  border-radius: 12px;
  padding: 12px 24px;
  display: inline-block;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ — футер
═══════════════════════════════════════════════════════════ */
.lp-footer {
  background: #1a1a1a;
  padding: 40px 0 32px;
}
.lp-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lp-footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-footer-logo .logo-text {
  color: #fff;
}
.lp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.lp-footer-links a:hover { color: #fff; }
.lp-footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.lp-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  transition: background .2s;
  text-decoration: none;
}
.lp-footer-social:hover { background: rgba(255,255,255,.22); }
.lp-footer-bottom {
  padding-top: 24px;
  text-align: center;
}
.lp-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   АДАПТИВ ЛЕНДИНГА
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .lp-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .lp-nav-links { display: none; }
  .hero-inner { flex-direction: column; gap: 40px; }
  .hero-right { display: none; }
  .hero-left { max-width: 100%; }
  .input-card { max-width: 100%; }
}
@media (max-width: 640px) {
  .lp-section { padding: 56px 0; }
  .lp-cards-4, .lp-cards-3, .lp-cards-2 { grid-template-columns: 1fr; }
  .lp-cta-form-title { font-size: 24px; }
  .lp-footer-top { flex-direction: column; align-items: center; text-align: center; }
  .lp-footer-left { align-items: center; }
  .lp-footer-links { align-items: center; }
  .lp-nav-cta { display: none; }
  .input-row { flex-direction: column; }
  .input-wrap { border-radius: 12px; }
}
