:root {
  --home-ink: #171b28;
  --home-muted: #596175;
  --home-soft: #f4f7fb;
  --home-line: #dfe6f1;
  --home-blue: #3f5ed7;
  --home-blue-dark: #293f9f;
  --home-teal: #0f766e;
  --home-amber: #a15c07;
  --home-rose: #9f1239;
  --home-surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#services,
#cases,
#consultation {
  scroll-margin-top: 96px;
}

body.home-company {
  margin: 0;
  color: var(--home-ink);
  background: #ffffff;
  font-family: var(--he-font-family, FuturaPT, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  font-size: 17px;
  line-height: 1.55;
}

body.home-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.home-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 241, 0.9);
  backdrop-filter: blur(14px);
}

.home-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-logo {
  display: grid;
  align-content: center;
  width: 166px;
  flex: 0 0 auto;
  text-decoration: none;
}

.home-logo > span {
  display: block;
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
  color: var(--home-ink);
}

.home-logo > span span,
.home-footer__logo span {
  color: #7b75f0;
}

.home-logo small {
  display: block;
  margin-top: 5px;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  font-size: 15px;
  color: #2d3548;
}

.home-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.home-nav a:hover {
  color: var(--home-blue);
}

.home-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.home-header__login {
  text-decoration: none;
  color: var(--home-muted);
  font-size: 15px;
}

.home-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--home-line);
  background: #ffffff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.home-menu span {
  width: 20px;
  height: 2px;
  background: var(--home-ink);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--home-blue);
  border-radius: 999px;
  background: var(--home-blue);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-btn:hover {
  background: var(--home-blue-dark);
  border-color: var(--home-blue-dark);
  transform: translateY(-1px);
}

.home-btn--secondary {
  background: #ffffff;
  color: var(--home-ink);
  border-color: var(--home-line);
}

.home-btn--secondary:hover {
  color: #ffffff;
  border-color: var(--home-blue-dark);
}

.home-btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.home-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 44%, rgba(255,255,255,0.58) 72%, rgba(255,255,255,0.88) 100%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 94, 215, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding: 72px 0 76px;
  max-width: 1180px;
}

.home-eyebrow {
  margin: 0 0 14px;
  color: var(--home-blue);
  font-size: 14px;
  font-weight: 700;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 700;
}

.home-hero__lead {
  max-width: 690px;
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.42;
  color: #263044;
}

.home-hero__note {
  max-width: 690px;
  margin: 0 0 32px;
  color: var(--home-muted);
}

.home-actions,
.home-small__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.home-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.home-dashboard {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(190, 201, 220, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(40, 51, 78, 0.14);
}

.home-dashboard--main {
  right: max(20px, calc((100vw - 1180px) / 2));
  top: 118px;
  width: 430px;
  padding: 20px;
}

.home-dashboard--side {
  right: max(30px, calc((100vw - 1060px) / 2));
  bottom: 72px;
  width: 320px;
  padding: 18px;
}

.home-dashboard__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--home-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.home-dashboard__top strong,
.home-dashboard--side strong {
  color: var(--home-ink);
}

.home-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.home-dashboard__grid div {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.home-dashboard span {
  display: block;
  color: var(--home-muted);
  font-size: 13px;
}

.home-dashboard strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}

.home-dashboard--side p {
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 14px;
}

.home-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  height: 130px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f7fb, #ffffff);
  border: 1px solid var(--home-line);
}

.home-bars i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: var(--home-teal);
}

.home-section {
  padding: 88px 0;
}

.home-section--quiet,
.home-section--services {
  background: var(--home-soft);
}

.home-section--stats {
  padding: 0;
  margin-top: -26px;
  position: relative;
  z-index: 3;
}

.home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 2fr;
  gap: 10px;
}

.home-stat {
  min-height: 120px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(27, 34, 51, 0.08);
}

.home-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.05;
}

.home-stat span {
  color: var(--home-muted);
  font-size: 15px;
}

.home-section__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.home-section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-section__head h2,
.home-position h2,
.home-approach h2,
.home-small h2,
.home-contact h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.13;
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.home-about__text p,
.home-position__body p,
.home-approach__main p,
.home-small p,
.home-contact p {
  margin: 0 0 18px;
  color: #333c51;
}

.home-founders {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.home-founder {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 138px;
  padding: 24px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
}

.home-founder img {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(27, 34, 51, 0.14);
}

.home-founder strong {
  display: block;
  font-size: 20px;
}

.home-founder span {
  color: var(--home-muted);
}

.home-position {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.home-use {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.home-use__list,
.home-use__note,
.home-service,
.home-case,
.home-contact__panel {
  background: #ffffff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
}

.home-use__list {
  padding: 30px;
}

.home-use__list p {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
}

.home-use__list ul {
  margin: 0;
  padding-left: 22px;
}

.home-use__list li {
  margin-bottom: 10px;
}

.home-use__note {
  padding: 30px;
  border-top: 5px solid var(--home-amber);
}

.home-use__note strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.home-use__note p {
  margin: 0 0 16px;
  color: #333c51;
}

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

.home-service {
  padding: 26px;
}

.home-service--large {
  grid-column: span 2;
  grid-row: span 2;
  border-top: 5px solid var(--home-blue);
}

.home-service span,
.home-case span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--home-blue);
  font-weight: 700;
}

.home-service h3,
.home-case h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.18;
}

