@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway.ttf");
  font-display: swap;
}


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;
  }
  .wrapper {
    width: 80%;
    max-width: 1300px;
    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: 60px;
  }
  .logo {
    display: flex;
  }
  .phone-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 40px;
    margin-right: 50px;
    padding: 5px 10px;
    border: solid #47d5d0 1px;
    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;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(to right, #6addd6, #a6dda9);
    border: none;
    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-bottom: 40px;
  }
  .top-info-block{
    max-width: 600px;
  }
  .top-info-text{
    line-height: 24px;
    font-size: 18px;
  }
  /* Стили для формы обратной связи 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: #000;
  }
  .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;
  }
  .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: 150px;
    margin-bottom: 150px;
  }
  .for-what-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background-color: rgba(239,239,239,0.8);
    border-radius: 15px;
    margin-top: 40px;
    width: 100%;
    min-height: 120px;
  }
  .for-what-item img{
    background-color: #000;
    min-height: 120px;
    width: 140px;
    border-radius: 15px 0 0 15px;
  }
  .for-what-item .text{
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    margin-left: 20px;
  }
  /* Пробное занятие */
  .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-top: 150px;
    margin-bottom: 150px;
  }
  .about-us-block{
    display: flex;
    flex-wrap: wrap;
    /*align-items: center;*/
    justify-content: center;
  }
  .about-us-item {
    width: 400px;
    max-height: 267px;
    background-color: rgba(239,239,239,0.8);
    margin: 25px;
    border-radius: 25px;
  }
  .about-us-item img{
    width: 100%;
    border-radius: 25px; 
  }
  .about-us-item-description {
    width: 450px;
    max-height: 200px;
    margin: 25px;
    border-radius: 25px;
  }
  .about-us-title {
    font-size: 32px;
    font-weight: 400;
  }
  .about-us-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
  }
  /* Направления обучения */
  .services {
    margin-top: 150px;
    margin-bottom: 150px;
  }
  .services-block{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .service-item {
    width: 300px;
    min-height: 250px;
    /* background-color: #efefef; */
    background-color: rgba(239,239,239,0.8);
    margin: 25px;
    border-radius: 25px;
  }
  .service-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
  }
  .service-image {
    text-align: center;
    border-radius: 15px;
    margin: 40px auto 15px;
    width: 90%;
    height: 190px;
  }
  .service-item img {
    width: 100%;
    max-height: 100%;
    border-radius: 15px;
  }
  /* Стили для блока с работами учеников */
  .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;
    border-radius: 15px;
  }

  .works-item-sm {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .works-item-bg {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  
   .works-item img, .works-item-sm img, .works-item-bg img {
    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;
      max-width: 600px;
      max-height: 500px;
      margin: 20px auto;
    }
    .bottom-item picture  {
      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: 0 auto;
      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;
    margin-bottom: 25px;
  }
  .footer-block{
    display: flex;
    flex-wrap: wrap;
    /* justify-content:flex-start; */
    justify-content: center;
    max-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;
    margin-bottom: 8px;
  }
  .footer-phone{
    font-family: Arial, Helvetica, sans-serif;
  }
  .social {
    display: flex;
    align-items:center;
    justify-content: space-around;
    width: 180px;
    height: 40px;
    padding: 5px 10px;
    margin-right: 20px;
    background-color: #cef4f1;
    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;
  }
  .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;
  }

  .privacy-policy {
    margin-bottom: 150px;
  }
  
  .p-p_text, .offer_text
  {
      font-size: 14px;
      font-weight: 500;
      line-height: 20px;
  }
  
    @media (max-width: 1499px) {
        .footer-item{
            max-width: 400px;
        }
        .footer-text-pp, .footer-phone{
            /* margin-top: 25px; */
        }
        .footer-logo {
            margin-top: 20px;
            margin-bottom: 20px;
        }
        .footer-text, .social {
            margin-top: 20px;
            margin-bottom: 20px;
        }
    }
    
    @media (max-width: 1400px) {
        .swiper-button-next, .swiper-button-prev{
          display: none !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;
    }
    .bottom-form{
      width: 100%;
      box-sizing: border-box;
      margin: 0 auto;
    }
    .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;  
    }
    .bottom-item img {
      width: 300px;
      max-height: 250px;
    }
    .footer-logo, .footer-text-pp, .footer-text{
      margin: 10px 0;
      width: 100%;
    }
    .footer-phone{
      margin: 10px 0;
      width: 100%;
      font-family: Arial, Helvetica, sans-serif;
    }
    .social {
      margin: 10px 0;
    }
    .form-popup-container {
      max-width: 400px;
    }
  }
  
  @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: 140px;
    }
    .phone-block {
      width: auto;
      border: none;
    }
    .phone {
      margin-bottom: 10px;
    }
    .top-contact-form {
      width: 100%;
    }
    .bottom-form{
      width: 100%;
      margin: 0;
    }
    .for-what-item .text {
      font-size: 16px;
      line-height: 20px;
      text-align: center;
      margin-top: 10px;
    }
    .for-what-item img {
      width: 180px;
      border-radius: 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;
    }
    .trial-lesson-item{
        text-align: center;
    }
    .container-title{
      display: block;
    }
    .titles-block{
      text-align: center;
    }
    .works-column{
      margin-right: 10px;
    }
    .works-item{
      margin-bottom: 30px;
    }
    .reviews-item{
      margin: 0;
    }
    .reviews-item-photo{
      display: block;
      margin: 20px auto;
    }
    .reviews-item-description {
      max-width: 100%;
      text-align: center;
    }
    .reviews-name{
      margin: 0 auto;
    }
    .bottom {
      margin-bottom: 100px;
    }
    .bottom-item img {
      width: 200px;
      height: 182px;
    }
    .form-popup-container {
      max-width: 300px;
      margin: 0 auto;
    }
  }