@property --ty {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0vh;
}
@property --rx {
  syntax: "<angle>";
  inherits: false;
  initial-value: 56deg;
}
@property --ry {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --rz {
  syntax: "<angle>";
  inherits: false;
  initial-value: 9deg;
}
@property --scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1.22;
}

.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 16px 0;
  background: var(--styles);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 22px;
  line-height: 100%;
  color: var(--style);
  text-transform: uppercase;
  transition: color 0.4s ease;
  animation: flipX 14s ease-in-out infinite;
}

@keyframes flipX {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(-1);
  }
  100% {
    transform: scaleX(1);
  }
}

.header-title:hover,
.header-title:focus {
  color: #fff;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: var(--style);
  transition: border-color 0.3s ease;
}

.page-nav-link:hover {
  text-decoration: underline;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 72px;
  padding: 12px 24px;
  width: 69px;
  height: 36px;
  background: var(--style);
  transition: background-color 0.4s ease;
}

.menu-btn:hover,
.menu-btn:focus {
  background-color: #fff;
  svg {
    stroke: var(--style);
  }
}

.menu-svg {
  fill: none;
  stroke: #fff;
  transition: stroke 0.4s ease;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 30px 0;
  }

  .header-title {
    font-size: 26px;
  }

  .page-nav {
    display: block;
  }
  .page-nav-list {
    gap: 36px;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  padding: 60px 20px;
  z-index: 8;
  background-color: var(--styles);
  background-image: url(../img/modal.png);
  background-position: right 20px center;
  background-repeat: no-repeat;
  transform: translateX(100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 7px;
  padding: 20px;
  transition: transform 0.4s ease;
  box-shadow: 5px 15px 20px 0 rgba(0, 0, 0, 0.25);
  background: #000;
}

.popup-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
  margin-bottom: 14px;

  a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #6e7191;
    transition: color 0.3s ease;
  }

  a:hover {
    color: var(--styles);
  }
}

.popup-btn {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
  display: block;
  width: 72px;
  border: 1px solid var(--styles);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #fff;
  color: var(--style);
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 18px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 20px 88px;
  }

  .popup-text {
    font-size: 16px;
    margin: 0;
  }

  .popup-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
  }

  .popup-wrap {
    flex-shrink: 0;
  }
}

/* hero  */

.dashboard {
  background: #000;
  padding-top: 110px;
  padding-bottom: 210px;
  position: relative;
  overflow: hidden;
  perspective: 1200px; /* нужно для 3D-ощущения */
}

.web {
  position: absolute;
  bottom: -8vh;
  left: 50%;
  z-index: -1;
  width: 150vw;
  max-width: none;
  pointer-events: none;
  opacity: 0.9;
  filter: contrast(110%) brightness(110%);
  transform-origin: 50% 80%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateX(-50%) translateY(var(--ty)) rotateX(var(--rx))
    rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--scale));

  /* плавные бесконечные анимации */
  animation: web-float 12s ease-in-out infinite alternate,
    web-yaw 18s ease-in-out infinite alternate;
}

/* «дыхание»: Y + scale + лёгкий roll */
@keyframes web-float {
  0% {
    --ty: 0vh;
    --scale: 1.15;
    --rz: 9deg;
  }
  100% {
    --ty: -2vh;
    --scale: 1.3;
    --rz: 7deg;
  }
}

/* покачивание по оси Y (глубина) */
@keyframes web-yaw {
  0% {
    --ry: -6deg;
  }
  100% {
    --ry: 6deg;
  }
}

/* предпочитаем уменьшенную анимацию */
@media (prefers-reduced-motion: reduce) {
  .web {
    animation: none;
  }
}

.page-hero-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 60px;
  line-height: 113%;
  color: #fdfdfd;
  margin-bottom: 28px;
}

.page-hero-description {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  color: #fdfdfd;
  margin-bottom: 28px;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  color: #fdfdfd;
  margin-bottom: 33px;
}

.page-hero-link {
  display: block;
  border-radius: 80px;
  padding: 10px;
  width: 335px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--styles);
  border: 2px solid var(--styles);

  font-family: var(--font-family);
  font-weight: 800;
  font-size: 16px;
  line-height: 150%;
  color: #282828;
  text-align: center;
  transition: background-color 0.4s ease;
}

