:root {
  --bg-light: #f9f5ff;
  --bg-dark: #0f172a;
  --accent: #a855f7;
  --accent-soft: #f3e8ff;
  --text-main: #1e1b4b;
  --text-muted: #6b7280;
  --white: #ffffff;
  --success: #16a34a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.18);
  --shadow-small: 0 10px 30px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 16%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* PAGE */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  position: relative;
}

/* HEADER */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #f97316, #e11d48 40%, #4c1d95 100%);
  box-shadow: var(--shadow-small);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark-inner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.15);
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* NAV */

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-small);
}

/* BURGER */

.nav-toggle {
  display: none; /* по умолчанию скрыт на десктопе */
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow-small);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* для анимации иконки при открытом меню */
.nav-toggle-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-left {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.hero-title {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 540px;
}

.hero-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.hero-list-bullet {
  margin-top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(168, 85, 247, 0.45);
}

.btn-ghost {
  background: var(--white);
  color: var(--accent);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-light {
  border-color: rgba(248, 250, 252, 0.4);
  background: transparent;
  color: #e5e7eb;
}

.btn-light:hover {
  background: rgba(15, 23, 42, 0.55);
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-note span {
  color: var(--accent);
  font-weight: 600;
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at 0 0, #f97316 0, #ec4899 28%, #4c1d95 80%);
  border-radius: 26px;
  padding: 18px 18px 16px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.hero-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-avatar-text-main {
  font-size: 14px;
  font-weight: 600;
}

.hero-avatar-text-sub {
  font-size: 11px;
  opacity: 0.88;
}

.hero-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.3);
  font-size: 11px;
}

.hero-card-body {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  backdrop-filter: blur(18px);
}

.hero-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.metric {
  font-size: 11px;
  opacity: 0.9;
}

.metric strong {
  display: block;
  font-size: 15px;
}

.hero-bottom-note {
  font-size: 10px;
  opacity: 0.8;
}

/* SECTIONS */

section {
  margin-bottom: 60px;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 24px;
}

/* CARDS / GRIDS */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-small);
}

.card-soft {
  background: #f9fafb;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
}

.list-dot {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

.list-dot li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.list-dot li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: flex-start;
}

.about-highlight {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  margin-top: 8px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  background: #f9fafb;
}

.about-quote {
  font-size: 13px;
  color: var(--text-main);
  background: #fefce8;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px dashed #eab308;
  margin-top: 10px;
}

.about-small {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* PROGRAM TIMELINE */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.week-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-small);
  border-top: 3px solid var(--accent-soft);
}

.week-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}

.week-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.week-items {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
}

.week-items li {
  margin-bottom: 4px;
}

/* WHY WORKS */

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.p-muted {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: #f9fafb;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* CASES */

.cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 12px 14px;
  box-shadow: var(--shadow-small);
  font-size: 12px;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.case-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-avatar-inner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.case-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.case-tag {
  font-size: 11px;
  color: #16a34a;
}

.case-body {
  color: var(--text-muted);
  margin: 6px 0;
}

.case-note {
  font-size: 11px;
  color: #9ca3af;
}

/* TARIFFS */

.tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tariff {
  background: var(--white);
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.tariff-popular::before {
  content: "самый популярный";
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: #22c55e;
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.tariff-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tariff-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tariff-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tariff-price span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.tariff-line {
  height: 1px;
  background: #e5e7eb;
  margin: 10px 0 12px;
}

.tariff-list {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding: 0;
}

.tariff-list li {
  margin-bottom: 5px;
  padding-left: 14px;
  position: relative;
}

.tariff-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--accent);
}

.tariff-footnote {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.tariff .btn {
  width: 100%;
  justify-content: center;
}

/* FORM */

.form-card {
  max-width: 520px;
}

.form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-small);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-row label {
  font-size: 13px;
  font-weight: 500;
}

.form-row input,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15);
  background: #fdfcff;
}

.form-note {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 8px;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}

.faq-item {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
}

.faq-q {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-a {
  font-size: 12px;
  color: var(--text-muted);
}

.faq-note {
  font-size: 12px;
  color: var(--text-muted);
  background: #fef2f2;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid #fecaca;
}

/* FINAL CTA */

.final-cta {
  background: linear-gradient(135deg, var(--bg-dark), #1e293b);
  border-radius: 26px;
  padding: 22px 18px;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.final-cta-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.final-cta-text {
  font-size: 13px;
  color: #e5e7eb;
  max-width: 520px;
}

.final-cta-note {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FOOTER */

.footer {
  margin-top: 32px;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer a {
  color: #9ca3af;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.footer-sep {
  margin: 0 6px;
}

/* RESPONSIVE */

/* планшет */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-card {
    order: -1;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about,
  .two-cols,
  .faq {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tariffs {
    grid-template-columns: 1fr;
  }
}

/* мобильный */
@media (max-width: 720px) {
  .page {
    padding-inline: 14px;
  }

  .header {
    margin-bottom: 20px;
  }

  /* показываем бургер, скрываем обычное меню */
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    margin: 0;
    padding: 10px 14px 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    display: none; /* прячем */
  }

  .nav a {
    padding: 6px 10px;
    width: 100%;
  }

  .nav.nav-open {
    display: flex; /* показываем при клике */
  }

  section {
    margin-bottom: 44px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .cases {
    grid-template-columns: 1fr 1fr;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    padding: 16px;
  }
}

/* очень маленькие экраны */
@media (max-width: 480px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* === УСИЛЕНИЕ ЧИТАЕМОСТИ И ВОРОНКИ === */

body {
  font-size: 16px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 38px);
}

.hero-subtitle,
.section-subtitle {
  font-size: 15px;
}

.hero-list li {
  font-size: 15px;
}

.card p,
.list-dot li,
.week-items li,
.tariff-list li,
.faq-a,
.p-muted,
.case-body {
  font-size: 14px;
}

.btn {
  font-size: 15px;
  padding: 13px 24px;
}

/* лёгкий «пульс» на главных CTA */
.hero .btn-primary,
.final-cta .btn-primary {
  animation: cta-pulse 2.4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%   { transform: translateY(0) scale(1); box-shadow: 0 18px 55px rgba(168, 85, 247, 0.45); }
  50%  { transform: translateY(-1px) scale(1.02); box-shadow: 0 22px 65px rgba(168, 85, 247, 0.60); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 18px 55px rgba(168, 85, 247, 0.45); }
}

/* АНИМАЦИИ ПРИ ПРОКРУТКЕ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* чуть крупнее текст на совсем маленьких экранах */
@media (max-width: 480px) {
  body {
    font-size: 17px;
  }
}
