@font-face {
  font-family: Poppins;
  font-display: swap;
  src: url(../fonts/Poppins-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: Poppins;
  font-display: swap;
  src: url(../fonts/Poppins-Medium.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: Poppins;
  font-display: swap;
  src: url(../fonts/Poppins-SemiBold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
}

.visually-hidden {
  border-width: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.full-screen {
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  height: calc(var(--vh, 1vh) * 100) !important;
  overflow-y: scroll !important;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body#body,
html#html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-weight: 400;
  scroll-behavior: smooth;
}

html#html {
  font-size: 0.278vw;
}

body#body {
  min-width: 100%;
  font-size: 14rem;
  line-height: 1.3;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: Poppins, sans-serif;
}

main {
  width: 100%;
  height: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: 0;
}

a:active,
a:hover {
  outline: 0;
}

h1 {
  font-size: 24rem;
}

h2 {
  font-size: 20rem;
}

h3 {
  font-size: 18rem;
}

p {
  font-size: 14rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

.step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0 20rem;
}

.step .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20rem;
  border-radius: 0 0 30px 30px;
  background: #fff;
  text-align: center;
}

.step__title {
  font-weight: 600;
  font-size: 16rem;
  line-height: 20rem;
  text-transform: uppercase;
  width: 265px;
  text-align: center;
}

.step__subtitle {
  margin: 10rem 0 20rem;
  font-weight: 500;
  font-size: 20rem;
  line-height: 24rem;
  color: rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
}

.step__caption {
  margin-top: 10rem;
  width: 260px;
}

.step__caption p {
  font-weight: 500;
  font-size: 14rem;
  line-height: 20rem;
  color: rgba(0, 0, 0, 0.85);
}

.step__count {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  gap: 10rem;
  margin-bottom: 20rem;
  padding: 0 7rem;
}

.step__count-q {
  font-weight: 600;
  font-size: 14rem;
  line-height: 18rem;
}

.step__count-num {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 11rem;
}

.step__count-num span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  width: 28rem;
  height: 28rem;
  font-weight: 600;
  font-size: 14rem;
  line-height: 18rem;
  color: #b2b2b2;
}

.step__count-num span.active {
  background: #1638dc;
  border-radius: 90%;
  color: #ffffff;
}

.step__count-num span + span:before {
  position: absolute;
  left: -8rem;
  width: 5px;
  height: 2px;
  background: #b2b2b2;
  content: "";
}

.step__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10rem;
}

.step__list-item {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 calc(33.3333333333% - 20px);
  flex: 1 1 calc(33.3333333333% - 20px);
  max-width: 99px;
}

.step__list-item input[type="checkbox"] + label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
  height: 100%;
  border-radius: 20px;
  border: 1px solid #cea4a4;
  overflow: hidden;
  cursor: pointer;
}

.step__list-item input[type="checkbox"] + label .name {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
  padding: 8rem 3rem;
  font-weight: 500;
  font-size: 12rem;
  line-height: 14rem;
}

.step__list-item input[type="checkbox"] + label .img {
  height: 80px;
}

.step__list-item input[type="checkbox"] + label .img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.step__list-item input[type="checkbox"]:checked + label {
  position: relative;
  height: 100%;
  border-radius: 20px;
  border: 4px solid #022def;
  overflow: hidden;
  cursor: pointer;
}

.step__list-item input[type="checkbox"]:checked + label:before {
  background: url(checked.svg) center center/100% no-repeat;
}

.step.--five,
.step.--seven,
.step.--six {
  padding: 0;
}

.step.--five .container,
.step.--seven .container,
.step.--six .container {
  height: 100%;
  padding: 12rem 20rem;
  border-radius: 0;
}

.step.--five .container .step__count,
.step.--seven .container .step__count,
.step.--six .container .step__count {
  margin-bottom: 10rem;
}

