*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #020617;
  color: #e5e7eb;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* Кнопки */

.btn {
  border-radius: 999px;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: linear-gradient(to right, #22c55e, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.5);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.7);
}

.btn--ghost {
  background-color: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn--ghost:hover {
  background-color: rgba(15, 23, 42, 0.9);
}

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Навигация */

.nav {
  display: flex;
  gap: 18px;
}

.nav__link {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #0ea5e9);
  transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Бургер */

.burger {
  display: none;
  width: 30px;
  height: 22px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background-color: #e5e7eb;
  margin: 3px 0;
}

/* HERO */

.hero {
  padding: 80px 0 70px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.35), transparent 55%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #bbf7d0;
  margin-bottom: 10px;
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 40px);
}

.hero__subtitle {
  margin: 0 0 16px;
  color: #9ca3af;
  max-width: 430px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.hero__note {
  font-size: 13px;
  color: #bbf7d0;
}

/* Hero side */

.hero__side {
  position: relative;
}

.hero__stat {
  position: absolute;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.hero__stat--top {
  top: -10px;
  left: 16px;
}

.hero__stat--middle {
  top: 40px;
  right: -4px;
}

.hero__stat--bottom {
  bottom: -10px;
  left: 30px;
}

.hero__stat-number {
  font-weight: 700;
  margin-right: 6px;
}

.hero__stat-label {
  color: #9ca3af;
}

/* Макет приложения */

.hero__mockup {
  margin-top: 26px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.5), rgba(15, 23, 42, 1));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.mockup__top {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background-color: rgba(15, 23, 42, 0.95);
}

.mockup__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: #64748b;
}

.mockup__body {
  padding: 12px 14px 14px;
  font-size: 13px;
}

.mockup__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mockup__row--header {
  font-weight: 600;
  border-bottom-color: rgba(148, 163, 184, 0.5);
}

.mockup__row--footer {
  border-bottom: none;
  margin-top: 6px;
}

.mockup__badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.mockup__tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.mockup__tag--green {
  border-color: #22c55e;
  color: #bbf7d0;
}

.mockup__tag--yellow {
  border-color: #eab308;
  color: #facc15;
}

/* Общие секции */

.section {
  padding: 60px 0;
}

.section--gray {
  background-color: #020617;
}

.section--dark {
  background-color: #020617;
}

.section__title {
  margin: 0 0 12px;
  font-size: 24px;
  text-align: center;
}

.section__title--light {
  color: #e5e7eb;
}

.section__subtitle {
  margin: 0 0 30px;
  text-align: center;
  color: #9ca3af;
}

.section__subtitle--light {
  color: #9ca3af;
}

/* Карточки возможностей */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top, rgba(51, 65, 85, 0.9), rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.card__title {
  margin: 0 0 10px;
  font-size: 17px;
}

.card__text {
  margin: 0;
  font-size: 14px;
  color: #d1d5db;
}

/* Табы сценариев */

.tabs {
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.7), rgba(15, 23, 42, 1));
  border: 1px solid rgba(129, 140, 248, 0.6);
}

.tabs__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs__btn {
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.7);
  background-color: transparent;
  color: #e5e7eb;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tabs__btn--active,
.tabs__btn:hover {
  background: linear-gradient(to right, #22c55e, #0ea5e9);
  border-color: transparent;
}

.tabs__body {
  font-size: 14px;
}

.tabs__pane {
  display: none;
}

.tabs__pane--active {
  display: block;
}

.tabs__pane h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.tabs__pane ul {
  margin: 0;
  padding-left: 18px;
}

/* Тарифы */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background-color: #020617;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin: 0 auto 24px;
}

.billing-toggle__label {
  font-size: 13px;
  cursor: pointer;
  color: #9ca3af;
}

.billing-toggle__label--active {
  color: #e5e7eb;
}

.billing-toggle__badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background-color: rgba(22, 163, 74, 0.2);
  color: #bbf7d0;
}

.billing-toggle__switch {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background-color: #020617;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 2px;
  position: relative;
}

.billing-toggle__thumb {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #0ea5e9);
  left: 3px;
  top: 2px;
  transition: transform 0.18s ease;
}

.billing-toggle--yearly .billing-toggle__thumb {
  transform: translateX(14px);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background-color: #020617;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan--highlight {
  background: radial-gradient(circle at top, rgba(45, 212, 191, 0.4), rgba(15, 23, 42, 1));
  border-color: rgba(34, 197, 94, 0.7);
}

.plan__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bbf7d0;
  margin-bottom: 6px;
}

.plan__name {
  margin: 0 0 4px;
  font-size: 18px;
}

.plan__desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: #9ca3af;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 10px;
}

.plan__value {
  font-size: 24px;
  font-weight: 700;
}

.plan__currency,
.plan__period {
  font-size: 14px;
}

.plan__list {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 14px;
  color: #d1d5db;
}

/* FAQ */

.accordion {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.accordion__item {
  border-radius: 14px;
  background-color: #020617;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.accordion__header {
  width: 100%;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion__icon {
  font-size: 18px;
  color: #22c55e;
  margin-left: 12px;
}

.accordion__body {
  display: none;
  padding: 0 14px 12px;
  font-size: 14px;
  color: #9ca3af;
}

.accordion__item--open .accordion__body {
  display: block;
}

.accordion__item--open .accordion__icon {
  transform: rotate(45deg);
}

/* Контакты */

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  align-items: flex-start;
}

.contact__field {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.contact__field input,
.contact__field textarea,
.contact__field select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background-color: #020617;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 14px;
}

.contact__field input:focus,
.contact__field textarea:focus,
.contact__field select:focus {
  outline: none;
  border-color: #0ea5e9;
}

.contact__note {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.contact__info {
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: radial-gradient(circle at top, rgba(51, 65, 85, 0.9), rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.contact__info h3 {
  margin-top: 0;
}

/* Футер */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 1);
  background-color: #020617;
  padding: 16px 0;
  font-size: 13px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__link {
  color: #0ea5e9;
  text-decoration: none;
}

/* Адаптив */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background-color: #020617;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 60px;
  }

  .cards,
  .pricing {
    grid-template-columns: 1fr;
  }
}
