/* ========== Переменные цветов и градиенты ========== */
:root {
  --blue-dark: #013766;
  --red-dark: #ac0e28;
  --red: #BC4558;
  --blue: #00888F;
  --bg-light: #F9FDFF;
  --gradient-blue: linear-gradient(135deg, #013766 0%, #1a5a9c 100%);
  --gradient-red: linear-gradient(135deg, #ac0e28 0%, #d43f5a 100%);
  --shadow-sm: 0 10px 30px -10px rgba(0,0,0,0.15);
  --shadow-hover: 0 20px 40px -15px rgba(0,0,0,0.25);
}

/* ========== Общие стили ========== */
body {
  font-family: 'Montserrat', sans-serif;
  color: #4a4a4a;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}

/* ========== Утилиты ========== */
.bg-blue-dark { background: var(--gradient-blue) !important; }
.bg-red-dark { background: var(--gradient-red) !important; }
.bg-red { background: var(--red) !important; }
.bg-blue { background: var(--blue) !important; }
.text-blue-dark { color: var(--blue-dark) !important; }
.text-red { color: var(--red-dark) !important; }

/* ========== Кнопки ========== */
.btn-enroll,
.btn-enroll-light {
  position: relative;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border: none;
  background-size: 200% auto;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  z-index: 1;
}

.btn-enroll {
  background: var(--gradient-blue);
  color: white;
}

.btn-enroll-light {
  background: var(--gradient-red);
  color: white;
}

.btn-enroll:hover,
.btn-enroll-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background-position: right center;
  color: white;
}

.btn-enroll:active,
.btn-enroll-light:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ========== Навигация ========== */
.navbar {
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.navbar .nav-link {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.125rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-red);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.navbar .nav-link:hover {
  color: var(--red-dark);
}

.navbar .nav-link:hover::after {
  width: 80%;
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ========== Верхний бар ========== */
.bg-blue-dark a {
  transition: all 0.3s ease;
}

.bg-blue-dark .d-flex.gap-3 a:hover {
  color: #F1C40F !important;
  transform: scale(1.2);
}

.bg-blue-dark .d-flex.gap-4 a {
  text-decoration: none;
}

.bg-blue-dark .d-flex.gap-4 a i {
  color: white !important;
}

.bg-blue-dark .d-flex.gap-4 a span {
  color: #F1C40F !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

.bg-blue-dark .d-flex.gap-4 a:hover span {
  color: white !important;
}

/* ========== Слайдер (carousel) ========== */
.carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item .container {
  position: relative;
  z-index: 2;
}

/* Индикаторы */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  margin: 0 6px;
  transition: all 0.3s;
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.2);
  background: var(--red-dark);
}

/* Стрелки — синий круг с белой иконкой */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue) !important;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: white !important;
  font-size: 2rem;
  background-image: none !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: all 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  transform: scale(1.1);
  background: var(--blue-dark) !important;
}

.carousel-control-prev-icon i,
.carousel-control-next-icon i {
  color: white;
  line-height: 1;
}

/* Подпись в карусели */
.carousel-caption-custom {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  padding: 2rem 2.5rem;
  border-radius: 40px;
  max-width: 900px;
  margin-bottom: 2rem;
  box-shadow: none;
  border: none;
}

.carousel-caption-custom h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption-custom .btn {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ========== Секция преимуществ ========== */
.ftco-services .col-md-3 {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s;
}

.ftco-services .col-md-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.ftco-services .col-md-3:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.ftco-services .col-md-3:hover::before {
  opacity: 1;
}

.ftco-services .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all 0.5s;
}

.ftco-services .icon i {
  font-size: 2rem !important;
}

.ftco-services .col-md-3:hover .icon {
  transform: rotateY(360deg) scale(1.1);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.ftco-services h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ftco-services p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* ========== Карточки участников ========== */
.staff-card {
  transition: all 0.3s;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.staff-card .card-img-top {
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.staff-card:hover .card-img-top {
  transform: scale(1.05);
}

.staff-card .card-body {
  padding: 1.5rem;
  background: white;
  position: relative;
}

.staff-card .social-icons {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.staff-card:hover .social-icons {
  opacity: 1;
  transform: translateY(0);
}

.staff-card .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  color: var(--red-dark);
  transition: all 0.3s;
}

.staff-card .social-icons a:hover {
  background: var(--gradient-red);
  color: white;
  transform: translateY(-3px);
}

/* ========== Карточки активностей ========== */
.course-card {
  border: none;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.course-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.course-card .row {
  min-height: 250px;
}

.course-card .col-md-5 {
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.5s;
  position: relative;
  overflow: hidden;
}

.course-card .col-md-5::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity 0.3s;
}

.course-card:hover .col-md-5::after {
  opacity: 0.3;
}

.course-card:hover .col-md-5 {
  transform: scale(1.05);
}

.course-card .p-4 {
  background: white;
}

/* Альтернативный вариант карточек активностей (без фото) */
.activity-item {
  transition: all 0.3s ease;
  border-left: 5px solid var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.activity-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover) !important;
}

.activity-icon {
  width: 60px;
  height: 60px;
  background: rgba(1, 55, 102, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.activity-item:hover .activity-icon {
  background: var(--gradient-blue);
  transform: rotate(5deg) scale(1.1);
}

.activity-item:hover .activity-icon i {
  color: white !important;
}

/* ========== Форма на тёмном фоне ========== */
.bg-form {
  position: relative;
  overflow: hidden;
  background: none;
}

.bg-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg_5.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(5px);
  z-index: 0;
}

.bg-form::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.bg-form .container {
  position: relative;
  z-index: 2;
}

.bg-form .bg-blue-dark {
  background: rgba(1, 55, 102, 0.9) !important;
  backdrop-filter: none !important;
  border-radius: 30px !important;
  box-shadow: var(--shadow-hover);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  z-index: 10;
}

.input-icon input,
.input-icon textarea {
  padding-left: 50px !important;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: white;
}

.input-icon textarea {
  font-size: 1.25rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-radius: 20px;
}

.input-icon textarea + i {
  top: 1rem;
  transform: none;
}

.input-icon input:focus,
.input-icon textarea:focus {
  background: rgba(255,255,255,0.25);
  border-color: white;
  box-shadow: none;
}

.bg-form .form-control::placeholder {
  color: rgba(255,255,255,0.7);
}

/* ========== Видео ========== */
video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.video-wrapper-vertical {
  max-width: 400px;
  margin: 0 auto;
}

/* ========== Марафон ========== */
.bg-marathon {
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

.bg-marathon .container {
  position: relative;
  z-index: 2;
}

.bg-marathon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(1,55,102,0.8) 0%, rgba(172,14,40,0.6) 100%);
  z-index: 1;
}

.bg-marathon img {
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

/* Стили для блока "Времена года" */
.season-icons {
  display: inline-block;
  margin-left: 10px;
}

.season-icons i {
  font-size: 2rem;
  margin: 0 5px;
  color: var(--red-dark);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
  animation: floatSeason 3s ease-in-out infinite;
}

.season-icons i:nth-child(1) { animation-delay: 0s; }
.season-icons i:nth-child(2) { animation-delay: 0.2s; }
.season-icons i:nth-child(3) { animation-delay: 0.4s; }
.season-icons i:nth-child(4) { animation-delay: 0.6s; }

@keyframes floatSeason {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.season-week-item {
  transition: transform 0.3s;
}

.season-week-item:hover {
  transform: translateX(10px);
}

.season-week-item .season-icon {
  background: rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.season-week-item:hover .season-icon {
  background: var(--red-dark);
  transform: rotate(10deg) scale(1.1);
}

.season-week-item .season-icon i {
  color: white;
  font-size: 1.5rem;
}

.marathon-image-wrapper {
  position: relative;
  display: inline-block;
}

.marathon-image-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--blue-dark), var(--red-dark));
  border-radius: 25px;
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.marathon-image-wrapper:hover::before {
  opacity: 1;
  animation: rotateGradient 2s linear infinite;
}

@keyframes rotateGradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.marathon-image-wrapper img {
  transition: transform 0.5s;
  border-radius: 20px;
}

.marathon-image-wrapper:hover img {
  transform: scale(1.02);
}

.seasons-h {
  font-size: 2.5rem;
}

/* ========== Отзывы (Bootstrap карусель без стрелок) ========== */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  display: none;
}

#testimonialCarousel .carousel-indicators {
  position: static;
  margin-top: 2rem;
}

#testimonialCarousel .carousel-indicators [data-bs-target] {
  background: var(--blue-dark);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

#testimonialCarousel .carousel-indicators .active {
  background: var(--red-dark);
}

#testimonialCarousel .carousel-item .d-flex {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

#testimonialCarousel .carousel-item .d-flex:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}

/* ========== Отзывы (Owl Carousel) ========== */
#testimonial-carousel {
  position: relative;
  padding-bottom: 60px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all 0.3s ease;
  margin: 10px 0;
  border: 1px solid rgba(0,0,0,0.03);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-dark);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a4a;
}

