@import url("fonts.css");
@import url("orbits.css");

:root {
  --color-ink: #0c2f4a;
  --color-brand: #3768ad;
  --color-muted: #a3abb8;
  --color-text: #575e6b;
  --color-background: #fbfcfd;
  --color-gold: #e4a222;
  font-family: "Onest", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  cursor: pointer;
}

button {
  color: inherit;
}

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

button,
a,
summary,
input,
textarea {
  &:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 5px;
  }
}

h1,
h2,
h3,
p {
  margin: 0;
}

img {
  display: block;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1752px;
  margin-inline: auto;
  padding-inline: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 25px;
  border: 1px solid var(--color-brand);
  border-radius: 50px;
  color: #fff;
  background: var(--color-brand);
  font-size: 16px;
  line-height: 1.25;
  transition: background .2s, transform .2s;

  &:hover {
    background: #28558e;
    transform: translateY(-2px);
  }

  & img {
    width: 24px;
    height: 24px;
  }
}

.button--white {
  min-width: 190px;
  min-height: 48px;
  color: var(--color-brand);
  border-color: #fff;
  background: #fff;
  font-size: 15px;
  font-weight: 600;

  &:hover {
    background: #e6ecf5;
  }
}

.button--outline {
  color: var(--color-brand);
  background: transparent;

  &:hover {
    background: #e6ecf5;
  }
}

.text-link {
  padding: 0;
  color: var(--color-brand);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  padding: 4px;
  background: transparent;

  & img {
    width: 24px;
    height: 24px;
  }
}

.socials {
  display: flex;
  align-items: center;
  gap: 30px;
}

.socials__icon,
.socials__max {
  width: 34px;
  height: 34px;
}

.socials__max {
  position: relative;
  overflow: hidden;
  border-radius: 25%;

  & img:first-child {
    width: 34px;
    height: 34px;
  }

  & img:last-child {
    position: absolute;
    width: 26px;
    height: 26px;
    top: 4px;
    left: 4px;
  }
}

/* Главная занимает весь экран; размеры композиции зависят от обеих сторон окна. */
.implementation {
  overflow-x: clip;
}

.home {
  --scene-unit: min(0.052083333vw, 0.111111111dvh);
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
}

.home-header {
  position: absolute;
  z-index: 5;
  top: calc(40 * var(--scene-unit));
  left: 5.208333%;
  display: flex;
  align-items: center;
  gap: calc(20 * var(--scene-unit));
  height: calc(36 * var(--scene-unit));
}

.home-header__tagline {
  padding-left: calc(20 * var(--scene-unit));
  border-left: 1px solid #e6ecf5;
  color: var(--color-muted);
  font-size: max(10px, calc(14 * var(--scene-unit)));
  line-height: 1.3;
}

.home-header .menu-toggle {
  flex-basis: 24px;
  padding: 0;
}

.home-header .navigation {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  display: none;
  width: 260px;
  padding: 24px;
  border: 1px solid #e6ecf5;
  border-radius: 16px;
  background: #fffffff5;
  box-shadow: 0 15px 40px #0c2f4a15;
}

.home-header .navigation--open {
  display: grid;
  gap: 20px;
}

.home-main {
  position: relative;
  height: 100%;
}

.home-intro {
  position: absolute;
  z-index: 2;
  top: calc(116 * var(--scene-unit));
  left: 5.208333%;
}

.home-intro__title {
  display: grid;
  gap: calc(20 * var(--scene-unit));
  font-size: calc(50 * var(--scene-unit));
  line-height: calc(60 * var(--scene-unit));
  font-weight: 400;

  & > span:last-child {
    color: var(--color-brand);
  }

  & strong {
    display: block;
    font-size: calc(80 * var(--scene-unit));
    line-height: calc(60 * var(--scene-unit));
    font-weight: 400;
  }
}