.step.--five .container .step__subtitle,
.step.--five .container .step__title,
.step.--seven .container .step__subtitle,
.step.--seven .container .step__title,
.step.--six .container .step__subtitle,
.step.--six .container .step__title {
  font-size: 16rem;
  line-height: 22rem;
}

.step.--five .container .step__subtitle,
.step.--seven .container .step__subtitle,
.step.--six .container .step__subtitle {
  margin-bottom: 10rem;
}

.step.--five:before,
.step.--seven:before,
.step.--six:before {
  border-radius: 0;
  margin-top: 60px;
}

.step:before {
  width: 100%;
  min-height: 60rem;
  border-radius: 30px 30px 0 0;
  background: url(logo.svg) center center/auto no-repeat #101010;
  content: "";
}

.step.hide {
  opacity: 0;
}

.mobile-landscape-warning {
  display: none;
}

.btn-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10rem;
  margin-top: 20rem;
  width: 100%;
}

.btn-group .step-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 50rem;
  padding: 0 20rem;
  border: 4px solid transparent;
  background: #1638dc;
  border-radius: 50px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 18rem;
  line-height: 22rem;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-group .step-btn.--no {
  border: 4px solid #1638dc;
  background: #fff;
  color: #1638dc;
}

@media only screen and (min-width: 390px) {
  .step__list-item input[type="checkbox"] + label .img {
    height: 130px;
  }
}

@media only screen and (min-width: 744px) {
  .step__list-item {
    max-width: 190px;
  }

  .step__list-item input[type="checkbox"] + label .name {
    font-size: 10rem;
  }

  .step.--five,
  .step.--seven,
  .step.--six {
    padding: 10rem;
  }

  .step.--five .container,
  .step.--seven .container,
  .step.--six .container {
    height: auto;
    padding: 10rem;
    border-radius: 0 0 30px 30px;
  }

  .step.--five .container .step__count,
  .step.--seven .container .step__count,
  .step.--six .container .step__count {
    margin-bottom: 10rem;
  }

  .step.--five .container .step__title,
  .step.--seven .container .step__title,
  .step.--six .container .step__title {
    font-size: 12rem;
    line-height: 16rem;
  }

  .step.--five .container .step__subtitle,
  .step.--seven .container .step__subtitle,
  .step.--six .container .step__subtitle {
    margin-bottom: 10rem;
    font-size: 14rem;
    line-height: 16rem;
  }

  .step.--five:before,
  .step.--seven:before,
  .step.--six:before {
    border-radius: 30px 30px 0 0;
  }

  .btn-group {
    margin-top: 15rem;
  }
}

@media only screen and (min-width: 768px) {
  html#html {
    font-size: 0.13vw;
  }

  body#body {
    font-size: 18rem;
  }

  h2 {
    font-size: 36rem;
  }

  .step .container {
    max-width: 400rem;
  }

  .step__title {
    font-size: 24rem;
    line-height: 32rem;
    width: auto;
  }

  .step__subtitle {
    font-size: 24rem;
    line-height: 32rem;
  }
  
  .step__caption {
    width: auto;
  }
  
  .step__caption p {
    font-size: 20rem;
    line-height: 24rem;
  }

  .step__count-q {
    font-size: 18rem;
    line-height: 22rem;
  }

  .step__count-num {
    gap: 18rem;
  }

  .step__count-num span {
    width: 34rem;
    height: 34rem;
    font-size: 18rem;
    line-height: 22rem;
  }

  .step__count-num span + span:before {
    left: -13rem;
    width: 10px;
    height: 2px;
  }

  .step__list {
    gap: 20rem;
  }

  .step__list-item input[type="checkbox"] + label .name {
    padding: 15rem 10rem;
    font-size: 20rem;
    line-height: 20rem;
  }

  .step__list-item input[type="checkbox"] + label:before {
    width: 24px;
    height: 24px;
  }

  .step.--five,
  .step.--seven,
  .step.--six {
    padding: 20rem;
  }

  .step.--five .container,
  .step.--seven .container,
  .step.--six .container {
    max-width: 578rem;
    padding: 20rem 44rem;
  }

  .step.--five .container .step__title,
  .step.--seven .container .step__title,
  .step.--six .container .step__title {
    font-size: 24rem;
    line-height: 32rem;
  }

  .step.--five .container .step__subtitle,
  .step.--seven .container .step__subtitle,
  .step.--six .container .step__subtitle {
    font-size: 20rem;
    line-height: 26rem;
  }

  .step.--five:before,
  .step.--seven:before,
  .step.--six:before {
    max-width: 578rem;
  }

  .step:before {
    max-width: 400rem;
    min-height: 70rem;
  }

  .btn-group {
    margin-top: 40rem;
  }

  .btn-group .step-btn {
    height: 60rem;
  }
}

