p {
  word-break: break-word; /* Перенос длинных слов */
  overflow-wrap: break-word; /* Переносит слова, если не влезают */
  white-space: normal; /* Обычный перенос строк по пробелам */
}

table {
  width: 100%;
  table-layout: fixed; /* Фиксированная ширина колонок */
  min-width: 1200px; /* Минимальная ширина таблицы */
}


img {
  border-radius: 16px;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.swiper {
  position: relative;
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.responsive__list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  text-align: center;
}

.responsive__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: min(85vw, 1200px);
}

.responsive__list-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 600px) {
  .responsive__list::after {
    content: "";
    flex-grow: 10;
  }
}

.page {
  display: grid;
  grid-template-rows: min-content 1fr min-content;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 100dvh;

  font-family: "Yandex Sans Text";
  font-weight: normal;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;

  display: grid;
  grid-template-columns: min-content max-content 40px;

  justify-content: center;
  align-items: center;

  gap: 30px;

  width: 100%;
  height: 60px;

  padding-inline-start: 50px;

  background-color: var(--special_blue);

  font-weight: 500;
  color: var(--white);

  z-index: 20;
}

.logo__container {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;

  border-radius: 50%;

  overflow: hidden;
}

.logo {
  width: 100%;
  height: 100%;
}

.nav {
  width: fit-content;
}

.nav__list {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 30px;

  width: fit-content;
}

.nav__list a,
.mobile__nav-list a {
  font-size: 18px;
}

.nav__list a:hover,
.mobile__nav-list a:hover {
  border-bottom: 2px solid var(--white);
}

.mobile__nav-container {
  display: none;

  align-items: center;
  justify-content: flex-end;
}

.mobile__nav-open {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 30px;
  min-width: 30px;
  max-height: 30px;
  min-height: 30px;

  cursor: pointer;
}

.mobile__nav-open-icon {
  width: 100%;
  height: 100%;

  color: var(--white);
  fill: var(--white);
}

.mobile__nav-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background-color: var(--special_blue);
  overflow: hidden;
  padding: 30px;
  z-index: 100;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.mobile__nav-wrapper.visible {
  transform: scaleX(1);
  transition: transform 0.3s ease-out;
}

body:has(.mobile__nav-wrapper.visible) {
  overflow: hidden;
}

.mobile__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile__nav-close {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 30px;
  min-width: 30px;
  max-height: 30px;
  min-height: 30px;

  cursor: pointer;
}

.mobile__nav-close-icon {
  width: 100%;
  height: 100%;

  fill: var(--white);
  color: var(--white);
}

/* Section */

.section__heading-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: min(90vw, 1200px);
}

.section__heading {
  width: min(90vw, 1200px);

  font-size: var(--section-heading);
  line-height: 120%;

  text-align: start;
  text-transform: uppercase;
}

.section__heading.athletes__heading,
.section__heading.news__heading,
.section__heading.team__heading {
  text-align: center;
  color: var(--white);
}

.calendar__heading {
  text-align: center;
}

.section__heading-link {
  display: block;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  max-width: 1440px;

  padding: 30px 10px;

  margin-inline: auto;
}

/* MAIN */

.main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  width: min(90vw, 1200px);

  padding-block: 30px;
}

.main__heading {
  text-align: center;
}

.main__swiper {
}

.main__swiper-wrapper {
}

.main__card {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  margin: auto;

  border-radius: 16px;
}

.main__card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* NEWS */

.news {
  background-color: var(--special_blue);
}

.news__section-heading {
  color: var(--white);
  text-align: center;
}

.section__heading.news__heading {
  color: var(--white);
  text-align: start;
}

.news__card-heading {
  text-align: start;
}

.news__list {
  display: grid;
}

.news__item {
  position: relative;

  transition: all 0.2s linear;

  overflow: hidden;
  cursor: pointer;
}

.news__wrapper {
  width: min(90vw, 1200px);

  padding: 30px 0px;
}

.news-slide {
  padding: 10px;

  border-radius: 16px;
}

.swiper-slide.news-slide {
  height: auto;
}

