:root {
  --light-gray: #f7f7f7;
  --white: #fff;
  --black: #090808;
  --blue: #4375c0;
  --grey: #808080;

  --black-linear: linear-gradient(180deg, rgba(3, 1, 16, 0) 62.98%, rgba(3, 1, 16, 0.41) 84.13%, #030110 100%);
}

/* reset */
html {
  --plr: 16px;
  --header-h: 50px;
  box-sizing: border-box;

  /* -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed; */
  /* scroll-padding-top: var(--header-h, 0); */
}
*,
*:before,
*:after {
  box-sizing: inherit;

  margin: 0;
  padding: 0;

  /* outline: 1px solid orange */
}
main {
  overflow: hidden;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  font-size: inherit;
  font-weight: inherit;
}
ul,
ol,
li {
  list-style: none;
}
a,
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  cursor: pointer;
  background: none;
}
a {
  text-decoration: none;
}
button {
  border: none;
}
button[disabled] {
  cursor: auto;
}
footer {
  margin-top: auto;
}
span,
svg {
  pointer-events: none;
}

body {
  position: relative;
  font-family: 'Maison Neue';
  color: var(--black);
  background: var(--light-gray);
}
html.burgerMenuIsOpen {
  overflow-y: hidden;
  overflow-x: hidden;
}
.section {
  padding: 90px 0;
}
.container {
  width: 100%;
  padding: 0 var(--plr);
  margin: 0 auto;
}
.gsap-wrapper {
  overflow: hidden;
}
.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 43px;

  border-radius: 100px;
  background: var(--gray-blur-20, rgba(219, 219, 219, 0.2));
  backdrop-filter: blur(7px);
}

/* translate must stay in every keyframe step — otherwise rotate() replaces translate() and the ring jumps */
@keyframes portfolio-spinner-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.icon-pause {
  display: none;
}

.cta--dark,
.cta--light,
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: fit-content;
  /* max-width: 212px; */
  height: 48px;
  padding: 0 20px;

  font-size: 17px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;

  border-radius: 50px;
  transition: 0.2s ease;
}
.cta--dark {
  color: var(--white);
  background-color: var(--black);
  border: 1px solid  var(--black);

   &:hover {
    color: var(--black);
    background-color: transparent;
  }
}
.cta--light {
  color: var(--black);
  background-color: var(--white);
   border: 1px solid  var(--white);

  &:hover {
    color: var(--white);
    background-color: transparent;
  }
}

.nav__list {
  display: flex;

  .header__nav & {
    align-items: center;
    gap: 40px;
  }

  .burger-menu & {
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
  }

  .footer & {
    flex-direction: column;
    gap: 16px;
  }
}
.nav__link {
  width: fit-content;

  .header & {
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
  }

  .footer & {
    display: flex;
    align-items: center;
    gap: 8px;
    leading-trim: both;
    text-edge: cap;
    font-size: 16px;

    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
  }
}
.hover-line {
  position: relative;

  &:before {
    content: '';

    position: absolute;
    bottom: -1px;
    left: 0;

    width: 100%;
    max-width: 0;
    height: 1px;

    transition: 400ms ease;
    background-color: currentColor;
  }
}
.hover-line:hover:before {
  max-width: 100%;
}

.visually-hidden {
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transform: translateY(-100%);
  display: none;

  width: 100%;
  height: var(--header-h, 50px);

  transition: 400ms ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17) 47.73%, rgba(255, 255, 255, 0) 100%);

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(80px);
    backdrop-filter: blur(80px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
  }

  .header-active-2 &,
  .header-active & {
    transform: translateY(0%);
  }
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  height: 100%;
}
/* .header__cta,
.header__nav {
  display: none;
} */
.burger-menu__logo,
.header__logo {
  color: #0a0a0a;
  font-family: 'Maison Neue';
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.burger-menu-btn-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 5;

  color: var(--white);
}
.burger-menu-btn--dark {
  color: var(--black);
}
.burger-menu-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 50px;
  height: 50px;
  margin-left: auto;

  background-color: transparent;

  &::before,
  &::after {
    content: '';

    position: absolute;

    display: block;
    width: 50px;
    height: 2px;

    border-radius: 4px;
    background-color: currentColor;
    transition-property: transform;
    transition-duration: 0.4s;
  }
  &::before {
    transform: translateY(-3px);
  }
  &::after {
    max-width: 25px;
    transform: translateY(3px);
  }
  &.active::before {
    transform: rotate(-45deg);
  }
  &.active::after {
    max-width: 50px;
    transform: rotate(45deg);
  }
}
.header .burger-menu-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
}

.burger-menu {
  &.isHidden {
    pointer-events: none;
    visibility: hidden;
  }
}

.burger-menu__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  height: 100%;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.burger-menu__backdrop:before {
  content: '';

  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;

  flex-grow: 1;
  width: 100%;
  height: 100%;

  opacity: 0.7;
  background: #000;
}
.isHidden .burger-menu__backdrop:before {
  opacity: 0;
}

.burger-menu__container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-width: 390px;
  width: 100%;
  height: 100%;
  min-height: fit-content;
  margin-left: auto;
  padding: 0 16px;

  background-color: var(--white);
  transition: 0.4s ease;

  .isHidden & {
    transform: translateX(101%);
  }
}
.burger-menu__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;

  /* padding-top: calc(var(--header-h) + 80px); */
  padding-bottom: 60px;
}
.burger-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.burger-menu .nav__list {
  flex-direction: column;
  gap: 26px;
}
.burger-menu .nav__link {
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
}

.burger-menu__mail,
.burger-menu__text-hi {
  display: block;

  text-align: end;
  margin-left: auto;
  width: fit-content;
}

