/* ============================================================
   ROOT & RESET
   ============================================================ */
@import "./styles/root.css";
@import "./styles/firstPage/about.css";
@import "./styles/firstPage/carousel-turs.css";
@import "./styles/firstPage/fotoGallery.css";
@import "./styles/firstPage/opinionCarousel.css";
@import "./styles/firstPage/carouselThree.css";

@import "./styles/shedule/scheduleItems.css";
@import "./styles/shedule/discriptionSchedule.css";
@import "./styles/pohod/dlyDney.css";
@import "./styles/pohod/contactFormSection.css";
@import "./styles/pohod/photoSlider.css";

@import "./styles/about/bigAbout.css";
@import "./styles/about/heroBigAbout.css";
@import "./styles/about/carouselForBigAbout.css";
@import "./styles/about/contactInAbout.css";
@import "./styles/about/achievement.css";

@import "./styles/pohod/opinionMV.css";

@import "./styles/pohod/navForPohod.css";

@import "./styles/header.css";
@import "./styles/footer.css";
@import "./styles/runStrips.css";
@import "./styles/scrollUp.css";
@import "./styles/telegramPlashka.css";
@import "./styles/breadcrumbs.css";

@import "./styles/foto/foto.css";
@import "./styles/generalFoto.css";

@import "./styles/video/video1.css";
@import "./styles/video/video.css";

@import "./styles/articles/textArticle.css";
@import "./styles/articles/mainArticlesItems.css";
@import "./styles/articles/articleNavSection.css";
@import "./styles/foto/navForFoto.css";

/* ============================================================
   ШРИФТЫ
   ============================================================ */
