/* ===== Лендинг (главная для гостей) ===== */

.landing {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* --- Шапка --- */
.l-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(22, 27, 36, .85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.l-brand { display: flex; align-items: center; gap: 10px; }
.l-brand__logo { font-size: 22px; }
.l-brand__name { font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.l-nav { display: flex; gap: 20px; margin-left: 8px; }
.l-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.l-nav a:hover { color: var(--text); }
.l-topbar__actions { margin-left: auto; display: flex; gap: 8px; }

/* --- Hero --- */
.l-hero {
  padding: 72px 24px 64px;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(1100px 500px at 50% -20%, rgba(45, 108, 223, .18), transparent 70%),
    var(--bg);
}
.l-hero__inner { max-width: 780px; text-align: center; }
.l-hero__title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -.5px;
}
.l-hero__sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 620px;
}
.l-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.l-hero__cta .btn { font-size: 15px; padding: 12px 22px; }
.l-hero__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}
.l-stat { display: flex; flex-direction: column; gap: 2px; }
.l-stat b { font-size: 26px; font-weight: 800; color: var(--accent); }
.l-stat span { font-size: 13px; color: var(--muted); }

/* --- Секции --- */
.l-section { padding: 64px 24px; }
.l-section--alt { background: var(--bg-2); }
.l-section__title { text-align: center; font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.l-section__lead { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 36px; }

/* --- Шаги --- */
.l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.l-step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
}
.l-step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.l-step h3 { margin: 0 0 8px; font-size: 17px; }
.l-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* --- Модули --- */
.l-modules {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 900px; margin: 0 auto;
}
.l-module {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 14px;
}