.burger-menu__text-hi {
  margin-bottom: 22px;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.section-title {
  color: var(--black);
  leading-trim: both;
  text-edge: cap;

  font-size: 61px;
  font-style: normal;
  font-weight: 400;
  /* line-height: normal; */
  letter-spacing: -3.66px;
  text-transform: uppercase;

  line-height: 43px;
}
.hint {
  color: var(--grey);
  font-size: 14px;
}

.hero,
.hero .container,
.hero__desc {
  display: flex;
  flex-direction: column;
}
.hero {
  --p-top: 25px;
  --p-bottom: 42px;
  --bg-img: url('../images/hero-bg.webp');

  position: relative;
  z-index: 4;

  /* height: 874px; */
  min-height: 100vh;
  padding-top: calc(var(--header-h, 50px) + var(--p-top, 0px));
  padding-bottom: var(--p-bottom);

  color: var(--white);

  background-color: #001d46;
  background: var(--bg-img), var(--black-linear, var(--black));
  /* background-image: var(--bg-img); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;

  &::before {
    content: '';

    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;

    display: block;
    width: 100%;
    height: calc(100% - 242px);

    background-color: var(--black);
    background: var(--Black-linear-mobile, linear-gradient(180deg, rgba(3, 1, 16, 0) 38.59%, #030110 56.96%));
  }
}
.hero .container {
  position: relative;
  z-index: 1;

  flex-grow: 1;
  height: 100%;
}
.settone-h1 {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero__img {
  position: relative;
  top: -28px;
  left: calc(50%);
  transform: translateX(-50%);

  height: 511px;
  aspect-ratio: 171/170;

  object-fit: cover;
}
.hero__title {
  margin-top: 5px;

  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;

  &[data-anim] {
    transition-delay: 100ms;
  }
}
.hero__box {
  position: absolute;
  bottom: 0;
  z-index: 1;

  width: calc(100% - var(--plr) * 2);

  &[data-anim] {
    transition-delay: 200ms;
  }
}
.hero__msg {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero__text {
  margin: 20px 0 40px;

  font-size: 13px;
}
.hero__link {
  display: none;
}

.about__title-wrap {
  margin-bottom: 80px;
}
.about__title--decor {
  & .first {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }

  & svg {
    max-width: 100%;
    height: auto;
  }

  .p2[data-anim] {
    transition-delay: 100ms;
  }
  .p3[data-anim] {
    transition-delay: 200ms;
  }
  .p4[data-anim] {
    transition-delay: 300ms;
  }
}

/* Вузькі телефони (~390px): декор «About» не вміщався, два ряди SVG ламали сітку */
@media (max-width: 400px) {
  .about__title--decor .first {
    gap: 10px;
    margin-bottom: 14px;
  }

  .about__title--decor .p1 svg {
    display: block;
    width: min(100%, 300px);
    height: auto;
  }

  .about__title--decor .p2 img {
    display: block;
    width: 148px;
    max-width: min(148px, 38vw);
    height: auto;
  }

  .about__title--decor .p3 svg {
    display: block;
    width: min(100%, 136px);
    height: auto;
  }

  .about__title--decor > .p4 svg {
    display: block;
    width: min(100%, 208px);
    height: auto;
  }
}
.about__title {
  margin-top: 20px;
  max-width: 248px;

  color: var(--Black, #090808);
  /* Mobile/M9 - book, 16, b */
  font-family: 'Maison Neue';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  text-transform: uppercase;

  & span {
    display: block;
  }

  &[data-anim] {
    transition-delay: 350ms;
  }
}

.metrics {
  margin-bottom: 90px;
}
.metrics__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.metric {
  padding-left: 10px;
  border-left: 1px solid currentColor;
}
.metric__label,
.metric__text {
  text-transform: uppercase;
}
.metric__label {
  font-weight: 700;
}
.metric__value {
  margin-top: 42px;
  height: 64px;

  font-size: 64px;
  font-weight: 400;
  /* line-height: normal; */
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 90px;
}
.about__subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;

  font-size: 16px;
  text-transform: uppercase;

  &::before {
    content: '';

    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;

    border-radius: 50%;
    background-color: var(--blue);
  }
}

.services__title {
  margin-bottom: 30px;
}
.services__text {
  font-size: 14px;

  &[data-anim] {
    transition-delay: 100ms;
  }
}
.services__hint {
  margin: 50px 0 20px;

  color: var(--grey);
  text-align: center;
  font-size: 14px;

  &[data-anim] {
    transition-delay: 200ms;
  }
}
.services__cta {
  margin-top: 56px;
  margin-left: auto;
  margin-right: auto;
}

.services {
  /* min-height: 100vh; */

  /* background-color: cadetblue; */
}
/* .services-list {
  display: flex;
  gap: 4px;
  padding: 0 24px;
} */
.service {
  position: relative;
  flex-shrink: 0;

  width: 280px;
  height: 408px;

  border-radius: 30px;
  overflow: hidden;
}
.service__img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 30px;
}
.service__desc {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;

  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 120px 20px 30px 20px;
  overflow: hidden;

  &::before {
    content: '';

    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

    display: block;
    width: 100%;
    height: 100%;

    border-radius: 30px;
    background-color: var(--white);
    opacity: 0;

    transition: 0.2s ease;
  }

  .service:hover &::before {
    opacity: 1;
  }
}
.service__title {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--white);
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  text-transform: uppercase;
  transition: 0.2s ease;
  max-width: 90%;
  line-height: 100%;
  margin: 0 auto;
  margin-top: auto;

  .service:hover & {
    color: var(--black);
  }
}
.service__text {
  font-size: 13px;

  opacity: 0;
  transition: 0.2s ease;

  .service:hover & {
    opacity: 1;
  }
}

.swiper-slide {
    box-sizing: border-box !important
}
.services-swiper {
  width: 100%;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.services-swiper-actions-box,
.testimonials-swiper-actions-box {
  margin-top: 24px;
}

.portfolio-swiper-actions-box {
  position: relative;
  z-index: 4;
  margin-top: -45px;
}

.services-swiper-btn-wrap,
.portfolio-swiper-btn-wrap,
.testimonials-swiper-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.services-swiper-btn,
.portfolio-swiper-btn,
.testimonials-swiper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 1;

  &.swiper-button-disabled {
    opacity: 1;
  }

  &.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  &.is-inactive {
    opacity: 1;
    pointer-events: none;
    cursor: default;
  }
}

.services-swiper-btn .services-swiper-btn__icon,
.portfolio-swiper-btn .portfolio-swiper-btn__icon,
.testimonials-swiper-btn .testimonials-swiper-btn__icon {
  display: block;
  width: 8px;
  height: 14px;
}