.news__card {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;

  border-radius: 16px;
  background-color: var(--white);

  transition: all 0.2s linear;

  cursor: pointer;

  overflow: hidden;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.news__image-container {
  width: 100%;
  min-height: 200px;
  max-height: 200px;

  overflow: hidden;
}

.news__image {
  width: 100%;
  height: 100%;

  border-radius: 0;

  object-fit: cover;
  object-position: top center;

  transition: all 0.2s linear;
}

.news__single-content {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.news__heading,
.athletes__heading,
.team__heading,
.parks__heading {
  width: 100%;
  color: var(--black);
  text-align: start;
}

.news__content {
    padding: 10px;
}

.news__description {
  width: 100%;
  max-height: 200px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
  font-size: var(--content-text-size);
}

.news__date {
  width: 100%;
  text-align: start;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}

.news__link {
  position: absolute;
  inset: 0;

  z-index: 1;
}

.news__link-card {
  display: flex;
  align-items: center;
  justify-content: center;

  grid-row: 1;

  width: 100%;
  height: 100%;

  border-radius: 16px;
  background-color: var(--white);

  transition: all 0.2s linear;

  cursor: pointer;

  overflow: hidden;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news__link-content {
  display: flex;
  align-items: center;
}

.news__link-title {
  font-size: 20px;
  line-height: 30px;
}

.news__link-arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 30px;
  max-height: 30px;
  min-width: 30px;
  min-height: 30px;
}

.news__link-arrow {
  width: 100%;
  height: 100%;
}

.news__back-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: var(--dark_blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
}

.news__back-link:hover {
  background: var(--deep_blue);
}

/* ABOUT */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about__wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;

  width: min(90vw, 1200px);
}

/* TEAM */
.team {
  background-color: var(--special_blue);
}

.section__heading.team__heading {
  color: var(--white);
}

.team__heading {
  color: var(--black);
  text-align: start;
}

.team__wrapper {
  width: min(90vw, 1200px);

  padding: 30px 0px;
}

.swiper.team__swiper,
.swiper.news__swiper,
.swiper.calendar__swiper {
  padding-block: 20px;
  padding-inline-start: 10px;
  padding-inline-end: 20px;
}

.team-slide,
.news__slide {
  border-radius: 16px;
}

.team__item {
  max-width: 320px;

  background-color: transparent;

  overflow: hidden;

  box-shadow: none;
}

.team__card {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 10px;

  width: 100%;
  max-height: 400px;
  aspect-ratio: 3 / 4;

  border-radius: 16px;

  transition: all 0.2s linear;

  overflow: hidden;
}

.team__image-container {
  position: absolute;
  inset: 0;
}

.team__image {
  width: 100%;
  height: 100%;

  min-height: 320px;
  max-height: 320px;

  object-fit: cover;

  transition: all 0.2s linear;

  border-radius: 16px;

  overflow: hidden;
}

.team__content {
  position: absolute;

  bottom: 0;
  left: 0;
  right: 0;

  width: 100%;
  height: 100px;

  padding: 10px 15px;

  background-color: var(--white);

  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;

  transition: all 0.2s linear;
}

.team__description {
  width: 100%;
  max-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
  font-size: var(--content-text-size);
}

.team__link {
  position: absolute;
  inset: 0;

  z-index: 1;
}

/* ATHLETES */

.athletes {
  background-color: var(--special_blue);
}

@media screen {
  .calendar__card:hover,
  .news__card:hover,
  .news__link-card:hover,
  .news__item:hover {
    transform: scale(1.02);
    transition: all 0.2s linear;
  }

  .news__card:hover .news__image,
  .news__item:hover .news__image {
    transform: scale(1.02);
    transition: all 0.2s linear;
  }
}

/* CONTACTS */

.contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;

  padding-block: 20px;
  margin: auto;

  max-width: min(90vw, 1200px);
}

.contacts__heading {
  text-align: center;
}

.contacts__text-info {
  margin: auto;

  max-width: min(90vw, 1200px);
}

/* CALENDAR */

.calendar {
  display: flex;
  flex-direction: column;
  gap: 20px;

  padding-block: 20px;
  margin: auto;

  width: min(90vw, 1200px);
}

.calendar__swiper-section {
  height: fit-content;

  background-color: var(--special_blue);
}

.calendar__text-info {
}

.calendar__swiper {
  width: min(90vw, 1200px);
}

.calendar__swiper-wrapper {
}

.calendar__slide {
}

.calendar__card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;

  padding: 10px;

  border-radius: 16px;

  background-color: var(--white);

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  transition: all 0.2s linear;

  cursor: pointer;
}

.calendar__card-title {
  text-wrap: nowrap;
  text-align: start;
  text-overflow: ellipsis;
  overflow: hidden;
}

