:root {
  --bg: #f7f4ff;
  --surface: #fff;
  --text: #1e1747;
  --muted: #6f6791;
  --primary: #6b3df4;
  --primary-dark: #2a1162;
  --border: #e5ddff;
  --shadow: 0 18px 45px rgba(34, 18, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section--light {
  background: #fff;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section__head--left {
  margin: 0;
  text-align: left;
}

.section__head span,
.contact-card span,
.section__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
}

.section__head h2,
.contact-card h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section__head p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards--four {
  grid-template-columns: repeat(4, 1fr);
}

.cards--three {
  grid-template-columns: repeat(3, 1fr);
}

.cards--two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.review-card,
.placeholder-card,
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card {
  min-height: 185px;
  padding: 24px;
}

.card b {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 10px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #efe8ff;
  color: var(--primary);
  font-size: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-link {
  position: relative;
  text-decoration: none;
  transition: 0.22s ease;
}

.feature-link:hover {
  transform: translateY(-4px);
  border-color: #cfc2ff;
}

.feature-link span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.placeholder-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reviews-grid {
  grid-template-columns: repeat(2, 1fr);
}

.placeholder-card {
  min-height: 220px;
  padding: 28px;
}

.placeholder-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: #efe8ff;
  color: var(--primary);
  font-size: 34px;
  font-weight: 900;
}

.placeholder-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.placeholder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.app-card {
  padding: 34px;
  background: linear-gradient(135deg, #fff, #f3efff);
}

.app-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 30px;
}

.app-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.app-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8f63ff, #6c39f1);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.review-card {
  padding: 34px;
}

.review-card p {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.45;
}

.review-card strong {
  display: block;
  margin-bottom: 6px;
}

.review-card span {
  color: var(--primary);
  font-weight: 800;
}

.review-card--empty {
  background: #fbfaff;
  border-style: dashed;
}

.stats-section {
  padding: 56px 0;
  background: linear-gradient(135deg, #2a1162, #6b3df4);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.stats-grid div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.stats-grid strong {
  display: block;
  font-size: 42px;
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  padding: 86px 0;
  background: linear-gradient(135deg, #14083a 0%, #24105f 100%);
  color: #fff;
}

.contact-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: start;
}

.contact-section__info h2 {
  margin: 14px 0 22px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
}

.contact-section__info p {
  max-width: 560px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.contact-list__item span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8f63ff, #6c39f1);
  font-size: 18px;
}

.contact-list__item strong {
  font-weight: 800;
}

.contact-form {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.contact-form label {
  display: block;
  margin-bottom: 22px;
}

.contact-form label span {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  outline: none;
  background: #fff;
  color: #1f1740;
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  min-height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #8f63ff, #6c39f1);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(108, 57, 241, 0.34);
}

.footer {
  padding: 58px 0 0;
  border-top: 1px solid #eee9ff;
  background: #fff;
  color: #23184f;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
  gap: 56px;
  align-items: start;
}

.footer__logo {
  width: 170px;
  height: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  max-width: 330px;
  margin: 0 0 22px;
  color: #6b6584;
  line-height: 1.65;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #24105f;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.footer__col h3 {
  margin: 0 0 18px;
  color: #24105f;
  font-size: 18px;
  font-weight: 900;
}

.footer__col a,
.footer__col p {
  display: block;
  margin: 0 0 13px;
  color: #6b6584;
  text-decoration: none;
  line-height: 1.45;
}

.footer__col a:hover {
  color: #6c39f1;
}

.footer__bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  padding: 20px 24px;
  border-top: 1px solid #eee9ff;
  color: #7a728f;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .cards--four,
  .cards--three,
  .split,
  .stats-grid,
  .placeholder-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .cards--four,
  .cards--three,
  .cards--two,
  .split,
  .stats-grid,
  .footer__grid,
  .placeholder-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .card {
    min-height: auto;
  }

  .review-card p {
    font-size: 20px;
  }

  .contact-section {
    padding: 64px 0;
  }

  .contact-form {
    padding: 24px;
    border-radius: 22px;
  }

  .footer__bottom {
    text-align: center;
  }
}