.home-intro__description {
  max-width: calc(357 * var(--scene-unit));
  margin-top: calc(63 * var(--scene-unit));
  color: var(--color-text);
  font-size: calc(18 * var(--scene-unit));
  line-height: 1.3;
}

.home-stats {
  display: flex;
  gap: calc(30 * var(--scene-unit));
  margin-top: calc(78 * var(--scene-unit));
}

.home-stats__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--color-muted);
  font-size: calc(16 * var(--scene-unit));
  line-height: 1.25;

  & strong {
    color: var(--color-text);
    font-size: calc(24 * var(--scene-unit));
    line-height: 1.3;
  }

  & + .home-stats__item {
    padding-left: calc(30 * var(--scene-unit));
    border-left: 1px solid #e6ecf5;
  }
}

.home-scenery {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-scenery__mountains {
  position: absolute;
  top: -9%;
  right: -2.65625%;
  width: 56.5625%;
  height: 161%;
  object-fit: cover;
}

.home-scenery__wordmark {
  position: absolute;
  z-index: 1;
  top: 5%;
  left: 73.7%;
  width: 49.22vw;
  height: 10.89vw;
  opacity: .7;
  transform: translateY(49.22vw) rotate(-90deg);
  transform-origin: top left;
}

.home-scenery__lynx {
  position: absolute;
  top: 48.1%;
  left: -12.34375%;
  width: 24.203125%;
  height: 38.78%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.home-scenery__rail {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 20.15625%;
  padding-block: calc(113 * var(--scene-unit)) calc(12 * var(--scene-unit));
  background: linear-gradient(90deg, transparent, #01090fc2);
  color: #ffffffcc;
  font-size: calc(14 * var(--scene-unit));
  text-align: right;
  line-height: 1.6;

  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ffffff20;
  }
}

.ecosystem {
  position: absolute;
  z-index: 3;
  left: 28.59375%;
  top: 48.4444%;
  width: calc(846 * var(--scene-unit));
  aspect-ratio: 1;
  transform: translateY(-50%);
  font-size: calc(24 * var(--scene-unit));
}

.ecosystem__orbit {
  position: absolute;
  pointer-events: none;
}

.ecosystem__center {
  position: absolute;
  left: 28.605%;
  top: 28.487%;
  width: 42.908%;
  aspect-ratio: 1;

  & strong {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    text-align: center;
    font-size: calc(30 * var(--scene-unit));
    font-weight: 900;
  }
}

.ecosystem__glass {
  width: 100%;
  height: 100%;
  opacity: .43;
}

.ecosystem__logo {
  position: absolute;
  left: -7%;
  top: -21%;
  width: 91.5%;
  height: 91.5%;
}

.ecosystem__service {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 30%;
  padding: 0;
  background: transparent;
  text-align: left;
  color: var(--color-brand);
  line-height: 1.25;
  transition: transform .25s;

  &:hover {
    transform: translateY(-5px);
  }
}

.ecosystem__bubble {
  position: relative;
  display: block;
  width: 43.733%;
  aspect-ratio: 1;
}

.ecosystem__bubble-glass {
  width: 100%;
  height: 100%;
}

.ecosystem__icon {
  position: absolute;
  left: 31.53%;
  top: 31.53%;
  width: 36%;
  height: 36%;
}

.ecosystem__description {
  margin-top: 1px;
  color: var(--color-muted);
  font-size: calc(16 * var(--scene-unit));
  font-weight: 300;
}

.ecosystem__service--bitrix {
  left: 31.087%;
  top: 6.62%;
}

.ecosystem__service--development {
  left: 73.995%;
  top: 18.322%;
}

.ecosystem__service--integration {
  left: 77.187%;
  top: 64.539%;
}

.ecosystem__service--automation {
  left: 1.655%;
  top: 39.362%;
}

.ecosystem__service--support {
  left: 28.723%;
  top: 77.305%;
  width: 28.133%;
  line-height: .95;

  & .ecosystem__bubble {
    width: 46.635%;
  }
}

.home-footer {
  position: absolute;
  z-index: 2;
  left: 5.208333%;
  bottom: calc(47 * var(--scene-unit));
  display: grid;
  gap: calc(50 * var(--scene-unit));
}

.home-footer__legal {
  display: flex;
  align-items: center;
  gap: calc(50 * var(--scene-unit));
  font-size: calc(12 * var(--scene-unit));
  line-height: 1.3;

  & > div {
    display: grid;
    gap: 10px;
  }

  & p {
    width: calc(340 * var(--scene-unit));
    padding-left: calc(50 * var(--scene-unit));
    border-left: 1px solid #e6ecf5;
    color: var(--color-muted);
  }
}

.home-footer .socials {
  gap: calc(30 * var(--scene-unit));
}

.home-footer .socials__icon,
.home-footer .socials__max {
  width: calc(34 * var(--scene-unit));
  height: calc(34 * var(--scene-unit));
}

/* Внутренняя страница: 1720 px полезного пространства + 16 px с каждой стороны. */
.site-header {
  position: relative;
  z-index: 10;
  background: #e6ecf5;
  border-bottom: 1px solid #dce4ef;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 112px;

  & > .menu-toggle {
    display: none;
  }
}

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

  & img {
    width: 33px;
    height: 33px;
  }
}

.brand__name {
  font-size: 30px;
  font-weight: 900;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5.2vw, 100px);
  font-size: 16px;
}

