/* Блок 1 «Надежный ИИ для точного распознавания паспорта» */
/*
xs  < 576px — базовые стили
sm  ≥ 576px
md  ≥ 768px
lg  ≥ 992px
xl  ≥ 1200px
xxl ≥ 1400px
*/

.hero-block-section {
  margin-top: -80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-tiles-wrapper-str1,
.hero-tiles-wrapper-str2,
.hero-tiles-wrapper-str3 {
  display: grid;
  grid-template-columns: var(--left) var(--right);
  grid-gap: 16px;
  transition: all 0.4s ease;
  padding-block: 8px;

  .hero-tile {
    height: 184px;
    transition: all 0.4s ease;
    background-color: white;
    border-radius: 12px;
    filter: drop-shadow(4px 4px 0 #C9CFCE);
    padding: 16px;
  }

  .colored-tile {
    background-color: #C9CFCE;
  }

  .tile-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;

    img {
      max-width: 100%;
      max-height: 100%;
    }
  }

  .active {
    display: flex;
  }

  .colored-tile * {
    display: none;
  }
}

.str-1-state-1 {
  --left: 3fr;
  --right: 4fr;
}

.str-1-state-2 {
  --left: 4fr;
  --right: 2fr;
  padding-left: calc((100% / 7) - 16px);
}

.str-1-state-3 {
  --left: 2fr;
  --right: 4fr;
  padding-right: calc((100% / 7) - 16px);
}

.str-2-state-1 {
  --left: 4fr;
  --right: 3fr;
}

.str-2-state-2 {
  --left: 2fr;
  --right: 4fr;
  padding-right: calc((100% / 7) - 16px);
}

.str-2-state-3 {
  padding-left: calc((100% / 7) - 16px);
  --left: 2fr;
  --right: 4fr;
}

.str-3-state-1 {
  --left: 2fr;
  --right: 4fr;
  padding-right: calc((100% / 7) - 16px);
}

.str-3-state-2 {
  padding-left: calc((100% / 7) - 16px);
  --left: 2fr;
  --right: 4fr;
}

.str-3-state-3 {
  --left: 4fr;
  --right: 2fr;
  padding-right: calc((100% / 7) - 16px);
}

.slider-control-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  .dot-wrapper {
    display: flex;
    gap: 16px;
    padding-inline: 40px;

    .dot-item {
      border-radius: 50%;
      height: 16px;
      width: 16px;
      border: none;
      background: white;
    }

    .dot-active {
      background: #00b09a;
    }
  }
}

.black-circle {
  flex-shrink: 0;
  aspect-ratio: 1/1;
  width: 715px;
  height: 715px;
  border-radius: 50%;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.greenlight {
  position: absolute;
  width: 437px;
  height: 1092px;
  top: -300px;
  left: 0;
  z-index: -1;
}

.hero-block-header {
  font-size: 32px;
  margin-bottom: 16px;
}

.hero-block-send-button {
  font-size: 32px;
  width: 100%;
}

.hero-block-link {
  font-size: 12px;
  color: white;
  text-decoration: underline;
  opacity: 0.8;
}

.hero-side-block {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mobile-hiding {
  display: none;
}

.desktop-hiding {
  display: unset;
}

.hero-swiper-slider {
  overflow: hidden;
  .hero-swiper-ul {
    padding-left: 0;
  }

  .hero-swiper-pagination {
    margin-block: 24px 30px;
    height: 30px;

    .swiper-pagination-bullet {
      width: 16px;
      height: 16px;
      background-color: white;
      opacity: 1;
    }

    .swiper-pagination-bullet-active {
      background-color: #00B09A;
    }
  }
}

.hero-swiper-li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-inline: 4px 6px;


  .swiper-tile-content {
    height: 128px;
    display: flex;
    border-radius: 12px;
    filter: drop-shadow(4px 4px 0 #C9CFCE);
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: white;
    color: #4F5857;


    h3 {
      color: #081417;
    }
  }
}

.bg-grid {
  background: #fff url('/wp-content/themes/newsmart/img/passport-landing/block1/grid.svg') 0 0;
}


.initial-black-circle {
  position: absolute;
  z-index: -1;
  width: 1600px;
  height: 1600px;
  background: #101a18;
  border-radius: 50%;
  animation: init-animation-circle 1.4s forwards ease;
}

@keyframes init-left-side-animation {
  from {
    opacity: 0;
    transform: translateX(-1200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes init-right-side-animation {
  from {
    opacity: 0;
    transform: translateX(1200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes init-animation-circle {
  from {
    opacity: 0;
    top: -1260px;
    left: -1900px;
  }
  to {
    opacity: 1;
    top: -360px;
    left: -820px;
  }
}

/* ========================================
   (≥ 576px)
   ======================================== */
@media only screen and (min-width: 576px) {

}

/* ========================================
   (≥ 768px)
   ======================================== */
@media only screen and (min-width: 768px) {

}

/* ========================================
   (≥ 992px)
   ======================================== */
@media only screen and (min-width: 992px) {
  .hero-block-section {
    margin-top: 0;
  }

  .hero-side-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 680px;
    text-align: start;
  }

  .left-side-animation {
    animation: init-left-side-animation 0.8s forwards ease;
  }

  .right-side-animation {
    animation: init-right-side-animation 0.8s forwards ease;
  }


  .hero-block-header {
    font-size: 48px;
  }

  .mobile-hiding {
    display: unset;
  }

  .desktop-hiding{
    display: none;
  }

  .hero-block-send-button {
    font-size: 28px;
    max-width: 388px;
  }
}

/* ========================================
   (≥ 1200px)
   ======================================== */
@media only screen and (min-width: 1200px) {
  .hero-block-header {
    font-size: 52px;
  }
}

/* ========================================
   (≥ 1400px)
   ======================================== */
@media only screen and (min-width: 1400px) {

}
