@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

* {
  font-family: "Poppins", sans-serif;
  cursor: default;
}

html,
body {
  margin: 0;
  padding: 0;
}

.container {
  width: 1160px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 200px;
}

.header {
  margin-top: 37px;
  margin-bottom: 28px;
}

.header img {
  height: 33.5px;
  width: auto;
}

.main {
  background-color: #f3f3f3;
  padding: 40px 55px;
  padding-right: 100px;
  border-radius: 32px;
  padding-bottom: 83px;
  position: relative;
}

h1 {
  color: #ed591c;
  font-size: 70px;
  line-height: 105px;
  font-weight: 700;
  margin: 0;
  margin-bottom: -5px;
}
.description {
  width: 56%;
  margin-left: auto;
  margin-right: 0;
  font-weight: 300;
  color: #161618;
  position: relative;
  padding-bottom: 238px;
}

.description .usual-text {
  font-size: 22px;
  line-height: 33px;
  margin-bottom: 38px;
}

.description .extra-info {
  position: absolute;
  background-color: #ffffff;
  padding: 32px;
  border-radius: 24px;
  color: #000000;
  font-size: 16px;
  line-height: 24px;
  right: 0;
  bottom: 0;
}

.description .extra-info p {
  margin: 0;
}

.description .extra-info a {
  color: #009ee3;
  cursor: pointer;
}

.description .extra-info a:hover,
.description .extra-info a:focus {
  color: rgb(114, 193, 227);
}

.description .extra-info .accent-sign {
  color: #ed591c;
  font-size: 21px;
  line-height: 31.5px;
  font-weight: 700;
  margin-top: 28px;
}

.footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.footer .footer-sign {
  font-size: 16px;
  line-height: 30px;
  font-family: 400;
  margin-left: 38px;
}

.image {
  position: absolute;
  bottom: -53px;
  width: 656px;
  height: 475px;
  left: -196px;
}

.animation {
  opacity: 0;
  animation: fadeInDown 0.5s ease-in-out;
  animation-fill-mode: forwards;
}

svg {
  display: block;
  margin: 0 auto;
  /* width: 300px; Размер SVG */
  height: auto;
}

.springy {
  animation-delay: 0.6s;
  animation: squish 1s cubic-bezier(0.25, 1, 0.5, 1) 2;
  animation-fill-mode: forwards;
  transform-origin: center bottom; /* Центр анимации внизу */
}
.character {
  animation-delay: 0.6s;
  animation: sit-bounce 1s cubic-bezier(0.25, 1, 0.5, 1) 2 ;
  animation-fill-mode: forwards;
  transform-origin: center bottom; /* Персонаж двигается относительно низа */
}
.twinkle {
  transform: translate(369px, 316px);
  animation: twinkle 3s 1 alternate ease-in-out;
  animation-fill-mode: forwards;
}

.twinkle-1 {
  transform: translate(407px, 0px);
  animation-duration: 5s;
  animation-delay: 1s;
  animation-iteration-count: 1;
}
.twinkle-2 {
  transform: translate(-13px, -524px);
  animation-duration: 5s;
  animation-iteration-count: 1;
}

@keyframes squish {
  0%,
  100% {
    transform: scaleY(1) translateY(0); /* Исходное положение */
  }
  50% {
    transform: scaleY(0.9) scaleX(1.1) translateY(5px); /* Сжатие */
  }
}
@keyframes sit-bounce {
  0%,
  100% {
    transform: translate(52.5px, 65px) scaleY(1);
  }
  50% {
    transform: translate(59.5px, 65px) scaleY(0.95);
  }
}
@keyframes twinkle {
  0%,
  60%,
  100% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1600px){
 .image{ 
    bottom: -91px;
    width: 603px;
    height: 475px;
    left: -171px;
  }
  h1{
    font-size: 65px;
    line-height: 89px;
  }
  .description{
    padding-bottom: 222px;
  }
  .description .usual-text{
    font-size: 20px;
    line-height: 32px;
  }
  .twinkle-2{
    transform: translate(-13px, -474px);
  }
}

