*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #05060b;
  --accent: #2f8cff;
  --accent-strong: #3ea4ff;
  --text-gray: rgba(161, 161, 161, 1);
  --text-main: #ffffff;
  --text-muted: #9ba4c2;
  --border-subtle: rgba(255, 255, 255, 0.04);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.7);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Onest", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}
p,
h1,
span {
  margin: 0;
}

/* Фоновая сетка — картинка из Figma */

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  background-position: top center;
  opacity: 0.18;
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at top center,
    rgba(47, 140, 255, 0.18),
    transparent 60%
  );
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: radial-gradient(
    46.23% 77.86% at 50.03% 0%,
    #1c1c1e 0%,
    #141417 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo-img {
  height: 32px;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.18s ease-out;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

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

.header-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Burger */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #05060b;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
}

.mobile-link:hover {
  background: #0b0f16;
  color: var(--text-main);
}

/* HERO */

.hero {
  padding: 80px 0 60px;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
}

.hero-kicker {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 167px;
  line-height: 127px;
  letter-spacing: 0%;
  text-align: center;
  background: linear-gradient(
    90deg,
    #1e78ff 20.96%,
    #00b7ff 51.1%,
    #1e78ff 80.11%
  );
  background: -webkit-linear-gradient(
    90deg,
    #1e78ff 20.96%,
    #00b7ff 51.1%,
    #1e78ff 80.11%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1e78ff;
  margin: 0;
}

.hero-title {
  margin: 10px 0 0;
  font-size: clamp(56px, 9vw, 82px);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #ffffff 0%, #3ea4ff 70%, #244bff 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 22px auto 32px;
  font-size: 23px;
  line-height: 25px;

  background: radial-gradient(
      62.09% 167.05% at 65.03% 0%,
      #f8f8f8 0%,
      #9e9e9d 100%
    )
    /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;

  background: -webkit-radial-gradient(
    62.09% 167.05% at 65.03% 0%,
    #f8f8f8 0%,
    #9e9e9d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  display: flex;
  justify-content: center;
}

/* BUTTONS */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: none;
  background: radial-gradient(circle at top left, #5eb3ff, #2f7eff);
  box-shadow: 0 18px 40px rgba(0, 89, 255, 0.6);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

/* SECTIONS */

.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 32px;
  font-size: 32px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 89%;
  background: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SERVICES */

.cards-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.card {
}

.card-image {
  display: block;
  border-radius: 18px;
  margin-bottom: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* WORKFLOW */

.workflow {
  padding: 100px 0;
  position: relative;
}

.workflow .section-title {
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
}

.workflow-grid {
  display: flex;
  /* justify-content: space-between; */
  justify-content: center;
  gap: 24px;
}

.workflow-grid-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.workflow-grid-right_top {
  display: flex;
  justify-content: space-between;
}

.workflow-card {
  position: relative;
}

.workflow-card .text {
  position: absolute;
  top: 30px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.workflow-card .workflow-card-phone {
  position: absolute;
  display: flex;
  flex-direction: column;
  bottom: 94px;
  left: 48px;
}

.workflow-card .workflow-card-phone span:first-of-type {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 18px;
  background: rgba(129, 129, 129, 1);

  -webkit-background-clip: text;
  color: transparent;
}

.workflow-card .workflow-card-phone span:nth-last-child() {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  background: rgba(248, 248, 248, 1);
  -webkit-background-clip: text;
  color: transparent;
}

.workflow-card .text h1 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 35px;
  background: linear-gradient(90.01deg, #ebeaea 0.01%, #9e9e9d 28.16%);
  -webkit-background-clip: text;
  color: transparent;
}

.workflow-card .text h1 span {
  background: linear-gradient(90deg, #02b3ff 0%, #1e78ff 100%);

  -webkit-background-clip: text;
  color: transparent;
}

.workflow-card .text > span {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  background: radial-gradient(
    64.89% 112.96% at 45.92% 0%,
    #f8f8f8 0%,
    #9e9e9d 100%
  );

  -webkit-background-clip: text;
  color: transparent;
}
/* .workflow-card {
  background: #0b0f14;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

/* .workflow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 150, 255, 0.18);
} */

.workflow-img {
  display: block;
}

/* CTA */

.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.cta-inner {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.cta-title {
  margin: 0 0 32px;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 400;
}

.cta-title span {
  display: inline-block;
  color: linear-gradient(90deg, #02b2ff 0%, #1e78ff 100%);
  /* background: linear-gradient(90deg, #02b2ff 0%, #1e78ff 100%); */

  font-weight: 700;
}

.cta-btn {
  padding-inline: 48px;
  font-size: 18px;
}

/* FOOTER */

.footer {
  min-height: 359px;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(
    46.23% 77.86% at 50.03% 0%,
    #1c1c1e 0%,
    #141417 100%
  );
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mobile-footer-left,
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-img {
  height: 26px;
  align-self: flex-start;
}

.footer-copy {
  padding-top: 257px;
  margin: 0;
  font-size: 12px;
  color: rgba(143, 143, 143, 1);
}

.footer-middle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-mail {
  font-size: 14px;
  color: rgba(161, 161, 161, 1);
  text-decoration: none;
}

.footer-mail:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, #1e78ff 0%, #04b0ff 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 18px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-main);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 10px 0;
  }

  .nav {
    display: none;
  }

  .header-icons {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-title {
    font-size: clamp(42px, 10vw, 56px);
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-btn {
    width: 100%;
    max-width: 260px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
  }
}

@media (min-width: 1px) and (max-width: 719px) {
  .hero-kicker {
    font-size: 55px;
    line-height: 49px;
  }
  .hero-subtitle {
    font-size: 15px;
    line-height: 15px;
  }

  .section-title {
    font-size: 35px;
    line-height: 89%;
  }

  .cards-grid {
    flex-direction: column;
    align-items: center;
  }

  .cards-grid img:last-of-type {
    max-width: 415px;
  }

  .workflow-grid {
    flex-direction: column;
    align-items: center;
  }

  .workflow-card .text {
    max-width: 300px;
  }

  .workflow-grid-right {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .workflow-grid-right img {
    max-width: 350px;
  }

  .workflow-grid-right .workflow-grid-right_top {
    flex-direction: column-reverse;

    gap: 16px;
  }

  .workflow-grid-right .workflow-grid-right_top .workflow-img:nth-child(0) {
    width: 100%;
    max-height: 236px;
  }

  .footer {
    background: inherit;
  }

  .footer-copy {
    padding-top: 0;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
  }

  .mobile-footer-left {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  .mobile-footer-left > div:first-of-type {
    display: flex;
    flex-direction: column;
  }

  .footer-nav {
    align-items: normal;
  }
}
