/* RAISFILM — дистрибьюция нового поколения */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #1a1a2e;
  --muted: #5d5f75;
  --brand: #4f2bd5;
  --brand-dark: #3a1fa6;
  --accent: #e85d9d;
  --line: #e4e4f0;
  --ok: #1f9d5b;
  --warn: #c0392b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top dev banner */
.dev-banner {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  font-size: .85rem;
  padding: 8px 16px;
}
.dev-banner b { color: var(--accent); font-weight: 700; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
}
.logo b { color: var(--brand); }

.nav { flex: 1; display: flex; gap: 8px; flex-wrap: nowrap; }
.nav a {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(#ffffff, #f6f5fd);
  box-shadow: 0 1px 2px rgba(26,26,46,.05), inset 0 0 0 1px rgba(79,43,213,.05);
  transition: color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.nav a:hover {
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(79,43,213,.16), inset 0 0 0 1px rgba(79,43,213,.08);
  transform: translateY(-1px);
  text-decoration: none;
}
.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #4f2bd5 0%, #6c3fd9 60%, #a74fd9 130%);
  box-shadow: 0 8px 20px rgba(79,43,213,.35), inset 0 1px 0 rgba(255,255,255,.25);
}

/* Narrow screens: let menu wrap instead of overflowing */
@media (max-width: 1120px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { flex-wrap: wrap; }
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 460px at 12% -10%, rgba(79,43,213,.14), transparent 60%),
    radial-gradient(900px 460px at 105% -5%, rgba(232,93,157,.14), transparent 55%),
    linear-gradient(135deg, #ece9fb 0%, #fdf2f8 100%);
  padding: 56px 20px 64px;
  text-align: center;
  border-bottom: 1px solid rgba(79,43,213,.08);
}
.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.hero-head { max-width: 760px; margin: 0 auto 40px; }
.hero-head h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.hero-block {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(79,43,213,.10);
  border-radius: 20px;
  padding: 38px 32px;
  box-shadow: 0 20px 50px rgba(26,26,46,.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-block h1, .hero-block-title {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.hero-block .lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 26px;
}
.hero-block .sub { color: var(--muted); margin: 12px auto 26px; max-width: 460px; }
.hero-block .statement { margin: 4px auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero two columns collapse on narrow screens */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-block { padding: 30px 22px; }
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #4f2bd5 0%, #6c3fd9 60%, #a74fd9 130%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,43,213,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { background: linear-gradient(135deg, #3a1fa6 0%, #4f2bd5 60%, #7b3fe0 130%); box-shadow: 0 10px 26px rgba(79,43,213,.4), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-outline {
  border: 1.5px solid rgba(79,43,213,.5);
  color: var(--brand);
  background: rgba(255,255,255,.6);
  box-shadow: 0 4px 14px rgba(79,43,213,.08);
}
.btn-outline:hover { background: #ece9fb; border-color: var(--brand); }

/* Layout */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section.tint { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  background: linear-gradient(90deg, #4f2bd5, #a74fd9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  margin-bottom: 10px;
}
.section h2 { font-size: 1.9rem; margin: 0 0 12px; }
.section .sub { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

/* Cards / grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(26,26,46,.04), 0 8px 24px rgba(26,26,46,.04);
}
.card h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(26,26,46,.04), 0 8px 24px rgba(26,26,46,.04);
}
.step .num {
  counter-increment: step;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #4f2bd5 0%, #6c3fd9 60%, #a74fd9 130%);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(79,43,213,.28), inset 0 1px 0 rgba(255,255,255,.22);
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .94rem; }
th { background: #f2f0fb; font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Alerts */
.alert { border-radius: 12px; padding: 14px 18px; border-left: 4px solid; margin: 18px 0; }
.alert-info { background: #eeedfb; border-left-color: var(--brand); color: #2c2a55; }
.alert-ok { background: #e9f8ef; border-left-color: var(--ok); color: #12582f; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(26,26,46,.04);
}
summary { font-weight: 700; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0 36px;
  margin-top: 40px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f2bd5, #a74fd9, #e85d9d);
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.site-footer .logo { font-size: 1rem; }

/* misc */
.muted { color: var(--muted); }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.list-check li { margin-bottom: 6px; }

/* Articles / blog */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.article { max-width: 820px; }
.article h2 { margin-top: 44px; }
.article p { line-height: 1.75; }
.article ul, .article ol { line-height: 1.75; }
.faq-list details { margin-bottom: 10px; }
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(79,43,213,.14); text-decoration: none; }
.card-link .btn { margin-top: 14px; }

/* Closing CTA band (Стадия проекта) */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 48px 38px 50px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2a1668 0%, #4f2bd5 55%, #7b3fe0 100%);
  box-shadow: 0 24px 60px rgba(79,43,213,.28);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(232,93,157,.32), transparent 45%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .eyebrow {
  background: none;
  color: #cdbdf7;
  -webkit-text-fill-color: #cdbdf7;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 14px;
}
.cta-band p {
  color: rgba(255,255,255,.84);
  max-width: 660px;
  margin: 0 auto 18px;
  line-height: 1.6;
}
.cta-band .cta-note {
  color: #fff;
  font-weight: 700;
  margin: 0 auto 24px;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
}
.cta-band .btn-primary:hover {
  background: #f2effe;
  color: #3a1fa6;
  box-shadow: 0 16px 34px rgba(0,0,0,.32);
}

/* Big statement */
.statement {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  font-weight: 800;
  max-width: 760px;
  margin: 20px auto 4px;
  color: var(--brand);
}