.navigation__link {
  &:hover {
    color: var(--color-brand);
  }
}

.implementation-hero {
  position: relative;
}

.implementation-hero__inner {
  position: relative;
  padding-block: 50px;
}

.implementation-hero__image {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 35.7%;
  width: 72.45%;
  height: auto;
}

.implementation-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 48.55%;

  & h1 {
    font-size: clamp(42px, 3.65vw, 70px);
    line-height: 1.14;
    letter-spacing: -.02em;
  }

  & h1 span {
    display: block;
    color: var(--color-brand);
    font-weight: 400;
  }

  & > p:not(.breadcrumb) {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.3;
  }
}

.breadcrumb {
  font-size: 12px;
  color: var(--color-muted);
}

.section {
  padding-block: 50px;

  & h2 {
    font-size: clamp(36px, 3.125vw, 60px);
    line-height: 1.28;
    font-weight: 600;
  }
}

.section__description {
  max-width: 742px;
  margin-top: 20px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.75;
}

.process {
  border-top: 1px solid #e6ecf5;

  & .process__title {
    color: #101010;
    font-size: 40px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 50px 0 0;
  list-style: none;
}

.steps__item {
  position: relative;
  min-height: 199px;
  padding: 22px 18px;
  border: 1px solid #fff;
  border-radius: 16px;
  background: #e6ecf5de;
  box-shadow: 10px 15px 0 -4px #d8e0eb, 0 25px 30px -15px #0004;

  & h3 {
    max-width: 292px;
    margin-top: 16px;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
  }

  & h3::before {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    margin-bottom: 16px;
    background: var(--color-muted);
  }
}

.steps__number {
  color: var(--color-muted);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -3px;
}

.work {
  position: relative;
  overflow: hidden;
  padding-block: 100px;
  background: #0e1921;
}

.work__inner {
  position: relative;
}

.work__art {
  position: absolute;
  left: -15.23%;
  bottom: -120px;
  width: 54%;
  height: 700px;
}

.work__lynx-back {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.work__lynx {
  position: absolute;
  left: 5.4%;
  bottom: 45px;
  width: 85%;
}

.work__content {
  position: relative;
  width: 73.43%;
  margin-left: auto;

  & h2 {
    margin-bottom: 50px;
    color: var(--color-gold);
    font-size: clamp(40px, 3.65vw, 70px);
    font-weight: 600;
    line-height: 1.28;
  }
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.work__item {
  min-height: 179px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff05;
  box-shadow: 0 25px 30px #0002;

  & span {
    color: var(--color-text);
    font-size: 60px;
    font-weight: 700;
    letter-spacing: -3px;
  }

  & h3 {
    margin-top: 16px;
    color: white;
    font-size: 18px;
    line-height: 1.28;
  }
}

.comparison {
  padding-block: 100px;
}

.comparison__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  margin-top: 50px;
}

.comparison__card {
  position: relative;
  overflow: hidden;
  min-height: 405px;
  padding: 22px 18px;
  border-radius: 20px;
  background: #fff;

  & h3 {
    position: relative;
    max-width: 520px;
    margin-bottom: 16px;
    color: var(--color-brand);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.28;
  }

  & .arrow-list {
    position: relative;
  }
}

.comparison__image {
  position: absolute;
  right: -5px;
  bottom: -19px;
  width: 502px;
  height: 283px;
  object-fit: cover;
}

.comparison__card--after .comparison__image {
  right: -39px;
  bottom: -41px;
  width: 665px;
  height: 374px;
}

.arrow-list {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 16px;
  color: var(--color-text);

  & li {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  & img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }
}

.comparison .arrow-list {
  max-width: 100%;
  min-height: 244px;

  & span {
    max-width: 80%;
  }
}

.cases__heading {
  display: flex;
  align-items: flex-start;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--color-brand);
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 2;
  white-space: nowrap;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  margin-top: 50px;
}

.case-card {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 35px -30px #3768ad4d;

  & .arrow-list {
    color: var(--color-ink);
    font-size: 20px;
  }
}

.case-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 79px;

  & h3 {
    font-size: 24px;
    font-weight: 600;
  }

  & p {
    color: var(--color-muted);
    font-size: 16px;
  }
}

