.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  padding: 0 clamp(28px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.16) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition:
    background var(--page-dur, 980ms) var(--page-ease, cubic-bezier(0.76, 0, 0.24, 1)),
    border-color 0.4s ease,
    transform 0.7s var(--page-ease, cubic-bezier(0.76, 0, 0.24, 1)),
    opacity 0.5s ease;
}

body:not(.is-page-0) .site-header {
  background: rgba(243, 248, 253, 0.82);
  border-bottom-color: rgba(180, 205, 230, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.brand picture {
  display: contents;
}

.brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.brand__logo {
  height: 40px;
  width: auto;
  max-width: min(220px, 36vw);
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 36px);
  flex: 1;
  min-width: 0;
}

.nav__link {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 2px 12px;
  white-space: nowrap;
  transition: color 0.28s ease, transform 0.28s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.nav__link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav__link.is-active {
  color: var(--accent);
  font-weight: 600;
}

.nav__link.is-active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.btn-consult {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4aa3ff 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow:
    0 10px 24px rgba(47, 123, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-consult:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(47, 123, 255, 0.4);
  filter: brightness(1.04);
}

.btn-consult:active {
  transform: translateY(0) scale(0.99);
}

.page-home {
  pointer-events: none;
}

.page-home a,
.page-home button,
.page-home .feature-card {
  pointer-events: auto;
}

.hero {
  height: 100%;
  display: flex;
  align-items: center;
  padding:
    calc(72px + clamp(24px, 4vh, 48px))
    clamp(28px, 5vw, 72px)
    clamp(72px, 10vh, 110px);
  position: relative;
}

.hero__content {
  width: min(640px, 52vw);
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.hero__title-line {
  display: block;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero__title-line--accent {
  color: var(--accent-soft);
  background: linear-gradient(90deg, #2f7bff 0%, #5eb6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: clamp(22px, 3.2vh, 34px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
  margin-bottom: clamp(22px, 3vh, 32px);
}

.feature-card {
  position: relative;
  min-height: 168px;
  padding: 18px 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.28) 100%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 12px 28px rgba(40, 90, 160, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(120, 180, 255, 0.08) 100%
  );
  pointer-events: none;
}

.feature-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  box-shadow:
    0 20px 36px rgba(40, 90, 160, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.38) 100%);
  border-color: rgba(255, 255, 255, 0.92);
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(40, 90, 160, 0.16));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .feature-card__icon {
  transform: translateY(-3px) scale(1.06);
}

.feature-card__title {
  position: relative;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.feature-card__desc {
  position: relative;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px 0 8px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 28px rgba(40, 90, 160, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.btn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(40, 90, 160, 0.2);
}

.btn-more__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #4aa3ff 0%, var(--accent) 100%);
  box-shadow: 0 6px 14px rgba(47, 123, 255, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-more:hover .btn-more__icon {
  transform: scale(1.08);
}

.hero-anim {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(8px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.page-home.is-active .hero-anim,
body.is-ready .page-home.is-active .hero-anim {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.page-home:not(.is-active) .hero-anim {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(4px);
  transition-delay: 0ms;
  transition-duration: 0.45s;
}

.page-home.is-active .feature-card {
  animation: card-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(360ms + var(--i) * 70ms);
}

.page-home:not(.is-active) .feature-card {
  animation: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.site-header {
  opacity: 0;
  transform: translate3d(0, -16px, 0);
}

body.is-ready .site-header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1100px) {
  .hero__content {
    width: min(580px, 58vw);
  }

  .feature-grid {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero__content {
    width: min(560px, 100%);
  }

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

  .feature-card {
    min-height: 148px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand__logo {
    height: 34px;
  }

  .btn-consult {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    padding: calc(64px + 20px) 16px 88px;
    align-items: flex-start;
  }

  .hero__title-line {
    font-size: 30px;
  }

  .feature-card {
    min-height: 136px;
    padding: 14px 12px;
  }
}