.services-swiper-scrollbar.swiper-scrollbar-horizontal,
.testimonials-swiper-scrollbar.swiper-scrollbar-horizontal {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  height: 7px;
  border-radius: 100px;
  background: var(--Light-Concrete, #b2b2b2);

  & .swiper-scrollbar-drag {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 100%;
    border-radius: 100px;
    background: var(--Black, #090808);
  }
}

@media (width >= 1440px) {
  .services-swiper-scrollbar .swiper-scrollbar-drag,
  .testimonials-swiper-scrollbar .swiper-scrollbar-drag {
    transition: none;
  }
}

.services-swiper-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  margin-top: 20px;

  .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: var(--Steel-Blue, #748cb1);
    transition: 0.2s ease;
  }

  .swiper-pagination-bullet-active {
    background: var(--Black, #090808);
  }
}

.innovation,
.portfolio {
  background-color: var(--white);
}

.innovation__title-wrap {
  position: relative;

  padding-top: calc(30px + 43px);
  margin-bottom: 44px;
}
.innovation__title {
  position: absolute;
  top: 0;
  left: 0;

  width: 380px;
}
.innovation__desc {
  &[data-anim] {
    transition-delay: 100ms;
  }
}
.innovation-grid {
  display: grid;
  gap: 30px;
}
.innovation-grid-item {
  &:nth-of-type(1)[data-anim] {
    transition-delay: 100ms;
  }
  &:nth-of-type(2)[data-anim] {
    transition-delay: 200ms;
  }
  &:nth-of-type(3)[data-anim] {
    transition-delay: 300ms;
  }
}
.innovation-grid-item__img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}
.innovation-grid-item__title {
  margin-top: 10px;

  line-height: 13px;
  font-size: 18px;
  text-transform: uppercase;
}
.innovation-grid-item__date {
  display: none;
  /* margin-bottom: 6px; */
  font-size: 9px;
  text-transform: uppercase;
}

.portfolio__title-wrap {
  position: relative;
  margin-bottom: 90px;
}
.portfolio__title {
  line-height: 43px;

  & .first {
    display: block;
    margin-bottom: 14px;
  }
}
.portfolio__desc {
  &[data-anim] {
    transition-delay: 100ms;
  }
}
.portfolio__hint--1 {
  position: absolute;
  bottom: 0;
  right: 0;

  max-width: 135px;
}
.portfolio__hint--2 {
  display: none;
}
.portfolio__cta {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-swiper-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  /* max-width: calc(1440px + 76px + 76px); */
  max-width: calc(1440px + 168px);
  margin-left: auto;
  margin-right: auto;
}

/*
 * Трек як у test-ladder.html (.slider-wrapper); картки — absolute bottom + left 50%, transform з JS.
 * Візуал карток — ваш макет (розмір 250×444, розгортання відео); без «демо»-тіні з пісочниці.
 */
.portfolio-ladder {
  position: relative;
  width: 100%;
  /* Фіксована мінімальна висота — щоб при відтворенні відео не стрибав блок (як був x + відступ) */
  min-height: min(620px, 75vh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portfolio-ladder .portfolio-item {
  position: absolute;
  bottom: 10%;
  left: 50%;
  box-sizing: border-box;
  width: 250px;
  height: 444px;
  cursor: pointer;
  border-radius: 4px;
  /* Розміри бокових карток задає JS (реальні width/height); translateX — разом із зміною центру */
  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    filter 0.45s ease,
    width 0.45s ease,
    height 0.45s ease;
  transform-origin: bottom center;
  will-change: transform, opacity, filter;

  &.is-playing {
    width: 360px;
    height: 620px;
    z-index: 20;
  }

}

/* Телефон + планшет (<1440): свайп по portfolio, без desktop-розгортання 360×620 */
@media (max-width: 1439px) {
  /*
   * Раніше було translateX(calc(-50% + …)) — анімація width ламала зазори. JS тепер дає translateX(px − halfW),
   * тож width/height можна знову плавно змінювати разом з transform.
   */
  .portfolio-ladder .portfolio-item {
    transition:
      transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1),
      opacity 0.45s ease,
      filter 0.45s ease,
      width 0.55s cubic-bezier(0.25, 0.1, 0.25, 1),
      height 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  /*
   * overflow-x: hidden без overflow-y даёт второй вертикальный скролл (спека: y → auto).
   * clip/hidden по y обрезаем карусель, без внутреннего скроллбара.
   */
  .portfolio-swiper-wrap {
    overflow-x: clip;
    overflow-y: hidden;
  }

  @supports not (overflow: clip) {
    .portfolio-swiper-wrap {
      overflow: hidden;
    }
  }

  .portfolio-ladder .portfolio-item.is-playing {
    width: 250px;
    height: 444px;
  }

  .portfolio-ladder {
    touch-action: pan-y;
  }

  [data-portfolio-track] {
    touch-action: manipulation;
  }
}

/* При відтворенні 360×620 (без aspect-ratio від відео), відео — cover */
.portfolio-ladder.is-expanded ~ .portfolio-swiper-actions-box {
  position: relative;
  z-index: 35;
}

[data-video-box] {
  .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.2s ease;
  }

  .video-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
    /* transition: 0.2s ease; */
  }

  .video {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: 0.2s ease; */
  }
}

/* Buffering spinner sits on .play-btn (same spot as pause), not a full-screen pseudo — avoids transform bugs on mobile */
.video-buffer-overlay {
  display: none !important;
}

.testimonial--video[data-video-buffering='true'] .testimonial__avatar,
.testimonial--video[data-video-buffering='true'] .testimonial__text,
.testimonial--video[data-video-buffering='true'] .testimonial__client {
  position: relative;
  z-index: 3;
}

[data-video-box][data-video-status='pending'] {
  .video {
    pointer-events: none;
    opacity: 0;
  }
}
[data-video-box][data-video-status='active'] {
  .video {
    pointer-events: all;
    opacity: 1;
  }
  .video-cover {
    pointer-events: none;
    opacity: 0;
  }
  .play-btn {
    pointer-events: none;
    opacity: 0;
  }
  .icon-play {
    display: none;
  }
  .icon-pause {
    display: block;
  }
}
[data-video-box][data-video-status='active']:hover {
  .play-btn {
    pointer-events: all;
    opacity: 1;
  }
}
/* Mid-playback buffering: loader replaces pause icon, centered on play button */
[data-video-box][data-video-status='active'][data-video-buffering='true'] {
  .play-btn {
    pointer-events: none;
    opacity: 1;
    z-index: 4;
  }
  .play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--white, #fff);
    border-radius: 50%;
    animation: portfolio-spinner-rotate 0.8s linear infinite;
  }
  .icon-play,
  .icon-pause {
    display: none;
  }
}
[data-video-box][data-video-status='loading'] {
  .video {
    pointer-events: none;
    opacity: 0;
  }
  .video-cover {
    pointer-events: none;
    opacity: 1;
  }
  .play-btn {
    pointer-events: none;
    opacity: 1;
    position: absolute;
  }
  .play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--white, #fff);
    border-radius: 50%;
    animation: portfolio-spinner-rotate 0.8s linear infinite;
  }
  .icon-play,
  .icon-pause {
    display: none;
  }
}
[data-video-box][data-video-status='pause'] {
  .play-btn,
  .video {
    pointer-events: all;
    opacity: 1;
  }

  .video-cover {
    pointer-events: none;
    opacity: 0;
  }
}

