/* Basics */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  font-size: 16px;
  font-family: "Barlow Condensed", sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #0c0b0c 0%, #0c0b0c 47.6%, #0c0b0c 100%);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  line-height: 1.5;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

:root {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Container */

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1296px;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 48px;
    max-width: 1376px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 20px;
    max-width: 1320px;
  }
}

/* Buttons */

.button {
  --btn-hover-opacity: 0;
  --btn-active-opacity: 0;

  display: block;
  text-align: center;
  font-weight: 700;
  line-height: var(--btn-text-line-height);
  font-size: var(--btn-text-font-size);
  text-transform: uppercase;
  color: var(--btn-text-color);
  text-decoration: none;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  paint-order: stroke;
  background: var(--btn-image-source);
  background-repeat: no-repeat;
  background-size: var(--btn-image-size);
  background-position: var(--btn-image-position);
  -webkit-text-stroke: 1px var(--btn-stroke);
  text-shadow: var(--btn-text-shadow);
  position: relative;
}

.button__content {
  position: relative;
  top: initial;
  padding: 16px 24px;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  width: 100%;
  z-index: 4;
  pointer-events: none;
}

.button__label {
  margin-top: -5px;
}

.button .button__content:active {
  top: 1px;
}

/* .button::before,
.button::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms;
}

.button::before {
  background: var(--btn-image-source-hover);
  background-repeat: no-repeat;
  background-size: var(--btn-image-size);
  background-position: var(--btn-image-position);
  z-index: 2;
}
.button::after {
  background: var(--btn-image-source-active);
  background-repeat: no-repeat;
  background-size: var(--btn-image-size);
  background-position: var(--btn-image-position);
  z-index: 3;
} */

.button::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--btn-image-source-hover);
  background-repeat: no-repeat;
  background-size: var(--btn-image-size);
  background-position: var(--btn-image-position);
  pointer-events: none;
  z-index: 2;
  opacity: var(--btn-hover-opacity);
}

.button::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--btn-image-source-active);
  background-repeat: no-repeat;
  background-size: var(--btn-image-size);
  background-position: var(--btn-image-position);
  pointer-events: none;
  z-index: 3;
  opacity: var(--btn-active-opacity);
  transition: opacity 200ms;
}

.button--primary {
  --btn-image-source:
    url("./assets/images/buttons/primary/default/btn-default-left.png"),
    url("./assets/images/buttons/primary/default/btn-default-center.png"),
    url("./assets/images/buttons/primary/default/btn-default-right.png");
  --btn-image-source-hover:
    url("./assets/images/buttons/primary/hover/btn-hover-left.png"),
    url("./assets/images/buttons/primary/hover/btn-hover-center.png"),
    url("./assets/images/buttons/primary/hover/btn-hover-right.png");
  --btn-image-source-active:
    url("./assets/images/buttons/primary/active/btn-active-left.png"),
    url("./assets/images/buttons/primary/active/btn-active-center.png"),
    url("./assets/images/buttons/primary/active/btn-active-right.png");
  --btn-image-size: 46px 56px, calc(100% - 90px) 56px, 46px 56px;
  --btn-image-position: left center, center, right center;
  --btn-stroke: #015f2e;
  --btn-text-shadow: 0 1px 2px #004b27;
  --btn-text-color: #ffe198;
  --btn-text-line-height: 1.07;
  --btn-text-font-size: 26px;
}

@media screen and (min-width: 1280px) {
  .button--primary {
    --btn-image-size: 60px 80px, calc(100% - 118px) 80px, 60px 80px;
  }
}

.button--secondary {
  --btn-default: url("assets/images/buttons/secondary/btn-default@2x.png");
  --btn-hover: url("assets/images/buttons/secondary/btn-hover@2x.png");
  --btn-active: url("assets/images/buttons/secondary/btn-active@2x.png");
}

.button--tertiary {
  --btn-image-source:
    url("./assets/images/buttons/tertiary/default/btn-default-left.png"),
    url("./assets/images/buttons/tertiary/default/btn-default-center.png"),
    url("./assets/images/buttons/tertiary/default/btn-default-right.png");
  --btn-image-source-hover:
    url("./assets/images/buttons/tertiary/hover/btn-hover-left.png"),
    url("./assets/images/buttons/tertiary/hover/btn-hover-center.png"),
    url("./assets/images/buttons/tertiary/hover/btn-hover-right.png");
  --btn-image-source-active:
    url("./assets/images/buttons/tertiary/active/btn-active-left.png"),
    url("./assets/images/buttons/tertiary/active/btn-active-center.png"),
    url("./assets/images/buttons/tertiary/active/btn-active-right.png");
  --btn-image-size: 46px 48px, calc(100% - 90px) 48px, 46px 48px;
  --btn-image-position: left center, center, right center;
  --btn-stroke: #33302b;
  --btn-text-shadow: 0 1px 1px #292622;
  --btn-text-color: #cbb9a4;
  --btn-text-line-height: 1.09;
  --btn-text-font-size: 22px;
}

