@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-bg: #1d1d1d;
}

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

  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: white;
  outline: none !important;
  box-shadow: none !important;
  scroll-behavior: smooth;
  scroll-margin: 65px;
}

section {
  padding-block: 7vh;
}

input:focus {
  outline: none !important;
  border: #adadad 1px solid !important;
}

.closeButton {
  border-top-right-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  div.gkkf392dkhgh2 {
    transition: 0.2s;
    transform: rotate(45deg);
  }
  &:hover {
    div.gkkf392dkhgh2 {
      transition: 0.2s;
      transform: rotate(135deg);
    }
  }
}

body {
  min-height: 100vh;
  background-color: var(--primary-bg);
  overflow-x: hidden;
}

/* reveal-up animation (opacity + translateY) */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

ul.nav__items a {
  position: relative;
  text-decoration: none;
}

ul.nav__items a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #be1672;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

ul.nav__items > li:hover a::after {
  transform: scaleX(1);
}

.reveal-up[data-reveal-delay="1"] {
  transition-delay: 80ms;
}
.reveal-up[data-reveal-delay="2"] {
  transition-delay: 160ms;
}
.reveal-up[data-reveal-delay="3"] {
  transition-delay: 240ms;
}
.reveal-up[data-reveal-delay="4"] {
  transition-delay: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-up.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

a:active {
  color: #9f9f9f;
}

/* cursor-follow glow inside hero header area */
/* cursor-follow tiny glow inside top header */
header {
  position: relative;
  isolation: isolate;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
  background: radial-gradient(
    45px circle at var(--hdr-glow-x, 50%) var(--hdr-glow-y, 50%),
    rgba(190, 22, 114, 0.9),
    rgba(190, 22, 114, 0) 70%
  );
  filter: blur(6px);
}

header.glow-active::before {
  opacity: 1;
}

header > * {
  position: relative;
  z-index: 1;
}

button {
  background-color: transparent;
  border: 1px solid #a216be;
  outline: none;
}

.contact {
  opacity: 0;
  transform: translateY(50px);
  animation: form-show 0.3s forwards;
}
@keyframes form-show {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-header {
  height: 124px;
  background: #a216be;
  background: linear-gradient(
    86deg,
    rgba(162, 22, 190, 1) 0%,
    rgba(190, 22, 114, 1) 100%
  );
}

.container-d {
  width: min(1440px, 95%);
  margin: 0 auto;
  position: relative;
}

.weblevel_lang {
  border: 1px solid #4a4a4a;
}

.iphone {
  filter: drop-shadow(8px 39px 33px #000000);
}

.section__title {
  font-family: "PT-Sans", sans-serif;
  font-size: 14px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.21);
}

.swiper-wrapper {
  transition-timing-function: linear !important;
}

.test-light {
  filter: blur(400px);
  background-color: rgba(128, 50, 143, 0.28);
}

@keyframes scale {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.benefits_card {
  opacity: 0;

  animation: show linear both;
  animation-timeline: view();

  animation-range: entry 30% cover 50%;

  transition: 0.3s background-color;
  &:hover {
    background-color: rgba(217, 217, 217, 21%);
  }
}

@keyframes show {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.other__langs {
  opacity: 0;
  transition: 0.3s;
}

.weblevel_lang:is(:hover) .other__langs {
  visibility: visible;
  opacity: 1;
}

.lang {
  cursor: pointer;
}

.plan {
  background-color: rgba(27, 27, 27, 0.4);
  width: 430px;
  border: 1px solid #4a4a4a;
  transform: scale(0);
  opacity: 0;

  animation: to-scale ease-in-out both;
  animation-timeline: view();
  animation-range: entry 15% cover 45%;
  transition: 0.5s border-color;

  .plan__header {
    border-bottom: 1px solid rgba(143, 143, 143, 0.29);
    img {
      width: 30px;
    }
  }
  &:hover {
    transition: 0.5s border-color;
    border-color: #a216be;
  }
}

.screen-wrapper {
  perspective: 1200px;
  width: 600px;
  margin: 100px auto;
}

.screen {
  transform: rotateX(15deg) rotateY(-10deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  position: relative;
  transform: translate3d(0, 0, 0) rotateX(15deg) rotateY(-10deg);
}

.screen img {
  width: 100%;
  display: block;
  border-radius: 12px;
  image-rendering: auto;
  filter: blur(0.001px);
}

/* объем под объектом */
.screen::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 80%;
  height: 40px;
  background: rgba(0, 0, 0, 0.25);
  filter: blur(25px);
  transform: rotateX(80deg);
}

/* hover эффект */
.screen-wrapper:hover .screen {
  transform: rotateX(5deg) rotateY(5deg) scale(1.03);
}

.light {
  border-radius: 333px;
  filter: blur(99px);
  background-color: rgba(128, 50, 143, 0.25);
}

.teenused {
  padding-top: 30px;
  padding-left: 20px;
}

.phone {
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.notebook {
  opacity: 0; /* Начальное состояние */

  /* Указываем, что анимация зависит от прокрутки */
  animation: fade-in linear both;
  animation-timeline: view();

  /* Настройка: когда именно начинать (entry - при появлении внизу) */
  animation-range: entry 30% cover 50%;
}

@keyframes fade-in {
  from {
    opacity: 0;
    top: 50px;
  }
  to {
    opacity: 1;
    top: 0;
  }
}

@keyframes to-scale {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.products {
  max-width: 100vw;
}

#product {
  background-color: rgba(128, 50, 143, 0.6);
  padding: 4px 20px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
}

.pt-sans {
  font-family: "PT-Sans", sans-serif;
}

.weblevel__info {
  background: url("/img/info_bg.png") center no-repeat;
}

#contact {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.weblevel__info {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

#name,
#email {
  width: min(100%, 322px);
}

/* technology icons marquee */
.tech-marquee {
  width: 100%;
  overflow: hidden;
}

.tech-marquee__inner {
  display: flex;
  gap: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(143, 143, 143, 0.29);
  border-bottom: 1px solid rgba(143, 143, 143, 0.29);
  background: rgba(27, 27, 27, 0.18);
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.tech-marquee__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 100%;
  padding: 0 12px;
  animation: tech-marquee 24s linear infinite;
  will-change: transform;
}

.tech-marquee__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: saturate(0);
  transition: filter 200ms ease;
  user-select: none;
}

.tech-marquee__icon:hover {
  filter: saturate(1);
}

@keyframes tech-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-marquee__track {
    animation: none;
  }
}

/* footer */
.site-footer {
  margin-top: 60px;
  display: flex;
  align-items: stretch;
  background: rgba(27, 27, 27, 0.35);
  border-top: 1px solid rgba(143, 143, 143, 0.29);
}

.site-footer__inner {
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 34px;
}

.site-footer__logo {
  width: 160px;
  height: auto;
}

.site-footer__desc {
  margin-top: 16px;
  line-height: 1.6;
  max-width: 420px;
}

.site-footer__title {
  font-size: 18px;
  margin-bottom: 14px;
}

.site-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.site-footer__link {
  color: #9f9f9f;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer__link:hover {
  color: #d2d2d2;
}

.site-footer__form {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.site-footer__input {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #4a4a4a;
  background: rgba(36, 36, 36, 0.9);
  color: #fff;
  padding: 0 14px;
}

.site-footer__input::placeholder {
  color: rgba(159, 159, 159, 0.9);
}

.site-footer__btn {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #a216be;
  background: rgba(128, 50, 143, 0.25);
  transition: transform 180ms ease, background 180ms ease;
}

.site-footer__btn:hover {
  transform: translateY(-1px);
  background: rgba(128, 50, 143, 0.4);
}

@media (max-width: 960px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* perspective cards stack */
.persp-stack {
  position: relative;
  height: 420px;
}

.persp-stack__card {
  position: absolute;
  left: 0;
  right: 0;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.persp-stack__card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  user-select: none;
  pointer-events: none;
}

.persp-stack__card:nth-child(1) {
  top: 0;
  transform: translateY(0);
  z-index: 3;
}
.persp-stack__card:nth-child(2) {
  top: 0;
  transform: translateY(60px);
  z-index: 2;
}
.persp-stack__card:nth-child(3) {
  top: 0;
  transform: translateY(125px);
  z-index: 1;
  filter: drop-shadow(0 45px 15px rgba(0, 0, 0, 0.55));
}

.persp-stack:hover .persp-stack__card:nth-child(1) {
  transform: translateY(-60px);
}
.persp-stack:hover .persp-stack__card:nth-child(2) {
  transform: translateY(40px);
}
.persp-stack:hover .persp-stack__card:nth-child(3) {
  transform: translateY(120px);
}

#menu {
  opacity: 0;
  transform: translateX(100%);
  transition: 0.5s;
}

@media (max-width: 960px) {
  .persp-stack {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    height: 380px;
  }
  .persp-stack__card:nth-child(2) {
    transform: translateY(82px);
  }
  .persp-stack__card:nth-child(3) {
    transform: translateY(164px);
  }
  .persp-stack:hover .persp-stack__card:nth-child(2) {
    transform: translateY(128px);
  }
  .persp-stack:hover .persp-stack__card:nth-child(3) {
    transform: translateY(276px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .persp-stack__card {
    transition: none;
  }
  .persp-stack:hover .persp-stack__card:nth-child(1),
  .persp-stack:hover .persp-stack__card:nth-child(2),
  .persp-stack:hover .persp-stack__card:nth-child(3) {
    transform: none;
  }
}

/* new pricing cards (nplan) + comet effect */
.nplan {
  position: relative;
  overflow: hidden;
}

.nplan-comet {
  position: absolute;
  left: -35%;
  top: 20%;
  width: 220px;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transform: rotate(-18deg) translate3d(0, 0, 0);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 18px rgba(162, 22, 190, 0.4));
}

.nplan-comet::before {
  content: "";
  position: absolute;
  inset: -10px -40px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.85) 40%,
    rgba(190, 22, 114, 0.75) 60%,
    rgba(255, 255, 255, 0)
  );
  border-radius: 999px;
}

.nplan.is-comet .nplan-comet {
  opacity: 1;
  animation: nplan-comet-fly 5000ms ease-out both;
}

@keyframes nplan-comet-fly {
  0% {
    transform: rotate(-18deg) translate3d(-60px, 40px, 0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: rotate(-18deg) translate3d(640px, -180px, 0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nplan.is-comet .nplan-comet {
    animation: none;
    opacity: 0;
  }
}

#reccomended {
  left: 50%;
  transform: translateX(-50%);
  top: -15px;
  z-index: 1003;
}
