/* =========================================================
   RESET / BASE
========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: #0b1119;
  color: #e9e6df;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #e7d1a0; text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* =========================================================
   LAYOUT
========================================================= */

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Стабильные вертикальные отступы секций */
.section {
  margin: 48px 0;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  margin-bottom: 16px;
}

.h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}

.h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  margin-bottom: 10px;
}

.h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.muted {
  color: #b9b5aa;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(230, 190, 130, 0.10);
  border: 1px solid rgba(230, 190, 130, 0.35);
  border-radius: 12px;
  color: #e7d1a0;
  font-weight: 600;
  margin-bottom: 12px;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(11, 17, 25, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: #d8d4cc;
  font-weight: 600;
}
.nav-link:hover { color: #fff; }

/* CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================================
   BURGER MENU
========================================================= */

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #f2efe8;
  transition: .25s;
}

.nav-burger span:nth-child(1) { top: 12px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 26px; }

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background: rgba(10,15,22,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: block; }

.m-link {
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #eee;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #d7b06a;
  color: #1a1e27;
}

.btn-ghost {
  background: rgba(215,176,106,0.08);
  border: 1px solid rgba(215,176,106,0.3);
  color: #e8e5de;
}

.btn-gold {
  background: linear-gradient(180deg, #e4c27b, #cda55a);
  color: #1a1e27;
}

.btn-full { width: 100%; }

/* =========================================================
   CARDS
========================================================= */

.card {
  background: #10151f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* Все карточки одной высоты внутри grid */
.grid .card {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* =========================================================
   GRID SYSTEM
========================================================= */

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   HERO BLOCK
========================================================= */

.hero {
  padding: 32px;
  text-align: center;
}

.hero.card {
  margin-top: 32px;
}

.hero-cta {
  margin: 24px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* сетка преимуществ */
.hero-features {
  margin-top: 16px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-features li {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);

  /* компакт и одна строка */
  font-size: 15px;
  line-height: 1.2;
  min-height: 48px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   HERO SLIDER
========================================================= */

/* контейнер слайдера */
.hero-slider {
  position: relative;
  overflow: hidden;
}

/* высоту задаёт JS под активный слайд */
.hero-slides {
  position: relative;
  height: auto;
  transition: height .25s ease;
}

/* каждый слайд — поверх других */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* точки */
.hero-dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 0;
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffd275;
}

/* герой внутри слайдера */
.hero.hero-slider {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero.hero-slider .h1,
.hero.hero-slider .muted,
.hero.hero-slider .hero-cta,
.hero.hero-slider .hero-features {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   MEDIA QUERIES
========================================================= */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }

  .grid.cols-2,
  .grid.cols-3 { grid-template-columns: 1fr; }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 720px) {

  .hero.hero-slider {
    padding: 20px 18px 16px;
  }

  .hero.hero-slider .h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero.hero-slider .muted {
    font-size: 14px;
    line-height: 1.55;
    margin-top: 10px;
  }

  .hero-cta {
    margin: 16px 0 14px;
    flex-direction: column;
    gap: 10px;
  }

  .hero-features {
    margin-top: 10px;
    gap: 8px;
  }

  .hero-features li {
    padding: 10px 12px;
    font-size: 14px;
    min-height: 44px;
  }

  .hero-dots {
    margin-top: 10px;
    margin-bottom: 4px;
  }
}


/* =========================================================
   PRICING ELEMENTS
========================================================= */

.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 16px;
}

.price .strike {
  color: #9aa0aa;
  text-decoration: line-through;
}

.price .now {
  font-size: 28px;
  font-weight: 800;
  color: #e7d1a0;
}

.plan {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-list {
    padding: 0 20px 0 24px;
}

/* Кнопка тарифа всегда у нижней границы карточки */
.plan > .btn-full {
  margin-top: auto;
}

/* Нижние кнопки в блоке партнёрской программы — прижать к низу карточки */
.section-partners .card {
  display: flex;
  flex-direction: column;
}

.section-partners .card .form-row:last-child {
  margin-top: auto;
}


h3.minor {
    margin-top: 40px;
    margin-bottom: 16px;
}

/* Списки внутри карточек (партнёрская программа и т.п.) */
.card ul.list {
  margin: 0 0 18px;
  padding-left: 1.4em;  /* нормальный отступ от левого края */
}

.card ul.list li + li {
  margin-top: 6px;       /* чуть больше воздуха между пунктами */
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0a0f16;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.f-link {
  margin-top: 6px;
  color: #cfcabf;
}
.f-link:hover { color: #fff; }

/* Нижний CTA-блок на лендинге */
.section.cta {
  margin-top: 64px;      /* чуть дальше от партнёрки */
  margin-bottom: 72px;   /* больше воздуха перед футером */
  text-align: left;      /* можно оставить слева; если хочешь по центру — поставь center */
}

.section.cta .btn {
  margin-top: 18px;      /* кнопка чуть отъезжает от текста */
}

/* Красивые кнопки в партнёрских карточках */
.section .card .btn-primary {
    padding: 14px 26px !important;
    font-size: 18px;
    min-width: 180px;
}

.section .card {
    display: flex;
    flex-direction: column;
}

.section .card .form-row:last-child {
    margin-top: auto;
}

/* =========================================================
   PARTNERS PAGE
========================================================= */

/* Общий контейнер страницы партнёрки */
.partners-page {
  max-width: 960px;
  margin: 48px auto;
}

/* Отступы между карточками */
.partners-page .card + .card {
  margin-top: 24px;
}

/* Нормальные отступы у списков внутри карточек */
.partners-page .card ul,
.partners-page .card ol {
  margin-left: 1.4rem;
  padding-left: 1.4rem;
}

.partners-page .card li + li {
  margin-top: 4px;
}

/* CTA-карточка: Войти / Зарегистрироваться */
.partners-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.partners-cta-main {
  max-width: 560px;
}

.partners-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* На мобилках — в колонку */
@media (max-width: 720px) {
  .partners-page {
    margin: 32px auto;
  }

  .partners-cta {
    align-items: flex-start;
  }
}
