:root {
  --bg: #07111f;
  --bg-secondary: #0b1728;
  --card: #101d31;
  --text: #f7f9fc;
  --muted: #a9b4c7;
  --blue: #2f80ff;
  --yellow: #f5c84c;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #07111f 0%, #091626 100%);
  color: var(--text);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
}

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 32px;
  font-weight: 800;
}

.logo__js {
  color: var(--yellow);
}

.logo__ts {
  color: var(--blue);
}

.nav {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding-bottom: 80px;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 255, 0.22), transparent 28%),
    radial-gradient(circle at top left, rgba(245, 200, 76, 0.12), transparent 24%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero__label {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid rgba(245, 200, 76, 0.25);
  border-radius: 999px;
  background: rgba(245, 200, 76, 0.08);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
}

.hero__title {
  max-width: 760px;
  margin: 20px 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 800;
}

.hero__text {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin-bottom: 32px;
}

.hero__badges li {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.hero__price-note {
  color: var(--muted);
  font-size: 15px;
}

.hero__price-note strong {
  color: var(--yellow);
}

.product-card,
.feature-card,
.audience-card,
.price-card,
.cta-box,
.faq__item {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.product-card {
  padding: 28px;
}

.product-card__top,
.product-card__bottom {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card__chip,
.product-card__bottom span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-card__top {
  margin-bottom: 24px;
}

.product-card__title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 800;
}

.product-card__js {
  color: var(--yellow);
}

.product-card__ts {
  color: var(--blue);
}

.product-card__subtitle {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
}

.product-card__list {
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head__label {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-head__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.section-head__text {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.features__grid,
.audience__grid,
.pricing__grid {
  display: grid;
  gap: 20px;
}

.features__grid,
.audience__grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.audience-card,
.price-card,
.cta-box {
  padding: 24px;
}

.feature-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(47, 128, 255, 0.16);
  color: var(--blue);
  font-weight: 800;
}

.feature-card__title,
.audience-card h3,
.price-card__title {
  margin: 0 0 12px;
  font-size: 22px;
}

.feature-card__text,
.audience-card p {
  margin: 0;
  color: var(--muted);
}

.pricing__grid {
  grid-template-columns: repeat(4, 1fr);
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card--accent {
  border-color: rgba(245, 200, 76, 0.38);
  background: linear-gradient(180deg, #152948 0%, #0f1c2f 100%);
}

.price-card__badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.price-card__old-price {
  margin: 0;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 15px;
}

.price-card__price {
  margin: 8px 0 18px;
  color: var(--yellow);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.price-card__list {
  flex-grow: 1;
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--muted);
}

.cta-box {
  text-align: center;
  background: linear-gradient(180deg, #13233c 0%, #0f1d31 100%);
}

.cta-box__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-box__text,
.cta-box__note {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
}

.cta-box__text {
  margin-bottom: 24px;
}

.cta-box__note {
  margin-top: 16px;
  font-size: 14px;
}

.faq__list {
  display: grid;
  gap: 16px;
}

.faq__item {
  padding: 22px 24px;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  margin: 14px 0 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
}

.btn--primary {
  background: var(--yellow);
  color: #111;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(100% - 24px, 520px);
  margin: 80px auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #0f1d31;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.modal__title {
  margin: 0 0 10px;
  font-size: 28px;
}

.modal__subtitle {
  margin: 0 0 8px;
  color: var(--muted);
}

.order-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.order-form__label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.order-form__input {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b1728;
  color: var(--text);
}

.no-scroll {
  overflow: hidden;
}

/* ===== STUDY EXAMPLES ===== */

.study-examples {
  padding: 80px 0;
  background: transparent;
}

.study-examples__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.study-examples__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.study-examples__title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.1;
  color: var(--text);
}

.study-examples__text {
  max-width: 700px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.study-examples__controls {
  display: flex;
  gap: 12px;
}

.study-examples__btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  background: #111827;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.study-examples__btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.study-examples__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.study-examples__viewport {
  overflow: hidden;
}

.study-examples__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.study-card {
  flex: 0 0 calc(33.333% - 13.33px);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.study-card__image-wrap {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.study-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.study-card__image-wrap:hover .study-card__image {
  transform: scale(1.04);
}

.study-card__content {
  padding: 20px;
}

.study-card__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  background: #f3e8ff;
}

.study-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #111827;
}

.study-card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.study-examples__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.study-examples__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.study-examples__dot.is-active {
  background: #111827;
  transform: scale(1.2);
}

.study-examples__cta {
  margin-top: 28px;
  text-align: center;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.preview-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(4px);
}

.preview-modal__dialog {
  position: relative;
  width: min(100% - 24px, 920px);
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  overflow: auto;
}

.preview-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.preview-modal__title {
  margin: 0 48px 16px 0;
  font-size: 24px;
  color: #111827;
}

.preview-modal__image-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
}

.preview-modal__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1199px) {
  .features__grid,
  .audience__grid,
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .study-card {
    flex: 0 0 calc(50% - 10px);
  }

  .study-examples__title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 28px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__text,
  .section-head__text {
    font-size: 16px;
  }

  .features__grid,
  .audience__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .product-card__title {
    font-size: 44px;
  }

  .price-card__price {
    font-size: 36px;
  }

  .modal__dialog {
    margin-top: 40px;
    padding: 22px;
  }

  .study-examples {
    padding: 64px 0;
  }

  .study-examples__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .study-card {
    flex: 0 0 100%;
  }

  .study-examples__title {
    font-size: 26px;
  }

  .preview-modal__dialog {
    padding: 16px;
  }

  .preview-modal__title {
    font-size: 20px;
  }
}