.portfolio-item[data-video-status='pending'],
.portfolio-item[data-video-status='loading'],
.portfolio-item[data-video-status='pause'] {
  .play-btn {
    pointer-events: none;
    opacity: 0;
  }
}

.portfolio-item[data-video-status='pending'].is-active,
.portfolio-item[data-video-status='loading'].is-active,
.portfolio-item[data-video-status='pause'].is-active {
  .play-btn {
    pointer-events: all;
    opacity: 1;
  }
}

.portfolio-item__cover,
.portfolio-item__video {
  border-radius: 4px;
}

.portfolio-swiper-scrollbar.swiper-scrollbar-horizontal {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  height: 7px;
  margin: 0;
  border-radius: 100px;
  background: var(--Light-Concrete, #b2b2b2);

  & .swiper-scrollbar-drag {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 100%;
    border-radius: 100px;
    background: var(--Black, #090808);
    transition: 0.2s ease;
  }
}

@media (max-width: 767px) {
  .portfolio-swiper-actions-box {
    margin-top: -35px;
  }
}

.testimonials__title {
  margin-bottom: 30px;
}
.testimonials__text {
  margin-bottom: 50px;

  font-size: 14px;
}

.testimonials-list {
  display: flex;
  gap: 0;
  padding: 0;
}
.testimonial {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  width: min(342px, calc(100vw - 48px));
  height: 448px;

  border-radius: 14px;
  background: var(--white);
}
.testimonial__avatar {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 35px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.testimonial__text {
  margin-bottom: auto;
  &[data-anim] {
    transition-delay: 100ms;
  }
}
.testimonial__client {
  margin-top: 30px;

  font-size: 16px;
  text-transform: uppercase;
}
.testimonial--video {
  position: relative;
  z-index: 1;
  background: transparent;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

    width: 100%;
    height: 100%;

    background: var(--black-40, rgba(9, 8, 8, 0.4));
    backdrop-filter: blur(3.4000000953674316px);
  }

  & .testimonial__cover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;

    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  & .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
  }

  & .testimonial__text {
    margin: auto 0 0;

    color: var(--Light-Concrete, #b2b2b2);
  }

  & .testimonial__client {
    color: var(--white);
  }
}

.testimonials-swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  margin-top: 20px;

  .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: var(--Steel-Blue, #748cb1);

    transition: 0.2s ease;
  }

  .swiper-pagination-bullet-active {
    width: 88px;
    height: 7px;
    border-radius: 70px;
    background: var(--Black, #090808);
  }
}

.contact {
  padding-bottom: 50px;
}
.contact__title-wrap {
  margin-bottom: 50px;
}
.contact__title--decore--1 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__title--decore--2 {
  display: none;
}
.contact__title--decore--1 svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.contact__title--decore--2 svg {
  display: block;
  width: 100%;
  height: auto;
}
.contact__text {
  margin-top: 30px;

  &[data-anim] {
    transition-delay: 100ms;
  }
}
.contact__box-wrap {
  display: flex;
  flex-direction: column-reverse;
  gap: 50px;
}
.contact__box {
  &:nth-of-type(1)[data-anim] {
    transition-delay: 100ms;
  }
  &:nth-of-type(2)[data-anim] {
    transition-delay: 200ms;
  }
}
.contact__img {
  width: 100%;
  height: 551px;
  object-fit: cover;
}
.contact__msg {
  display: block;
  margin-bottom: 30px;

  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.input-text {
  display: flex;
  align-items: center;
  height: 40px;
  width: 100%;
  padding: 8px 8px 8px 0;

  background-color: transparent;
  border: 1px solid currentColor;
  border-top: none;
  border-left: none;
  border-right: none;

  &:focus-within {
    border-color: var(--blue);
    outline: none;
  }
}
.label-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;

  cursor: pointer;

  & .checkbox-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;

    border-radius: 4px;
    border: 1px solid currentColor;
    background-color: var(--background-section-light);
    transition: 0.1s ease;

    & svg {
      display: block;
      width: 24px;
      height: 24px;

      stroke: #fff;
      opacity: 0;
      transition: 0.1s ease;

      path {
        transition: 0.2s ease;
      }
    }
  }
  & input:checked + .checkbox-decor {
    background-color: var(--blue);
    border-color: var(--blue);

    & svg {
      opacity: 1;
    }
  }
}
.form-group {
  position: relative;

  & label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);

    pointer-events: none;
    transition: 0.2s ease;
    border: none;

    & span {
      color: var(--blue);
    }
  }
  & .input-text:focus + label,
  & .input-text:not(:placeholder-shown) + label {
    display: none;
    /* transform: translateX(-12%) translateY(-160%) scale(0.8); */
  }

  & .input-text::placeholder {
    color: transparent;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.agreement {
  display: flex;
  align-items: center;
}
.agreement__text {
  font-size: 12px;
  font-weight: 400;

  & a {
    color: var(--blue);
  }
}
.contact-form__btn-submit {
  max-width: 100%;
}

[data-mail-wow] {
  position: relative;

  width: fit-content;

  font-size: 18px;
  font-weight: 700;
  line-height: normal;

  .row {
    display: flex;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
    /* transition: 0.8s ease; */

    span {
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
      transition-duration: 0.15s;
      /* transition: 0.8s ease; */
    }

    & span:nth-of-type(1) {
      transition-delay: 10ms;
    }
    & span:nth-of-type(2) {
      transition-delay: 20ms;
    }
    & span:nth-of-type(3) {
      transition-delay: 30ms;
    }
    & span:nth-of-type(4) {
      transition-delay: 40ms;
    }
    & span:nth-of-type(5) {
      transition-delay: 50ms;
    }
    & span:nth-of-type(6) {
      transition-delay: 60ms;
    }
    & span:nth-of-type(7) {
      transition-delay: 70ms;
    }
    & span:nth-of-type(8) {
      transition-delay: 80ms;
    }
    & span:nth-of-type(9) {
      transition-delay: 90ms;
    }
    & span:nth-of-type(10) {
      transition-delay: 100ms;
    }
    & span:nth-of-type(11) {
      transition-delay: 110ms;
    }
    & span:nth-of-type(12) {
      transition-delay: 120ms;
    }
    & span:nth-of-type(13) {
      transition-delay: 130ms;
    }
    & span:nth-of-type(14) {
      transition-delay: 140ms;
    }
    & span:nth-of-type(15) {
      transition-delay: 150ms;
    }

    &.copied {
      position: absolute;
      top: 0;
      left: 0;

      & span {
        filter: blur(3px);
        opacity: 0;
      }
    }
  }

  &[data-mail-status='copied'] {
    .panding {
      & span {
        filter: blur(3px);
        opacity: 0;
      }
    }
    .copied {
      & span {
        filter: none;
        opacity: 1;
      }
    }
  }
}

.footer {
  padding-bottom: 40px;
}
.footer__top {
  margin-bottom: 50px;
}
.footer__box-wrap {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
/* .footer__mail {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
} */

.footer-nav-box__wrap {
  display: flex;
  gap: 78px;
}
.footer-nav-box__title {
  margin-bottom: 20px;

  color: var(--grey);
  font-size: 13px;
  text-transform: uppercase;
}
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.footer__bottom .copyright {
  justify-self: start;
}
.terms-nav {
  justify-self: center;
}
.terms-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.terms-nav__item {
  flex-shrink: 0;
}
.by {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;

  & .by__logo,
  & svg {
    display: block;
    width: 174px;
    height: 21px;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    text-align: center;
  }

  .footer__bottom .copyright,
  .terms-nav,
  .by {
    justify-self: center;
  }
}

@media (width <= 401px) {
  .portfolio__title,
  .testimonials__title,
  .innovation__title {
    width: 100%;
    font-size: 48px;
  }

}

/* Телефон: узкий контейнер 402px (только до 767, не планшет) */
@media (min-width: 402px) and (max-width: 767px) {
  .container {
    width: 402px;
  }
}

/* Телефон: полноэкранный hero и компактные отзывы */
@media (max-width: 767px) {
  .hero {
    --p-top: 10px;
    --p-bottom: 16px;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }
  .hero__box {
    bottom: 28px;
  }
  .hero__title {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1;
    text-align: end;
  }
  .hero__msg {
    font-size: 18px;
    line-height: 1.15;
    text-wrap: balance;
  }
  .hero__text {
    margin: 10px 0 12px;
    font-size: 12px;
    line-height: 1.35;
    text-wrap: pretty;
  }
  .hero__cta {
    max-width: 100%;
  }

  .testimonial {
    height: 400px;
    padding: 16px;
  }

  .testimonial__avatar {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
  }

  .testimonial__text {
    font-size: 14px;
    line-height: 1.35;
  }

  .testimonial__client {
    margin-top: 14px;
    font-size: 13px;
  }

  .testimonial--video .testimonial__text {
    font-size: 14px;
    line-height: 1.32;
  }

  .testimonial--video .testimonial__avatar {
    margin-bottom: 14px;
  }

  .testimonial--video .testimonial__client {
    margin-top: 10px;
    font-size: 12px;
  }
}

/*
 * Планшет: 768px–1439px (десктоп с 1440px)
 * Промежуточная вёрстка между телефоном и desktop.
 */
@media (min-width: 768px) and (max-width: 1439px) {
  html {
    --plr: 40px;
    --header-h: 64px;
  }

  .section {
    padding: 110px 0;
  }

  .container {
    width: 100%;
    max-width: 960px;
  }

  .section-title {
    font-size: clamp(72px, 9.5vw, 96px);
    line-height: 0.72;
    letter-spacing: -4.8px;
  }

  .hint {
    font-size: 15px;
  }

  .burger-menu__container {
    max-width: 480px;
    padding: 0 32px;
  }

  .burger-menu .nav__link {
    font-size: 48px;
  }

  /* Hero */
  .hero {
    --p-top: 14px;
    --p-bottom: 40px;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }

  .hero__img {
    top: -20px;
    height: clamp(400px, 50svh, 560px);
    overflow: unset;
  }

  .hero__title {
    margin-top: 12px;
    font-size: 18px;
    text-align: start;
  }

  .hero__box {
    bottom: 40px;
    max-width: min(520px, calc(100% - var(--plr) * 2));
  }

  .hero__msg {
    font-size: clamp(24px, 3.2vw, 32px);
    line-height: 1.1;
  }

  .hero__text {
    margin: 16px 0 28px;
    font-size: 15px;
    line-height: 1.4;
  }

  /* About */
  .about__title-wrap {
    margin-bottom: 100px;
  }

  .about__title {
    max-width: 360px;
    font-size: 18px;
  }

  .about__title--decor .first {
    gap: 24px;
    margin-bottom: 28px;
  }

  .metrics {
    margin-bottom: 110px;
  }

  .metrics__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 56px;
  }

  .metric__value {
    margin-top: 56px;
    height: 88px;
    font-size: 88px;
  }

  .metric__label,
  .metric__text {
    font-size: 16px;
  }

  .about__list {
    padding-top: 100px;
    gap: 56px;
    font-size: 20px;
  }

  .about__subtitle {
    margin-bottom: 16px;
    font-size: 24px;

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

  /* Services */
  .services__title {
    margin-bottom: 40px;
  }

  .services__text {
    font-size: 15px;
  }

  .services__hint {
    margin: 40px 0 24px;
    font-size: 15px;
  }

  .services__cta {
    margin-top: 48px;
  }

  .services-swiper {
    max-width: 100%;
  }

  .service {
    width: 300px;
    height: 440px;
  }

  .service__desc {
    padding: 100px 20px 28px;
  }

  .service__title {
    font-size: 28px;
  }

  .service__text {
    font-size: 14px;
  }

  .services-swiper-actions-box,
  .testimonials-swiper-actions-box {
    margin-top: 32px;
  }

  /* Innovation — заголовок не absolute, без наложения на текст */
  .innovation__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 0;
    margin-bottom: 56px;
  }

  .innovation__title {
    position: static;
    width: auto;
    max-width: 100%;
    font-size: clamp(52px, 7.5vw, 80px);
    line-height: 0.85;
    letter-spacing: -0.05em;
  }

  .innovation__desc {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.45;
  }

  .innovation__text + .innovation__text {
    margin-top: 12px;
  }

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

  .innovation-grid-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: min(480px, 100%);
  }

  .innovation-grid-item__img {
    height: clamp(240px, 32vw, 380px);
  }

  .innovation-grid-item__title {
    margin-top: 14px;
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.15;
  }

  /* Portfolio — розміри карток задає JS (пропорційно viewport) */
  .portfolio__title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 56px;
  }

  .portfolio__title {
    flex-shrink: 0;
    line-height: 0.72;
    margin-bottom: 0;
  }

  .portfolio__hint--1 {
    position: static;
    flex-shrink: 1;
    max-width: min(220px, 32vw);
    font-size: 14px;
    text-align: right;
  }

  .portfolio-swiper-wrap {
    max-width: 100%;
  }

  .portfolio-ladder {
    min-height: min(620px, 75svh);
  }

  .portfolio-swiper-actions-box {
    margin-top: clamp(-48px, -6vw, -36px);
  }

  /* Testimonials */
  .testimonials__title {
    margin-bottom: 36px;
  }

  .testimonials__text {
    margin-bottom: 44px;
    font-size: 15px;
  }

  .testimonial {
    width: min(380px, calc(100vw - var(--plr) * 2 - 24px));
    height: 420px;
    padding: 20px;
  }

  .testimonial__avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
  }

  .testimonial__text {
    font-size: 15px;
    line-height: 1.35;
  }

  .testimonial__client {
    margin-top: 20px;
    font-size: 14px;
  }

  .testimonial--video .testimonial__text {
    font-size: 15px;
  }

  .testimonial--video .testimonial__client {
    margin-top: 14px;
    font-size: 13px;
  }

  /* Contact — две колонки, компактнее декор и форма */
  .contact__title-wrap {
    margin-bottom: 40px;
  }

  .contact__title--decore--1 {
    gap: 10px;
  }

  .contact__title--decore--1 .p1 svg,
  .contact__title--decore--1 .p2 svg {
    display: block;
    width: min(100%, 300px);
    height: auto;
  }

  .contact__text {
    font-size: 15px;
    line-height: 1.45;
    max-width: 520px;
  }

  .contact__box-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 32px 40px;
  }

  .contact__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 43 / 64;
    margin: 0;
  }

  .contact__msg {
    display: block;
    margin-bottom: 24px;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .contact-form {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    gap: 16px;
  }

  .input-text {
    height: 42px;
  }

  .contact-form__btn-submit {
    width: fit-content;
    min-width: 200px;
    margin-top: 4px;
  }

  /* Footer */
  .footer__top {
    margin-bottom: 32px;
  }

  .footer-nav-box__title {
    font-size: 17px;
  }

  .footer .nav__link {
    font-size: 20px;
  }
}

