@font-face {
  font-family: "YS-Regular";
  src: url("fonts/YS\ Text-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "YS-Medium";
  src: url("fonts/YS\ Text-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "YS-Bold";
  src: url("fonts/YS\ Text-Bold.ttf") format("truetype");
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: #000;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  font-family: 'YS-Regular';
  padding: 0 24px;
}

#menu.flex {
  background: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent);
  border-top: 5px solid #ff3423;
  align-items: center;
  padding: 20px 0;
}

#menu.flex .item1 {
  display: flex;
  align-items: center;
  position: relative;
}

#menu.flex .item1:before {
  content: "";
  background-color: #ff3423;
  width: 120px;
  height: 100%;
  position: absolute;
}

#menu.flex .item1 a {
  display: block;
  position: relative;
  z-index: 1;
  padding: 5px 0 5px 44px;
}

.block {
  width: 48%;
}

.block2 {
  width: 60%;
}

.block3 {
  width: 35%;
}

.block img,
.block2 img,
.block3 img {
  width: 100%;
}

.flex {
  display: flex;
}

.space-between {
  justify-content: space-between;
}

.head {
  font-family: 'YS-Bold';
  font-size: 48px;
  margin: 40px 0;
}

.header {
  font-family: 'YS-Bold';
  font-size: 40px;
  margin-bottom: 40px;
}

.subheader {
  font-size: 24px;
  line-height: 130%;
  font-family: 'YS-Medium';
}

.description {
  margin-top: 16px;
  font-family: Times, serif;
  font-style: italic;
  font-size: 18px;
}

.text {
  line-height: 1.5;
  font-family: 'YS-Regular';
  font-size: 20px;
}

.mr-20 {
  margin-right: 20px;
}

.ml-20 {
  margin-left: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-80 {
  margin-bottom: 80px;
}

.mb-100 {
  margin-bottom: 100px;
}

.mt-160 {
  margin-top: 160px;
}

.mt--200 {
  margin-top: -200px;
}

.w-80 {
  width: 80%;
}

.center {
  text-align: center;
}

.bold {
  font-family: "YS-Bold";
}

.link {
  font-family: 'YS-Bold';
  font-style: normal;
  font-weight: 625;
  font-size: 18px;
  line-height: 150%;
  text-decoration-line: underline;
  color: #2961F3;
}


.ya {
  margin-top: 40px;
  width: 100%;
  height: 260px;
}

.ya img {
  width: 100%;
}

.cards {
  position: relative;
  height: 540px;
}

.card {
  position: absolute;
  width: 340px;
  background: #FFE033;
  border-radius: 16px;
  padding: 24px;
}

.card-header {
  font-size: 24px;
  line-height: 1.5;
  font-family: 'YS-Medium';
}

.card-text {
  font-size: 18px;
  line-height: 1.5;
  font-family: 'YS-Medium';
}

.card1 {
  left: 4%!important;
  top: 50px!important;
}

.rotate1 {
  transform: rotate(-9deg);
}

.card2 {
  left: 45%!important;
  top: 10px!important;
}

.rotate2 {
  transform: rotate(9deg);
}

.card3 {
  left: 28%!important;
  top: 240px!important;
}

.rotate3 {
  transform: rotate(6deg);
}

.card4 {
  left: 66%!important;
  top: 240px!important;
}

.rotate4 {
  transform: rotate(-12deg);
}

.test {
  background: #FBF3E9;
  border-radius: 16px;
  padding: 40px;
}

.test .text {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.test-card {
  padding: 24px 0;
  margin-bottom: 24px;
  width: 30%;
  text-align: center;
  border: 1px solid #000;
  font-size: 20px;
  border-radius: 12px;
  cursor: pointer;
}

.answer {
  font-family: 'YS-Bold';
  font-size: 24px;
  line-height: 150%;
}

.right-answer {
  background: #FFE033;
}

.hide {
  display: none;
}

#footer {
  position: relative;
  color: #000;
  background-color: #fff;
  padding: 30px 0;
  border-top: 1px solid #CBD5E1;
  font-family: 'YS-Regular';
}

#footer .flex1 {
  display: flex;
  align-items: center;
}

#footer .logo {
  padding-left: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-right: 6px;
  margin-right: 80px;
  max-width: 225px;
  background-color: #000;
}

#footer .logo img {
  width: 100%;
}

#footer .spec {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

#footer .item2 {
  margin-left: 20px;
}

#footer .item2 img:first-child {
  margin-right: 16px;
}

@media screen and (max-width: 500px) {
  .head {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .header {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .subheader {
    font-size: 20px;
    margin-top: 24px;
  }

  .flex {
    flex-direction: column;
  }

  .text, .link {
    font-size: 16px;
  }

  .block,
  .block2,
  .block3,
  .w-80 {
    width: 100%;
  }

  .block {
    margin-bottom: 24px;
  }

  .image-block {
    margin: 24px 0;
  }

  .image-block img {
    width: 100%;
  }

  .mb-40 {
    margin-bottom: 24px;
  }

  .mr-20 {
    margin-right: 0;
  }

  .ml-20 {
    margin-left: 0;
  }

  .mt--200 {
    margin-top: 0;
  }

  .mt-160 {
    margin-top: 20px;
  }

  .mb-100 {
    margin-bottom: 50px;
  }

  .description {
    margin-top: 8px;
    margin-bottom: 0;
  }

  .test {
    padding: 24px;
  }

  .answer {
    line-height: 1.2!important;
  }

  .cards {
    display: block;
    height: auto;
  }

  .card {
    width: auto;
  }

  .card,
  .card1,
  .card2,
  .card3,
  .card4 {
    position: unset!important;
    margin-bottom: 24px;
  }

  .card4 {
    margin-bottom: 0;
  }

  .rotate1,
  .rotate3 {
    transform: rotate(-5deg);
  }

  .rotate2,
  .rotate4 {
    transform: rotate(4deg);
  }

  
  .test .text {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 24px;
  }
  
  .test-card {
    padding: 16px 0;
    margin-bottom: 16px;
    width: 100%;
    font-size: 18px;
    border-radius: 8px;
  }

  .buy.flex {
    flex-direction: column-reverse;
  }
  
  .answer {
    font-family: 'YS-Bold';
    font-size: 24px;
    line-height: 150%;
  }

  #menu.flex {
    align-items: baseline;
  }

  #menu.flex .item1 a {
    max-width: 230px;
    padding: 5px 0 5px 30px;
  }

  #menu.flex .item1 a img {
    width: 100%;
  }

  #footer .flex1 {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  #footer .logo {
    margin: 0 auto;
    max-width: 225px;
  }

  #footer .item2 a {
    display: block;
  }

  #footer .copy,
  #footer .mid {
    margin-top: 10px;
    font-size: 12px;
  }

  #footer .logo:before {
    display: none;
  }

  .ya {
    height: auto;
    margin-bottom: -7px;
  }

  .ya img {
    height: 100%;
  }
}