/* --- Фичи --- */
.l-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.l-feature {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
}
.l-feature h3 { margin: 0 0 8px; font-size: 17px; }
.l-feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* --- Цена --- */
.l-price { display: flex; justify-content: center; }
.l-price__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  width: 100%; max-width: 380px;
  text-align: center;
}
.l-price__name { font-size: 16px; font-weight: 700; }
.l-price__value { color: var(--accent); font-size: 26px; font-weight: 800; margin: 6px 0 16px; }
.l-price__card ul { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.l-price__card li { color: var(--muted); font-size: 14px; padding: 6px 0 6px 22px; position: relative; }
.l-price__card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* --- FAQ --- */
.l-faq { max-width: 720px; margin: 0 auto; }
.l-faq__item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.l-faq__item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
.l-faq__item summary::-webkit-details-marker { display: none; }
.l-faq__item summary::after { content: "▾"; float: right; color: var(--muted); }
.l-faq__item[open] summary::after { content: "▴"; }
.l-faq__item p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* --- Футер --- */
.l-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.l-footer__brand { font-weight: 700; font-size: 16px; }
.l-footer__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.l-footer__links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.l-footer__links a:hover { color: var(--text); }
.l-footer__note { color: var(--muted-2); font-size: 12px; }

/* --- Адаптив --- */
@media (max-width: 780px) {
  .l-nav { display: none; }
  .l-hero__title { font-size: 30px; }
  .l-steps, .l-features { grid-template-columns: 1fr; }
  .l-hero__stats { gap: 24px; }
}

/* --- Преимущества --- */
.l-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.l-perk {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.l-perk b { display: block; font-size: 15px; margin-bottom: 8px; color: var(--text); }
.l-perk p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* --- Группы функций --- */
.l-featgroups { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.l-featgroup { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.l-featgroup__title { margin: 0 0 14px; font-size: 16px; color: var(--accent); }
.l-featgroup .l-modules { justify-content: flex-start; max-width: none; }

/* --- Способы оплаты --- */
.l-payments { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 780px; margin: 0 auto; }
.l-pay {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
}
.l-pay--empty { color: var(--muted); }

/* --- Статистика --- */
.l-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.l-bigstat { text-align: center; }
.l-bigstat b { font-size: 40px; font-weight: 800; color: var(--accent); display: block; }
.l-bigstat span { color: var(--muted); font-size: 14px; }

/* --- Отзывы --- */
.l-rev-summary { display: flex; justify-content: center; margin-bottom: 28px; }
.l-rev-avg {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px 28px;
}
.l-rev-avg__num { font-size: 44px; font-weight: 800; color: #f1c40f; line-height: 1; }
.l-rev-avg__met { display: flex; flex-direction: column; gap: 4px; }
.l-rev-avg__count { color: var(--muted); font-size: 13px; }
.l-rev-stars { color: #f1c40f; letter-spacing: 2px; font-size: 18px; }

.l-reviews { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.l-review {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px;
  transition: border-color .15s;
}
.l-review:hover { border-color: var(--border-2); }
.l-review__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.l-review__user { display: flex; flex-direction: column; gap: 3px; }
.l-review__author { color: var(--text); font-weight: 600; font-size: 15px; }
.l-review__stars { color: #f1c40f; letter-spacing: 2px; }
.l-review__date { color: var(--muted-2); font-size: 12px; flex-shrink: 0; }
.l-review__text { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.l-review__reply { margin: 12px 0 0; padding: 10px 12px; background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 6px; color: var(--muted); font-size: 14px; }
.l-rev-empty { color: var(--muted); font-size: 14px; text-align: center; display: block; }

/* --- Карусель отзывов (scroll-snap: центр крупный, края выглядывают) --- */
.l-rev-carousel { max-width: 900px; margin: 0 auto; }
.l-rev-track {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  min-height: 300px;
  /* скрываем полосу прокрутки */
  scrollbar-width: none;
}
.l-rev-track::-webkit-scrollbar { display: none; }
.l-rev-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0;
}
.l-rev-strip .l-review {
  flex: 0 0 400px;
  max-width: 400px;
  scroll-snap-align: center;
  transition: transform .4s ease, opacity .4s ease, filter .4s ease;
  opacity: 0.55;
  filter: brightness(.85);
}
/* центральный (защелкнутый) слайд крупнее и ярче */
.l-rev-strip .l-review.is-center {
  opacity: 1;
  filter: brightness(1);
  transform: scale(1.03);
}
.is-hidden { display: none; }

.l-rev-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.l-rev-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted-2); border: none; cursor: pointer; padding: 0;
  transition: background .15s, transform .15s;
}
.l-rev-dot.active { background: var(--accent); transform: scale(1.25); }

@media (max-width: 640px) {
  .l-rev-strip .l-review { flex: 0 0 78vw; max-width: 78vw; }
  .l-rev-strip { gap: 12px; }
  .l-rev-track { min-height: 320px; }
}

/* --- Пробный день --- */
.l-trial { max-width: 560px; margin: 0 auto; }
.l-trial ol { color: var(--text); font-size: 15px; line-height: 1.8; margin: 0 0 22px; padding-left: 20px; }
.l-trial__cta { text-align: center; }

/* --- CTA --- */
.l-cta {
  text-align: center; padding: 64px 24px;
  background: radial-gradient(800px 400px at 50% 0%, rgba(45, 108, 223, .15), transparent 70%);
}
.l-cta h2 { font-size: 30px; margin: 0 0 8px; }
.l-cta p { color: var(--muted); margin: 0 0 24px; }
.l-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Документные страницы (контакты/политика/соглашение) --- */
.l-doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.l-doc h1 { font-size: 30px; margin: 0 0 8px; }
.l-doc h2 { font-size: 20px; margin: 28px 0 10px; }
.l-doc p { color: var(--text); font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.l-doc ul, .l-doc ol { color: var(--text); font-size: 15px; line-height: 1.7; margin: 0 0 12px; padding-left: 20px; }
.l-doc li { margin-bottom: 6px; }
.l-doc a { color: var(--accent); text-decoration: none; }
.l-doc a:hover { text-decoration: underline; }
.l-doc__date { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.l-doc__muted { color: var(--muted); font-size: 13px; }
.l-doc__back { margin-top: 32px; }
.l-brand__name { color: var(--text); text-decoration: none; }

@media (max-width: 780px) {
  .l-perks { grid-template-columns: 1fr; }
  .l-stats { gap: 28px; }
}

