*,
*::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: #050816;
  color: #e5e7eb;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* Кнопки */

.btn {
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  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, #6366f1, #ec4899);
  color: #fff;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.6);
}

.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.8);
}

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.9), transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Навигация */

.nav {
  display: flex;
  gap: 20px;
}

.nav__link {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
  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, #6366f1, #ec4899);
  transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Бургер */

.burger {
  display: none;
  width: 32px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background-color: #e5e7eb;
  margin: 4px 0;
}

/* Hero */

.hero {
  padding: 80px 0 70px;
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.25), transparent 55%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero__eyebrow {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 16px;
}

.hero__subtitle {
  margin: 0 0 24px;
  color: #9ca3af;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero__note {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* Статистика */

.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat {
  background: radial-gradient(circle at top left, rgba(148, 163, 255, 0.35), transparent 70%);
  border-radius: 20px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.stat__number {
  display: block;
  font-size: 28px;
  font-weight: 700;
}

.stat__label {
  font-size: 13px;
  color: #9ca3af;
}

/* Общие секции */

.section {
  padding: 60px 0;
  background-color: transparent;
}

.section--gray {
  background-color: #020617;
}

.section--dark {
  background-color: #020617;
}

.section__title {
  margin: 0 0 10px;
  font-size: 26px;
  text-align: center;
}

.section__title--light {
  color: #e5e7eb;
}

.section__subtitle {
  margin: 0 0 30px;
  text-align: center;
  color: #9ca3af;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* Карточки услуг */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: radial-gradient(circle at top, rgba(51, 65, 85, 0.8), rgba(15, 23, 42, 0.95));
  border-radius: 20px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card__title {
  margin: 0 0 10px;
  font-size: 18px;
}

.card__text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #9ca3af;
}

.card__list {
  margin: 0;
  padding-left: 18px;
  color: #e5e7eb;
  font-size: 14px;
}

/* Портфолио */

.filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter__btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #e5e7eb;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.filter__btn--active,
.filter__btn:hover {
  background: linear-gradient(to right, #6366f1, #ec4899);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project {
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.project__badge {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.project__title {
  margin: 0 0 8px;
  font-size: 17px;
}

.project__text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #cbd5f5;
}

.project__tag {
  font-size: 12px;
  color: #a5b4fc;
}

/* Процесс */

.steps {
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  margin-left: 12px;
  padding-left: 16px;
  display: grid;
  gap: 20px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.step__number {
  position: absolute;
  left: -32px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.step__text {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

/* FAQ */

.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.accordion__item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: #020617;
}

.accordion__header {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion__icon {
  margin-left: 10px;
  font-size: 18px;
  color: #a5b4fc;
}

.accordion__body {
  padding: 0 16px 12px;
  font-size: 14px;
  color: #9ca3af;
  display: none;
}

.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: 24px;
  align-items: start;
}

.contact__field {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.contact__field input,
.contact__field textarea {
  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;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.contact__note {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.contact__info {
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(55, 65, 81, 0.9), rgba(15, 23, 42, 1));
}

.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: #a5b4fc;
  text-decoration: none;
}

/* Адаптив */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@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;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    margin-left: 0;
    border-left: none;
  }

  .step__number {
    left: 0;
  }
}