.case-card__logo {
  width: min(35%, 147px);
  height: auto;
}

.pricing {
  & h2 {
    color: var(--color-gold);
  }

  & .section__description {
    margin-top: 0;
    line-height: 1.3;
  }
}

.pricing__factors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 50px 0;
  list-style: none;

  & li {
    display: grid;
    place-items: center;
    min-height: 71px;
    padding: 20px 12px;
    border-radius: 15px;
    background: #e6ecf5;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
  }
}

.pricing__note {
  margin-bottom: 50px;
  padding-left: 20px;
  border-left: 2px solid var(--color-gold);
  color: var(--color-text);
  font-size: 16px;
}

.faq {
  border-top: 1px solid #e6ecf5;

  & h2 {
    font-size: 40px;
  }
}

.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 50px;
}

.faq__item {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 18px -15px #3768ad4d;

  & summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 600;
    list-style: none;
  }

  & summary::-webkit-details-marker {
    display: none;
  }

  & p {
    max-width: 1000px;
    padding: 0 20px 24px;
    color: var(--color-text);
    line-height: 1.6;
  }

  &[open] .faq__icon {
    transform: rotate(45deg);
  }
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform .2s;
}

.final-cta {
  padding-block: 50px;
  background: var(--color-brand);
  color: #fff;
}

.final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  & h2 {
    font-size: 36px;
    font-weight: 600;
  }
}

.site-footer {
  padding-block: 50px;
  color: var(--color-muted);
  background: var(--color-ink);
}

.site-footer__top {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-bottom: 30px;
}

.site-footer__brand {
  flex: 0 0 204px;

  & a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
  }

  & p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
  }
}

.site-footer__advantages {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  padding: 20px;
  border: 1px solid #ffffff26;
  border-radius: 20px;

  & h3 {
    color: var(--color-gold);
    font-size: 24px;
    font-weight: 600;
  }

  & span {
    display: grid;
    place-content: center;
    flex: 1;
    min-height: 89px;
    padding: 15px;
    border-radius: 20px;
    background: var(--color-gold);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 50px;
  padding-block: 30px;
  border-block: 1px solid #ffffff26;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  & h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
  }
}

