/* ===== HERO SLIDER (SHARED) ===== */
.carusel-section {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

.carousel-container {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  overflow: hidden;
  margin-top: 0;
  padding: var(--header-mobile-height) 0 var(--header-mobile-height) 0;
}

.main-slider {
  width: 100%;
  height: 35vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(9, 12, 24, 0.35) 0%, rgba(9, 12, 24, 0.75) 100%);
  padding: 0 100px;
  box-sizing: border-box;
  margin: 0;
  z-index: 1;
}

.slide-title {
  color: #0f172a;
  font-size: 1.9rem;
  text-align: center;
  font-weight: 600;
  width: min(78%, calc(100% - 320px));
  max-width: 740px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(226, 234, 247, 0.45));
  padding: 36px 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  box-shadow: 0 28px 60px rgba(5, 10, 30, 0.25);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  align-self: center;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-button {
  position: absolute;
  top: 50%;
  left: auto;
  right: auto;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 0;
  backdrop-filter: blur(10px);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-prev {
  left: 40px;
}

.nav-next {
  right: 40px;
}

.nav-button img {
  width: 24px;
  height: 24px;
  transition: var(--transition);
  display: block;
  object-fit: contain;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.2);
}

/* ===== IMPROVED SEARCH CONTAINER ===== */
.search-container {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.78);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.search-container.active {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-box {
  width: min(480px, 92%);
  background: linear-gradient(140deg, rgba(14, 23, 45, 0.98), rgba(22, 32, 56, 0.95));
  padding: 28px 26px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 28px 55px rgba(5, 10, 25, 0.55), 0 0 0 1px rgba(102, 162, 255, 0.2);
  transform: translateY(-30px);
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid rgba(96, 165, 250, 0.2);
  backdrop-filter: blur(8px);
}

@keyframes slideDown {
  to { transform: translateY(0); }
}

.search-box input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(124, 139, 173, 0.6);
  border-radius: 14px;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.search-box input::placeholder {
  color: rgba(235, 239, 255, 0.55);
}

.search-box input:focus {
  border-color: rgba(96, 165, 250, 0.85);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.16);
}

.close-search {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(18, 30, 55, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.close-search:hover {
  background: rgba(37, 99, 235, 0.25);
  transform: scale(1.08) rotate(90deg);
}

/* ===== ELEGANT MODAL STYLES ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  backdrop-filter: blur(12px);
  padding: 24px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.25s forwards;
}

.modal-content {
  background: linear-gradient(135deg, rgba(14, 24, 45, 0.97), rgba(23, 33, 56, 0.95));
  padding: 22px 22px 26px;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 25px 45px rgba(8, 12, 25, 0.35), 0 0 0 1px rgba(102, 162, 255, 0.15);
  transform: scale(0.94);
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid rgba(96, 165, 250, 0.25);
  backdrop-filter: blur(10px);
}

@keyframes scaleIn {
  to { transform: scale(1); }
}

.modal-content h2 {
  color: #f8fbff;
  margin-bottom: 14px;
  padding-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  position: relative;
}

.modal-content h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(18, 30, 55, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  z-index: 10; /* <-- ДОБАВЬТЕ ЭТУ СТРОКУ */
}

.close-modal:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.2);
  transform: scale(1.08) rotate(90deg);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: none;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(124, 139, 173, 0.6);
  border-radius: 14px;
  font-size: 14px;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 4px 10px rgba(5, 9, 20, 0.35);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
  color: rgba(235, 239, 255, 0.55);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(96, 165, 250, 0.85);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background-color: rgba(255, 255, 255, 0.16);
}

.submit-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  transition: var(--transition);
  letter-spacing: 0.4px;
  box-shadow: 0 15px 25px rgba(37, 99, 235, 0.25);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(37, 99, 235, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 48px;
  height: 48px;
  position: relative;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.nav-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.nav-toggle:hover::before {
  width: 100%;
  height: 100%;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #ffffff !important;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-toggle span:nth-child(2) {
  width: 20px;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-toggle:hover span {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-toggle.is-open {
  background: rgba(255, 255, 255, 0.2);
}

.nav-toggle.is-open span {
  transform: none;
  opacity: 1;
  width: 24px;
}

.nav-toggle.is-open span:nth-child(2) {
  width: 20px;
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollToTopBtn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

#scrollToTopBtn img {
  width: 22px;
  height: 22px;
  transition: var(--transition);
}

#scrollToTopBtn:hover img {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ===== NEW ANIMATIONS AND TRANSITIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  animation: fadeInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: fadeInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Add animation delays for staggered entrance */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