.button--tertiary .button__content {
  min-height: 48px;
}

.button:hover {
  --btn-hover-opacity: 1;
}

.button:active {
  --btn-active-opacity: 1;
}
/* Focus styles */
.button:focus-visible,
a:focus-visible,
.terms__button:focus-visible {
  outline: 3px solid #292622;
  outline-offset: 2px;
}

/* Header */

.header {
  position: relatives;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  justify-content: center;
  padding: 17px 16px;
  background: rgba(41, 38, 36, 0);
  border: 2px solid transparent;
  transition:
    border-color 0.3s ease,
    border-radius 0.3s ease;
}

.header.scrolled .header__inner {
  background-color: #033780;
  border-color: #0084e5;
  border-radius: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header__logo img {
  max-width: 95px;
}

.header__cta {
  background-color: #033780;
  display: flex;
  gap: 16px;
  padding: 4px 4px 4px 16px;
  align-items: center;
  border-radius: 24px;
  flex: 0 0 auto;
  transition: background-color 0.3s ease;
}

.header.scrolled .header__cta {
  background-color: #011837;
}

.header__code {
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.25;
}

.header__cta .button {
  flex: 0 0 auto;
  font-size: 16px;
}

.header__cta .button__content {
  min-height: 32px;
  width: 32px;
  padding: 0 8px;
}

.header .button__label {
  display: none;
}

.header .button__icon {
  display: inline-flex;
}

@media (min-width: 768px) {
  .header__logo img {
    max-width: 165px;
  }

  .header__code {
    font-size: 20px;
    line-height: 1.2;
  }

  .header__cta .button__content {
    min-height: 48px;
    width: auto;
    padding: 16px 24px;
  }

  .header .button__label {
    display: inline;
  }

  .header .button__icon {
    display: none;
  }

  /* .header__inner {
    background-color: transparent;
    padding: 26px 24px;
    max-width: 1280px;
    transition:
      background-color 0.3s ease,
      border-color 0.3s ease,
      border-radius 0.3s ease;
  } */
}

@media screen and (min-width: 1280px) {
  .header__inner {
    display: none;
  }
}

/* Hero section */

.hero__wrapper {
  position: relative;
}

.hero__wrapper::before,
.hero__wrapper::after,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero__wrapper::before,
.hero__wrapper::after {
  display: none;
  visibility: hidden;
  width: 100px;
  height: 100%;
  top: 0;
}

.hero__wrapper::before {
  background: linear-gradient(270deg, rgba(2, 37, 86, 0) 0%, #0c0b0c 100%);
  left: 0;
}

.hero__wrapper::after {
  background: linear-gradient(90deg, rgba(2, 37, 86, 0) 0%, #0c0b0c 100%);
  right: 0;
}

.hero {
  padding-block: 230px 48px;
  background-image: image-set(
    url("./assets/images/main-banner/main_banner_mobile@1x.webp") 1x,
    url("./assets/images/main-banner/main_banner_mobile@2x.webp") 2x
  );
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 180%;
  position: relative;
}

.hero::after {
  bottom: 0px;
  background: linear-gradient(180deg, rgba(2, 37, 86, 0) 0%, #0c0b0c 100%);
  width: 100%;
  height: 200px;
}

.hero__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.hero__logo {
  display: none;
}

@media screen and (min-width: 1280px) {
  .hero__logo {
    display: block;
  }
}

.bubble-wave {
  min-width: min-content;
  display: inline-block;
  margin: 12px 36px;
  color: #fbaa3a;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.11;
  letter-spacing: 0.28px;
  width: 214px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__inner .button--primary {
  min-width: 144px;
}

.hero__inner .button--primary .button__content {
  padding: 18px 60px;
}

.hero__heading {
  color: #fcebbb;
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.11;
  letter-spacing: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 414px) {
  .hero {
    padding-top: 250px;
  }
}

@media (min-width: 768px) {
  .main {
    padding-top: 0px;
  }

  .hero__wrapper::before,
  .hero__wrapper::after {
    display: block;
    visibility: visible;
  }

  .hero {
    padding-top: 30%;
    background-size: 100%;
  }

  .hero__content {
    padding-inline: 96px 48px;
    max-width: 1376px;
  }

  .hero__content .button--primary {
    width: auto;
  }

  .hero__heading {
    font-size: 64px;
    line-height: 1.18;
    margin-bottom: 40px;
  }
}

@media (min-width: 1280px) {
  .hero {
    background-image: image-set(
      url("./assets/images/main-banner/main_banner_desktop@1x.webp") 1x
        /* url("./assets/images/main-banner/main_banner_desktop@2x.webp") 2x */
    );
    background-size: 1920px auto;
    background-position: top center;
    padding-block: 56px 88px;
    padding-top: 70px;
  }

  .hero__content {
    display: flex;
  }

  .hero__inner .button--primary {
    --btn-text-font-size: 42px;
    --btn-text-line-height: 0.95;
  }

  .hero__inner .button--primary .button__content {
    padding: 26px 40px;
  }

  .bubble-wave {
    margin: 56px 20px 12px;
  }

  .hero__heading {
    margin-bottom: 24px;
  }
}

@media (min-width: 1920px) {
  .hero {
    padding-block: 172px 180px;
    padding-top: 145px;
    background-size: 2560px auto;
  }
}

@media (min-width: 2560px) {
  .hero {
    padding-top: 115px;
  }
}

/* Steps section */

.steps {
  padding-bottom: 48px;
  background-color: #0c0b0c;
}

.steps__content {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
}

.steps__item img {
  width: 70px;
  flex: 0 0 auto;
}

.steps_title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  color: #fcebbb;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.56px;
}

.steps__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.steps__item::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./assets/images/steps_border_image_texture.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 1;
}
.steps__item::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-image: url("./assets/images/steps_border_image.png");
  border-image-slice: 27 27 27 27;
  border-image-width: 8px 8px 8px 8px;
  border-image-outset: 0px 0px 0px 0px;
  border-image-repeat: stretch stretch;
  z-index: 2;
}

.steps__text,
.steps__item img {
  z-index: 3;
}

.steps__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.steps__text span {
  color: #b3a797;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.24px;
}

.steps__text p {
  color: #fcebbb;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0.28px;
}

@media (min-width: 768px) {
  .steps__item {
    gap: 24px;
  }

  .steps__text span {
    font-size: 20px;
    line-height: 1.2;
  }

  .steps__text p {
    font-size: 24px;
    line-height: 1.16;
  }
}

@media (min-width: 1280px) {
  .steps {
    padding-bottom: 40px;
    margin-top: -40px;
  }

  .steps_title {
    position: relative;
    z-index: 2;
  }

  .steps__content {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .steps__item {
    border-radius: 0;
    flex: 1 0;
    gap: 16px;
    padding: 16px;
  }

  .steps__text span {
    font-size: 16px;
    line-height: 1.12;
    letter-spacing: 0.24px;
  }

  .steps__text p {
    font-size: 18px;
    line-height: 1.11;
    letter-spacing: 0.28px;
  }
}

@media (min-width: 1920px) {
  .steps {
    margin-top: -60px;
    padding-bottom: 40px;
  }
}

@media (min-width: 2560px) {
  .steps {
    margin-top: -45px;
  }
}

/* Terms section */

.terms {
  margin-bottom: 48px;
}

.terms__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.terms__title {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  margin-bottom: 24px;
}

.terms__inner {
  background-color: #032e6b;
  padding: 24px 16px;
  border-radius: 24px;
  border-image: url("./assets/images/terms-frame.png") 40 fill/20px stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.terms__list li {
  display: flex;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  color: #e2eeff;
}

.terms__list li span {
  min-width: 10px;
}

.terms__visible,
.terms__more {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.terms__visible::after {
  content: "";
  background: linear-gradient(180deg, rgba(3, 46, 107, 0) 0%, #032e6b 100%);
  width: 100%;
  height: 64px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.terms__more[hidden] {
  display: none;
}

.terms__button {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.14;
  color: #65deff;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  cursor: pointer;
}

.terms__button-icon {
  transition: 0.3s ease rotate;
}

.is-open .terms__more {
  display: flex;
  margin-top: 24px;
}

.is-open .terms__visible::after {
  display: none;
}

.is-open .terms__button-icon {
  rotate: 180deg;
}

@media (min-width: 414px) {
  .terms__inner {
    gap: 48px;
    padding: 48px;
  }

  .terms__list li {
    display: flex;
    gap: 8px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
  }
}

@media (min-width: 768px) {
  .temrs {
    margin-bottom: 64px;
  }

  .terms__inner {
    max-width: 1088px;
  }

  .terms__title {
    font-size: 40px;
    line-height: 1.2;
  }
}

@media (min-width: 1280px) {
  .terms__title {
    margin-bottom: 40px;
  }
}

/* Footer */

.footer {
  border-top: 1px solid #37312e;
  background: #1f1c1b;
}

.footer__content {
  display: flex;
  padding: 32px;
  flex-direction: column;
  align-items: center;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__actions .button {
  min-width: 230px;
}

.footer__actions .button:first-child {
  position: relative;
  flex-grow: 1;
  font-size: 22px;
}

.footer__actions .button:first-child .button__content::before {
  position: absolute;
  content: "";
  background-image: url("./assets/icons/deposit.png");
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  height: 20px;
  left: 18px;
  top: 14px;
}

.footer__actions .button:last-child .button__content {
  padding: 16px 16px 16px 24px;
  justify-content: flex-end;
}

.footer__actions .button:last-child .button__icon {
  max-height: 20px;
}

.footer__info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__payments img {
  border-radius: 2px;
  border: 1px solid #37312e;
  background: #292623;
  padding: 6px 4px;
  width: 100px;
}

.footer__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #b3a797;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.2px;
}

@media (max-width: 380px) {
  .footer__actions .button {
    min-width: 300px;
  }
}
