@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway-Regular.ttf");
}

@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Regular.ttf");
}


body {
    font-family: "Raleway";
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    padding: 0;
    background-image: url(img/bg-newline.png);
    background-position: left top;
    background-repeat: repeat-y;
    background-color: #e5e6fa;
  }
  .wrapper {
    width: 80%;
    max-width: 1300px;
    margin: 0 auto;
    /* padding: 20px; */
  }
  .wrapper-mc {
    width: 80%;
    max-width: 1500px;
    margin: 0 auto;
    /* padding: 20px; */
  }
  h1 {
    font-size: calc(1.5rem + 2vw - 1vh);
    /* font-size: 44px; */
    margin-bottom: 25px;
  }
  h2 {
    margin: 0;
    font-size: 40px;
  }
  a {
    text-decoration: none;
    color: #000;
  }
  /* Стили для блока с логотипом и телефоном */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 50px;
  }
  .logo {
    font-size: 24px;
    font-weight: bold;
  }
  .phone-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 40px;
    margin-right: 50px;
    padding: 5px 10px;
    border: solid #f9cc01 3px;
    border-radius: 40px;
  }
  .phone{
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
  }
  .popup-form-btn {
    display: block;
    margin: 50px auto;
    height: 70px;
    padding: 10px 55px;
    border-radius: 40px;
    border: solid 3px #e5e6fa;
    font-size: 18px;
    color: #000;
    background: #f9cc01;
    text-transform: uppercase;
    cursor: pointer;
  }
  /* Стили для информации в верхней части сайта */
  .top {
    background-image: url(img/bg-top.png);
    background-size: 75% auto;
    background-position: right;
    background-repeat: no-repeat;
  }
  .top-info{
    margin-top: 125px;
    margin-bottom: 50px;
  }
  .top-info-block{
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  .top-info-text{
    line-height: 24px;
    font-size: 18px;
  }
  .top-banner {
    margin-top: 100px;
    max-height: 350px;
  }
  /* Стили для формы обратной связи top */
  .top-form {
    margin-bottom: 50px;
  }
  .top-contact-form {
    width: 500px;
    height: 100%;
    padding: 20px;
    background: linear-gradient(to right, #7ee1de, #9ce1cd, #d6d178);
    opacity: 0.8;
    border-radius: 35px;
  }
  .top-contact-title{
    text-align: center;
    font-size: 22px;
    color: #fff;
  }
  .form-group {
    margin: 25px 0;
  }
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  .form-group input, .form-group input {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    border: none;
    border-radius: 61px;
    box-sizing: border-box; 
  }
  .form-group button {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    background-color: #ffd100;
    border: none;
    border-radius: 61px;
    cursor: pointer;
  }
  .pp-block{
    display: inline-block;
    text-align: left;
    font-size: 12px;
    font-weight: 400;
    color: #474747;
  }
  /* Блок с информацией и адресом */
  .info-address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: rgba(239,239,239,0.8);
    border-radius: 15px;
    width: 100%;
    margin-top: 150px;
    justify-content: center;
  }
  .info-address-item {
    display: flex;
    align-items: center;
    line-height: 20px;
    margin: 25px 100px 25px 0;
  }
  .info-icon, .info-text, .info-text-address {
    margin-left: 30px;
    display: inline-block;
    vertical-align: middle;
  }
  .info-text-address {
    line-height: 30px;
  }
  /* Зачем рисовать */
  .for-what {
    margin-top: 100px;
    margin-bottom: 100px;
  }
  .for-what-block{
    display: flex;
    flex-wrap: wrap;
  }
  .for-what-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background-color: rgba(239,239,239,0.8);
    margin: 25px;
    width: 45%;
    min-height: 120px;
  }
  .for-what-item img{
    background-color: #000;
    min-height: 160px;
    max-width: 160px;
  }
  .for-what-item .text{
    font-size: 20px;
    line-height: 30px;
    margin-left: 20px;
  }
  .item-text {
    display: flex;
    flex-wrap: wrap;
    width: 250px;
    align-items: center;
    justify-content: space-around;
  }
  .item-price {
    display: flex;
    flex-wrap: nowrap;
    max-width: 160px;
  }
  /* Пробное занятие */
  .trial-lesson {
    margin-top: 150px;
    margin-bottom: 150px;
  }
  .trial-lesson-block{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
  }
  .trial-lesson-item {
    width: 600px;
    min-height: 150px;
    background-color: rgba(239,239,239,0.8);
    margin: 20px 10px;
    border-radius: 25px;
  }
  .trial-lesson-title {
    margin: 15px 20px;
    font-size: 22px;
    font-weight: 600;
  }
  .trial-lesson-text {
    margin: 15px 20px;
    font-size: 16px;
    font-weight: 500;
  }
  /* Artline - это */
  .about-us {
    margin-bottom: 50px;
  }
  .about-us-block{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .about-us-item {
    width: 350px;
    height: 520px;
    background-color: rgba(239,239,239,0.8);
    margin: 25px;
  }
  .about-us-item-description {
    width: 500px;
    margin-left: 25px;
  }
  .about-us-title {
    font-size: 22px;
    font-weight: 300;
    line-height: 30px;
  }
  .about-us-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
  }
  /* Направления обучения */
  .services {
    margin-top: 125px;
    margin-bottom: 125px;
  }
  .services-block{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .service-item {
    width: 300px;
    height: 580px;
    /* background-color: #efefef; */
    background-color: rgba(239,239,239,0.8);
    margin: 25px;
  }
  .service-item-mc {
    width: 200px;
    height: 310px;
    /* background-color: #efefef; */
    background-color: #fff;
    margin: 25px;
  }
  .service-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
  }
  .service-title-mc {
    font-family: "Rubik";
    text-align: center;
    font-size: 18px;
    font-weight: 300;
  }
  .service-text {
    padding: 0 5px;
    text-align: center;
    line-height: 22px;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
  }
  .service-text-mc {
    font-family: "Rubik";
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 300;
  }
  .service-image {
    text-align: center;
    background-color: black;
    margin: 0;
    width: 100%;
    height: 370px;
  }
  .service-image-mc {
    text-align: center;
    background-color: black;
    margin: 0;
    width: 100%;
    height: 200px;
  }
  .link-more {
    color: #6d6d6d;
    text-decoration: underline;
  }
  .link-more:hover {
    color: #000;
  }
  /* .service-item img {
    width: 50px;
    height: 50px;
  } */
  /* Стили для блока с работами учеников */
  .works {
    margin-bottom: 30px;
  }
  .works-block{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .works-column{
    width: 200px;
    margin-right: 20px;
    color:#fff;
  }
  .works-item {
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    background-color: black;
    border-radius: 15px;
  }

  .works-item-sm {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    background-color: black;
    border-radius: 15px;
  }

  .works-item-bg {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    background-color: black;
    border-radius: 15px;
  }
    /* Отзывы */
    .reviews {
      margin-top: 150px;
      margin-bottom: 150px;
    }
    .reviews-block{
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
    }
    .reviews-item {
      max-width: 750px;
      background-color: rgba(239,239,239,0.8);
      margin: 25px;
      border-radius: 25px;
    }
    .reviews-item-photo {
      display: inline-flex;
      background-color: #000;
      border-radius: 10px;
      margin: 20px;
      width: 100px;
      height: 100px;
    }
    .reviews-item-description {
      display: inline-flex;
      flex-wrap: wrap;
      margin-bottom: 20px;
      max-width: 70%;
    }
    .reviews-name {
      font-size: 26px;
      font-weight: 400;
    }
    .reviews-text {
      margin-top: 10px;
      line-height: 18px;
      font-size: 14px;
      font-weight: 500;
    }
    .swiper{
      width: 100%;
      height: 100%;
    }
    .swiper-slide{
      font-size: 18px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .swiper-button-next, .swiper-rtl .swiper-button-prev{
      right: 140px !important; 
      color: #6de1dc !important;
      left: auto;
    }
    .swiper-button-prev, .swiper-rtl .swiper-button-next{
      left: 140px !important; 
      color: #6de1dc !important;
      right: auto;
    }
    .swiper-pagination {
      bottom: 0 !important;
      
    }
    .swiper-pagination-bullet-active{
      background-color: #6de1dc !important;
    }
  /* Стили для блока bottom */
    .bottom{
      margin-bottom: 200px;
    }
    .bottom-block{
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
    }
    .bottom-item {
      display: flex;
      flex-wrap: wrap;
      width: 600px;
      height: 500px;
      margin: 25px;
    }
    .bottom-item img {
      margin: 0 auto;
    }
    .bottom-text {
      margin: 20px;
      line-height: 25px;
      text-align: center;
    }
    .bottom-form{
      width: 450px;
      height: auto;
      box-sizing: border-box;
      background-color: rgba(239,239,239,0.8);
      margin: 25px;
      border-radius: 25px;
      padding: 20px;
    }
    .bottom-contact-title{
      margin: 20px 0 50px 0;
      text-align: center;
      font-size: 20px;
    }
    .bottom-form-submit{
      background-color: #6addd6 !important;
    }
    .container-bottom-title h2{
      display: flex;
      margin: 0 auto;
    }
  /* Стили для футера */
  .footer {
    text-align: center;
  }
  .footer-block{
    display: flex;
    flex-wrap: wrap;
    justify-content:flex-start;
    height: 100px;
  }
  .footer-item {
    display: flex;
    align-items:center;
    justify-content: center;
    flex-wrap: wrap;
    width: 600px;
  }
  .footer-logo{
    margin-right: 50px;
  }
  .footer-text{
    margin-right: 20px;
  }
  .footer-text-pp{
    margin-right: 50px;
  }
  .social {
    display: flex;
    align-items:center;
    justify-content: space-around;
    width: 180px;
    height: 40px;
    padding: 5px 10px;
    margin-right: 20px;
    background-color: #ffd100;
    border-radius: 40px;
  }
   /* Стили для titles */
  .titles-block{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .container-title {
    display: flex;
    margin-bottom: 20px;
  }
  .container-title-works, .container-title-reviews {
    width: 500px;
    margin-bottom: 50px;
  }
  .container-bottom-title{
    display: flex;
    margin-bottom: 40px;
  }

  /* Блок с всплывающей формой */
  .form-popup-bg {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    transition: opacity 0.3s 0s, visibility 0s 0.3s;
    overflow-y: auto;
    z-index: 10000;
  }
  .form-popup-bg.is-visible {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
  }
  .form-popup-container {
      background-color: #fff;
      display: flex;
      flex-direction: column;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
      position: relative;
      padding: 40px;
      color: #fff;
      border-radius: 25px;
  }
  .form-group {
    margin: 25px 0;
  }
  .popup-title {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
  }
  .popup-text {
    font-size: 14px;
    font-weight: 500;
    color: #000;
  }
  .popup-label {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    letter-spacing: 1px;
  }
  .form-popup-container input {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border: 2px solid #c9c9c9;
    border-radius: 15px;
    box-sizing: border-box;
  }

  .form-popup-container select {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border: 2px solid #c9c9c9;
    border-radius: 15px;
    box-sizing: border-box;
    background-color: #fff;
  }
  .popup-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    background-color: #ffd100;
    border: none;
    border-radius: 61px;
    cursor: pointer;
  }
  .close-popup {
    background:none;
    background: url(img/logo/close.png) center center no-repeat;
    color: #000;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  .close-popup:hover {
    opacity: 0.5;
  }
  
  .form-popup-bg:before{
    content:'';
    background-color: #fff;
    opacity: .25;
    position:absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .popup-pp-block{
    display: inline-block;
    margin-top: 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 300;
    color: #000;
  }

  .popup-pp-block input {
    width: auto !important;
  }

  @media (max-width: 768px) {
    .top {
      background-size: 100%;
      background-position: top;
    }
    .phone-block {
      margin-right: 0;
    }
    .top-contact-form {
      width: 100%;
      box-sizing: border-box;
    }
    .for-what-item .text {
      font-size: 16px;
      line-height: 24px;
    }
    .info-address, .for-what, .trial-lesson, .about-us, .services, .reviews{
      margin-top: 100px;
      margin-bottom: 100px;  
    }
    .form-popup-container {
      max-width: 400px;
    }
    .top-banner {
        margin-top: 20px;
    }
    .top-info {
        margin-top: 20px;
    }
  }
  
  @media (max-width: 480px) {
    h2 {
      font-size: 28px;
      text-align: center;
    }
    .header {
      margin-bottom: 30px;
    }
    .top {
      background-image: none;
    }
    .top-info {
      margin-bottom: 30px;
    }
    .top-info-text{
      font-size: 16px;
    }
    .wrapper {
      max-width: 90%;
    }
    .info-address, .for-what, .trial-lesson, .about-us, .services, .reviews{
      margin-top: 75px;
      margin-bottom: 75px;  
    }
    .logo-img {
      width: 80%;
    }
    .phone-block {
      width: auto;
      border: none;
    }
    .top-contact-form, .bottom-form {
      width: 100%;
    }
    .for-what-item .text {
      font-size: 14px;
      line-height: 18px;
      text-align: center;
      margin-top: 10px;
    }
    .about-us-block{
      text-align: center;
    }
    .about-us-item-description {
      margin: 0;
    }
    .service-image{
      margin: 15px auto;
    }
    .for-what-item{
      background: none;
      flex-wrap: wrap;
      justify-content: center;
    }
    .form-popup-container {
      max-width: 300px;
      margin: 0 auto;
    }
  }
  
  
  /* Слайдер */

  .slider-container {
    max-width: 1300px;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 95%;
  }
  .slider-wrapper {
    position: relative;
  }
  .slider-wrapper .slide-button {
    position: absolute;
    top: 50%;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    z-index: 5;
    color: #f9cc01;
    display: flex;
    cursor: pointer;
    font-size: 2.2rem;
    background: #000;
    /* align-items: center; */
    justify-content: center;
    border-radius: 50%;
    transform: translateY(-50%);
  }
  .slider-wrapper .slide-button:hover {
    background: #f9cc01;
    color: #000;
  }
  .slider-wrapper .slide-button#prev-slide {
    left: -25px;
    display: none;
  }
  .slider-wrapper .slide-button#next-slide {
    right: -25px;
  }
  .slider-wrapper .image-list {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    font-size: 0;
    list-style: none;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 0;
  }
  .slider-wrapper .image-list::-webkit-scrollbar {
    display: none;
  }
  .slider-wrapper .image-list .image-item {
    width: 295px;
    height: 400px;
  }
  .container .slider-scrollbar {
    height: 24px;
    width: 100%;
    display: flex;
    align-items: center;
  }
  .slider-scrollbar .scrollbar-track {
    background: #ccc;
    width: 100%;
    height: 2px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    position: relative;
  }
  .slider-scrollbar .scrollbar-thumb {
    position: absolute;
    background: #000;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    cursor: grab;
    border-radius: inherit;
  }
  .slider-scrollbar .scrollbar-thumb:active {
    cursor: grabbing;
    height: 4px;
    top: -2px;
  }
  .slider-scrollbar .scrollbar-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
  }
  /* Styles for mobile and tablets */
  @media only screen and (max-width: 1023px) {
    .slider-wrapper .slide-button {
      display: none !important;
    }
    .slider-wrapper .image-list {
      gap: 10px;
      margin-bottom: 15px;
      scroll-snap-type: x mandatory;
    }
    .slider-wrapper .image-list .image-item {
      width: 280px;
      height: 380px;
    }
    .slider-scrollbar .scrollbar-thumb {
      width: 20%;
    }
  }