* {
  box-sizing: border-box;
}

:root {
  --ink: #111426;
  --muted: #6f7282;
  --line: #e8e9f0;
  --surface: #f7f7fb;
  --accent: #5735f5;
  --accent-2: #7b61ff;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(26, 22, 66, .07);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.header {
  height: 78px;
  border-bottom: 1px solid rgba(232, 233, 240, .8);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  border: 2px solid currentColor;
  border-radius: 9px;
  font-weight: 700;
  font-size: 19px;
}

.logo strong,
.logo small {
  display: block;
}

.logo strong {
  font-size: 15px;
  letter-spacing: -.02em;
}

.logo small {
  margin-top: 2px;
  color: #9a9cab;
  font-size: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.nav a,
.header__contact,
.footer a,
.footer span {
  font-size: 12px;
}

.nav a {
  color: #313344;
  transition: color .2s ease;
}

.nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.4;
  white-space: nowrap;
}

.header__contact span {
  color: #9a9cab;
  font-size: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4a25ee);
  box-shadow: 0 10px 25px rgba(87, 53, 245, .2);
}

.button--secondary {
  color: var(--ink);
  background: #fff;
  border-color: #d9dbe5;
}

.button--small {
  min-height: 40px;
  padding-inline: 18px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
}

/* Hero */
.hero {
  overflow: hidden;
  padding: 92px 0 84px;
  background:
    radial-gradient(circle at 76% 40%, rgba(112, 89, 255, .09), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(87, 53, 245, .06), transparent 22%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  min-height: 500px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 600;
}

h1 span {
  color: var(--accent);
}

.hero__text {
  max-width: 520px;
  margin: 30px 0;
  color: #646778;
  font-size: 15px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 12px;
}

.trust-row {
  display: flex;
  gap: 34px;
  margin-top: 42px;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  border: 1px solid #dcd8ff;
  border-radius: 9px;
  font-size: 15px;
}

.trust-item strong,
.trust-item small {
  display: block;
}

.trust-item strong {
  font-size: 10px;
  font-weight: 600;
}

.trust-item small {
  margin-top: 3px;
  color: #999cab;
  font-size: 9px;
}

.hero__visual {
  height: 500px;
  display: grid;
  place-items: center;
  position: relative;
}

.orb {
  width: min(390px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #e9e9f1);
  box-shadow:
    inset 0 2px 8px rgba(255,255,255,.9),
    0 35px 70px rgba(29, 27, 61, .15);
  z-index: 2;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(87, 53, 245, .12);
}

.orb::before {
  inset: -20px;
}

.orb::after {
  inset: -45px;
  border-color: rgba(87, 53, 245, .07);
}

.orb__ring {
  position: absolute;
  inset: 18%;
  border: 1px solid #d6d6df;
  border-radius: 50%;
}

.orb__letter {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: 175px;
  line-height: 1;
  color: #e9e9ee;
  text-shadow: -3px -3px 4px #fff, 7px 10px 12px rgba(0,0,0,.16);
}

.glow {
  position: absolute;
  width: 430px;
  height: 180px;
  bottom: 55px;
  border-radius: 50%;
  background: rgba(82, 52, 245, .12);
  filter: blur(55px);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading--left {
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 600;
}

.section-heading p {
  max-width: 510px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 300px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #d9d5ff;
  box-shadow: var(--shadow);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 42px;
  color: var(--accent);
  background: #f2f0ff;
  border-radius: 50%;
  font-size: 20px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.35;
}

.service-card p {
  min-height: 74px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.service-card a {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

.service-card a span {
  margin-left: 5px;
}

/* Process */
.process {
  background: #fafafe;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  border-top: 1px solid #dddafc;
}

.step > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 25px;
  color: var(--accent);
  border: 1px solid #dddafc;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
}

.step h3 {
  margin: 0 0 9px;
  font-size: 11px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.benefits li {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  color: #646778;
  font-size: 11px;
}

.benefits li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--accent);
  border: 1px solid #e1defe;
  border-radius: 8px;
}

.testimonial {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 55px;
  line-height: .7;
}

.testimonial > p {
  max-width: 470px;
  margin: 28px 0 45px;
  color: #535666;
  font-size: 13px;
  line-height: 1.75;
}

.testimonial__bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #fff;
  background: #181a2c;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}

.testimonial__bottom strong,
.testimonial__bottom small {
  display: block;
}

.testimonial__bottom strong {
  font-size: 10px;
}

.testimonial__bottom small {
  margin-top: 3px;
  color: #999cab;
  font-size: 9px;
}

.dots {
  display: flex;
  gap: 5px;
  margin-left: auto;
  margin-right: 15px;
}

.dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9d8e4;
}

.dots i:first-child {
  background: var(--accent);
}

.testimonial__bottom button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #8c8e9d;
  background: #fff;
  cursor: pointer;
}

/* Consultation */
.consultation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 30px 36px;
  margin-bottom: 80px;
  background: linear-gradient(110deg, #f4f2ff, #f8f8fc);
  border-radius: var(--radius);
}

.consultation__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--accent);
  border: 1px solid #cfc9ff;
  border-radius: 50%;
  font-size: 23px;
}