#testimonial-carousel .owl-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  margin-top: 20px;
}

#testimonial-carousel .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px 7px;
  background: var(--blue-dark);
  opacity: 0.5;
  border-radius: 50%;
  transition: all 0.3s;
}

#testimonial-carousel .owl-dot.active span {
  background: var(--red-dark);
  opacity: 1;
  transform: scale(1.2);
}

#testimonial-carousel .owl-item {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#testimonial-carousel .testimonial-item {
  height: 100%;
  display: flex;
  width: 100%;
  max-width: 100%;
}

#testimonial-carousel .testimonial-card {
  width: 100%;
  box-sizing: border-box;
}

/* ========== Правила вступления (карточки) ========== */
#o-klube .image-wrapper {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 100%;
  min-height: 400px;
}

#o-klube .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

#o-klube .image-wrapper:hover img {
  transform: scale(1.03);
}

#o-klube .feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#o-klube .feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-dark);
}

#o-klube .icon-circle {
  margin: 0 auto 1.5rem auto;
  width: 50px;
  height: 50px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 5px 8px -2px var(--blue-dark);
  transition: all 0.3s;
}

#o-klube .feature-card:hover .icon-circle {
  background: var(--gradient-red);
  transform: scale(1.05) rotate(5deg);
}

#o-klube .feature-card h4 {
  color: var(--blue-dark);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  width: 100%;
}

