/* Figma TOP node 1:2 alignment layer. Keep this file small and loaded after style.css. */
.l-header__inner {
  padding-inline: 0;
}

.p-fv__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.p-fv__overlay {
  --fv-overlay-center-x: min(78vw, calc(50% + 520px));
  top: 50%;
  left: var(--fv-overlay-center-x);
  width: clamp(754px, 55vw, 1200px);
  height: 200%;
}

.p-fv__inner {
  position: absolute;
  inset: 0;
  max-width: none;
  height: 649px;
  padding-inline: 0;
  display: block;
}

.p-fv {
  height: 656px;
}

.p-fv__slider {
  inset: 0 0 auto;
  height: 100%;
  overflow: hidden;
}

.p-fv__slide,
.p-fv__slide.is-active {
  transform: none;
}

.p-fv__panel {
  position: absolute;
  top: 50%;
  left: min(78vw, calc(50% + 520px));
  transform: translate(-50%, -50%);
}

.p-fv__counter {
  display: none;
}

.p-fv__nav-shape {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 177px;
  height: 45px;
  max-width: none;
  pointer-events: none;
}

.p-fv__pagination {
  left: 51px;
  bottom: 20px;
  gap: 12px;
}

.p-fv__dot {
  background-color: #d9d9d9;
  border: 0;
}

.p-fv__dot.is-active {
  background-color: #2c6d8f;
  transform: none;
}

.p-about {
  padding: 85px 0;
}

.p-about__inner {
  gap: 55px;
}

.p-about__body {
  padding-top: 139px;
}

.p-about__text {
  margin-bottom: 39px;
}

.p-blog {
  padding: 73px 0 112px;
}

.p-blog__list {
  column-gap: 16px;
}

.p-blog__body {
  padding-top: 23px;
}

.p-blog__foot {
  margin-top: 47px;
}

.p-news {
  padding: 86px 0 141px;
}

.p-news__card {
  border-radius: 10px;
  padding: 75px 98px 72px;
  box-shadow: none;
}

.p-news__link {
  min-height: 82px;
  padding: 13px 8px;
}

.p-news__foot {
  margin-top: 48px;
}

.p-service {
  padding: 125px 0 0;
}

.p-service__media {
  border-radius: 5px;
}

.p-service__title {
  font-size: 32px;
  margin-bottom: 25px;
}

.p-strength {
  padding: 105px 0 122px;
}

.p-strength__heading {
  margin-bottom: 39px;
}

.p-strength__card {
  border-radius: 20px;
  padding: 24px 30px 28px;
}

.p-strength__text {
  line-height: 1.7;
}

.p-strength__foot {
  display: flex;
  justify-content: center;
  margin-top: 47px;
}
.p-works {
  padding: 0 0 40px;
}

.p-works__foot {
  margin-top: 47px;
}

@media (max-width: 1319.98px) {
  .l-header__inner {
    padding-inline: 20px;
  }
}

@media (max-width: 1023.98px) {
  .p-about__body {
    padding-top: 48px;
  }
}

@media (max-width: 767.98px) {
  .l-header {
    z-index: 1000;
  }

  .p-header__toggle {
    z-index: 1002;
  }

  .p-header__list {
    top: 64px;
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 1001;
    width: 0;
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    padding-inline: 0;
    background: #fff;
    backdrop-filter: none;
    clip-path: inset(0 0 0 100%);
    pointer-events: none;
    transform: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    overscroll-behavior: contain;
  }

  .p-header__nav.is-open .p-header__list {
    left: 0;
    width: 100vw;
    padding-inline: 24px;
    clip-path: inset(0);
    pointer-events: auto;
  }

  .p-fv {
    height: 520px;
  }

  .p-fv__inner {
    height: 100%;
    padding-inline: 20px;
  }

  .p-fv__slider {
    height: 100%;
  }

  .p-fv__image {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-position: 36% center;
  }

  .p-fv__overlay {
    width: 172%;
    height: 350px;
    top: 72%;
    bottom: auto;
    left: 50%;
    transform: translate(-38%, -50%) rotate(15.12deg);
  }

  .p-fv__panel {
    width: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .p-fv__title {
    line-height: 1.55;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
  }

  .p-fv__title .p-fv__title-strong,
  .p-fv__title .p-fv__title-line--accent {
    font-size: clamp(21px, 5.8vw, 24px);
  }

  .p-fv__title .p-fv__title-soft {
    font-size: clamp(18px, 5vw, 20px);
  }

  .p-fv__nav-shape {
    bottom: 0;
  }

  .p-fv__pagination {
    bottom: 20px;
  }

  .p-about {
    padding: 85px 0;
  }

  .p-about__body {
    padding-top: 0;
  }

  .p-blog {
    padding: 48px 0 64px;
  }

  .p-news {
    padding: 56px 0 64px;
  }

  .p-service {
    padding: 56px 0 0;
  }

  .p-strength {
    padding: 56px 0 64px;
  }

  .p-works {
    padding: 0 0 40px;
  }

  .p-news__card {
    padding: 40px 20px 36px;
  }

  .p-news__link {
    grid-template-columns: max-content;
    align-items: start;
    gap: 8px 12px;
    min-height: auto;
    padding: 16px 4px;
  }

  .p-news__date {
    grid-column: 1 / 2;
  }

  /* .p-news__category {
    grid-column: 2 / 3;
    justify-self: end;
  } */

  .p-news__title {
    grid-column: 1 / 3;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.55;
  }

  .p-news__arrow {
    grid-column: 2 / 3;
    justify-self: end;
  }
}

.is-top-page {
  --page-progress: 0;
}

.is-top-page .p-scroll-progress {
  position: fixed;
  top: 128px;
  right: 22px;
  z-index: 80;
  width: 2px;
  height: min(46vh, 360px);
  background: rgba(22, 94, 131, 0.16);
  pointer-events: none;
}

.is-top-page .p-scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #165e83;
  transform: scaleY(var(--page-progress));
  transform-origin: top center;
}

