 @font-face {
     font-family: 'Poppins';
     src: url(../fonts/otf/PPObjectSans-Heavy.otf)
 }

 /* comic-neue-300 - latin */
 @font-face {
     font-family: 'Comic Neue';
     src: url('../fonts/comic-neue-v8-latin-700.woff2') format('woff2');
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     text-decoration: none;
     font-family: 'Poppins', sans-serif;
 }

 body {
     overflow-x: hidden;
 }

 /* header */
 .header {
     background-color: rgb(248, 247, 246);
     font-family: 'Poppins', sans-serif;
 }

 .header-container {
     max-width: 1240px;
     width: 100%;
     padding: 10px 20px;
     margin: 0 auto;
     display: flex;
     align-items: center;
     justify-content: space-between;

 }

 .header-logo {
     width: 60px;
     height: 60px;
     display: flex;
 }

 .header-right {
     display: flex;
     align-items: center;
     gap: 15px;
 }

 .login-link {
     padding: 10px;
     background-color: brown;
     border: 1px solid brown;
     color: white;
     border-radius: 10px;
 }

 .login-link:hover {
     opacity: 0.8;
     ;
 }

 .registr-link {
     padding: 10px;
     background-color: white;
     color: brown;
     border: 1px solid brown;
     border-radius: 10px;
 }

 .registr-link:hover {
     opacity: 0.8;
 }

 /* main */
 .main {
     padding-bottom: 50px;
     font-family: 'Poppins', sans-serif;
 }

 .main-container {
     max-width: 1240px;
     width: 100%;
     padding: 0 20px;
     margin: 0 auto;
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .main-title {
     font-size: 25px;
     color: rgb(54, 54, 86);
 }

 .main-title span {
     font-size: 100px;
     font-style: italic;
     font-family: 'Megrim', cursive;
     font-weight: 700;
     color: rgb(168, 12, 12);
 }

 .main-img {
     width: 600px;
     height: 600px;
 }

 @media(max-width:1050px) {
     .main-title span {
         font-size: 60px;
     }

     .main-img {
         width: 500px;
         height: 500px;
     }

 }

 @media(max-width:950px) {
     .main-container {
         flex-direction: column-reverse;
     }

     .main-title {
         text-align: center;
     }
 }

 @media(max-width:520px) {
     .header-container {
         padding: 0 10px;
     }

     .main-img {
         width: 100%;
         height: 400px;
     }

     .main-title {
         font-size: 20px;
     }
 }

 @media(max-width:420px) {
     .main {
         padding-bottom: 25px;
     }

     .main-img {
         height: 330px;
     }

     .main-title {
         font-size: 18px;
         width: 100%;
     }

     .main-title span {
         font-size: 40px;
     }
 }

 /* lessons */
 .lessons {
     background-color: bisque;
     padding-top: 50px;
     padding-bottom: 50px;
     font-family: 'Poppins', sans-serif;

 }

 .lessons-container {
     max-width: 1240px;
     padding: 0 20px;
     width: 100%;
     margin: 0 auto;
 }

 .lessons-title {
     font-size: 30px;
     margin-bottom: 30px;
 }

 .lessons-box {
     display: flex;
     align-items: center;
     gap: 50px;
     /* justify-content: space-between; */
 }

 .lessons-video {
     max-width: 600px;
     width: 100%;
     background-color: red;
     border-radius: 10px;
 }

 .lessons-text-box {
     max-width: 400px;
     padding: 20px;
     background-color: rgb(200, 197, 197);
     border-radius: 10px;
 }

 .lessons-text {
     width: 100%;
 }

 @media(max-width:950px) {
     .lessons-box {
         flex-direction: column;
     }

     .lessons-title {
         text-align: center;
     }

     .lessons-text-box {
         max-width: 100%;
     }
 }

 @media(max-width:550px) {
     .lessons {
         padding-top: 25px;
         padding-bottom: 25px;
     }

     .lessons-title {
         font-size: 20px;
         margin-bottom: 15px;
     }

     .lessons-box {
         gap: 20px;
     }

     .lessons-video {
         max-width: 100%;
     }
 }

 /* learning */
 .learning {
     padding-top: 50px;
     padding-bottom: 140px;
     overflow: hidden;
     font-family: 'Poppins', sans-serif;
 }

 .learning-container {
     max-width: 1240px;
     width: 100%;
     padding: 0 20px;
     margin: 0 auto;
     position: relative;
 }

 .learning-title {
     text-align: center;
     font-size: 30px;
     margin-bottom: 30px;
     color: rgb(12, 12, 92);
     z-index: 1;
 }

 .fa-check {
     color: orangered;
     font-size: 25px;
 }

 .learning-list {
     list-style: none;
     max-width: 800px;
     width: 100%;
     z-index: 1;
 }

 .learning-item {
     background-color: rgb(194, 226, 246);
     width: 100%;
     display: flex;
     align-items: center;
     gap: 15px;
     padding: 20px;
     border-radius: 10px;
     margin-bottom: 10px;
 }

 .learning-text {
     font-size: 20px;
 }

 .learning-img {
     width: 550px;
     z-index: -10;
     position: absolute;
     top: 0;
     right: -50px;
     /* left: 800px; */
 }

 @media(max-width:950px) {
     .learning {
         padding-bottom: 50px;
     }

     .learning-list {
         max-width: 600px;
     }

     .learning-img {
         right: -100px;
         width: 400px;
     }

 }

 @media(max-width:550px) {
     .learning {
         padding-top: 25px;
         padding-bottom: 25px;
     }

     .learning-title {
         font-size: 20px;
     }

     .learning-item {
         padding: 10px;
         margin-bottom: 5px;
     }

     .fa-check {
         font-size: 16px;
     }

     .learning-text {
         font-size: 16px;
     }

     .learning-list {
         max-width: 350px;
         min-width: 300px;

     }

     .learning-img {
         width: 250px;
         right: -50px;
         top: auto;
         bottom: 0;
     }
 }

 /* footer */
 .footer {
     padding: 50px 0;
     background-color: rgb(18, 18, 83);
     font-family: 'Poppins', sans-serif;
 }

 .footer-container {
     max-width: 1200px;
     width: 100%;
     margin: 0 auto;
     padding: 0 20px;
 }

 .footer-list {
     list-style: none;
     display: flex;
     justify-content: space-between;
 }

 .footer-text {
     margin-bottom: 5px;
     color: white;
 }

 .footer-item {
     display: flex;
     flex-direction: column;
     gap: 5px;
 }

 .footer-link {
     color: white;
     opacity: 0.8;
 }

 .footer-link:hover {
     opacity: 1;
 }

 @media(max-width:550px) {
     .footer {
         padding: 20px 0;
     }

     .footer-list {
         flex-wrap: wrap;
         gap: 20px;
     }

     .footer-item {
         justify-content: center;

     }
 }