:root {
  --text-primary: #101727;
  --text-secondary: #495565;
  --accent-start: #9810fa;
  --accent-end: #f6339a;
  --blue-start: #542eea;
  --blue-end: #13efff;
  --card-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  min-height: 100vh;
}

.page {
  position: relative;
  overflow: hidden;
}

.background-wave {
  position: absolute;
  inset: 0;
  background: url("img/bg.svg") top center no-repeat;
  background-size: cover;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  padding: 64px 0 120px;
  z-index: 1;
  overflow: hidden;
}

.hero .background-wave {
  z-index: 0;
}

.hero__content,
.about {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: -150px;
}

.hero__title-block {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__logo {
  width: 112px;
  height: 112px;
}

.hero__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.hero__title span {
  color: #CD3C17;
}

.hero__description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 28px;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button__icon {
  width: 22px;
  height: 22px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.button--gradient {
  background: linear-gradient(120deg, var(--blue-start) 0%, var(--blue-end) 100%);
  color: #ffffff;
  border: none;
}

.button--dark {
  background: #101727;
  color: #ffffff;
  border: none;
}

.hero__phones {
  position: relative;
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  padding-left: 12px;
  order: -1;
  min-height: 480px;
}

.phone {
  width: 230px;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  background: #fff;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone--left {
  position: relative;
  z-index: 2;
  left: -100px;
  top: 30px;
}

.phone--right {
  position: absolute;
  top: -24px;
  left: 118px;
  transform: translateX(-10px);
  z-index: 3;
}

.about {
  top: -100px;
  margin-bottom: -150px;
}

.about__content {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--card-shadow);
}

.about__text h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}

.about__text p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 20px;
  padding: 10px 0;
}

.features {
  margin-top: 0;
  padding: 72px 0;
  position: relative;
  background: radial-gradient(80% 120% at 10% 90%, #13efff 0%, #4f38a9 100%),
    linear-gradient(150deg, #432c9e 0%, #74c2f9 100%);
  color: #ffffff;
}

.section-header h2 {
  margin: 0 0 32px;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  color: var(--text-primary);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.card__icon {
  width: 64px;
  height: 64px;
  align-self: center;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

.screenshots {
  padding: 72px 0 96px;
  background: #ffffff;
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.screenshots figure {
  margin: 0;
}

.screenshots img {
  width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.footer {
  background: linear-gradient(180deg, rgba(250, 245, 255, 1) 0%, rgba(243, 232, 255, 1) 100%);
  color: #4a2565;
  padding: 48px 0 52px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #5c2cb0;
  font-weight: 600;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.12);
}

.footer__icon {
  width: 18px;
  height: 18px;
}

.footer__copyright {
  margin: 0;
  font-weight: 600;
}

.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__email {
  color: #4a2565;
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__title-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__phones {
    padding: 0;
    order: initial;
  }

  .phone--right {
    position: relative;
    top: 0;
    left: 0;
    transform: translateY(-40px);
  }

  .phone--left {
    transform: translateX(0);
  }

  .about__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 96px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .hero__text {
    margin-top: 0;
    align-items: center;
  }

  .hero__title-block {
    align-items: center;
    justify-content: center;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__description {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__phones {
    width: 100%;
    justify-content: center;
    min-height: auto;
    gap: 16px;
  }

  .phone {
    position: relative;
    width: 46%;
    height: auto;
    aspect-ratio: 10 / 20;
    min-width: 180px;
  }

  .phone--left,
  .phone--right {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
  }

  .about__content {
    padding: 24px;
  }

  .footer__content {
    flex-direction: column;
    align-items: center;
  }

  .screenshots__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .screenshots__grid figure {
    min-width: 82%;
    scroll-snap-align: center;
  }

  .screenshots__grid::-webkit-scrollbar {
    display: none;
  }
}
