:root {
  --c-o: #FF8A00;
  --c-y: #FFE600;
  --c-w: #FFF5DC;
  --c-b: #1F1F1F;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
}

html {
  background: var(--c-b);
  min-height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: normal;
  border-radius: 40px;
  border: 2px solid #FFF;
  min-height: 100%;
  padding: 44px 135px;
  position: relative;
  margin: auto 50px;
  max-width: 100vw;
  position: relative;
  width: 100%;
}

.main_bg {
  position: absolute;
  top: 0;
  left: -50px;
  height: 100%;
  width: calc(100% + 50px);
  z-index: -1;
  overflow: hidden;
}

.main_bg img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  animation: imgScale 10s cubic-bezier(0.53, 0.01, 0.23, 0.96) infinite;
}

.bg_content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  z-index: -1;
}

.bg_content::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 40px;
  background-image: url("./../img/bg_filter.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

header .logo {
  width: 200px;
}

header .logo img {
  width: 100%;
}

footer {
  padding-top: 40px;
}

h1 {
  margin: 0 0 20px;
  color: var(--c-y);
  font-size: 5.6vw;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

h2 {
  color: #263E7D;
  text-align: center;
  font-size: 70px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.bonus {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  margin-bottom: 67px;
  font-size: 22px;
}

.bonus_item {
  background-image: url("./../img/bonus_bg.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  aspect-ratio: 445/240;
  padding: 30px 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0.35;
}

.bonus_item .main_link {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  padding: 10px;
  box-shadow: none;
}

.bonus_item .main_link:hover {
  box-shadow: 0 -8px 0 0 var(--c-o) inset;
}

.bonus_text {
  text-align: center;
  font-weight: 600;
  color: var(--c-b);
  margin-top: 20px;
}

.tw {
  color: var(--c-w);
}

input {
  font-size: 16px;
}

.main_link {
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 24px 30px 27px;
  width: 100%;
  color: #252C3A;
  text-align: center;
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
  line-height: normal;
  text-transform: uppercase;
  border-radius: 26px;
  border: 2px solid var(--c-b);
  background: var(--c-y);
  box-shadow: 0px -8px 0px 0px var(--c-o) inset;
  text-decoration: none;
  transition: all 0.25s ease;
}

.main_link:hover {
  box-shadow: 0px 8px 0px 0px var(--c-o) inset;
}

.tags {
  color: var(--c-w);
  font-size: 22px;
  font-weight: 500;
  line-height: 103%;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.tag {
  display: flex;
  align-items: center;
}

.tag .tag_icon {
  margin-right: 10px;
  width: 42px;
  height: 42px;
  min-width: 42px;
}

.tag .tag_icon svg {
  width: 100%;
  height: 100%;
}

@keyframes imgScale {
  0% {
    transform: scale(1);
  }

  20% {
    transform: scale(1.09) rotate(2deg);
  }

  40% {
    transform: scale(1.07) rotate(-1deg);
  }

  50% {
    transform: scale(1.1) rotate(1deg);
  }

  75% {
    transform: scale(1.05) rotate(0deg);
  }

  90% {
    transform: scale(1.1) rotate(-1deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.copy {
  z-index: -100;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

@media screen and (max-width: 1650px) {
  body {
    padding: 44px 60px;
  }

  header {
    margin-bottom: 10px;
  }

  h2 {
    font-size: 60px;
  }

  .bonus {
    font-size: 20px;
    margin-bottom: 70px;
  }

  .bonus_item {
    padding: 40px;
  }

  .bonus_item .main_link {
    top: calc(100% + 5px);
  }

  .bonus_text {
    margin-top: 20px;
  }
}

@media screen and (max-width: 1400px) {
  body {
    margin: 30px;
    padding: 40px 50px;
  }

  .main_bg {
    width: 100vw;
    left: -30px;
  }

  header .logo {
    width: 200px;
  }

  h1 {
    font-size: 80px;
  }

  h2 {
    font-size: 50px;
  }

  .bonus {
    font-size: 18px;
  }

  .bonus_item {
    padding: 20px;
  }

  .bonus_text {
    margin-top: 14px;
  }

  .tags {
    font-size: 18px;
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-gap: 30px;
    justify-content: space-evenly;
  }

  .tag {
    width: auto;
  }
}

@media screen and (max-width: 1200px) {
  .bonus_item {
    flex: 0.38;
    padding: 10px 20px;
  }
}

@media screen and (max-width: 1050px) {
  .main_bg {
    top: -30px;
  }

  h1 {
    font-size: 60px;
  }
}

@media screen and (max-width: 992px) {
  .main_bg img {
    width: 100%;
    height: 100%;
    -o-object-position: -850px -220px;
    object-position: -850px -220px;
  }

  .bonus {
    display: grid;
    justify-content: end;
    margin-bottom: 40px;
  }

  .bonus_item {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 900px) {
  .main_bg {
    left: -122px;
    width: calc(100% + 152px);
  }

  .main_bg.main_bg_en img {
    -o-object-position: center -170px;
    object-position: center -170px;
  }

  .main_bg img {
    -o-object-position: center -265px;
    object-position: center -265px;
  }

  .bonus {
    gap: 50px;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .tags {
    display: flex;
    flex-direction: column;
    width: -moz-max-content;
    width: max-content;
    margin: 0 auto;
    grid-gap: 20px;
    font-size: 16px;
  }

  .tag {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  body {
    padding: 40px 15px;
    margin: 10px;
  }

  .main_bg {
    width: calc(100% + 132px);
  }

  .main_bg img {
    -o-object-position: center -230px;
    object-position: center -230px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 40px;
  }

  .bonus {
    font-size: 16px;
    margin-bottom: 50px;
  }

  .bonus_item {
    padding: 20px;
    margin-bottom: 20px;
    aspect-ratio: 445/240;
  }

  .bonus_text {
    margin-top: 14px;
  }

  .main_link {
    font-size: 20px;
  }

  .tag .tag_icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}