/* ===== GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
}

/* Typography */
h2, h3, h4, h5, h6,
.navbar-brand,
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Remove underlines from links */
a {
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: none;
}

/* ===== LAYOUT ===== */
section {
  min-height: 100vh;
  padding-top: 70px;
}

/* Special sections with auto height */
#faq,
#contacts {
  min-height: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ===== NAVIGATION ===== */
.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: #d9d9d9;
  color: #000 !important;
  border-radius: 0.5rem;
}

/* Social icons in navigation */
.social-icons {
  display: flex;
  gap: 15px;
  margin-left: 20px;
}

.social-link {
  color: #555;
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
  color: #FFD700;
  transform: scale(1.2);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: #FFD700;
  border-color: #FFD700;
  color: #000;
}

.btn-primary:hover {
  background-color: #00BFFF;
  border-color: #00BFFF;
  color: #fff;
}

/* ===== HERO SECTION ===== */
#home {
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}


/* Hero video background */
#home .hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Hero content circle */
#home .hero-content {
  position: relative;
  width: clamp(250px, 60vw, 450px);
  height: clamp(250px, 60vw, 450px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-sizing: border-box;
  z-index: 1;
  text-align: center;
}

/* Logo in hero circle */
#home .hero-content::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: url('assets/images/logo.png') center/contain no-repeat;
  z-index: -1;
  opacity: 0.3;
}

/* Glowing animation around hero circle */
#home .hero-content::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255, 215, 0, 0.7),
    rgba(255, 140, 0, 0.7),
    rgba(255, 69, 0, 0.7),
    rgba(255, 215, 0, 0.7)
  );
  background-size: 200% 200%;
  animation: rotateGlow 12s linear infinite;
  z-index: -1;
  filter: blur(30px);
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero text styles */
#home .hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: #fff;
  text-decoration: none;
  text-transform: none;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: break-word;
}

#home .hero-content p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 0.9;
}

#home .hero-content a.btn {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  background-color: #FFD700;
  border-color: #FFD700;
  color: #000;
}

#home .hero-content a.btn:hover {
  background-color: #00BFFF;
  border-color: #00BFFF;
  color: #fff;
}

/* Mobile responsive for hero */
@media (max-width: 576px) {
  #home .hero-content {
    width: 80vw;
    height: 80vw;
    padding: 1rem;
  }

  #home .hero-content h1 {
    font-size: 1.8rem;
  }

  #home .hero-content p {
    font-size: 1rem;
  }
}

/* ===== EVENTS SECTION ===== */
#events {
  position: relative;
}

#events .overlay-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/travelbackground.svg') center/cover repeat;
  opacity: 1;
  z-index: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* Event images */
.event-img {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.event-img img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.5s ease;
  display: block;
  object-fit: cover;
}

.event-img:hover img {
  transform: scale(1.05);
}

.event-img .overlay {
  background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
}

/* Event text alignment */
#events .row .col-md-6 p:not(.text-muted) {
  display: block;
  text-align: justify;
  text-justify: inter-word;
  width: 100%;
  margin-bottom: 1rem;
}

/* ===== VIDEO SECTION ===== */
#video-section {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#video-section .video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100vw;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

#video-section .video-overlay {
  display: none;
}

#video-section .video-content {
  position: relative;
  z-index: 2;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

#video-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#video-section p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#video-section button {
  border-radius: 25px;
  padding: 0.6rem 2rem;
  font-size: 1rem;
}

/* ===== PRACTICE SECTION ===== */
#practice {
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
  color: #333;
}

#practice .overlay-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/travelbackground.svg') center/cover repeat;
  opacity: 1;
  z-index: 0;
}

#practice .container {
  z-index: 2;
  position: relative;
}

#practice h2 {
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #111;
}

#practice p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #444;
}

#practice h3 {
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #222;
}

#practice p.lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #555;
}

#practice h4 {
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  margin-top: 1rem;
}

/* ===== ABOUT SECTION ===== */
#about {
  background: #808080;
  position: relative;
  overflow: hidden;
}

#about .overlay-about {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/travelbackground.svg') center/cover repeat;
  opacity: 1;
  z-index: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#about .container {
  z-index: 1;
  position: relative;
}

#about h2,
#about h3 {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

#about h3 {
  margin-bottom: 0.5rem;
}

#about p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-block {
  text-align: center;
}

/* ===== TEAM SECTION ===== */
#team {
  background: #fdfdfd;
  position: relative;
}

#team .overlay-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/travelbackground.svg') center/cover no-repeat;
  z-index: 0;
  opacity: 1;
}

#team .overlay-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 87, 34, 0.2);
}