@media only screen and (min-width: 768px) and (orientation: landscape) {
  .step__list {
    gap: 10rem;
  }

  .step__list-item {
    max-width: 173px;
  }

  .step__list-item input[type="checkbox"] + label .name {
    padding: 10rem;
    font-size: 16rem;
    line-height: 18rem;
  }

  .step__list-item input[type="checkbox"] + label .img {
    height: 120px;
  }

  .step.--five .container,
  .step.--seven .container,
  .step.--six .container {
    max-width: 578rem;
    padding: 20rem;
  }

  .step.--five .container .step__count,
  .step.--seven .container .step__count,
  .step.--six .container .step__count {
    margin-bottom: 10rem;
  }

  .step.--five .container .step__title,
  .step.--seven .container .step__title,
  .step.--six .container .step__title {
    font-size: 18rem;
    line-height: 26rem;
  }

  .step.--five .container .step__subtitle,
  .step.--seven .container .step__subtitle,
  .step.--six .container .step__subtitle {
    margin: 10rem 0;
    font-size: 16rem;
    line-height: 20rem;
  }

  .step.--five .container .btn-group,
  .step.--seven .container .btn-group,
  .step.--six .container .btn-group {
    margin-top: 20rem;
  }

  .step.--five:before,
  .step.--seven:before,
  .step.--six:before {
    max-width: 578rem;
  }
}

@media only screen and (min-width: 1024px) {
  html#html {
    font-size: 0.0977vw;
  }

  h1 {
    font-size: 60rem;
  }

  h3 {
    font-size: 34rem;
  }

  p {
    font-size: 20rem;
  }
}

@media only screen and (min-width: 1400px) {
  html#html {
    font-size: 0.0714vw;
  }
}

@media only screen and (min-width: 1920px) {
  html#html {
    font-size: 0.052vw;
  }
}

@media only screen and (min-width: 2560px) {
  html#html {
    font-size: 0.039vw;
  }
}

@media only screen and (max-width: 1023px) and (orientation: landscape) and (pointer: coarse) and (min-aspect-ratio: 1.5/1) {
  main {
    display: none;
  }

  @-webkit-keyframes rotateArrow {
    0% {
      -webkit-transform: rotate(-30deg);
      transform: rotate(-30deg);
    }

    40% {
      -webkit-transform: rotate(0);
      transform: rotate(0);
    }

    60% {
      -webkit-transform: rotate(0);
      transform: rotate(0);
    }

    100% {
      -webkit-transform: rotate(-30deg);
      transform: rotate(-30deg);
    }
  }

  @keyframes rotateArrow {
    0% {
      -webkit-transform: rotate(-30deg);
      transform: rotate(-30deg);
    }

    40% {
      -webkit-transform: rotate(0);
      transform: rotate(0);
    }

    60% {
      -webkit-transform: rotate(0);
      transform: rotate(0);
    }

    100% {
      -webkit-transform: rotate(-30deg);
      transform: rotate(-30deg);
    }
  }

  .mobile-landscape-warning {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
  }

  .mobile-landscape-warning__box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5rem;
    height: 48vh;
    width: 48vh;
    padding: 13rem;
  }

  .mobile-landscape-warning__icon-box {
    width: 100%;
    height: 48%;
    position: relative;
    background-image: url(landscape-tablets.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .mobile-landscape-warning__icon-box::after {
    content: "";
    position: absolute;
    width: 5vh;
    height: 5vh;
    top: 0;
    right: 30%;
    background-image: url(landscape-arrow.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    -webkit-transform-origin: left bottom;
    -ms-transform-origin: left bottom;
    transform-origin: left bottom;
    -webkit-animation: rotateArrow 2s linear infinite;
    animation: rotateArrow 2s linear infinite;
  }

  .mobile-landscape-warning p {
    font: inherit;
    font-size: 6rem;
    color: #fff;
    text-align: center;
  }
}

/* ========== ФОНОВІ ЗОБРАЖЕННЯ ========== */

/* Основний фон для body і html - мобільні */
body#body {
  background: url(bg-sm.webp) center center/cover no-repeat fixed;
  min-height: 100vh;
}

html#html {
  background: url(bg-sm.webp) center center/cover no-repeat fixed;
  min-height: 100vh;
}

