@charset "UTF-8";

@media (min-width: 1441px) {
  /* Hero */
  .hero__shape svg {
    width: 150vw;
    height: auto;
  }
}

@media (max-width: 1365px) {
  /* Header */
  .header__navigation {
    margin: 0;
  }
  .header__navigation li:not(:last-child) {
    margin: 0 20px 0 0;
  }


  /* Hero */
  .hero__content {
    gap: 17px;
  }
  .hero__name {
    width: calc(100% - 231px);
  }
  .hero__button {
    bottom: 75px;
  }
}

@media (max-width: 1023px) {
  /* Header */
  .header {
    top: -100px;
    background-color: var(--color-grayscale-500);
    z-index: 100;
  }
  .header.header-fixed {
    position: fixed;
    width: 100vw;
    border-bottom: 1px solid #383838;
    transform: translateY(100px);
  }
  .header.header-fixed .header__wrapper {
    padding: 10px 0;
    border-bottom: none;
  }
  .header__logo {
    order: 1;
    margin: -10px 0 0;
  }
  .header__logo img {
    width: 101px;
    height: 41px;
  }
  .header__contacts {
    order: 2;
    margin: 0 20px 0 auto;
    padding: 0;
  }
  .header__contacts a {
    margin: 0 10px;
  }
  .header__contacts-slash,
  .header__contacts a span {
    display: none;
  }
  .header__contacts a svg {
    display: block;
  }
  .header__menu {
    order: 3;
  }
  .header__toggle {
    display: flex;
    padding: 0;
    width: 48px;
    height: 42px;
    border-radius: 10px;
  }
  .header__toggle span,
  .header__toggle span::before,
  .header__toggle span::after {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-grayscale-500);
  }
  .header__toggle span {
    position: relative;
  }
  .header__toggle span::before,
  .header__toggle span::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header__toggle span::before {
    top: 5px;
  }
  .header__toggle span::after {
    bottom: 5px;
  }
  .header__eye {
    display: none;
  }
  .header__eye-mob {
    display: grid;
    grid-template-columns: 20px auto;
    gap: 10px;
    align-items: center;
    margin: auto 0 0;
    padding: 0;
    border: none;
    background-color: transparent;
    font-family: var(--ff-cygre);
    font-weight: 600;
    font-size: 14px;
    line-height: normal;
    color: var(--color-default-white);
  }


  /* Mob menu */
  .mob-menu {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 40px 22px 32px;
    width: 260px;
    height: 100dvh;
    background-color: var(--color-grayscale-500);
    z-index: 100;

    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.29, 1.01);
    -moz-transition: all 0.3s cubic-bezier(0.65, 0.05, 0.29, 1.01);
    -o-transition: all 0.3s cubic-bezier(0.65, 0.05, 0.29, 1.01);
    -webkit-transition: all 0.3s cubic-bezier(0.65, 0.05, 0.29, 1.01);
  }
  .mob-menu.is-open {
    transform: translateX(0);
  }
  .mob-menu__close-button,
  .mob-menu__logo {
    display: block;
  }
  .mob-menu__close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
  }
  .mob-menu__close-button::before,
  .mob-menu__close-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-default-white);
  }
  .mob-menu__close-button::before {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
  }
  .mob-menu__close-button::after {
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  }
  .header__navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 0 0;
  }
  .header__navigation li:not(:last-child) {
    margin: 0;
  }
  .header__navigation a {
    padding: 10px 0;
    font-size: 24px;
  }


  /* Hero */
  .hero__content {
    gap: 31px;
  }
  .hero__name {
    margin: 38px 0 0 4px;
    width: calc(100% - 173px);
  }
  .hero__star {
    width: 148px;
    height: 148px;
  }
  .hero__video {
    height: 425px;
  }
  .hero__video video {
    mask-image: url('../img/other/hero-mask-tab.png');
  }
  .hero__shape svg {
    width: 1060px;
    height: 90px;
  }
  .hero__shape--top {
    top: 20px;
  }
  .hero__shape--bottom {
    bottom: 20px;
  }


  /* Groups */
  .groups__tabs {
    position: static;
    justify-self: start;
  }
  .groups__tab-content.is-active {
    gap: 40px 30px;
  }


  /* Schedule */
  .schedule__wrapper {
    margin: 22px 0 0;
  }
  .schedule__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: start;
  }
  .schedule__top h2 {
    margin: 0;
  }


  /* Teachers */
  .teachers__tabs {
    position: static;
    justify-self: start;
  }
  .teachers__tab-content.is-active {
    gap: 40px 30px;
  }
  .teachers__item {
    width: calc((100% - 30px)/2);
  }


  /* Price */
  .price__wrapper {
    margin: 20px 0 0;
    gap: 60px;
  }
  .price__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: start;
  }
  .price__top h2 {
    margin: 0;
  }
  .price__tab-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .price__item p {
    min-height: 86px;
  }


  /* Contacts */
  .contacts__wrapper {
    margin: 22px 0 0;
  }
  .contacts__list {
    grid-template-columns: 1fr;
  }
  .contacts__map {
    min-height: 460px;
  }


  /* Page */
  .page__wrapper {
    gap: 28px;
    padding: 40px 0 0;
  }


  /* Modal */
  #modal-card {
    padding: 20px;
    max-width: 100%;
  }
  #modal-card__wrapper {
    gap: 20px;
  }
  .modal-image-wrapper-teacher {
    max-height: 220px;
  }
  .modal-buttons {
    grid-template-columns: 1fr;
  }
  .modal-buttons .button {
    padding: 10px 20px 12px;;
  }

  .modal-politica h2 {
    margin: 0;
  }


  /* Form */
  #modal_form.fancybox__content {
    padding: 30px 20px;
    max-width: 100%;
  }
  .form__top {
    font-size: 28px;
  }


  /* Footer */
  .footer__wrapper {
    font-size: 16px;
  }
  .footer__top {
    padding: 30px;
  }
  .footer__logo {
    display: none;
  }


  /* Messengers */
  .messengers {
    padding: 30px;
  }
  .messengers__title {
    margin: 0 0 20px;
    font-size: 22px;
  }
  .messengers__grid {
    padding: 0 8px;
  }
  .messengers__wa-link::after {
    content: 'Написать в WhatsApp';
  }
  .messengers__tg-link::after {
    content: 'Написать в Telegram';
  }
  .messengers a span,
  .messengers__text,
  .messengers__qr-wrapper {
    display: none;
  }
}