#team h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#team p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* Team member photos */
.team-photo-large {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Team member decorative lines */
.team-member {
  position: relative;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.team-member.flex-row-reverse::before {
  left: 15%;
  right: 15%;
}

@media (max-width: 768px) {
  .team-member::before {
    display: none;
  }

  .team-member .col-md-8 {
    text-align: center !important;
  }
}

/* ===== TRAVEL SECTION ===== */
#travel {
  background-image: url('assets/images/travelbackground.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.travel-block {
  position: relative;
  overflow: hidden;
}

.travel-image img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.5s ease;
}

.travel-image:hover img {
  transform: scale(1.05);
}

.travel-overlay {
  background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
}

.travel-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.travel-block a.btn {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
}

/* ===== FAQ SECTION ===== */
#faq {
  background: #fff;
  color: #222;
  font-family: 'Montserrat', sans-serif;
}

#faq h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #007bff;
}

.faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #555;
  padding-left: 1rem;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 500px;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

/* ===== CONTACTS SECTION ===== */
#contacts {
  text-align: center;
}

.contact-social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-social-icons .social-link {
  color: #555;
  font-size: 2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social-icons .social-link:hover {
  color: #FF0000;
  transform: scale(1.2);
}

/* ===== MODAL STYLES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  background: #000;
  padding: 0;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */

/* Tablet styles */
@media (max-width: 768px) {
  /* Hero section adjustments */
  #home .hero-content h1 {
    font-size: 2rem;
  }

  #home .hero-content p {
    font-size: 1.1rem;
  }

  /* Section padding adjustments */
  section {
    padding-top: 50px;
  }

  /* Text sizes for better readability */
  #practice p,
  #about p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Social icons adjustments */
  .social-icons {
    margin-left: 10px;
    gap: 10px;
  }

  .social-link {
    font-size: 1.5rem;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  /* Hero adjustments for small screens */
  #home .hero-content {
    width: 90vw;
    height: 90vw;
    padding: 0.8rem;
  }

  #home .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  #home .hero-content p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* Typography adjustments */
  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Navigation improvements */
  .navbar-nav {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
    margin-left: 0;
    margin-top: 1rem;
  }

  /* Event images spacing */
  .event-img {
    margin-bottom: 1.5rem;
  }

  /* Team photos smaller on mobile */
  .team-photo-large {
    width: 180px;
    height: 180px;
  }

  /* Contact form improvements */
  #contacts .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* FAQ improvements */
  .faq-question {
    font-size: 1.1rem;
    padding: 0.8rem 0;
  }

  /* Modal adjustments for mobile */
  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-content iframe {
    height: 250px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  #home .hero-content h1 {
    font-size: 1.4rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .contact-social-icons .social-link {
    font-size: 1.8rem;
  }
}
/* ===== СТИЛИ ДЛЯ ССЫЛОК В ОПИСАНИЯХ ===== */
.event-description a,
.travel-description a,
article p a {
  color: #ff8c00; /* Оранжевый цвет */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.event-description a:hover,
.travel-description a:hover,
article p a:hover {
  color: #ff6600; /* Более темный оранжевый при наведении */
  opacity: 0.8;
}

/* ===== ВСПЛЫВАЮЩЕЕ ОКНО ПОДПИСКИ (POPUP) ===== */
.newsletter-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.newsletter-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.newsletter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.newsletter-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.newsletter-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.newsletter-popup-logo {
  text-align: center;
  margin-bottom: 20px;
}

.newsletter-popup-logo img {
  max-width: 100px;
  height: auto;
  filter: none; /* Показываем оригинальное цветное лого */
}

.newsletter-popup-content {
  color: white;
  text-align: center;
}

.newsletter-popup-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD700;
}

.newsletter-popup-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.95;
}

.newsletter-popup-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFD700;
  color: #000;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.newsletter-popup-button:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  color: #000;
}

.newsletter-popup-button i {
  font-size: 24px;
}

/* ===== TELEGRAM БЛОК В КОНТАКТАХ ===== */
.telegram-contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #fdfdfd 0%, #f8f8f8 100%);
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.telegram-contact-block img {
  max-width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.telegram-contact-block p {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.telegram-contact-block a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0088cc;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.telegram-contact-block a:hover {
  background: #006699;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  color: white;
}

.telegram-contact-block a i {
  font-size: 20px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .newsletter-popup {
    padding: 30px 20px;
  }
  
  .newsletter-popup-content h3 {
    font-size: 24px;
  }
  
  .newsletter-popup-content p {
    font-size: 14px;
  }
  
  .newsletter-popup-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}
