:root {
  --bg: #0b0b0c;
  --card: #121214;
  --muted: #8b8b93;
  --text: #ffffff;
  --red-600: #e11d48;
  --red-700: #be123c;
  --red-800: #991b1b;
  --accent: linear-gradient(135deg, #ff1f3d 0%, #b70b2b 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(255, 45, 73, 0.25);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 64px 0;
}
.section .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
body {
  background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(8, 9, 49, 0.884) 30%,
      rgba(8, 9, 49, 0.95) 60%,
      #030314 80%,
      #030314 100%
    ),
    url(./../images/back.png) no-repeat center / cover;
  background-attachment: scroll, scroll;
  background-color: #140303;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: #3d0014;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #f8f8f8;
  opacity: 0.9;
}
.nav-links a.active,
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 10px;
  background: radial-gradient(
      1200px 500px at 20% -10%,
      rgba(255, 31, 61, 0.25),
      transparent 60%
    ),
    radial-gradient(
      1200px 500px at 80% -10%,
      rgba(183, 11, 43, 0.25),
      transparent 60%
    );
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 16px;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 28px;
}
.btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.hero-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.kpi {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}
.kpi b {
  font-size: 18px;
}
.kpi span {
  color: var(--muted);
  font-size: 13px;
}

.h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.list li {
  margin: 6px 0;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #6a0023;
  color: #bcbcc4;
}
.footer .wrap {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px 10px;
}
.footer small {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
}
/* Дополнения к styles.css (без инлайна) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card-accent {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px;
}
.card-accent .lead {
  margin: 10px 0 0;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  font-weight: 700;
  font-size: 12px;
}

.cards-row {
  margin-top: 14px;
}
.note {
  margin-top: 12px;
}
.cta-row {
  margin-top: 10px;
}
/* Дополнения к styles.css */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card-elevated {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
}
.card-elevated h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.32);
  font-weight: 600;
  font-size: 12px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.steps li {
  position: relative;
  padding-left: 36px;
  margin: 10px 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  box-shadow: var(--shadow);
}
/* Хедер в стиле превью */
.header {
  background: #33000e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Логотип-картинка */
.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

/* Бургер слева */
.burger {
  width: 44px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 160, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.burger:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Кнопки справа */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Прячем ссылки в шапке (открываются через бургер) */
.header .nav-links {
  display: none;
}
.nav-open .nav-links {
  display: flex;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(11, 11, 12, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  flex-direction: column;
  gap: 6px;
}
.nav-open .nav-links .nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
/* Золотые кнопки как на скрине */
.btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  height: 40px;
}
.btn-gold {
  background: linear-gradient(180deg, #ffe7a3 0%, #ffc857 55%, #f0a733 100%);
  color: #3b0c12;
  border: 1px solid #ffd27a;
  box-shadow: 0 6px 18px rgba(255, 186, 58, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-gold:hover {
  filter: brightness(1.05);
}

.btn-gold-outline {
  background: transparent;
  color: #ffd98e;
  border: 1px solid rgba(255, 199, 102, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-gold-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Адаптив */
@media (max-width: 420px) {
  .btn {
    padding: 8px 12px;
    height: 36px;
  }
  .logo-img {
    height: 24px;
  }
}

.nav-backdrop {
  display: none;
}

@media (max-width: 1024px) {
  .nav-open .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(11, 11, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 12px 14px;
  }
  .nav-open .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 20px;
    font-weight: 800;
  }
  .nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.5);
  }
}
.footerlogo {
  height: 50px;
}

.nav-backdrop {
  display: none;
}

@media (max-width: 1024px) {
  .header .nav-links {
    display: none;
  }

  .nav-open .nav-links {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    background: rgba(11, 11, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 14px 14px; /* место под крестик */
    z-index: 1000;
  }

  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
  }
}

@media (max-width: 624px) {
  .header-ctas {
    flex-direction: column;
  }
  .nav {
    height: 100%;
    padding: 10px;
  }
  .nav-open .nav-links {
    top: 0;
  }
  .footer .wrap {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .footer .wrap div .logo {
    display: flex;
    align-items: cen;
    justify-content: center;
  }
}