.home-service p,
.home-case p {
  margin: 0 0 14px;
  color: #3a4357;
}

.home-section--approach {
  color: #ffffff;
  background: #181d2a;
}

.home-section--approach .home-eyebrow {
  color: #94d5cf;
}

.home-approach {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.home-approach__main p {
  color: #d7deeb;
}

.home-approach__steps {
  display: grid;
  gap: 12px;
}

.home-approach__steps div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.home-approach__steps strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #11201f;
  background: #94d5cf;
}

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

.home-case {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.home-case:nth-child(2) span {
  color: var(--home-teal);
}

.home-case:nth-child(3) span {
  color: var(--home-amber);
}

.home-case:nth-child(4) span {
  color: var(--home-rose);
}

.home-case a {
  margin-top: auto;
  color: var(--home-blue);
  font-weight: 700;
  text-decoration: none;
}

.home-case a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-section__action {
  margin-top: 26px;
  text-align: center;
}

.home-section--small {
  background: #f9f5ee;
}

.home-small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
}

.home-small__actions {
  align-content: center;
}

.home-section--contact {
  background: #ffffff;
}

.home-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.home-contact__panel {
  padding: 30px;
  border-top: 5px solid var(--home-teal);
  box-shadow: 0 12px 38px rgba(27, 34, 51, 0.08);
}

.home-contact__panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.home-footer {
  padding: 56px 0 28px;
  color: #d8dfeb;
  background: #121722;
}

.home-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.home-footer__logo {
  display: inline-block;
  color: #ffffff;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

.home-footer p {
  margin: 18px 0 0;
  color: #aeb8ca;
}

.home-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-footer a {
  color: #d8dfeb;
  text-decoration: none;
}

.home-footer a:hover {
  color: #ffffff;
}

.home-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #9da8bb;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .home-nav {
    gap: 16px;
    font-size: 14px;
  }

  .home-hero h1 {
    font-size: 48px;
  }

  .home-dashboard--main {
    width: 360px;
    opacity: 0.62;
  }

  .home-dashboard--side {
    opacity: 0.7;
  }

  .home-stats,
  .home-services,
  .home-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stat--wide,
  .home-service--large {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .home-container {
    width: min(100% - 28px, 720px);
  }

  .home-header__inner {
    min-height: 70px;
  }

  .home-logo {
    width: 142px;
  }

  .home-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(27, 34, 51, 0.14);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .home-nav.is-open {
    display: flex;
  }

  .home-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--home-line);
  }

  .home-nav a:last-child {
    border-bottom: 0;
  }

  .home-header__actions {
    margin-left: auto;
  }

  .home-header__actions .home-btn {
    display: none;
  }

  .home-menu {
    display: inline-flex;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero__content {
    padding: 54px 0 58px;
  }

  .home-hero h1,
  .home-section__head h2,
  .home-position h2,
  .home-approach h2,
  .home-small h2,
  .home-contact h2 {
    font-size: 34px;
  }

  .home-hero__lead {
    font-size: 19px;
  }

  .home-dashboard--main,
  .home-dashboard--side {
    display: none;
  }

  .home-stats,
  .home-about,
  .home-position,
  .home-use,
  .home-approach,
  .home-small,
  .home-contact,
  .home-footer__grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 64px 0;
  }

  .home-section--stats {
    padding: 0;
  }

  .home-founders {
    grid-template-columns: 1fr;
  }

  .home-small,
  .home-contact {
    gap: 24px;
  }

  .home-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body.home-company {
    font-size: 16px;
  }

  .home-header__login {
    display: none;
  }

  .home-hero__content {
    padding: 42px 0 48px;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: 32px;
  }

  .home-hero__lead {
    font-size: 18px;
  }

  .home-dashboard--main {
    display: none;
  }

  .home-actions,
  .home-small__actions {
    align-items: stretch;
  }

  .home-btn {
    width: 100%;
    white-space: normal;
    min-height: 48px;
  }

  .home-stats,
  .home-services,
  .home-cases {
    grid-template-columns: 1fr;
  }

  .home-stat--wide,
  .home-service--large {
    grid-column: auto;
  }

  .home-stat,
  .home-use__list,
  .home-use__note,
  .home-service,
  .home-case,
  .home-contact__panel {
    padding: 22px;
  }

  .home-section__head h2,
  .home-position h2,
  .home-approach h2,
  .home-small h2,
  .home-contact h2 {
    font-size: 29px;
  }

  .home-case {
    min-height: auto;
  }
}