.is-top-page [data-anim] {
  --reveal-x: 0px;
  --reveal-y: 46px;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(0.985);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--anim-order, 0) * 70ms),
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--anim-order, 0) * 70ms),
    box-shadow 0.35s ease,
    background-color 0.25s ease,
    color 0.25s ease;
  will-change: opacity, transform;
}

.is-top-page [data-anim].is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.is-top-page .p-section-head {
  position: relative;
}

.is-top-page .p-section-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 74px;
  height: 2px;
  background: currentColor;
  opacity: 0.34;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.is-top-page .p-section-head.is-inview::after {
  transform: translateX(-50%) scaleX(1);
}

.is-top-page .p-about__body,
.is-top-page .p-service__media {
  --reveal-x: -52px;
  --reveal-y: 18px;
}

.is-top-page .p-about__visual,
.is-top-page .p-service__body {
  --reveal-x: 52px;
  --reveal-y: 18px;
}

.is-top-page .p-news__item,
.is-top-page .p-blog__card,
.is-top-page .p-strength__card,
.is-top-page .p-works__card {
  --reveal-y: 62px;
}

.is-top-page .p-fv__image {
  /* transform: translate3d(0, calc(var(--flow, 0) * -70px), 0) scale(1.06); */
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.is-top-page .p-fv__overlay {
  transform: translate(calc(-50% + (var(--flow, 0) * 46px)), calc(-50% + (var(--flow, 0) * -34px))) rotate(15.12deg);
  will-change: transform;
}

.is-top-page .p-fv__panel {
  transform: translate(-50%, calc(-50% + (var(--flow, 0) * -44px)));
  will-change: transform;
}

.is-top-page .p-fv__title-line {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  animation: topTitleIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.is-top-page .p-fv__title-line:nth-child(2) {
  animation-delay: 0.18s;
}

.is-top-page .p-fv__nav-shape,
.is-top-page .p-fv__pagination {
  animation: topFloatIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both;
}

.is-top-page .p-about__visual,
.is-top-page .p-service__media,
.is-top-page .p-news,
.is-top-page .p-contact {
  position: relative;
  overflow: hidden;
}

.is-top-page .p-about__visual img {
  transform: translate3d(0, calc(var(--flow, 0) * -26px), 0);
  will-change: transform;
}

.is-top-page .p-service__media img,
.is-top-page .p-blog__media img,
.is-top-page .p-works__media img {
  transform: translate3d(0, calc(var(--flow, 0) * -18px), 0) scale(1.05);
  will-change: transform;
}

.is-top-page .p-news__bg,
.is-top-page .p-contact__bg {
  transform: translate3d(0, calc(var(--flow, 0) * -46px), 0) scale(1.08);
  will-change: transform;
}

.is-top-page .p-strength__metric-num {
  display: inline-block;
  /* min-width: 2.2em; */
  font-variant-numeric: tabular-nums;
}

.is-top-page .p-strength__card.is-inview .p-strength__icon {
  animation: topIconPulse 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

.is-top-page .c-more {
  overflow: hidden;
}

.is-top-page .c-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(22, 94, 131, 0.12) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.is-top-page .c-more:hover::before,
.is-top-page .c-more:focus-visible::before {
  transform: translateX(120%);
}

@keyframes topTitleIn {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes topFloatIn {
  from {
    opacity: 0;
    transform: translate3d(-16px, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes topIconPulse {
  0% {
    transform: translate3d(0, 12px, 0) scale(0.94);
  }
  60% {
    transform: translate3d(0, -4px, 0) scale(1.04);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 767.98px) {
  .is-top-page .p-scroll-progress {
    top: 88px;
    right: 10px;
    height: 34vh;
  }

  .is-top-page [data-anim] {
    --reveal-x: 0px;
    --reveal-y: 34px;
  }

  .is-top-page .p-fv__image {
    transform: translate3d(0, calc(var(--flow, 0) * -36px), 0) scale(1.04);
  }

  .is-top-page .p-fv__overlay {
    top: 95%;
    transform: translate(calc(-38% + (var(--flow, 0) * 18px)), calc(-50% + (var(--flow, 0) * -18px))) rotate(10deg);
  }

  .is-top-page .p-fv__panel {
    transform: translate(-50%, calc(-50% + (var(--flow, 0) * -24px)));
    top: 78%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-top-page .p-scroll-progress,
  .is-top-page .p-section-head::after,
  .is-top-page .p-fv__title-line,
  .is-top-page .p-fv__nav-shape,
  .is-top-page .p-fv__pagination,
  .is-top-page .p-strength__card.is-inview .p-strength__icon {
    animation: none !important;
    transition: none !important;
  }

  .is-top-page .p-fv__image,
  .is-top-page .p-fv__overlay,
  .is-top-page .p-fv__panel,
  .is-top-page .p-about__visual img,
  .is-top-page .p-service__media img,
  .is-top-page .p-blog__media img,
  .is-top-page .p-works__media img,
  .is-top-page .p-news__bg,
  .is-top-page .p-contact__bg {
    transform: none !important;
  }
}