.site-footer__link {
  padding: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;

  &:hover {
    color: #fff;
  }
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 30px;
  font-size: 12px;

  & > span {
    margin-left: auto;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
  }
}

/* Нативный dialog удерживает фокус и поддерживает закрытие по Escape. */
dialog {
  border: 0;

  &::backdrop {
    background: #0e1921cc;
    backdrop-filter: blur(7.5px);
  }
}

body:has(dialog[open]) {
  overflow: hidden;
}

.quote {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 100px max(32px, calc((100vw - 1520px) / 2));
  color: #fff;
  background: #0e192133;

  &[open] {
    display: grid;
    align-items: center;
  }
}

.quote__close {
  position: absolute;
  top: 48px;
  right: 48px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 32px;
  line-height: 1;
}

.quote__form {
  display: grid;
  gap: 50px;
  width: 100%;

  & > .button {
    justify-self: start;
  }
}

.quote__heading {
  & h2 {
    font-size: 40px;
    font-weight: 600;
  }

  & p {
    margin-top: 20px;
    font-size: 20px;
  }
}

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

.field {
  display: grid;
  gap: 10px;
  color: var(--color-muted);
  font-size: 16px;

  & input,
  & textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 20px;
    border: 1px solid #e6ecf5;
    border-radius: 5px;
    color: var(--color-ink);
    background: #fff;
  }

  & input::placeholder,
  & textarea::placeholder {
    color: var(--color-muted);
  }

  & textarea {
    min-height: 149px;
    resize: vertical;
  }
}

.quote__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 554px;
  color: #e6ecf5;
  font-size: 12px;

  & input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-brand);
  }
}

.quote__status:empty {
  display: none;
}

.policy,
.case-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 60px 32px 32px;
  border-radius: 20px;
  color: var(--color-ink);
  background: #fff;

  & h2 {
    margin-bottom: 24px;
    font-size: 32px;
  }

  & h3,
  & p,
  & .button {
    margin-top: 20px;
  }

  & p {
    color: var(--color-text);
    line-height: 1.6;
  }

  & .quote__close {
    top: 10px;
    right: 10px;
  }
}

.cookies {
  position: fixed;
  z-index: 15;
  right: 25px;
  bottom: 21px;
  width: min(654px, calc(100% - 32px));
  padding: 20px;
  border-radius: 20px;
  background: #ffffffdd;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 28px -16px #3768ad4d;
  font-size: 16px;
  line-height: 1.3;

  & p {
    padding-right: 10px;
  }
}

.cookies__close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background: transparent;
  font-size: 24px;
}

.cookies__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;

  & .button {
    min-height: 40px;
    padding: 10px 20px;
  }
}

@media (min-width: 901px) {
  .home .cookies {
    width: calc(654 * var(--scene-unit));
    right: calc(25 * var(--scene-unit));
    bottom: calc(21 * var(--scene-unit));
    padding: calc(20 * var(--scene-unit));
    font-size: calc(16 * var(--scene-unit));

    & .cookies__actions {
      margin-top: calc(20 * var(--scene-unit));
    }

    & .button {
      min-height: 0;
      padding: calc(10 * var(--scene-unit)) calc(20 * var(--scene-unit));
      font-size: calc(16 * var(--scene-unit));
    }
  }
}

