@font-face {
  font-family: 'Montserrat-Black';
  src: url("../fonts/Montserrat-Black.ttf"); 
}

@font-face {
  font-family: 'Montserrat-Bold';
  src: url("../fonts/Montserrat-Bold.ttf"); 
}

@font-face {
  font-family: 'Montserrat-Italic';
  src: url("../fonts/Montserrat-Italic.ttf"); 
}

@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/Montserrat-Regular.ttf"); 
}

@font-face {
  font-family: 'Forum';
  src: url("../fonts/Forum-Regular.ttf"); 
}

html {
  background-color: #f7f7f7;
  scroll-behavior: smooth;
  overflow-x:hidden; 
}

a {
  margin: 1.5rem 0;
  font-size: 1.2rem !important;
  color: red;
  height: auto;
}

#navbar{
  position: fixed;
  top:0;
  z-index: 99;
}

a.button:not(.btn-bracelet) {
  font-family: 'Montserrat-Bold' !important;
  font-size: 16px !important;
}
a.navbar-burger, .navbar-item{
  margin: 0;
}

.bg-img{
  background-image: url(../img/bg-img.png); 
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.bg-bracelets{
  background-image: url(../img/bracelets.png); 
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.is-white{
  color: white;
}


.btn-taro{
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  color: white;
  border:none;
  background-size: 100%;
}

a.button{
padding: 1rem 0;
}

section{
  max-width: 576px;
  margin: 0 auto!important;
}
section #services{
  background-color: #F8F9FD;
}

.card{
  margin: 1.5rem 1rem;
}

.card img{
  margin: 1rem auto 2rem auto;
}

.is-danger{
  color: red;
}

.is-horizontal-center {
  margin: auto;
}

.max-container {
    margin: 0 auto;
    padding: 0 var(--container-offset);
    max-width: var(--container-max-width)
}


/* HEADER BLOCK */
.header__container {
    position: relative;
    padding: 0 0 68px;
}

.circle__art {
    position: relative;
    height: 371px;
    top: 110px
}

img.circle__art {
  animation: 25s linear 0s normal none infinite running circle__art;
  -webkit-animation: 25s linear 0s normal none infinite running circle__art;
  height: 410px;
}

@media (max-width: 390px) {
  img.circle__art {
    animation: 25s linear 0s normal none infinite running circle__art;
    -webkit-animation: 25s linear 0s normal none infinite running circle__art;
    height: 270px;
  }
}

@media (min-width: 395px) and (max-width: 430px) {
  img.circle__art {
    animation: 25s linear 0s normal none infinite running circle__art;
    -webkit-animation: 25s linear 0s normal none infinite running circle__art;
    height: 305px;
  }
}

@keyframes circle__art {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes circle__art {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.room__art {
    position: absolute;
    left: 19%;
}

@media (max-width: 390px) {
  .room__art {
    left: 5%;
  }
}

@media (min-width: 395px) and (max-width: 430px) {
  .room__art {
    left: 10%;
  }
}

.black__shadow {
    position: absolute;
    left: 0%;
    top: 310px;
}

.header__content {
    position: relative;
    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-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 40px;
    z-index: 9
}

.header__content::after {
  content: "";
    width: 150px;
    height: 301px;
    position: absolute;
    right: 0;
    top: 490px;
    background-image: url(../img/shadow/shadow_2.png);
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
}

.header__content::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 301px;
  top: 282px;
  left: 0;
  background-image: url(../img/shadow/shadow_1.png);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 8;
}

.block__left {
  position: relative;
  max-width: 220px;
  width: 100%;
  text-align: left;
}

@media (max-width: 430px) {
  .block__left {
    left: 60px;
  }
}

.block__right {
  position: relative;
}

@media (min-width: 390px) and (max-width: 430px) {
  .block__right {
    left: 0;
    position: relative;
  }
}

.header__subtitle {
    position: relative;
    font-family: 'Montserrat-Bold';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: #FFFFFF;
    z-index: 9
}

.header__title {
    position: relative;
    font-family: 'Montserrat-Italic';
    font-style: italic;
    font-weight: 500;
    font-size: 31px;
    line-height: 38px;
    color: #FFFFFF;
    padding-top: 30px;
    z-index: 9
}

.cart__art {
  position: relative;
  height: 310px;
  z-index: 9;
}

@media (max-width: 390px) {
  .cart__art {
    height: auto;
  }

  .header__subtitle {
    font-size: 30px;
  }

  .header__title {
      position: relative;
      font-size: 28px;
  }
}

.header__text--content {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 50px;
}

/* WRAPPER CONTENT */

.amulets {
  padding-top: 122px;
  background: url(../img/background.png) center top / cover no-repeat rgb(16, 16, 16);
  background-position: center top;
}

.amulet__center {
  position: relative;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  text-align: center;
  letter-spacing: 0.57em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.finance__amulet {
  position: relative;
  display: block;
  width: 377px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 12px #8A77FF;
  backdrop-filter: blur(3px);
  border-radius: 20px;
  margin: 0 auto;
}

.finance {
  position: relative;
  max-width: 377px;
  width: 100%;
  margin: 0 auto;
}

.finance__title {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-size: 37px;
  line-height: 34px;
  text-align: center;
  text-transform: uppercase;
  color: #FFFFFF;
}

.finance__subtitle {
  font-family: 'Montserrat-Italic';
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  text-align: center;
  color: #FFFFFF;
  padding-top: 18px;
}

.finance__text--line {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-size: 31px;
  line-height: 29px;
  text-align: center;
  text-transform: uppercase;
  color: #897DCE;

  padding-top: 45px;
  padding-bottom: 20px;
}

.finance__line {
  width: 265px;
  display: block;
  margin: 0 auto;
  padding-bottom: 12px;
}

.line__title {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  color: #fff;
}

.finance__box {
  padding-bottom: 45px;
}

.btn-bracelet,
a.button.btn-bracelet {
  position: relative;
  width: 244px;
  height: 54px;
  background: linear-gradient(92.52deg, #8A77FF 6.72%, #533CDF 93.63%);
  box-shadow: 0px 0px 10px #5F4BDB;
  border-radius: 8px;

  font-family: 'Forum', Georgia, serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: 22px !important;
  line-height: 24px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;

  display: block;
  margin: 0 auto;
}

.button__box {
  padding-bottom: 50px;
}

.live__amulet {
  position: relative;
  display: block;
  width: 377px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 12px #8A77FF;
  backdrop-filter: blur(3px);
  border-radius: 20px;
  margin: 0 auto;
  margin-top: 122px;
}

.negative__amulet {
  position: relative;
  display: block;
  width: 377px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 12px #8A77FF;
  backdrop-filter: blur(3px);
  border-radius: 20px;
  margin: 0 auto;
  margin-top: 122px;
}

.finance__text {
  padding-top: 20px;
}

/* FOOTER BLOCK */

.footer {
  position: relative;
  width: 320px;
  margin: 0 auto;
  display: block;
  padding-top: 50px;
  padding-bottom: 50px;
}

.footer__image {
  position: relative;
  display: block;
  right: -240px;
}

@media (max-width: 390px) {
    /* Исправляем карточки амулетов */
    .finance__amulet, 
    .live__amulet, 
    .negative__amulet {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        border-radius: 0; /* Или можно оставить, как было */
    }
    
    /* Исправляем картинку внутри, чтобы она масштабировалась */
    .finance {
        width: 100%;
        max-width: 100%;
    }

    /* Исправляем жесткую ширину футера */
    .footer {
        width: 100% !important;
        overflow: hidden;
    display: flex;
    justify-content: center;
    }
    .live__amulet {
            margin-top: 0px;
    }
    .negative__amulet  {
        margin-top:0;
    }
    .footer__image {
        right:inherit;
    }
    .btn-bracelet {
            font-size: 19px;
    }
        .block__left {
        left: 30px;
    }
    .room__art {
        left: 0%;
    }
}


.room__art {
  width: min(97vw, 343px);
  height: auto !important;
  max-width: 100%;
  left: 50% !important;
  transform: translateX(-50%);
}

.header__text--content {
  padding: 2rem 0;
}
/* Для самых узких экранов дополнительно опускаем/подгоняем тени, чтобы не “отставали”. */
@media (max-width: 357px) {
 

  .header__content::before {
    top: 255px;
    width: 154px;
    height: 272px;
  }

  .header__container {
    padding: 0;
  }

  .header__content::after {
    top: 444px;
    width: 136px;
    height: 272px;
  }
}

.footer {
    display: flex;
    justify-content: center;
}

.footer .footer__image {
    right:inherit;
}
footer {margin-bottom:2rem;}