#o-klube .feature-card p {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 90%;
}

.curvy-arrow-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.curvy-arrow {
  display: inline-block;
  text-decoration: none;
  animation: float 2.2s ease-in-out infinite;
  cursor: pointer;
}

.curvy-arrow svg {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* ========== Аккордеон ========== */
.accordion-item {
  background: transparent;
  border: none;
  margin-bottom: 1rem;
}

.accordion-button {
  background: var(--gradient-blue);
  color: white;
  border-radius: 50px !important;
  font-weight: 600;
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.accordion-button.collapsed {
  background: white;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-blue);
  color: white;
  box-shadow: var(--shadow-hover);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button.collapsed::after {
  filter: none;
}

.accordion-body {
  background: #f9f9f9;
  border-radius: 20px;
  margin-top: 0.5rem;
  padding: 1.5rem;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

/* ========== Галерея ========== */
.gallery-img {
  border-radius: 15px;
  transition: all 0.4s;
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
  opacity: 0.9;
  cursor: pointer;
}

.modal-content {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

/* Карусель галереи (Owl) */
.gallery-carousel .item {
  height: 250px;
}

.gallery-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel .owl-dots {
  margin-top: 20px;
  text-align: center;
}

.gallery-carousel .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: var(--blue-dark);
  opacity: 0.5;
  border-radius: 50%;
  transition: all 0.3s;
}

.gallery-carousel .owl-dot.active span {
  background: var(--red-dark);
  opacity: 1;
  transform: scale(1.2);
}

/* ========== Футер ========== */
footer {
  background: var(--gradient-blue) !important;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  z-index: 0;
}

footer .container {
  position: relative;
  z-index: 2;
}

footer a {
  transition: all 0.3s;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

footer .social-icons a:hover {
  background: white;
  color: var(--blue-dark) !important;
  transform: translateY(-5px);
}

.footer-contact a:hover,
.footer-menu a:hover {
  color: #F1C40F !important;
  transition: color 0.3s ease;
}

.footer-contact a[href^="tel:"],
.footer-contact a[href^="mailto:"] {
  color: #F1C40F !important;
  font-weight: 600 !important;
  transition: color 0.3s ease;
}

.footer-contact a[href^="tel:"]:hover,
.footer-contact a[href^="mailto:"]:hover {
  color: #ffffff !important;
}

.footer-subscribe .input-group {
  max-width: 300px;
}

.footer-subscribe input {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  border-radius: 50px 0 0 50px !important;
}

.footer-subscribe input::placeholder {
  color: rgba(255,255,255,0.7);
}

.footer-subscribe button {
  border-radius: 0 50px 50px 0 !important;
  background: var(--red-dark);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0 20px;
}

.footer-subscribe button:hover {
  background: var(--red);
}

/* ========== Preloader ========== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.loader {
  width: 80px;
  height: 80px;
  border: 5px solid var(--blue-dark);
  border-top-color: var(--red-dark);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Кнопка "Наверх" ========== */
#goTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-red);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  z-index: 99;
  transition: all 0.3s;
}

#goTop:hover {
  transform: translateY(-5px);
  background: var(--gradient-blue);
}

/* ========== Кастомный скроллбар ========== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--blue-dark);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-dark);
}

/* ========== Адаптивность ========== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
  }

  .navbar-nav {
    align-items: center !important;
  }

  .btn-enroll,
  .btn-enroll-light {
    padding: 0.6rem 1.5rem;
  }

  .video-wrapper-vertical {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .carousel-item {
    height: 400px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .carousel-caption-custom {
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    max-width: 95%;
  }

  .carousel-caption-custom h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .carousel-caption-custom .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }

  .ftco-services .col-md-3 {
    min-height: 300px;
    padding: 2rem !important;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-6 {
    font-size: 1.75rem;
  }

  .staff-card .card-img-top {
    height: 250px;
  }

  .bg-form .bg-blue-dark {
    padding: 2rem !important;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 300px;
  }

  .carousel-caption-custom h1 {
    font-size: 1.3rem;
  }

  .carousel-caption-custom {
    padding: 1rem;
  }

  .btn-enroll,
  .btn-enroll-light {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }

  .gallery-img {
    height: 200px;
  }

  .curvy-arrow svg {
    width: 180px;
    height: 100px;
  }
}

.error-message {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: #dc3545; /* красный цвет Bootstrap */
  display: block;
  
}

.gallery-carousel .owl-dots {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery-carousel .owl-dot span {
  display: inline-block;
}

/* Cookie баннер */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(1, 55, 102, 0.95);
  backdrop-filter: blur(5px);
  color: white;
  padding: 1rem 2rem;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
  display: none; /* скрыт по умолчанию, покажем через JS */
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 2px solid var(--red-dark);
  font-size: 0.95rem;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  max-width: 700px;
}

.cookie-banner a {
  color: #F1C40F;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner a:hover {
  color: white;
}

.cookie-btn {
  background: var(--gradient-red);
  border: none;
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: var(--red-dark);
}

@media (max-width: 768px) {
  .cookie-banner {
      flex-direction: column;
      text-align: center;
      padding: 1rem;
  }
}

/* Чекбоксы на тёмном фоне */
.form-check-input {
  background-color: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.form-check-input:checked {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(172, 14, 40, 0.25);
  border-color: var(--red-dark);
}

.form-check-label a {
  color: #F1C40F !important;
  text-decoration: underline;
}

.form-check-label a:hover {
  color: white !important;
}