@media (max-width: 1300px) {
  .navigation {
    gap: 28px;
  }

  .work__grid {
    gap: 16px;
  }

  .work__item {
    padding: 16px;

    & h3 {
      font-size: 15px;
    }
  }

  .comparison__grid,
  .cases__grid {
    gap: 24px;
  }

  .comparison__card h3 {
    font-size: 30px;
  }

  .comparison__image {
    opacity: .45;
  }

  .pricing__factors li {
    font-size: 18px;
  }

  .site-footer__advantages {
    gap: 12px;

    & h3 {
      font-size: 20px;
    }

    & span {
      padding: 12px;
      font-size: 16px;
    }
  }

  .site-footer__columns {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 80px;
    gap: 20px;

    & > .button {
      margin-left: auto;
    }

    & > .menu-toggle {
      display: flex;
    }
  }

  .site-header .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 24px;
    background: #e6ecf5;
    box-shadow: 0 20px 30px #0c2f4a15;
  }

  .site-header .navigation--open {
    display: grid;
    gap: 24px;
  }

  .implementation {
    overflow-x: clip;
  }

  .implementation-hero__content {
    width: 60%;
  }

  .implementation-hero__image {
    top: 30px;
    left: 37%;
    width: 85%;
    opacity: .65;
  }

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

  .steps__item h3 {
    font-size: 20px;
  }

  .work {
    padding-block: 60px;
  }

  .work__content {
    width: 100%;
  }

  .work__art {
    opacity: .35;
    width: 80%;
  }

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

  .work__item span {
    font-size: 44px;
  }

  .comparison {
    padding-block: 60px;
  }

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

  .comparison__card {
    min-height: 420px;
  }

  .comparison__image {
    opacity: 1;
  }

  .comparison .arrow-list span {
    max-width: 75%;
  }

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

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

  .final-cta__inner {
    flex-direction: column;
    text-align: center;

    & h2 {
      font-size: 30px;
    }
  }

  .site-footer__top {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__brand {
    flex-basis: auto;
  }

  .site-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .site-footer__bottom {
    flex-wrap: wrap;
  }

  .quote {
    padding: 90px 32px 40px;
  }

  .quote__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .quote__form {
    gap: 32px;
  }

  .quote__close {
    top: 20px;
    right: 20px;
  }

  .home {
    --scene-unit: min(0.1vw, 0.075dvh);
    min-height: 560px;
  }

  .home-header {
    top: 20px;
    left: 24px;
    height: 32px;
    gap: 16px;
  }

  .home-header__tagline {
    padding-left: 16px;
    font-size: 10px;
  }

  .home-scenery__mountains {
    left: 0;
    right: auto;
    width: 100%;
    opacity: .5;
  }

  .home-scenery__rail,
  .home-scenery__wordmark,
  .home-scenery__lynx {
    display: none;
  }

  .home-intro {
    top: 88px;
    left: 24px;
    right: 24px;
  }

  .home-intro__title {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.05;

    & strong {
      margin-top: 5px;
      font-size: clamp(32px, 5.8vw, 54px);
      line-height: 1;
    }
  }

  .home-intro__description {
    max-width: 360px;
    margin-top: 20px;
    font-size: 13px;
  }

  .home-stats {
    gap: 20px;
    margin-top: 24px;
  }

  .home-stats__item {
    font-size: 11px;

    & strong {
      font-size: 17px;
    }

    & + .home-stats__item {
      padding-left: 20px;
    }
  }

  .ecosystem {
    --scene-unit: min(0.098vw, 0.061dvh);
    top: 61%;
    left: 50%;
    width: min(83vw, 51.6dvh);
    transform: translate(-50%, -50%);
    font-size: max(12px, calc(24 * var(--scene-unit)));
  }

  .ecosystem__description {
    font-size: max(9px, calc(16 * var(--scene-unit)));
  }

  .home-footer {
    left: 24px;
    right: 24px;
    bottom: 20px;
    gap: 16px;
  }

  .home-footer__legal {
    justify-content: space-between;
    gap: 16px;
    font-size: 9px;

    & > div {
      gap: 6px;
    }

    & p {
      width: 45%;
      padding-left: 16px;
    }
  }

  .home-footer .socials {
    gap: 18px;
  }

  .home-footer .socials__icon,
  .home-footer .socials__max {
    width: 24px;
    height: 24px;
  }

  .home-footer .socials__max {
    & img:first-child {
      width: 24px;
      height: 24px;
    }

    & img:last-child {
      width: 18px;
      height: 18px;
      top: 3px;
      left: 3px;
    }
  }

  .cookies {
    right: 16px;
    bottom: 16px;
    padding: 20px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .brand {
    gap: 6px;

    & img {
      width: 26px;
      height: 26px;
    }
  }

  .brand__name {
    font-size: 22px;
  }

  .site-header__inner {
    gap: 12px;
    min-height: 72px;

    & > .button {
      padding: 10px 14px;
      min-height: 40px;
      font-size: 12px;
    }
  }

  .implementation-hero__inner {
    padding-block: 32px 0;
  }

  .implementation-hero__content {
    width: 100%;
    gap: 24px;

    & h1 {
      font-size: clamp(34px, 8vw, 48px);
    }

    & > p:not(.breadcrumb) {
      font-size: 15px;
      line-height: 1.5;
    }
  }

  .implementation-hero__image {
    position: relative;
    z-index: 0;
    top: auto;
    left: auto;
    width: calc(100% + 32px);
    margin: 16px -16px 0;
    opacity: 1;
    order: 2;
  }

  .implementation-hero__inner {
    display: flex;
    flex-direction: column;
  }

  .section {
    padding-block: 36px;

    & h2 {
      font-size: 30px;
      line-height: 1.2;
    }
  }

  .process .process__title {
    font-size: 28px;

    & br {
      display: none;
    }
  }

  .section__description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
  }

  .steps__item {
    min-height: 180px;
    padding: 18px 14px;

    &:last-child {
      grid-column: 1 / -1;
    }

    & h3 {
      font-size: 19px;
      line-height: 1.15;
    }
  }

  .steps__number {
    font-size: 48px;
  }

  .work {
    padding-block: 40px;
  }

  .work__content h2 {
    margin-bottom: 28px;
    font-size: 34px;
    line-height: 1.15;
  }

  .work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .work__item {
    min-height: 150px;
    background: #ffffff08;

    & h3 {
      font-size: 16px;
    }
  }

  .work__art {
    left: -55%;
    bottom: -80px;
    width: 180%;
    opacity: .25;
  }

  .comparison__grid,
  .cases__grid {
    margin-top: 28px;
  }

  .comparison__card {
    min-height: 600px;
    padding: 24px 18px 220px;

    & h3 {
      font-size: 27px;
    }
  }

  .comparison .arrow-list {
    gap: 16px;
    font-size: 14px;

    & span {
      max-width: none;
    }
  }

  .comparison__image {
    width: 390px;
    height: 220px;
    right: -80px;
    bottom: 0;
  }

  .comparison__card--after .comparison__image {
    width: 450px;
    height: 252px;
    right: -115px;
    bottom: -20px;
  }

  .cases__heading {
    flex-direction: column;
    gap: 12px;
  }

  .case-card {
    & .arrow-list {
      font-size: 15px;
    }
  }

  .case-card__heading {
    & h3 {
      font-size: 22px;
    }

    & p {
      font-size: 13px;
    }
  }

  .pricing__factors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-block: 28px;

    & li {
      min-height: 75px;
      padding: 16px 12px;
      font-size: 16px;
    }

    & li:last-child {
      grid-column: 1 / -1;
    }
  }

  .pricing__note {
    margin-bottom: 28px;
    line-height: 1.5;
  }

  .faq__list {
    margin-top: 28px;
  }

  .faq__item summary {
    padding: 18px 16px;
    font-size: 17px;
    line-height: 1.4;
  }

  .final-cta {
    padding-block: 36px;
  }

  .final-cta__inner h2 {
    font-size: 28px;
  }

  .site-footer {
    padding-block: 36px;
  }

  .site-footer__advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px;

    & h3 {
      grid-column: 1 / -1;
    }
  }

  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;

    & > span {
      margin-left: 0;
    }
  }

  .quote {
    padding: 80px 20px 32px;
  }

  .quote__heading {
    & h2 {
      font-size: 30px;
      line-height: 1.2;
    }

    & p {
      font-size: 16px;
      line-height: 1.5;
    }
  }

  .quote__fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quote__form {
    gap: 28px;
  }

  .home-intro {
    top: 80px;
    left: 20px;
    right: 20px;
  }

  .home-intro__title {
    font-size: 23px;

    & strong {
      font-size: 33px;
      letter-spacing: -.03em;
    }
  }

  .home-intro__description {
    max-width: 315px;
    margin-top: 16px;
    font-size: 12px;
  }

  .home-stats {
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
  }

  .home-stats__item {
    font-size: 10px;

    & strong {
      font-size: 15px;
    }

    & + .home-stats__item {
      padding-left: 16px;
    }
  }

  .ecosystem {
    --scene-unit: min(.098vw, .059dvh);
    top: 58%;
    width: min(83vw, 50dvh);
  }

  .ecosystem__service {
    width: 36%;
    font-size: 12px;
  }

  .ecosystem__bubble {
    width: 38%;
  }

  .ecosystem__service--support {
    left: 28.723%;
    width: 34%;

    & .ecosystem__bubble {
      width: 40%;
    }
  }

  .ecosystem__service--development {
    left: 70%;
  }

  .ecosystem__service--integration {
    left: 71%;
  }

  .ecosystem__service--automation {
    left: -3%;
  }

  .ecosystem__description {
    font-size: 8px;
  }

  .home-footer {
    left: 20px;
    right: 20px;
    bottom: 16px;
    gap: 12px;
  }

  .home-footer__legal {
    gap: 10px;
    font-size: 8px;

    & p {
      width: 48%;
      padding-left: 10px;
    }
  }
}

