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

html,
body {
  height: 100%;
}

body {
  font-family: Montserrat, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  --figma-w: 2560;
  --arrow-left-main-h: clamp(63px, calc(108 / var(--figma-w) * 100vw), 108px);
  --arrow-left-small: clamp(12px, calc(20 / var(--figma-w) * 100vw), 20px);
  --arrow-right-main-h: clamp(57px, calc(98 / var(--figma-w) * 100vw), 98px);
  --arrow-right-small: clamp(12px, calc(20 / var(--figma-w) * 100vw), 20px);

  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #fff;
}

.bg-network-clip {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bg-network {
  position: absolute;
  left: -27.19%;
  top: -45%;
  width: 163.13%;
  height: 185%;
  pointer-events: none;
  transform-origin: 50% 48%;
  will-change: transform;
}

.bg-network img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 142%;
  top: -30%;
  max-width: none;
  object-fit: cover;
  object-position: 48% 36%;
  will-change: object-position;
}

.bg-blur {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(4px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(43, 123, 213, 0.6) 27.289%,
    rgba(0, 76, 163, 0.65) 47.243%,
    rgba(0, 76, 163, 0.82) 100%
  );
}

.floating-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.float-group {
  position: absolute;
  width: 0;
  height: 0;
  will-change: left, top;
}

.float-shape {
  position: absolute;
  will-change: transform;
}

.float-img {
  display: block;
  pointer-events: none;
}

.float-group--left:not(.float-group--trail) .float-shape {
  transform-origin: 21.8% 19.5%;
}

.float-group--left .float-img--main {
  width: calc(var(--arrow-left-main-h) * 124 / 118);
  height: var(--arrow-left-main-h);
  margin: calc(var(--arrow-left-main-h) * -0.195) 0 0 calc(var(--arrow-left-main-h) * -124 / 118 * 0.218);
}

.float-group--left.float-group--trail .float-shape {
  transform-origin: 86% 2%;
}

.float-group--left.float-group--trail .float-img--small {
  width: var(--arrow-left-small);
  height: auto;
  margin: calc(var(--arrow-left-small) * -0.02) 0 0 calc(var(--arrow-left-small) * -0.86);
}

.float-group--right:not(.float-group--trail) .float-shape {
  transform-origin: 91% 1%;
}

.float-group--right .float-img--main {
  width: calc(var(--arrow-right-main-h) * 72 / 103);
  height: var(--arrow-right-main-h);
  margin: calc(var(--arrow-right-main-h) * -0.01) 0 0 calc(var(--arrow-right-main-h) * -72 / 103 * 0.91);
}

.float-group--right.float-group--trail {
  z-index: 2;
}

.float-group--right:not(.float-group--trail) {
  z-index: 1;
}

.float-group--right.float-group--trail .float-shape {
  transform-origin: 12.5% 2%;
}

.float-group--right.float-group--trail .float-img--small {
  width: var(--arrow-right-small);
  height: auto;
  margin: calc(var(--arrow-right-small) * -0.02) 0 0 calc(var(--arrow-right-small) * -0.125);
}

.content {
  --grid-w: 1212;
  --row2-w: 946;
  --btn-gap-x: 50;
  --btn-gap-y: 37;
  --design-viewport: 1920;
  --grid-fit: min(calc(var(--grid-w) * 1px), calc(var(--grid-w) / var(--design-viewport) * 100vw));

  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: calc(var(--grid-fit) + 48px);
  padding: clamp(5rem, 11.39vh, 164px) 24px clamp(2rem, 5vh, 4rem);
  margin: 0 auto;
}

.logo-block {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2rem, 4.5vh, 4rem);
}

.logo-img {
  display: block;
  width: min(445px, calc(445 / var(--design-viewport) * 100vw));
  height: auto;
  aspect-ratio: 445 / 149;
  object-fit: contain;
}

.welcome {
  font-size: clamp(1.75rem, calc(40 / var(--design-viewport) * 100vw), 40px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: clamp(0.35rem, 0.8vh, 0.75rem);
}

.subtitle {
  font-size: clamp(1rem, calc(24 / var(--design-viewport) * 100vw), 24px);
  font-weight: 500;
  line-height: 1.4;
  color: #484848;
  text-transform: uppercase;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
}

.categories {
  --btn-scale: 0.95;
  --cats-vp: var(--design-viewport);
  --cats-grid-fit: min(
    calc(var(--grid-w) * 1px * var(--btn-scale)),
    calc(var(--grid-w) / var(--cats-vp) * 100vw * var(--btn-scale))
  );

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(
    calc(16px * var(--btn-scale)),
    calc(var(--btn-gap-y) / var(--cats-vp) * 100vw * var(--btn-scale)),
    calc(var(--btn-gap-y) * 1px * var(--btn-scale))
  );
  width: min(var(--cats-grid-fit), calc(100vw - 48px));
  margin-bottom: clamp(2.5rem, 8vh, 6rem);
}

.categories-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: calc(var(--btn-gap-x, 50) / var(--grid-w) * 100%);
  width: 100%;
}

.categories-row--bottom {
  width: calc(var(--row2-w) / var(--grid-w) * 100%);
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: clamp(
    calc(48px * var(--btn-scale, 1)),
    calc(80 / var(--cats-vp, var(--design-viewport)) * 100vw * var(--btn-scale, 1)),
    calc(80px * var(--btn-scale, 1))
  );
  padding: clamp(
      calc(8px * var(--btn-scale, 1)),
      calc(10 / var(--cats-vp, var(--design-viewport)) * 100vw * var(--btn-scale, 1)),
      calc(10px * var(--btn-scale, 1))
    )
    clamp(
      calc(20px * var(--btn-scale, 1)),
      calc(21 / var(--cats-vp, var(--design-viewport)) * 100vw * var(--btn-scale, 1)),
      calc(31px * var(--btn-scale, 1))
    );
  background: #35c2ff;
  color: #fff;
  font-size: clamp(
    calc(12px * var(--btn-scale, 1)),
    calc(20 / var(--cats-vp, var(--design-viewport)) * 100vw * var(--btn-scale, 1)),
    calc(20px * var(--btn-scale, 1))
  );
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.category-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.category-btn:active {
  transform: translateY(0);
}

@media (min-width: 641px) {
  .category-btn--w382 { flex: 0 0 calc(382 / var(--grid-w) * 100%); }
  .category-btn--w384 { flex: 0 0 calc(384 / var(--grid-w) * 100%); }
  .category-btn--w346 { flex: 0 0 calc(346 / var(--grid-w) * 100%); }
  .categories-row--bottom .category-btn--w448 {
    flex: 0 0 calc(448 / var(--row2-w) * 100%);
  }
}

.site-footer {
  width: min(100%, 808px);
  margin-top: auto;
}

.footer-company {
  font-size: clamp(1rem, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: clamp(0.875rem, 1vw, 16px);
  font-weight: 400;
  line-height: normal;
  color: #fff;
}

@media (max-width: 1100px) {
  .categories-row--bottom .category-btn {
    height: auto;
    min-height: calc(48px * var(--btn-scale));
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 640px) {
  .logo-img {
    width: min(
      calc(100vw - 48px),
      max(280px, min(445px, calc(445 / var(--design-viewport) * 100vw)))
    );
  }

  .categories-row,
  .categories-row--bottom {
    flex-direction: column;
    width: 100% !important;
    gap: 12px;
  }

  .category-btn {
    flex: none !important;
    width: 100% !important;
    height: calc(56px * var(--btn-scale, 1));
    font-size: calc(16px * var(--btn-scale, 1));
    white-space: normal;
  }

  .subtitle {
    padding: 0 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