@media (max-width: 1420px) {
  .container{
    width: 1050px;
    margin-bottom: 30px;
  }
  .header{
    margin-top: 23px;
    margin-bottom: 13px;
  }
  h1{
    font-size: 59px;
    line-height: 82px;
  }
  .description{
    padding-bottom: 182px;
  }
  .description .usual-text{
    line-height: 30px;
  }
  .description .extra-info{
    font-size: 14px;
    line-height: 17px;
  }
  .description .extra-info .accent-sign{
    font-size: 19px;
    line-height: 24.5px;
  }
  .image{
    bottom: -128px;
    width: 548px;
    height: 475px;
    left: -158px;
  }
  .twinkle-2{
    transform: translate(-13px, -442px);
  }

}
@media (max-width: 1289px) {
  .container{
    width: 900px;
  }
  h1{
    font-size: 50px;
    line-height: 72px;
  }
  .description{
    width: 60%;
  }
  .description .usual-text{
    font-size: 18px;
    line-height: 26px;
  }
  .description .extra-info{
    padding: 27px;
  }
  .description .extra-info .accent-sign{
    margin-top: 23px;
    font-size: 16px;
  }
  .main{
    padding: 40px 50px;
    padding-right: 74px;
    border-radius: 32px;
    padding-bottom: 70px;
  }
  .image{
    bottom: -156px;
    width: 501px;
    height: 475px;
    left: -158px;
  }
  .twinkle-2{
    transform: translate(-13px, -403px);
  }
}

@media (max-width: 1149px){
  .container {
    width: 800px;
  }
  h1{
    font-size: 47px;
  }
}

@media (max-width: 1040px){
  .container{
    width: 900px;
    overflow-x: hidden;
  }
  .image{
    bottom: -375px;
    width: 340px;
    height: auto;
    right: -62px;
    left: auto;
  }
  h1{
    font-size: 40px;
    line-height: 66px;
  }
  .main{
    padding-bottom: 50px;
  }
  .description{
    padding-bottom: 0;
    width: 100%;
    font-size: 20px;
    line-height: 30px;
    padding-top: 22px;
  }
  .description .extra-info{
    top: 166px;
    background-color: transparent;
    width: calc(100% + 80px);
    padding-right: 0;
    padding-left: 0;
    left: -40px;
    font-size: 16px;
    line-height: 30px;
  }
  .description .extra-info .accent-sign{
    font-size: 16px;
    line-height: 30px;
    margin-top: 15px;
  }
  .description .usual-text{
    margin-bottom: 0px;
  }
  .footer{
    margin-top: 400px;
    justify-content: space-between;
  }
  .footer .footer-sign:first-child{
    margin-left: 0px;
  }
  .twinkle-2{
    display: none;
  }
}
@media (max-width: 925px){
  .container{
    width: calc(100% - 24px);
  }
  h1{
    font-size: 38px;
    line-height: 54px;
  }
  .main{
    padding: 24px;
    border-radius: 24px;
  }
  .image{
    right: -50px;
  }
  .description .extra-info {
    top: 112px;
    width: calc(100% + 48px);
    left: -24px;
  }
  .header{
    margin-top: 27px;
    margin-bottom: 17px;
  }
  .header img{
    height: 21px;
  }
  .description .extra-info .accent-sign{
    margin-top: 10px;
  }

}

@media (max-width: 578px){
  .description .extra-info{
    top: 142px;
  }
  .image{
    bottom: -393px;
  }
  .footer{
    margin-top: 419px;
  }
}

@media (max-width: 447px){
  .description .extra-info{
    top: 175px;
  }
  .image{
    bottom: -439px;
  }
  .footer {
    margin-top: 461px;
  }
}

@media (max-width: 421px){
  .image{
    bottom: -473px;
  }
  .footer {
    margin-top: 504px;
  }
}

@media (max-width: 384px){
  .description .extra-info {
    top: 194px;
  }
}

@media (max-width: 351px){
  .description .extra-info {
    top: 224px;
  }
}