.page-hero-link:hover,
.page-hero-link:focus {
  background-color: #fff;
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 205px;
    padding-bottom: 297px;
  }

  .home-container {
    display: flex;
    align-items: center;
    gap: 64px;
  }

  .page-hero-title {
    font-size: 96px;
    margin: 0;
  }

  .page-hero-description {
    font-size: 18px;
  }

  .page-hero-text {
    font-size: 16px;
    margin: 0;
  }

  .home-text-wrap {
    display: flex;
    align-items: flex-end;
    font: 33px;
  }

  .page-hero-link {
    margin: 0;
    width: 240px;
    flex-shrink: 0;
  }
}

/* why */

#why {
  background-image: url(../img/road.png), url(../img/road.png);
  background-position: left -200px top 0, bottom 0 right -200px;
  background-repeat: no-repeat;
  background-size: 450px;
}

.why-title {
  width: 717px;
  max-width: 100%;
  margin-left: auto;
  text-align: end;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;

  li {
    border: 1px solid var(--styles);
    border-radius: 40px;
    padding: 24px;
    backdrop-filter: blur(30px);
    background-image: linear-gradient(
      185deg,
      rgba(253, 253, 253, 0.3) 0%,
      rgba(242, 255, 55, 0.3) 100%
    );
    transition: background-color 0.4s ease;
  }

  p {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 24px;
    line-height: 133%;
    color: var(--style);
    margin-bottom: 28px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: #494949;
  }

  .active {
    background-color: var(--styles);
  }
}

@media screen and (min-width: 768px) {
  .why-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 28px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  #why {
    background-size: auto;
    background-position: left -300px top 0, bottom -600px right -300px;
  }
  .why-list {
    width: 852px;
    margin-left: auto;
    gap: 40px;

    li {
      width: calc((100% - 40px) / 2);
      border-radius: 40px;
      padding: 44px 36px;
    }

    p {
      font-size: 32px;
      margin-bottom: 40px;
    }

    span {
      font-size: 18px;
    }
  }

  .why-item2 {
    transform: translateX(-446px);
  }
}

/* cases */

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 28px;

  li {
    padding-bottom: 28px;
    border-bottom: 1px solid #434343;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    text-transform: capitalize;
    color: #afafaf;
    margin-bottom: 20px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #afafaf;
  }
}

@media screen and (min-width: 1436px) {
  .cases-list {
    gap: 40px;

    li {
      padding-bottom: 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    p {
      font-size: 24px;
      width: 204px;
      margin: 0;
    }

    span {
      display: block;
      font-size: 20px;
      width: 694px;
    }
  }
}

/* technology */

.technology-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--style);
  margin-bottom: 28px;

  span {
    font-weight: 700;
  }
}

.technology-list {
  padding-left: 21px;
  list-style: disc;
  margin-bottom: 28px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--style);
}

.technology-img {
  margin: 0 auto;
  animation: flipX 25s ease-in-out infinite;
}

@media screen and (min-width: 1436px) {
  .container-technology {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 76px;
  }

  .technology-img {
    margin: 0;
    flex-shrink: 0;
  }

  .technology-text {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .technology-list {
    font-size: 20px;
  }
}

/* plans */

#plans {
  background-position: right -500px center;
  background-repeat: no-repeat;
  background-image: url(../img/plan.png);
  .active {
    background-color: #f5f5f7;

    li {
      color: var(--style);
    }
  }
}

.plans-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.plans-item {
  border-radius: 20px;
  padding: 24px;
  background-color: #282828;
  border: 1px solid var(--styles);
  transition: background-color 0.4s ease;

  h5 {
    border-radius: 20px;
    padding: 16px 20px;
    background: var(--styles);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 133%;
    text-align: center;
    color: var(--style);
    margin-bottom: 20px;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 12px;

    li {
      display: flex;
      align-items: center;
      justify-content: space-between;

      font-family: var(--font-family);
      font-weight: 400;
      font-size: 18px;
      line-height: 156%;
      color: #fff;
    }
  }

  img {
    width: 28px;
    flex-shrink: 0;
  }
}