/* Для браузерів без підтримки WebP */
.no-webp body#body {
  background: url(bg-sm.jpg) center center/cover no-repeat fixed;
}

.no-webp html#html {
  background: url(bg-sm.jpg) center center/cover no-repeat fixed;
}

/* .step без фону (прозорий) */
.step {
  background: transparent !important;
  min-height: 100vh;
}

.no-webp .step {
  background: transparent !important;
}

.webp .step {
  background: transparent !important;
}

/* Main прозорий */
main {
  background: transparent;
  min-height: 100vh;
}

/* Планшети (768px+) - продовжуємо використовувати bg-sm */
@media only screen and (min-width: 768px) {
  body#body {
    background: url(bg-sm.webp) center center/cover no-repeat fixed;
  }
  
  html#html {
    background: url(bg-sm.webp) center center/cover no-repeat fixed;
  }
  
  .no-webp body#body {
    background: url(bg-sm.jpg) center center/cover no-repeat fixed;
  }
  
  .no-webp html#html {
    background: url(bg-sm.jpg) center center/cover no-repeat fixed;
  }
}

/* Ландшафтна орієнтація 768px+ - переключаємо на bg-lg */
@media only screen and (min-width: 768px) and (orientation: landscape) {
  body#body {
    background: url(bg-lg.webp) center center/cover no-repeat fixed;
  }
  
  html#html {
    background: url(bg-lg.webp) center center/cover no-repeat fixed;
  }
  
  .no-webp body#body {
    background: url(bg-lg.jpg) center center/cover no-repeat fixed;
  }
  
  .no-webp html#html {
    background: url(bg-lg.jpg) center center/cover no-repeat fixed;
  }
}

/* Великі екрани 1024px+ - bg-lg для всіх орієнтацій */
@media only screen and (min-width: 1024px) {
  body#body {
    background: url(bg-lg.webp) center center/cover no-repeat fixed;
  }
  
  html#html {
    background: url(bg-lg.webp) center center/cover no-repeat fixed;
  }
  
  .no-webp body#body {
    background: url(bg-lg.jpg) center center/cover no-repeat fixed;
  }
  
  .no-webp html#html {
    background: url(bg-lg.jpg) center center/cover no-repeat fixed;
  }
}

/* Забезпечення що контейнер завжди видимий */
.step .container {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.step:before {
  flex-shrink: 0;
}

/* Mobile landscape warning backgrounds */
@media only screen and (max-width: 1023px) and (orientation: landscape) and (pointer: coarse) and (min-aspect-ratio: 1.5/1) {
  .webp .mobile-landscape-warning {
    background: url(backgroundMobileLandscapeWarning.webp) center center/cover no-repeat;
  }
  
  .no-webp .mobile-landscape-warning {
    background: url(backgroundMobileLandscapeWarning.png) center center/cover no-repeat;
  }
}