
:root{
    --bg-card-main: rgba(0, 51, 110, 0.2);
    --font-inter: 'Inter', sans-serif;
    --border-color: rgba(255, 255, 255, 0.5);
    --bg-overlay: rgba(0, 51, 110, 0.2);
    --radius-xl: 33px;
    --ease-fast: all .3s easy;
    --color-accent: rgba(20, 160, 255, 1);
    --color-main: #fff;
    --font-xs: 18px;
    --font-sm: 24px;
    --font-lg: 36px;
    --font-xl: 48px;
    --font-3xl: 52px;
}
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

html {
  padding: 0;
  margin: 0;
  height: 100%;
}

body {
  padding: 0;
  margin: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}


.section {
  width: 100%;
  overflow: hidden;
  height: 100%;
  background: url("../images/bg-d.webp?v=20261119-153527") no-repeat center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.logo {
  max-width: 194px;
  display: inline-block;
  margin-right: 0em;
}

.wrapper{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    /* gap: 30px; */
}

.wrap-text-title{
  max-width: 725px;
  margin: 0 0 20px;
}

/* * btn-gradient-hover */
.btn-gradient-hover {
  width: 100%;
  height: 100%;
  position: relative;
  display: inline-block;
  text-align: center;
  color: var(--color-main);
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
  background: linear-gradient(90deg, rgba(20, 160, 255, 1), rgba(20, 161, 255, 0.85), rgba(20, 161, 255, 0.85), rgba(20, 160, 255, 1));
  box-shadow: 0 -10.115px 8.598px 0 rgba(0, 0, 0, 0.25) inset, 0 0 20.736px 0 rgba(20, 160, 255, 1);
  background-size: 400%;
  border-radius: 100px;
  z-index: 1;
  animation: animate-gradient 18s linear infinite;
  transition: 0.5s;
  transition:.3s ease-in;

  font-family: var(--font-inter);
  font-weight: 700;
  font-style: Bold;
  font-size: 52.77px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;

  border: none;

  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  padding: 0 25px;
}

.btn-gradient-hover:active{
  transition:.3s ease-in;
}
.btn-gradient-hover:hover {
  animation: animate-gradient 8s linear infinite;
}
.btn-gradient-hover:before {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 161, 255, 0.775), rgb(20, 161, 255), rgb(20, 161, 255), rgba(20, 161, 255, 0.775));
  background-size: 400%;
  border-radius: 40px;
  opacity: 0;
  transition: 0.5s;
}
.btn-gradient-hover:hover:before {
  filter: blur(20px);
  opacity: 1;
  animation: animate-gradient 8s linear infinite;
}
@keyframes animate-gradient {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}
.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: none;
  width: fit-content;
  height: 5.9em;
  border-radius: 3em;
  background-color: transparent;
  padding: 0;
  overflow: hidden;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  position: relative;
  z-index: 3;
}

.btn:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../images/blik.webp?v=20261119-153527);
  background-size: cover;
  -webkit-animation-name: moveLight;
  animation-name: moveLight;
  -webkit-animation-duration: 7s;
  animation-duration: 7s;
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-direction: normal;
  animation-direction: normal;
  -webkit-animation-fill-mode: none;
  animation-fill-mode: none;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  opacity: 0;
  z-index: 2;
}



@-webkit-keyframes moveLight {
  0% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    opacity: 1;
  }
  21% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    opacity: 1;
  }
  22% {
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

@keyframes moveLight {
  0% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    opacity: 1;
  }
  21% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    opacity: 1;
  }
  22% {
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

@media screen and (max-width: 1440px) and (max-height: 851px) {
    .logo {
      max-width: 145px;
      display: inline-block;
      margin-right: 0em;
    }
    .btn{
      max-width: 100%;
    }
}

@media (max-width: 850px) {
  .section {
    width: 100%;
    overflow: hidden;
    padding: 0 20px;
  }
  .wrapper {
    margin-top: 20px;
  }
}


@media (max-width: 567px) {
  .logo {
    max-width: 85px;
  }
  .section {
    background: transparent;
    position: relative;
    padding: 0;
  }
  .section::before{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    content: '';
    background-image: url(../images/bg-m.webp?v=20261119-153527);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
  }
  .section::after{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background: url(../images/hero.webp) no-repeat center;
    background-size: contain;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .wrapper{
    align-content: start;
    justify-content: start;
    align-items: center;
    margin-top: 25px;
    position: relative;
    z-index: 1;
  }
  .wrap-text-title {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }
  .btn {
    height: 60px;
  }
  .btn-gradient-hover{
    font-size: 36px;
  }
}


/* ---------------------------------------------------------------------------
   Пуши «входящих сообщений» в правом нижнем углу (только десктоп).
   Поток из двух слотов: новая карточка заезжает снизу в нижний слот, та, что была в
   нижнем, поднимается в верхний, верхняя плавно исчезает. Две картинки чередуются
   бесконечно: обе крутят одни и те же keyframes, вторая со сдвигом в половину цикла.
   Один шаг потока = половина цикла (--push-cycle / 2). Верхний слот = высота карточки + 12px,
   считается от её реальной высоты (translateY в % — от высоты самого элемента).
   --------------------------------------------------------------------------- */
.item-anim {
  --push-cycle: 8s;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  width: min(483px, 32vw);
  aspect-ratio: 483 / 88;      /* высота нижнего слота; верхний живёт над контейнером */
  pointer-events: none;
}

.item-anim__push {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
  will-change: transform, opacity;
  animation: push-flow var(--push-cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: 0.8s;
}

.item-anim__push:nth-child(2) {
  animation-delay: calc(0.8s + var(--push-cycle) / 2);
}

/* 0–8%  заезжает снизу в нижний слот; 50–58% поднимается в верхний;
   92–100% гаснет наверху и на 0% следующего круга снова заходит снизу */
@keyframes push-flow {
  0%        { opacity: 0; transform: translateY(40px) scale(0.96); }
  8%, 50%   { opacity: 1; transform: translateY(0) scale(1); }
  58%, 90%  { opacity: 1; transform: translateY(calc(-100% - 12px)) scale(1); }
  100%      { opacity: 0; transform: translateY(calc(-100% - 36px)) scale(0.98); }
}

@media (max-width: 850px), (prefers-reduced-motion: reduce) {
  .item-anim {
    display: none;
  }
}