@media (max-width: 900px) and (max-height: 700px) and (orientation: portrait) {
  .home-intro__description {
    margin-top: 12px;
  }

  .home-stats {
    margin-top: 12px;
  }

  .ecosystem {
    top: 63%;
    width: min(64vw, 36dvh);
    --scene-unit: min(.083vw, .0496dvh);
  }

  .ecosystem__description {
    display: none;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .home {
    min-height: 320px;
  }

  .home-intro {
    width: 44%;
    top: 80px;
  }

  .home-intro__title {
    display: grid;
    grid-template-columns: 1fr;
    font-size: 24px;
    gap: 12px;

    & strong {
      font-size: 34px;
    }
  }

  .home-intro__description {
    font-size: 10px;
    max-width: 250px;
    margin-top: 16px;
  }

  .home-stats {
    margin-top: 16px;
  }

  .home-stats__item {
    font-size: 8px;

    & strong {
      font-size: 13px;
    }
  }

  .ecosystem {
    top: 48%;
    left: 67%;
    width: 75dvh;
    --scene-unit: .0886dvh;
  }

  .home-footer {
    bottom: 12px;
  }

  .home-footer__legal {
    display: none;
  }
}

/* Золотой свет движется под стеклянными иконками по общей орбите. */
.ecosystem__traveler {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8df 0%, #ffdf8c 12%, #f6c65a99 30%, #e4a22240 52%, #e4a22200 72%);
  box-shadow: 0 0 32px 8px #e4a22230;
  filter: blur(5px);
  pointer-events: none;
  will-change: transform;
}

.ecosystem__service {
  z-index: 1;

  &:hover {
    transform: none;
  }

  & .ecosystem__bubble {
    transition: filter .5s ease;
  }

  & > strong {
    transition: color .5s ease;
  }

  &:focus-visible .ecosystem__bubble {
    filter: drop-shadow(0 0 12px #e4a22240);
  }
}

.ecosystem__service--highlighted {
  & .ecosystem__bubble {
    filter: drop-shadow(0 0 12px #e4a22240);
  }

  & > strong {
    color: #28558e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem__traveler {
    display: none;
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