@media (width >= 1440px) {
  html {
    --plr: 84px;
    --header-h: 104px;
  }

  .section {
    padding: 150px 0;
  }
  .container {
    width: 1440px;
  }
  .section-title {
    font-size: 134px;
    line-height: 94px;
  }

  .header {
    display: block;
  }

  .header-active-2 {
    .burger-menu-btn {
      display: none;
    }
  }

  .cta--light,
  .cta--dark,
  .cta {
    width: fit-content;
    min-width: 212px;
  }
  .header__cta,
  .header__nav {
    display: flex;
  }

  .hero {
    position: relative;
    padding-top: 90px;
    --p-top: 25px;
    --p-bottom: 127px;
    height: auto;
    max-height: none;
    min-height: 100vh;

    &::before {
      height: calc(100% - 567px);

      background: var(--Black-linear, linear-gradient(180deg, rgba(3, 1, 16, 0) 62.98%, rgba(3, 1, 16, 0.41) 84.13%, #030110 100%));
    }
  }
  .hero__img {
    position: absolute;
    /* top: 50px; */
    top: initial;
    left: 0%;
    left: calc(50% + 60px);
    bottom: calc(var(--p-bottom) * -1);

    /* width: 1069px; */
    width: 1069px;
    height: 832px;
    max-height: calc(100% - 128px + 90px + 127px);
    width: auto;
    max-width: 1069px;
    aspect-ratio: 212/165;
  }
  .settone-h1 {
    width: 100%;
    height: auto;
  }
  .hero__title {
    margin-top: 25px;
    font-size: 30px;
  }
  .hero__box {
    position: absolute;
    bottom: 0;
    max-width: 595px;
  }
  .hero__msg {
    font-size: 18px;
    font-weight: 700;
  }
  .hero__text {
    margin: 16px 0;
    font-size: 18px;
  }
  .hero__link {
    position: absolute;
    left: 50%;
    bottom: 54px;
    transform: translateX(-50%);
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    animation: scrollHint 4s ease-in-out infinite;
    /* animation: scrollHint 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; */

    & svg {
      width: 32px;
      height: 17px;
    }

    &:hover {
      animation-play-state: paused;
    }
  }

  @keyframes scrollHint {
    0% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(8px);
    }
    100% {
      transform: translateX(-50%) translateY(0);
    }
  }

  .about__title-wrap {
    position: relative;

    width: 972px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 150px;
  }
  .about__title--decor {
    & .first {
      display: flex;
      align-items: center;
      gap: 17px;
      margin-bottom: 32px;
    }

    & .p1 {
      svg {
        width: auto;
        height: 93px;
      }
    }
    & .p3 {
      svg {
        width: auto;
        height: 93px;
      }
    }

    & .p4 {
      display: block;
      margin-left: 520px;

      svg {
        width: auto;
        height: 93px;
      }
    }
  }
  .about__title {
    position: absolute;
    left: 220px;
    top: auto;
    bottom: 92px;
    margin-top: 0;

    width: 248px;

    font-size: 21px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: right;
    text-transform: lowercase;
  }

  .metrics {
    margin-bottom: 150px;
  }
  .metrics__list {
    flex-direction: row;
    justify-content: space-between;
  }
  .metric {
    width: 330px;
  }
  .metric__label,
  .metric__text {
    font-size: 18px;
  }
  .metric__value {
    height: 120px;
    margin-top: 122px;
    font-size: 120px;
  }

  .about__list {
    padding-top: 150px;
    gap: 80px;

    font-size: 26px;
  }
  .about__subtitle {
    margin-bottom: 24px;
    font-size: 36px;

    &::before {
      width: 28px;
      height: 28px;
      position: relative;
      top: -4px;
    }
  }

  .services.section {
    padding-top: clamp(72px, 10vh, 150px);
    padding-bottom: clamp(72px, 10vh, 150px);
  }

  .services__title-wrap {
    display: flex;
    align-items: flex-end;
    gap: clamp(24px, 3vw, 54px);
    margin-bottom: clamp(24px, 5vh, 50px);
  }
  .services__title {
    margin-bottom: 0;
    /* height: 134px; */
    flex-shrink: 0;
  }
  .services__hint {
    display: none;
  }
  .service__text {
    font-size: clamp(15px, 1.1vw, 18px);
  }

  .services-list {
    display: flex;
    gap: 4px;
    padding: 0 clamp(12px, 1.7vw, 24px);
  }

  .service {
    width: clamp(280px, 24vw, 340px);
    height: clamp(410px, 60vh, 500px);
  }

  .service__desc {
    padding: clamp(90px, 14vh, 120px) 20px clamp(22px, 4vh, 30px) 20px;
  }

  .service__title {
    font-size: clamp(24px, 2vw, 30px);
  }

  .services-swiper {
    max-width: initial;
    margin: 0;
  }

  .innovation__title-wrap {
    display: flex;
    align-items: center;
    gap: 54px;
  }
  .innovation__title {
    position: static;
    flex-shrink: 0;
    width: fit-content;
    letter-spacing: -8.04px;
  }
  .innovation__text {
    font-size: 16px;
  }
  .innovation-grid {
    gap: 24px;
    row-gap: 70px;

    grid-template-columns: repeat(2, 1fr);
  }
  .innovation-grid-item:last-child {
    grid-column-start: 1;
    grid-column-end: 3;
  }
  .innovation-grid-item__img {
    width: 100%;
    height: 691px;
  }
  .innovation-grid-item__title {
    margin-top: 24px;

    font-size: 32px;
    line-height: 22px;
  }
  .innovation-grid-item__date {
    display: none;
  }

  .portfolio__title-wrap {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 136px;
  }
  .portfolio__title {
    flex-shrink: 0;
    line-height: 100px;
    letter-spacing: -8.04px;

    & .first {
      display: initial;
    }
  }
  .portfolio__hint--1 {
    display: none;
  }
  .portfolio__hint--2 {
    display: block;
    font-size: 16px;
  }

  .testimonials__title {
    margin-bottom: 40px;
  }
  .testimonials__text {
    margin-bottom: 50px;
    font-size: 16px;
  }

  .testimonials-list {
    gap: 8px;
    padding: 0 clamp(12px, 1.7vw, 24px);
  }

  .contact__title--decore--1 {
    display: none;
  }
  .contact__title--decore--2 {
    display: block;
    margin-bottom: 128px;
  }
  .contact__text {
    display: none;
  }
  .contact__box-wrap {
    flex-direction: row;
    gap: 302px;
  }
  .contact__img {
    flex-shrink: 0;
    width: 346px;
    height: 515px;
    aspect-ratio: 43/64;
  }
  .contact__msg {
    font-size: 37px;
    font-weight: 700;
  }

  .contact-form {
    width: 500px;

    font-size: 19px;
  }
  .input-text {
    height: 44px;
  }
  .agreement__text {
    font-size: 14px;
  }
  .contact-form__btn-submit {
    width: fit-content;
    padding: 0 20px;
  }

  .footer__top {
    margin-bottom: 40px;
  }
  .footer__box-wrap {
    flex-direction: row;
    gap: 141px;
  }
  .footer__box:first-child {
    width: 507px;
  }
  .footer-nav-box__title {
    margin-bottom: 30px;
    font-size: 19px;
    line-height: 28px; /* 147.368% */
  }

  .nav__link {
    .footer & {
      font-size: 24px;
    }
  }
}

[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  /* transition: 0.9s cubic-bezier(0.2, 0.65, 0.25, 1); */
  transition: 0.8s ease;
}

[data-anim].anim-start {
  opacity: 1;
  transform: none;
}

.impressum {
  padding-top: calc(80px + var(--header-h));

  h1 {
    margin-bottom: 80px;

    font-size: 37px;
    font-weight: 700;
    text-transform: uppercase;
  }

  h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;

    &::before {
      content: '';

      display: block;
      width: 18px;
      height: 18px;

      border-radius: 50%;
      background: var(--Black, #090808);
    }
  }

  strong,
  h3 {
    display: block;
    margin-bottom: 16px;

    font-size: 16px;
    font-weight: 700;
    line-height: normal;
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .burger-menu__container {
    max-width: none;
  }

  .services__title {
    margin-bottom: 30px;
    line-height: 0.8;
  }

  .portfolio__title-wrap {
    position: relative;
    margin-bottom: 0;
  }
}

@media (width >= 1440px) and (height <= 920px) and (height > 760px) {
  .services.section {
    padding-top: clamp(98px, 13.5vh, 132px);
  }

  .services__cta {
    margin-top: clamp(8px, 1.2vh, 14px);
  }

  .portfolio.section {
    padding-top: clamp(104px, 12vh, 132px);
    padding-bottom: clamp(36px, 4.5vh, 62px);
  }

  .portfolio__title-wrap {
    margin-bottom: clamp(56px, 6.5vh, 84px);
  }

  .portfolio-ladder {
    min-height: clamp(560px, 64vh, 600px);
  }

  .portfolio-ladder .portfolio-item {
    width: 230px;
    height: 408px;
    bottom: clamp(8%, 9.2vh, 12%);

    &.is-playing {
      width: 310px;
      height: 530px;
    }
  }

  .portfolio-swiper-actions-box {
    margin-top: -40px;
  }

  .portfolio__cta {
    margin-top: clamp(16px, 2.2vh, 24px);
  }
}

@media (width >= 1440px) and (height <= 760px) {
  .services.section {
    padding-top: clamp(108px, 15.5vh, 144px);
    padding-bottom: clamp(10px, 1.6vh, 16px);
  }

  .services__title-wrap {
    margin-bottom: clamp(26px, 4.2vh, 44px);
  }

  .service {
    width: clamp(250px, 21.5vw, 310px);
    height: clamp(320px, 50vh, 390px);
  }

  .service__desc {
    padding: clamp(68px, 11vh, 92px) 18px clamp(14px, 2.5vh, 22px) 18px;
  }

  .service__title {
    width: 90%;
    max-width: 75%;
    font-size: clamp(20px, 1.45vw, 24px);
    line-height: 1.05;
  }

  .service__text {
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.25;
  }

  .services__cta {
    margin-top: clamp(14px, 2.4vh, 22px);
  }

  .testimonials.section {
    padding-top: clamp(112px, 15.5vh, 160px);
    padding-bottom: clamp(20px, 3vh, 40px);
  }

  .testimonials__title {
    margin-bottom: clamp(18px, 2.8vh, 28px);
  }

  .testimonials__text {
    margin-bottom: clamp(18px, 2.8vh, 30px);
    font-size: clamp(14px, 1vw, 15px);
  }

  .testimonial {
    width: clamp(280px, 20.5vw, 320px);
    height: clamp(330px, 52vh, 390px);
    padding: clamp(14px, 2vh, 18px);
  }

  .testimonial__avatar {
    width: clamp(42px, 5.5vh, 48px);
    height: clamp(42px, 5.5vh, 48px);
    margin-bottom: clamp(16px, 2.2vh, 24px);
    object-fit: cover;
    object-position: center;
  }

  .testimonial__client {
    margin-top: clamp(14px, 2vh, 22px);
    font-size: clamp(14px, 1vw, 15px);
  }

  .testimonials-swiper-pagination {
    margin-top: clamp(10px, 1.6vh, 16px);
  }

  .portfolio.section {
    padding-top: clamp(86px, 12vh, 112px);
    padding-bottom: clamp(18px, 2.6vh, 30px);
  }

  .portfolio__title-wrap {
    margin-bottom: clamp(30px, 4.5vh, 52px);
  }

  .portfolio__title {
    line-height: clamp(76px, 10.2vh, 94px);
  }

  .portfolio-ladder {
    min-height: clamp(500px, 66vh, 540px);
  }

  .portfolio-ladder .portfolio-item {
    width: 210px;
    height: 372px;
    bottom: clamp(7%, 8vh, 10%);

    &.is-playing {
      width: 280px;
      height: 470px;
    }
  }

  .portfolio-swiper-actions-box {
    margin-top: -42px;
  }

  .portfolio__cta {
    margin-top: clamp(12px, 1.8vh, 18px);
  }
}

@media (width >= 1440px) and (height <= 640px) {
  .testimonials.section {
    padding-top: clamp(56px, 8vh, 72px);
    padding-bottom: clamp(12px, 1.8vh, 20px);
  }

  .testimonial {
    height: clamp(300px, 50vh, 340px);
  }

  .testimonials__text {
    margin-bottom: clamp(14px, 2vh, 20px);
  }
}

.contact-form__bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.contact-form-modal.is-hidden {
  display: none;
}

.contact-form-modal__backdrop,
.contact-form-modal__dialog {
  opacity: 0;
}

.contact-form-modal.is-visible .contact-form-modal__backdrop,
.contact-form-modal.is-visible .contact-form-modal__backdrop {
  animation: contactModalBackdropIn 0.22s ease forwards;
}

.contact-form-modal.is-closing .contact-form-modal__backdrop {
  animation: contactModalBackdropOut 0.2s ease forwards;
}

.contact-form-modal.is-visible .contact-form-modal__dialog {
  animation: contactModalDialogIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.contact-form-modal.is-closing .contact-form-modal__dialog {
  animation: contactModalDialogOut 0.2s ease forwards;
}

.contact-form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 8, 8, 0.28);
  backdrop-filter: blur(4px);
}

.contact-form-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.contact-form-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f8;
  color: #090808;
  font-size: 24px;
  line-height: 1;
}

.contact-form-modal__icon {
  width: 68px;
  height: 68px;
  margin: 6px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.contact-form-modal__icon::before {
  content: '';
}

.contact-form-modal__icon.is-success {
  background: #e9f9ef;
  color: #199a46;
}

.contact-form-modal__icon.is-success::before {
  content: '✓';
  font-size: 34px;
  font-weight: 700;
}

.contact-form-modal__icon.is-error {
  background: #ffecec;
  color: #d73030;
}

.contact-form-modal__icon.is-error::before {
  content: '!';
  font-size: 34px;
  font-weight: 700;
}

.contact-form-modal__title {
  margin-bottom: 8px;
  font-size: 26px;
  text-transform: uppercase;
}

.contact-form-modal__text {
  margin: 0 auto;
  max-width: 32ch;
  color: rgba(9, 8, 8, 0.82);
}

.contact-form__btn-submit[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
}

@keyframes contactModalBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes contactModalDialogIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contactModalBackdropOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes contactModalDialogOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}