.calendar__card-link {
  position: absolute;
  inset: 0;

  z-index: 1;
}

.calendar__card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 40px;
  min-width: 40px;
  max-height: 40px;
  min-height: 40px;

  padding: 5px;

  border-radius: 50%;

  background-color: var(--gray-light);

  overflow: hidden;
}

.calendar__card-icon {
  width: 100%;
  height: 100%;

  color: var(--black);
}

/* FOOTER */

.footer {
  padding: 20px;

  margin: auto;
}

.footer__list {
  display: flex;
  justify-content: space-between;

  max-width: 700px;
}

.footer__list::after {
  display: none;
}

.footer__list-item {
  display: flex;
  flex-direction: column;
  gap: 10px;

  align-items: flex-start;

  background-color: transparent;
  box-shadow: none;
}

.footer__list-item-content {
  display: flex;
  flex-direction: column;
}

.footer__list-link {
  text-align: start;
  font-size: 16px;
  color: var(--special_blue);
  font-style: normal;
}

a.footer__list-link:hover {
  text-decoration: underline;
}

.footer__list-link-description {
  text-wrap: nowrap;
  text-align: start;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}

.card_without-border-radius {
  border-radius: 0;
}

@media (max-width: 1024px) {
   .nav {
    display: none;
  }

  .mobile__nav-container {
    display: flex;
    justify-content: flex-end;
  }

  .header {
    grid-template-columns: min-content 1fr;

    padding-inline: 20px;

    height: 45px;
  }
  
  .nav__list a,
  .mobile__nav-list a {
    font-size: 16px;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: var(--dark_blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
}

.pagination .current {
  background: var(--deep_blue);
  font-weight: bold;
}

.pagination a:hover {
  background: var(--deep_blue);
}

/* Адаптивность */
@media (max-width: 600px) {
  .pagination {
    gap: 0px;
  }

  .pagination a,
  .pagination span {
    padding: 6px 8px;
  }

  .pagination .prev,
  .pagination .next {
    display: none; /* Скрываем кнопки "← Назад" и "Вперед →" на мобилке */
  }
}

.news__single {
  width: min(90vw, 1200px);

  margin: auto;
}

/* Parks */

.parks__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  
  width: 100%;

  padding: 10px;
}

.park-card {
  display: flex;
  gap: 10px;
  
  width: 100%;

  padding: 10px;

  border-radius: 16px;

  background-color: var(--white);
  
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.park-card__image-container_team {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 200px;
    max-width: 200px;
    max-height: 300px;
    aspect-ratio: 3 / 4;
}

.park-card__image-container {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 300px;
  max-width: 300px;
  max-height: 300px;
}

.park-card__image {
  width: 100%;
  height: 100%;

  border-radius: 16px;
  
  object-fit: cover;
}

.park-card__content {
  display: flex;
  flex-direction: column;

  gap: 10px;
  
  width: 100%;
  
  padding: 10px;
}

.park-card__description {
  width: 100%;
  max-height: 100px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}

.park-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.park-card__contacts-name {
    color: var(--gray);
    font-weight: 700;
}

.park-card__contacts-value {
    color: var(--gray);
}

@media (max-width: 625px) {
  .park-card {
    flex-direction: column;

    align-items: center;
  }
}

/* End Parks */

@media (max-width: 768px) {
  .swiper-button-next::after,
  .swiper-button-prev::after {
    display: none;
  }

  .section__heading {
    font-size: 18px;
  }

  .responsive__list {
    gap: 20px;
  }

  .main__heading {
    font-size: 20px;
  }

  .wrapper {
    padding: 20px 10px;
  }

  .main__wrapper {
    padding-block: 20px;
  }

  .logo__container {
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
  }

  .swiper.team__swiper,
  .swiper.news__swiper,
  .swiper.calendar__swiper {
    padding-inline-start: 5px;
    padding-inline-end: 15px;
  }

  .team__item {
    max-width: auto;
  }

  .about__wrapper,
  .news__wrapper {
    gap: 10px;
  }

  .about__content {
    font-size: 14px;
  }

  .news__heading {
    font-size: 16px;
  }

  .news__description {
    font-size: 14px;
  }

  .news__date {
    font-size: 12px;
  }

  .footer__list-link {
    font-size: 14px;
  }

  .footer__list-link-description {
    font-size: 12px;
  }
}