@font-face {
  font-family: "Farabee";
  src:
    url("../fonts/Farabee-Light.woff2") format("woff2"),
    url("../fonts/Farabee-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Farabee";
  src:
    url("../fonts/Farabee.woff2") format("woff2"),
    url("../fonts/Farabee.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Farabee";
  src:
    url("../fonts/Farabee-Medium.woff2") format("woff2"),
    url("../fonts/Farabee-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Farabee";
  src:
    url("../fonts/Farabee-Semibold.woff2") format("woff2"),
    url("../fonts/Farabee-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Farabee";
  src:
    url("../fonts/Farabee-Bold.woff2") format("woff2"),
    url("../fonts/Farabee-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture {
  margin: 0;
}

img,
picture {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  * ::before,
  * ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   ПРИМЕНЕНИЕ ШРИФТА
   ============================================================ */
body,
p,
.textArticle p {
  font-family: "Farabee", "Verdana", sans-serif;
  font-weight: 300;
}

h1,
h2,
h3,
.nav-links a {
  font-family: "Farabee", "Verdana", sans-serif;
  font-weight: 600;
}

.nav-links a,
.btn,
button {
  font-family: "Farabee", "Verdana", sans-serif;
  font-weight: 600;
}

/* ============================================================
   ADMIN BAR
   ============================================================ */
@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    padding-top: calc(80px + 46px);
  }
}

/* ============================================================
   GLOBAL
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Farabee", "Verdana", sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  background: var(--backgroundDarkColor);
  background-size: 400% 400%;
  animation: bgGradientShift 15s ease infinite;
  scrollbar-gutter: stable;
}

section {
  min-height: fit-content;
  width: 100%;
  position: relative;
}

/* ============================================================
   ТОП СЕКЦИЯ - ГЛАВНАЯ СТРАНИЦА (topDescriptionM)
   ============================================================ */
.topDescriptionM {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  height: 80vh;
  z-index: 1;
  overflow: hidden;
}

.topDescription-containerM {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Картинка на главной странице */
.topDescription-containerM img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
  filter: brightness(0.8) contrast(1.1);
  animation: softPulse 8s ease-in-out infinite;
}

/* Скрываем видео на главной странице */
.topDescription-containerM .hero-video {
  display: none !important;
}

/* ============================================================
   ТОП СЕКЦИЯ - СТРАНИЦА ПОХОДА (topDescription)
   ============================================================ */
.topDescription {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  height: 80vh;
  z-index: 1;
  overflow: hidden;
}

.topDescription-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Видео на странице похода */
.topDescription-container .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  background: #1a1a2e;
}

/* Десктопное видео - показываем */
.topDescription-container .hero-video-desktop {
  display: block;
}

/* Мобильное видео - скрыто на десктопе */
.topDescription-container .hero-video-mobile {
  display: none;
}

/* Картинка на странице похода (fallback) */
.topDescription-container .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
  filter: brightness(0.8) contrast(1.1);
  animation: softPulse 8s ease-in-out infinite;
}

/* ============================================================
   INFO BOX (ОБЩИЙ ДЛЯ ВСЕХ СТРАНИЦ)
   ============================================================ */
.info-box {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  z-index: 10;
  padding: 1rem 2rem 2rem 2rem;
  min-width: 20rem;
  pointer-events: none;
}

.info-box * {
  pointer-events: auto;
}

/* ============================================================
   АНИМАЦИЯ ДЛЯ КАРТИНКИ
   ============================================================ */
@keyframes softPulse {
  0% {
    transform: scale(1);
    filter: brightness(0.8) contrast(1.1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(0.82) contrast(1.12);
  }
  100% {
    transform: scale(1);
    filter: brightness(0.8) contrast(1.1);
  }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 992px) {
  .topDescriptionM,
  .topDescription {
    height: 85vh;
  }
}

@media (max-width: 768px) {
  .topDescriptionM,
  .topDescription {
    height: 70vh;
  }

  /* На мобильных - мобильное видео для страницы похода */
  .topDescription-container .hero-video-desktop {
    display: none !important;
  }

  .topDescription-container .hero-video-mobile {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .topDescriptionM,
  .topDescription {
    height: 80vh;
  }
}

/* ============================================================
   ДАТЫ В ТОП-СЕКЦИИ
   ============================================================ */
.tour-dates-top {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tour-dates-top:hover {
  border-color: rgba(255, 215, 0, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.tour-dates-top-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-family: "Farabee", "Verdana", sans-serif;
}

.tour-dates-top-label i {
  color: #ffd700;
  font-size: 1rem;
}

.tour-dates-top-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.tour-date-top-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 300;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  cursor: default;
  font-family: "Farabee", "Verdana", sans-serif;
}

.tour-date-top-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tour-date-top-item .spots-badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 1rem;
  font-size: 0.65rem;
  color: #ffd700;
  font-weight: 400;
  letter-spacing: 0.3px;
  font-family: "Farabee", "Verdana", sans-serif;
}

.tour-date-top-item.closed {
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 0, 0, 0.5);
}

.tour-date-top-item.closed:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.tour-date-top-item .closed-icon {
  font-size: 0.6rem;
  opacity: 0.6;
  color: #ff6b6b;
}

/* Адаптивность дат */
@media (max-width: 768px) {
  .tour-dates-top {
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    border-radius: 1.2rem;
    max-width: 100%;
  }

  .tour-dates-top-label {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .tour-dates-top-label i {
    font-size: 0.85rem;
  }

  .tour-date-top-item {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .tour-date-top-item .spots-badge {
    font-size: 0.6rem;
    padding: 0.05rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .tour-dates-top {
    padding: 0.6rem 0.8rem;
    border-radius: 1rem;
    margin-top: 0.8rem;
  }

  .tour-dates-top-label {
    font-size: 0.7rem;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .tour-dates-top-label i {
    font-size: 0.75rem;
  }

  .tour-dates-top-list {
    gap: 0.4rem;
  }

  .tour-date-top-item {
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    gap: 0.3rem;
    border-radius: 1.5rem;
  }

  .tour-date-top-item .spots-badge {
    font-size: 0.5rem;
    padding: 0.02rem 0.3rem;
  }
}

@media (max-width: 380px) {
  .tour-dates-top {
    padding: 0.5rem 0.6rem;
    border-radius: 0.8rem;
  }

  .tour-date-top-item {
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
  }

  .tour-date-top-item .spots-badge {
    font-size: 0.45rem;
    padding: 0.02rem 0.25rem;
  }
}

/* Анимация появления дат */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tour-date-top-item {
  animation: fadeInUp 0.4s ease forwards;
}

.tour-date-top-item:nth-child(1) {
  animation-delay: 0.05s;
}
.tour-date-top-item:nth-child(2) {
  animation-delay: 0.1s;
}
.tour-date-top-item:nth-child(3) {
  animation-delay: 0.15s;
}
.tour-date-top-item:nth-child(4) {
  animation-delay: 0.2s;
}
.tour-date-top-item:nth-child(5) {
  animation-delay: 0.25s;
}
.tour-date-top-item:nth-child(6) {
  animation-delay: 0.3s;
}
.tour-date-top-item:nth-child(7) {
  animation-delay: 0.35s;
}
.tour-date-top-item:nth-child(8) {
  animation-delay: 0.4s;
}
.tour-date-top-item:nth-child(9) {
  animation-delay: 0.45s;
}
.tour-date-top-item:nth-child(10) {
  animation-delay: 0.5s;
}
