/* ===== Центр гражданских инициатив — кастомные стили ===== */
:root {
  --navy: #1A2744;
  --navy-2: #253558;
  --teal: #0891B2;
  --teal-light: #22D3EE;
  --bg-light: #F8FAFC;
  --bg-gray: #F0F4F8;
  --text-muted: #64748B;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0F172A;
  background: #fff;
  border-top: 4px solid var(--teal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Градиенты ===== */
.bg-navy-gradient {
  background: linear-gradient(135deg, #1A2744 0%, #253558 100%);
}

.bg-navy-gradient-radial::before,
.bg-navy-gradient-radial::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.bg-navy-gradient-radial::before {
  width: 500px;
  height: 500px;
  background: rgba(8, 145, 178, 0.25);
  top: -150px;
  right: -120px;
}
.bg-navy-gradient-radial::after {
  width: 400px;
  height: 400px;
  background: rgba(34, 211, 238, 0.15);
  bottom: -100px;
  left: -80px;
}

/* ===== Hero animations (чистый CSS, без IntersectionObserver) ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}
.hero-anim {
  opacity: 0;
  animation: fadeInUp 0.7s ease-out forwards;
}
.hero-anim-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
}
.d-0 { animation-delay: 0ms; }
.d-200 { animation-delay: 200ms; }
.d-400 { animation-delay: 400ms; }
.d-500 { animation-delay: 500ms; }
.d-600 { animation-delay: 600ms; }
.d-800 { animation-delay: 800ms; }

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal-delay="200"] { transition-delay: .2s; }
[data-reveal-delay="300"] { transition-delay: .3s; }
[data-reveal-delay="400"] { transition-delay: .4s; }
[data-reveal-delay="500"] { transition-delay: .5s; }

/* ===== Мокап ноутбука ===== */
.mockup-laptop {
  position: relative;
  background: #0f172a;
  border-radius: 14px 14px 6px 6px;
  padding: 14px 14px 18px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.mockup-laptop::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -10px;
  height: 12px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 30px -10px rgba(0,0,0,.3);
}
.mockup-laptop img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* ===== Мокап телефона ===== */
.mockup-phone {
  position: relative;
  background: #0f172a;
  border: 10px solid #0f172a;
  border-radius: 36px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
  width: 220px;
}
.mockup-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #334155;
  border-radius: 4px;
  z-index: 2;
}
.mockup-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ===== Мокап браузера ===== */
.mockup-browser {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .25), 0 0 0 1px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}
.mockup-browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CBD5E1;
}
.mockup-browser-bar span:nth-child(1) { background: #EF4444; }
.mockup-browser-bar span:nth-child(2) { background: #F59E0B; }
.mockup-browser-bar span:nth-child(3) { background: #10B981; }
.mockup-browser-bar .url {
  margin-left: 12px;
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #64748B;
}
.mockup-browser img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Карточка проблемы ===== */
.problem-card {
  position: relative;
  border-left: 4px solid #EF4444;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -10px rgba(15, 23, 42, .15);
}

/* ===== Карточка возможностей ===== */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -12px rgba(15, 23, 42, .2);
}

/* ===== Таймлайн ===== */
.timeline {
  position: relative;
}
@media (min-width: 768px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--teal) 10%, var(--teal) 90%, transparent);
  }
}
.timeline-step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 64px;
}
.timeline-step:last-child { margin-bottom: 0; }
.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, .15);
}

@media (min-width: 768px) {
  .timeline::after {
    content: none;
  }
  .timeline-step {
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .timeline-step .t-card { grid-column: 1; }
  .timeline-step .t-visual { grid-column: 2; }
  .timeline-step.rev .t-card { grid-column: 2; grid-row: 1; text-align: left; }
  .timeline-step.rev .t-visual { grid-column: 1; grid-row: 1; }
  .timeline-number {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  .t-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    text-align: right;
    margin-right: 40px;
  }
  .timeline-step.rev .t-card {
    margin-right: 0;
    margin-left: 40px;
    text-align: left;
  }
  .t-visual {
    display: flex;
    justify-content: flex-start;
    padding-left: 40px;
  }
  .timeline-step.rev .t-visual {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 40px;
  }
}
@media (max-width: 767px) {
  .t-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  }
  .t-visual { margin-top: 16px; }
}

/* ===== Кампания: карточка сценария ===== */
.scenario-card {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--teal);
  padding: 22px 24px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.scenario-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

/* ===== Бейдж для тарифа "Популярно" ===== */
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Tabs кнопки ===== */
.tab-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #475569;
  background: transparent;
  border: 1px solid #E2E8F0;
  transition: all .2s;
  cursor: pointer;
}
.tab-btn:hover { background: #F1F5F9; }
.tab-btn.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Поле ввода в CTA */
.cta-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.cta-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta-input:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.12);
}

/* Section heading underline */
.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 16px auto 0;
}
.section-heading.left::after { margin-left: 0; }

/* Плавный переход для nav */
.nav-wrap { transition: background .3s, backdrop-filter .3s, box-shadow .3s; }

/* Мобильное меню */
@media (max-width: 767px) {
  .nav-links { display: none; }
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}
