/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #19212b;
  background: #fcfcfc;
}

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── Переменные ───────────────────────────────────────────────────────────── */
:root {
  --accent:       #0e59f1;
  --accent-hover: #0a47c8;
  --dark-bg:      #19212b;
  --dark-bg-2:    #141a22;
  --light-bg:     #fcfcfc;
  --text-light:   #fcfcfc;
  --text-dark:    #19212b;
  --text-muted:   rgba(252,252,252,0.6);
  --border-light: rgba(252,252,252,0.1);
  --radius:       20px;
}

/* ─── Утилиты ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1590px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
  background: var(--dark-bg);
  color: var(--text-light);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 32px;
}
.section-label__line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--text-light);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 784px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ─── Кнопки ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 60px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(252,252,252,0.3);
}
.btn--outline:hover { border-color: var(--text-light); }

.btn--dark {
  background: var(--dark-bg);
  color: var(--text-light);
  border: 1px solid rgba(252,252,252,0.2);
}
.btn--dark:hover { border-color: var(--text-light); }

.btn--white {
  background: var(--text-light);
  color: var(--text-dark);
}
.btn--white:hover { background: #e8e8e8; }

/* ─── HEADER ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--light-bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  height: 84px;
  gap: 32px;
}
.site-header__logo {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.site-header__nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
}
.site-header__nav a:hover { color: var(--accent); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-header__btn-login {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0 12px;
  height: 44px;
}
.site-header__btn-login:hover { color: var(--accent); }
.site-header__btn-reg {
  height: 44px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  transition: background 0.2s;
}
.site-header__btn-reg:hover { background: var(--accent-hover); }

/* Бургер */
.site-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.site-header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--light-bg);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.site-header__mobile-menu.is-open { display: flex; }
.site-header__mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}
.site-header__mobile-menu .btn { width: 100%; }

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--light-bg);
  padding: 80px 0 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 760px;
}
.hero__content { padding-bottom: 80px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,89,241,0.08);
  border: 1px solid rgba(14,89,241,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
}
.hero__badge-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.hero__badge-note {
  font-size: 14px;
  color: var(--text-dark);
  opacity: 0.7;
}

.hero__title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: 20px;
  color: var(--text-dark);
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}
.hero__illustration {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}
.hero__img {
  width: 100%;
  max-width: 635px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

/* ─── ЗАДАЧА ───────────────────────────────────────────────────────────────── */
.task__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.task__label { grid-column: 1 / -1; }
.task__title {
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.2;
}
.task__text {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 8px;
}

/* ─── ВОЗМОЖНОСТИ ──────────────────────────────────────────────────────────── */
.features__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.features__cards {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.features__card {
  background: rgba(252,252,252,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.features__card:hover { background: rgba(252,252,252,0.07); }
.features__card:first-child { padding: 48px 52px; }

.features__card-num {
  font-size: 34px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
}
.features__card-title {
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 600;
  color: var(--text-light);
}
.features__card-text {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── ЦЕНЫ ─────────────────────────────────────────────────────────────────── */
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing__card {
  background: rgba(252,252,252,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing__card--highlight {
  background: rgba(14,89,241,0.08);
  border-color: rgba(14,89,241,0.4);
}
.pricing__badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 100px;
  align-self: flex-start;
}
.pricing__plan-name {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-light);
}
.pricing__plan-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}
.pricing__price {
  font-size: 52px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1;
  margin-top: 8px;
}
.pricing__price-note {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: -8px;
}
.pricing__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
}
.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.4;
}
.pricing__feature-icon {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.pricing__cta {
  margin-top: 8px;
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
}

/* ─── ОТЗЫВЫ ───────────────────────────────────────────────────────────────── */
.reviews__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.reviews__header-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.reviews__subtitle {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}
.reviews__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.reviews__card {
  background: rgba(252,252,252,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reviews__quote-mark {
  font-size: 50px;
  font-weight: 400;
  color: var(--accent);
  line-height: 0.8;
  letter-spacing: -4px;
}
.reviews__quote {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.reviews__author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.reviews__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.reviews__author-info { display: flex; flex-direction: column; gap: 4px; }
.reviews__author-name {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-light);
  display: block;
}
.reviews__author-role {
  font-size: 16px;
  color: var(--text-muted);
  display: block;
}

/* ─── ЗАЩИТА ───────────────────────────────────────────────────────────────── */
.security__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.security__title {
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 400;
  color: var(--text-light);
}
.security__text {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */
.faq__title { text-align: center; margin-bottom: 60px; }
.faq__body {
  display: grid;
  grid-template-columns: 1fr 517px;
  gap: 40px;
  align-items: start;
}
.faq__list { display: flex; flex-direction: column; }
.faq__decor {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  opacity: 0.7;
  position: sticky;
  top: 100px;
}

.faq__item { border-bottom: 1px solid var(--border-light); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-light);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.faq__question:hover { color: rgba(252,252,252,0.85); }
.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}
.faq__icon::before { width: 2px; height: 12px; top: 4px; left: 9px; }
.faq__icon::after  { width: 12px; height: 2px; top: 9px; left: 4px; }
.faq__item.is-open .faq__icon::before { transform: rotate(90deg); opacity: 0; }

.faq__answer {
  display: none;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 20px;
}
.faq__item.is-open .faq__answer { display: block; }

/* ─── CTA ──────────────────────────────────────────────────────────────────── */
.cta__inner {
  background: rgba(252,252,252,0.04);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta__title {
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 400;
  color: var(--text-light);
  max-width: 800px;
}
.cta__subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
}
.cta__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-bg-2);
  color: var(--text-light);
  padding: 60px 0 40px;
}
.site-footer__inner { display: flex; flex-direction: column; gap: 32px; }
.site-footer__top {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer__logo {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}
.site-footer__nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.site-footer__nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.site-footer__nav a:hover { opacity: 1; }
.site-footer__socials { display: flex; gap: 20px; align-items: center; }
.site-footer__social {
  color: var(--text-light);
  opacity: 0.7;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.site-footer__social:hover { opacity: 1; }
.site-footer__reg-btn {
  background: var(--text-light);
  color: var(--text-dark);
  height: 60px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.site-footer__reg-btn:hover { background: #e8e8e8; }
.site-footer__divider { height: 1px; background: var(--border-light); }
.site-footer__bottom { display: flex; gap: 32px; flex-wrap: wrap; }
.site-footer__legal-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.site-footer__legal-link:hover { opacity: 1; }

/* ─── Адаптив ──────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .faq__body { grid-template-columns: 1fr; }
  .faq__decor { display: none; }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }

  .site-header__nav,
  .site-header__actions { display: none; }
  .site-header__burger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero__content { padding-bottom: 0; }
  .hero__illustration { display: none; }

  .task__inner { grid-template-columns: 1fr; gap: 32px; }
  .features__cards { grid-template-columns: 1fr; }
  .pricing__cards { grid-template-columns: 1fr; }
  .reviews__header { grid-template-columns: 1fr; gap: 24px; }
  .reviews__cards { grid-template-columns: 1fr; }
  .security__inner { grid-template-columns: 1fr; gap: 32px; }

  .cta__inner { padding: 48px 24px; }

  .site-footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer__nav { justify-content: flex-start; gap: 16px; }
  .site-footer__bottom { flex-direction: column; gap: 12px; }
}
