@charset "UTF-8";

@media (max-width: 767px) {
  /* Hero */
  .hero__content {
    gap: 12px;
  }
  .hero__name {
    margin: 12px 0 0 2px;
    width: calc(100% - 62px);
  }
  .hero__star {
    top: 10px;
    width: 55px;
    height: 55px;
  }
  .hero__content .h4 {
    font-size: 12px;
  }
  .hero__video {
    height: 256px;
  }
  .hero__video video {
    mask-image: url('../img/other/hero-mask-mob.png');
  }
  .hero__shape svg {
    width: 616px;
    height: 52px;
  }
  .hero__button {
    bottom: 0;
    padding: 21px 30px;
    font-size: 16px;
  }
  .hero__button svg {
    width: 15px;
    height: 15px;
  }
  .hero__shape--top {
    top: 15px;
  }
  .hero__shape--bottom {
    bottom: 15px;
  }


  /* Tabs */
  .tabs {
    font-size: 14px;
  }
  .tab {
    padding: 10px 20px 12px;
  }


  /* Groups */
  .groups__tabs .tab {
    padding: 10px 15px 12px;
  }
  .groups__tab-content.is-active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .groups__item {
    justify-items: stretch;
    width: 100%;
  }
  .groups__item-image video.visible {
    z-index: 1;
  }
  .groups__item-button {
    padding: 10px 20px 12px;
  }


  /* Schedule */
  .schedule__wrapper {
    margin: -4px 0 0;
  }
  .schedule__top {
    gap: 20px;
  }
  .schedule__tabs-wrapper {
    margin: 0 -20px;
    width: 100vw;
    overflow-x: scroll;
  }
  .schedule__tabs {
    margin: 0 20px;
    padding: 13px 10px;
    width: max-content;
  }
  .schedule__tab .title {
    font-size: 14px;
  }


  /* Teachers */
  .teachers__wrapper {
    gap: 20px;
  }
  .teachers__tabs .tab {
    padding: 10px 15px 12px;
  }
  .teachers__tab-content.is-active {
    gap: 40px 20px;
  }
  .teachers__item {
    width: calc((100% - 20px)/2);
  }
  .teachers__item-content {
    padding: 10px 10px 0;
    min-height: 117px;
  }
  .teachers__item-title {
    margin: 0 0 10px;
  }
  .teachers__item-button {
    margin: 0 0 10px;
    padding: 5px 5px 7px;
  }
  .teachers__item-description > div {
    margin: 0 0 10px;
  }


  /* Price */
  .price__wrapper {
    margin: 27px 0 0;
    gap: 29px;
  }
  .price__top {
    gap: 20px;
  }
  .price__tab-content {
    gap: 20px;
  }
  .price__item {
    gap: 20px;
    padding: 20px;
  }
  .price__item-top .title {
    font-size: 12px;
    line-height: 130%;
  }
  .price__item p {
    min-height: 79px;
    font-size: 16px;
  }
  .price__item-cost-new {
    font-size: 28px;
  }
  .price__item-button {
    padding: 10px 20px 12px;
  }


  /* Contacts */
  .contacts__wrapper {
    margin: -4px 0 0;
    gap: 20px;
  }
  .contacts__top {
    gap: 20px;
  }
  .contacts__list {
    gap: 20px;
  }
  .contacts__item {
    gap: 19px;
    padding: 20px;
  }
  .contacts__item-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contacts__card {
    gap: 20px;
    padding: 20px;
  }
  .contacts__card-top .title {
    font-size: 12px;
  }
  .contacts__card .h4 {
    font-size: 20px;
  }
  .contacts__card-button {
    padding: 10px 20px 12px 20px;
    border-radius: 20px!important;
  }
  .contacts__map {
    min-height: 235px;
  }


  /* Error */
  .error__wrapper {
    gap: 30px;
    padding: 41px 10px 81px;
  }
  .error__wrapper span:first-child {
    font-size: 138px;
  }


  /* Footer */
  .footer__wrapper {
    font-size: 14px;
  }
  .footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    padding: 20px;
  }
  .footer__logo {
    order: 1;
    position: static;
    display: block;
    transform: none;
  }
  .footer__logo img {
    width: 105px;
    height: 43px;
  }
  .footer__contacts {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .footer__contacts a {
    margin: 0;
  }
  .footer__contacts span {
    display: none;
  }
  .footer__top p {
    order: 3;
    text-align: center;
  }
  .footer__top p br {
    display: block;
  }
  .footer__bottom,
  .footer__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 19px;
    justify-items: center;
  }
  .footer__links a {
    margin: 0;
    text-align: center;
  }
  .footer__links span {
    display: none;
  }
}