@media screen and (min-width: 768px) {
  .plans-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .plans-item {
    width: calc((100% - 28px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  #plans {
    background-position: right -300px center;
  }

  .plans-list {
    width: 724px;
    gap: 48px;
  }

  .plans-item {
    width: calc((100% - 48px) / 2);
    padding: 35px 28px;

    h5 {
      font-size: 32px;
      margin-bottom: 32px;
    }

    ul {
      gap: 20px;
    }
  }
}

/* testimonials */

#testimonials {
  background-position: left -400px center;
  background-repeat: no-repeat;
  background-image: url(../img/reviews.png);
}

.testimonials-item {
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  padding: 16px 24px;
  background: #f5f5f5;

  p {
    margin-bottom: 28px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: #585858;
  }
}

.testimonials-user {
  display: flex;
  align-items: center;
  gap: 20px;

  img {
    width: 50px;
    flex-shrink: 0;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 125%;
    color: var(--style);
    margin-bottom: 16px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: var(--style);
  }
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.swiper-btn {
  position: static;
  border: 1px solid #bfbfbf;
  border-radius: 360px;
  padding: 24px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease;
}

.swiper-btn::before,
.swiper-btn::after {
  display: none;
}

.swiper-btn:hover,
.swiper-btn:focus {
  background: var(--styles);
}

.swiper-button-prev {
  transform: scaleX(-1);
}

@media screen and (min-width: 1436px) {
  #testimonials {
    background-position: left -200px center;
  }
  .testimonials-item {
    border-radius: 20px;
    padding: 16px 24px;
    flex-direction: column;
    justify-content: space-between;
    display: flex;
    min-height: 276px;

    p {
      font-size: 24px;
      margin-bottom: 40px;
    }
  }
}

/* resources */

.resources-content {
  border: 2px solid var(--styles);
  border-radius: 31px;
  padding: 40px 16px;
  background: #282828;

  h5 {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 28px;
    line-height: 114%;
    color: #fff;
    margin-bottom: 44px;
  }

  ul {
    list-style: disc;
    padding-left: 21px;
    margin-bottom: 20px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: #fff;
  }

  p {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 20px;
    line-height: 140%;
    color: #fff;
    margin-bottom: 28px;
  }
}

.resources-img {
  margin: 0 auto;
  margin-top: 28px;
  transform: rotate(90deg);
}

@media screen and (min-width: 1436px) {
  .resources-img {
    margin: 0;
    flex-shrink: 0;
    width: 580px;
  }

  .resources-flex {
    display: flex;
    align-items: center;
    gap: 64px;
    flex-direction: row-reverse;
  }

  .resources-content {
    border: 2px solid var(--style);
    border-radius: 31px;
    padding: 80px 44px;

    h5 {
      font-size: 36px;
      margin-bottom: 44px;
    }

    ul,
    p {
      font-size: 24px;
    }
  }
}

/* create */

.create-link {
  background: var(--style);
  color: var(--styles);
}

.create-link:hover {
  color: var(--style);
}

.create-mail {
  display: block;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 18px;
  line-height: 156%;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-align: center;
  color: var(--style);
  margin-top: 20px;
  transition: color 0.3s ease;
}

.create-mail:hover,
.create-mail:focus {
  color: #fff;
}

.ellise {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@media screen and (min-width: 1436px) {
  .create-link {
    margin: 0 auto;
  }

  .create-mail {
    margin-top: 32px;
  }
}

/* footer */

.footer {
  padding: 44px 0;
  background: #282828;
}

.footer-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 35px;
  line-height: 100%;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  animation: flipX 14s ease-in-out infinite;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--styles);
  margin-bottom: 24px;
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  transition: color 0.3s ease;
  color: #fff;

  a:hover {
    color: var(--styles);
  }
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 64px 0;
  }

  .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-title {
    font-size: 35px;
    margin: 0;
  }

  .footer-text {
    font-size: 16px;
    margin: 0;
  }

  .footer-list {
    font-size: 16px;
    margin: 0;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 95, 147, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: var(--styles);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  border: 1px solid var(--styles);
  color: var(--styles);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease box-shadow 0.4s ease;

  svg {
    stroke: var(--styles);
  }
}
#scrollTopBtn:hover,
#scrollTopBtn:focus {
  box-shadow: 0 4px 22px 3px var(--styles);
}
#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateX(0);
}

.click {
  transform: rotate(135deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
