@media (min-width: 780px) {
  .tabs__link:hover {
    transition: 0.3s;
    border: 1px solid var(--blue-light-3);
  }
}

@media (max-width: 780px) {
  .container-x {
    padding-right: 15px;
    padding-left: 15px;
  }

  .header__absolute {
    left: -15px;
    width: calc(100% + 30px);
    padding: 5px 15px 60px;
    max-height: calc(100vh - 65px);
  }

  .logo__img {
    width: 65px;
    height: 65px;
  }

  .header__top {
    gap: 15px;
  }

  .auth__buttons {
    display: grid;
    grid-template-columns: repeat(2,1fr);
  }

  .header__right {
    width: 100%;
  }

  .auth {
    width: 100%;
  }

  .menu__item:not(.active) {
    display: none;
  }

  .menu.active .menu__item {
    display: block;
  }

  .header__bottom .container-x {
    padding-right: 0;
    padding-left: 0;
  }

  .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: visible;
    background-color: var(--white);
    padding: 0;
  }

  .menu__item.active {
    order: -1;
  }

  .menu__item {
    width: 100%;
  }

  .menu__link {
    width: 100%;
    justify-content: center;
    font-weight: 500;
    color: var(--dark);
    border-radius: 0;
  }

  .menu__item.active .menu__link {
    padding: 8px 10px;
    align-items: center;
    gap: 10px;
    border: none;
    background-color: var(--blue);
    color: var(--white);
  }

  .menu.active .menu__item.active .menu__link {
    background: linear-gradient(126.41deg, var(--blue-light) -40.84%, var(--red-light) 101.21%), var(--blue);
  }

  .menu__item.active .menu__link:after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("/img/icons/arrow-bottom-white.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: 0.3s;
  }

  .menu.active .menu__item.active .menu__link:after {
    transform: rotate(180deg);
    transition: 0.3s;
  }

  .contacts__link {
    gap: 10px;
  }

  .contacts__text {
    font-size: 14px;
    line-height: 18px;
  }

  .contacts__icon {
    width: 30px;
    height: 30px;
  }

  .screen__title {
    font-size: 26px;
    line-height: 30px;
  }

  .screen__text {
    font-size: 18px;
    line-height: 22px;
  }

  .promo__block {
    display: none;
  }

  .promo__navs {
    gap: 15px;
  }

  .promo__nav {
    width: 35px;
  }

  .button--big {
    font-size: 16px;
    line-height: 24px;
    min-height: 50px;
  }

  .container-y {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .content {
    gap: 30px;
  }

  .block {
    gap: 25px;
  }

  .block--15 {
    gap: 15px;
  }

  .top__text {
    font-size: 20px;
    line-height: 22px;
  }

  .mobile-780-hide {
    display: flex;
  }

  .mobile-780-show {
    display: none;
  }

  .tournaments {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .tournaments__arrows {
    display: none;
  }

  .tournament {
    padding: 15px;
    gap: 15px;
  }

  .tournament__text {
    font-size: 14px;
    line-height: 18px;
    color: var(--dark);
  }

  .tournament__small {
    font-size: 14px;
    line-height: 18px;
  }

  .tournament__icon {
    width: 20px;
    height: 20px;
  }

  .tournament__line {
    margin: 0 -5px;
  }

  .tournament__title {
    padding: 5px;
  }

  .tournament__title {
    font-size: 18px;
    line-height: 22px;
  }

  .tournament__list {
    gap: 5px;
  }

  .tournament__left {
    font-size: 14px;
    line-height: 16px;
  }

  .status {
    font-size: 12px;
    line-height: 16px;
  }

  .trainings {
    gap: 20px;
  }

  .trainings__img {
    width: 150px;
  }

  .main__wrap {
    gap: 25px;
  }

  .address {
    gap: 25px;
  }

  .media__content {
    padding: 10px;
  }

  .media__list {
    display: flex;
    gap: 0;
  }

  .map__container {
    padding: 50px 15px;
  }

  .tabs__navigation {
    width: 100%;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--blue-light-3);
    border-radius: 5px;
    overflow: hidden;
    filter: drop-shadow(0px 0px 10px rgba(var(--blue-light-opacity), 0.05)) drop-shadow(0px 5px 25px rgba(var(--blue-light-opacity), 0.05));
  }

  .tabs__item {
    width: 100%;
  }

  .tabs__item:not(.active) {
    transition: 0.3s;
    display: none;
  }

  .tabs__navigation.active .tabs__item {
    display: block;
    transition: 0.3s;
  }

  .tabs__item.active {
    order: -1;
  }

  .tabs__link {
    gap: 5px;
    min-height: 45px;
    padding: 5px 30px;
    align-items: center;
    font-size: 18px;
    line-height: 22px;
    transition: 0.3s;
    position: relative;
    border: none;
    border-radius: 0;
  }

  .tabs__item.active .tabs__link:after {
    content: url("/img/icons/arrow-bottom-white.svg");
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: 0.3s;
    position: absolute;
    right: 10px;
    margin: -10px 0 0;
    top: 50%;
  }

  .tabs__navigation.active .tabs__link:after {
    transform: rotate(180deg);
    transition: 0.3s;
  }

  .phead__svg {
    width: 165px;
  }

  .phead__img {
    width: 170px;
    position: absolute;
    bottom: 0;
    left: 65px;
  }

  .phead__content {
    padding: 20px 15px;
  }

  .phead__title {
    font-size: 20px;
    line-height: 24px;
  }

  .phead__item {
    gap: 10px;
    grid-template-columns: 114px auto;
    font-size: 14px;
    line-height: 18px;
  }

  .phead__infos {
    gap: 5px 10px;
  }

  .phead__info {
    gap: 10px;
  }

  .phead__number {
    font-size: 20px;
    line-height: 22px;
  }

  .phead__data {
    font-size: 12px;
    line-height: 16px;
  }

  .phead__tournament {
    gap: 5px;
  }

  .phead__logo {
    width: 45px;
  }

  .phead__name {
    font-size: 14px;
    line-height: 18px;
  }

  .phead__id {
    font-size: 14px;
    line-height: 18px;
  }

  .phead__texts {
    gap: 5px;
  }

  .phead__role {
    font-size: 12px;
    line-height: 14px;
  }

  .phead__block {
    padding: 15px;
    gap: 5px;
  }

  .phead__column {
    margin: -180px 0 0 75px;
  }

  .gap {
    gap: 15px;
  }

  .main:not(.main--index) {
    padding: 30px 0 70px;
    background-image: url("/img/decors/lines-right.svg");
    background-position: top -35px right -35px;
    gap: 30px;
  }

  .main--has-map {
    padding: 30px 0 0 !important;
  }

  .header__bottom {
    top: -35px;
  }

  .filters-container {
    width: 100%;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }

  .filters__item {
    width: 100%;
  }

  .matches__title {
    font-size: 20px;
    line-height: 24px;
    padding: 10px 20px;
  }

  .matches__scores {
    width: 70px;
  }

  .matches__team {
    width: calc((100% - 80px)/2);
  }

  .matches__number {
    font-size: 18px;
    line-height: 22px;
  }

  .championships__item {
    padding: 25px 15px;
    overflow: visible;
  }

  .championships__top {
    gap: 25px;
  }

  .championships__icon {
    width: 20px;
    height: 20px;
  }

  .championships__text {
    font-size: 16px;
    line-height: 18px;
  }

  .championships__data {
    gap: 10px;
  }

  .championships__img {
    width: 50px;
    height: 50px;
  }

  .championships__bottom {
    gap: 25px;
  }

  .championships__title {
    font-size: 18px;
    line-height: 22px;
  }

  .championships__units {
    gap: 10px;
  }

  .championships__row {
    gap: 10px;
  }

  .championships__unit {
    font-size: 16px;
    line-height: 18px;
    display: flex;
    flex-wrap: wrap;
  }

  .rhead {
    gap: 5px;
  }

  .rhead__list {
    gap: 5px 20px;
  }

  .rhead__number {
    font-size: 40px;
    line-height: 40px;
  }

  .rhead__text {
    font-size: 16px;
    line-height: 20px;
  }

  .rhead__number:after {
    height: 20px;
  }

  .button--medium {
    min-height: 40px;
  }

  .ehead {
    gap: 15px;
  }

  .ehead__img {
    width: 160px;
  }

  .ehead__content {
    padding: 20px 15px;
  }

  .ehead__name {
    font-size: 20px;
    line-height: 24px;
  }

  .ehead__textarea {
    padding: 15px;
  }

  .edit__main {
    padding: 25px 15px;
  }

  .form__title {
    font-size: 20px;
    line-height: 24px;
  }

  .form__text {
    font-size: 16px;
    line-height: 18px;
  }

  .form__add {
    grid-template-columns: repeat(2, calc((100% - 20px) / 2));
  }

  .edit__logo {
    width: 60px;
    height: 60px;
  }

  .edit__info {
    gap: 15px;
  }

  .media__list--three {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(1,1fr);
  }

  .info {
    gap: 20px;
  }

  .info__top {
    gap: 15px;
  }

  .info__title {
    font-size: 20px;
    line-height: 24px;
  }

  .info__info {
    font-size: 16px;
    line-height: 18px;
  }

  .info__author {
    font-size: 16px;
    line-height: 18px;
  }

  .share__text {
    font-size: 16px;
    line-height: 18px;
  }

  .info iframe {
    height: calc((100vw - 30px)*9/16) !important;
  }

  .modal {
    padding: 40px 25px 25px;
    top: 40px;
    max-height: calc(100vh - 40px);
  }

  .modal__title {
    font-size: 22px;
    line-height: 26px;
  }


  .modal__subtitle {
    font-size: 20px;
    line-height: 22px;
  }

  .modal__texts {
    font-size: 16px;
    line-height: 18px;
  }

  .modal {
    left: 0;
  }

  .cookie {
    padding: 15px;
  }

  .cookie__buttons {
    gap: 15px;
  }

  .cookie__container {
    gap: 15px;
  }

  .address__map {
    height: 250px;
  }

  .faq__top {
    padding: 10px 15px;
  }

  .find__row {
    gap: 15px;
  }

  .faq__answer {
    padding: 15px;
  }

  .error__title {
    font-size: 22px;
    line-height: 26px;
  }

  .error__number {
    font-size: 132px;
    line-height: 160px;
  }

  .error__info {
    font-size: 20px;
    line-height: 24px;
  }

  .blocks {
    gap: 20px;
  }

  .blocks__link {
    padding: 25px 15px;
  }

  .blocks__content {
    gap: 15px;
  }

  .blocks__info {
    font-size: 16px;
    line-height: 20px;
  }

  .blocks__name {
    font-size: 20px;
    line-height: 24px;
  }

  .blocks__img {
    width: 120px;
  }

  .tournaments--grids .tournaments__list {
    gap: 20px;
  }

  .tournament__decor {
    width: 80px;
    height: 80px;
  }

  .championships__main {
    font-size: 16px;
    line-height: 18px;
  }

  .championships__image {
    width: 30px;
  }

  .matches__unit {
    font-size: 16px;
    line-height: 20px;
    min-height: 35px;
  }

  .documents__list {
    gap: 20px;
  }

  .documents__link {
    padding: 15px;
  }

  .documents__name {
    font-size: 18px;
    line-height: 24px;
  }

  .mhead {
    padding: 25px 15px;
  }

  .mhead__relative {
    gap: 25px;
  }

  .mhead__wrap {
    gap: 15px;
  }

  .mhead__icon {
    width: 20px;
    height: 20px;
  }

  .mhead__info {
    font-size: 16px;
    line-height: 18px;
  }

  .mhead__info:not(:first-child):before {
    height: 16px;
  }

  .mhead__name {
    font-size: 16px;
    line-height: 20px;
  }

  .mhead__number {
    font-size: 44px;
    line-height: 48px;
    width: 50px;
  }

  .mhead__colon {
    font-size: 36px;
    line-height: 38px;
  }

  .mhead__tournament {
    font-size: 16px;
    line-height: 22px;
  }

  .mhead___additional {
    font-size: 16px;
    line-height: 16px;
  }

  .persons {
    gap: 15px;
  }

  [data-empty]:empty:after {
    font-size: 20px;
    line-height: 22px;
    min-height: 95px;
  }

  .edit__additional {
    gap: 25px;
  }

  .edit__title {
    font-size: 20px;
    line-height: 22px;
  }

  .edit__buttons {
    flex-direction: column;
  }

  .edit__buttons .button {
    width: 100%;
  }

  .edit__team {
    gap: 15px;
  }

  .edit__img {
    width: 70px;
  }

  .edit__list {
    gap: 15px;
  }

  .trhead__content {
    padding: 15px;
  }

  .trhead__top {
    gap: 15px;
  }

  .trhead__title {
    font-size: 20px;
    line-height: 24px;
  }

  .trhead__datetime {
    padding: 10px;
    font-size: 14px;
    line-height: 16px;
    min-height: 35px;
  }

  .share--big .share__block {
    width: 35px;
    height: 35px;
  }

  .trhead__bottom {
    gap: 15px;
  }

  .trhead__img {
    display: none;
  }

  .trhead__unit {
    font-size: 16px;
    line-height: 20px;
  }

  .trhead__item {
    font-size: 16px;
    line-height: 18px;
  }

  .trhead__list {
    gap: 15px;
  }

  .courts {
    gap: 20px;
  }

  .court {
    grid-template-columns: 100%;
  }

  .court__content {
    gap: 20px;
  }

  .court__buttons {
    gap: 10px;
  }

  .mhead__team-row {
    flex-direction: column;
  }

  .mhead__team-row--reverse {
    flex-direction: column;
  }
  .mhead__team-row--reverse .mhead__name {
     text-align: center;
  }
  .mhead__team-row .mhead__name {
     text-align: center;
  }

  .trainings__text {
    font-size: 18px;
    line-height: 20px;
  }

  .trainings__number {
    font-size: 16px;
  }

  .form__block {
    flex-direction: column;
  }

  .form__content {
    text-align: center;
    align-items: center;
  }

  .person {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
  }

  .person__img {
    width: 140px;
  }

  .form--40 {
    gap: 35px;
  }

  .trainer__name {
    font-size: 20px;
    line-height: 24px;
  }

  .trainer {
    flex-direction: column;
    gap: 0;
  }

  .trainer__img {
    width: 160px;
  }

  .trainer__number {
    width: 160px;
    height: 175px;
    margin: 0 10px -20px 0;
  }

  .trainer__button {
    margin: 25px 0 0;
    width: 100%;
  }

  .trainer__images {
    left: 50%;
    margin: 10px 0 0 0;
  }

  .event__title {
    font-size: 18px;
  }

  .trainer__block {
    padding: 25px 15px 20px;
  }

  .trainer__container {
    gap: 20px;
  }

  .event__head {
    text-align: center;
  }

  .trainer__blocks {
    align-items: stretch;
  }

  .spreadsheet__text {
    font-size: 14px;
    line-height: 16px;
  }

  .spreadsheet__status {
    font-size: 14px;
    line-height: 16px;
  }

  .content--40 {
    gap: 40px;
  }

  .spreadsheet__content{
    grid-column: 1;
  }

  .spreadsheet__title{
    grid-column: 2;
  }

  .spreadsheet__text{
    grid-column: 3;
  }

  .spreadsheet__default {
    font-size: 20px;
    line-height: 22px;
    padding: 30px;
  }

  .event__container {
    width: 100%;
  }

  .trhead__wrap {
    grid-template-columns: 100%;
    align-items: stretch;
  }

  .trhead__columns {
    column-gap: 10px;
  }

  .tables {
    font-size: 14px;
    line-height: 16px;
    grid-template-columns: 8% 1fr 26% 1fr;
  }

  .tables__link {
    font-size: 14px;
    line-height: 16px;
  }

  .tables__content {
    font-size: 16px;
    line-height: 18px;
    justify-content: space-around;
    gap: 5px;
  }

  .matches__name {
    font-size: 14px;
    line-height: 16px;
  }

  .table__th {
    padding: 5px;
    font-size: 12px;
    line-height: 14px;
  }

  .table__cell {
    font-size: 12px;
    line-height: 14px;
  }

  .championships__decor {
    display: none;
  }

  .promo__column {
    gap: 40px;
    padding: 45px 0 60px;
    align-items: center;
  }

  .screen {
    gap: 30px;
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .screen__text {
    max-width: none;
  }

  .screen__top {
    gap: 20px;
    align-items: center;
  }

  .photos {
    gap: 20px;
  }

  .footer__copyright {
    text-align: center;
  }

  .footer__column {
    padding: 40px 0 10px;
    gap: 40px;
  }

  .footer__list {
    gap: 30px;
  }

  .footer__logo {
    width: 210px;
  }

  .coaches {
    padding: 0 32px;
  }

  .coaches__container {
    max-width: none;
  }

  .coaches .tns-ovh {
    overflow: hidden;
  }

  .coaches__item {
    transform: scale(1);
  }

  .coaches__block {
    filter: none;
    opacity: 1;
    margin: 0;
  }
}

@media (max-width: 680px) {
  .screen__title {
    font-size: 24px;
    line-height: 28px;
  }

  .phead__img {
    width: 160px;
    max-width: none;
  }

  .phead__wrap {
    flex-direction: column;
  }

  .phead__right {
    gap: 15px;
    width: 100%;
  }

  .phead__content {
    width: 100%;
  }

  .phead__block {
    top: 0;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(1,1fr);
  }

  .matches__logo {
    width: 40px;
  }

  .championships__infos {
    flex-direction: column;
  }

  .championships__img {
    width: 45px;
    height: 45px;
  }

  .championships__data {
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
  }

  .championships__dates {
    width: 100%;
    font-size: 14px;
    line-height: 18px;
  }

  .championships__socials {
    position: static;
  }

  .championships__top {
    padding: 0;
  }

  .championships__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .championships__group {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .championships__column {
    max-width: none;
  }

  .rhead__list {
    gap: 5px 10px;
  }

  .rhead__number {
    font-size: 34px;
    line-height: 34px;
  }

  .ehead__img {
    width: 150px;
  }

  .ehead {
    flex-direction: column;
    align-items: flex-start;
  }

  .ehead__content {
    width: 100%;
  }

  .ehead__column {
    flex-direction: row;
    gap: 15px;
  }

  .form__add {
    grid-template-columns: repeat(1, 100%);
  }

  .form__row--four {
    grid-template-columns: repeat(1, 100%);
  }

  .form__row--two {
    grid-template-columns: repeat(1, 100%);
  }

  .form__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .edit__logo {
    width: 55px;
    height: 55px;
  }

  .info__title {
    font-size: 18px;
    line-height: 22px;
  }

  .modal {
    top: 20px;
    max-height: calc(100vh - 20px);
  }

  .cookie__container {
    flex-direction: column;
    align-items: stretch;
  }

  .address__map {
    height: 210px;
  }

  .find__row {
    display: flex;
  }

  .tournaments--grids .tournaments__list {
    grid-template-columns: repeat(1, 1fr);
  }

  .championships__organizers {
    flex-direction: column;
    align-items: flex-start;
  }

  .championships__buttons {
    align-items: stretch;
    align-self: auto;
    margin: auto;
  }

  .documents__link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .mhead__name {
    font-size: 14px;
    line-height: 18px;
  }

  .mhead__number {
    font-size: 40px;
    line-height: 42px;
  }

  .form__row--three {
    grid-template-columns: repeat(1, 100%);
  }

  .form__bottom .form__text {
    text-align: center;
  }

  .checkbox--edit {
    margin: 5px 0;
  }

  .edit__person {
    flex-direction: column;
  }

  .championships__item {
    padding: 25px 15px;
  }

  .participant__head {
    display: none;
  }

  .participant__block {
    grid-template-columns: 1fr;
    display: flex;
    justify-content: flex-end;
  }

  .participant__grid {
    grid-template-columns: 40px auto 130px;
  }

  .participant__grid--pair {
    grid-template-columns: 40px auto auto 130px !important;
  }

  .show-680 {
    display: flex;
  }

  .participant__type {
    font-size: 10px;
    line-height: 14px;
  }

  .participant__link {
    align-items: start;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 16px;
  }

  .participant__player {
    align-items: center;
    padding: 10px;
  }

  .participant__number {
    align-items: center;
  }

  .participant__rating {
    gap: 5px;
  }

  .tables--small .tables__scores {
    min-width: 121px;
  }
  .tables {
    grid-template-columns: 6% 1fr 26% 1fr;
  }

  .hide-680 {
    display: none;
  }

  .promo__column {
    gap: 35px;
    padding: 45px 0;
  }

  .screen {
    gap: 25px;
  }

  .footer__column {
    padding: 35px 0 10px;
    gap: 35px;
  }

  .footer__row {
    gap: 40px;
    flex-direction: column;
    align-items: center;
  }

  .footer__parent {
    order: 2;
  }
}

@media (max-width: 580px) {
  .persons {
    grid-template-columns: repeat(1, 1fr);
  }

  .trhead__top {
    flex-direction: column;
  }

  .courts__img {
    display: none;
  }

  .trhead__datetime {
    order: -1;
  }

  .promo__column {
    gap: 30px;
    padding: 45px 0 30px;
  }

  .screen__title {
    font-size: 22px;
    line-height: 26px;
  }

  .screen {
    gap: 20px;
  }

  .footer__row {
    gap: 35px;
  }

  .coaches__list {
    align-items: stretch;
  }

  .coaches__row {
    font-size: 14px;
    line-height: 18px;
  }

  .coaches__img {
    width: 100%;
    flex-grow: 1;
    height: auto;
  }

  .coaches__block {
    flex-direction: column;
    height: 100%;
    min-height: 370px;
  }

  .coaches__content {
    height: 100%;
  }
}