.consultation h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.consultation p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.consultation__form {
  display: flex;
  gap: 10px;
}

.consultation input {
  width: 175px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #e1e1eb;
  border-radius: 10px;
  outline: none;
  background: #fff;
  font-size: 11px;
}

.consultation input:focus {
  border-color: #bdb4ff;
}

/* Footer */
.footer {
  padding: 58px 0;
  color: #fff;
  background: #10111f;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

.logo--footer {
  color: #fff;
  min-width: 0;
}

.logo--footer .logo__mark {
  color: #7b61ff;
}

.footer h3 {
  margin: 4px 0 18px;
  font-size: 11px;
}

.footer__grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a,
.footer span {
  color: #9da0b1;
}

.footer a:hover {
  color: #fff;
}

.copyright {
  margin-top: 70px;
  color: #676a7b;
  font-size: 9px;
}

.socials {
  display: flex !important;
  flex-direction: row !important;
  gap: 7px !important;
  margin-top: 8px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #2d2f40;
  border-radius: 50%;
  color: #9da0b1;
  font-size: 8px;
}

/* Responsive */
@media (max-width: 1050px) {
  .nav { gap: 14px; }
  .header__contact { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .container { width: min(100% - 32px, 600px); }

  .header__inner { gap: 15px; }
  .logo { min-width: auto; margin-right: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav--open { display: flex; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .button--small { display: none; }

  .hero { padding: 65px 0 55px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual {
    height: 360px;
    order: -1;
  }
  .orb { width: 280px; }
  .orb__letter { font-size: 125px; }
  .hero__content { text-align: center; }
  .hero__text { margin-inline: auto; }
  .hero__actions,
  .trust-row { justify-content: center; }
  .trust-row { flex-wrap: wrap; }

  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; gap: 25px; }
  .step:not(:last-child)::after { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 45px; }
  .consultation {
    grid-template-columns: auto 1fr;
  }
  .consultation__form {
    grid-column: 1 / -1;
  }
  .consultation input { flex: 1; width: auto; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 35px; }
}

@media (max-width: 560px) {
  h1 { font-size: 48px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .trust-row { display: grid; grid-template-columns: 1fr; text-align: left; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .testimonial { padding: 28px; }
  .consultation { padding: 25px; grid-template-columns: 1fr; }
  .consultation__icon { display: none; }
  .consultation__form { display: grid; grid-template-columns: 1fr; }
  .consultation input { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .copyright { margin-top: 35px; }
}


.form-message {
  grid-column: 2 / -1;
  min-height: 16px;
  margin-top: -8px;
  font-size: 10px;
}
.form-message.is-success { color: #23905d; }
.form-message.is-error { color: #d14c5a; }

@media (max-width: 820px) {
  .form-message { grid-column: 1 / -1; }
}
