:root {
  --primary-color: #4361ee;
  --primary-light: #5c7cfa;
  --primary-dark: #3a0ca3;
  --primary-hover: #5c7cfa;
  --secondary-color: #f72585;
  --secondary-dark: #b5179e;
  --success-color: #4cc9f0;
  --scroll-color: #5c6bc0;
  --text-dark: #212529;
  --text-light: #343a40;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #121212;
  --border-light: #e9ecef;
  --shadow-light: rgba(0,0,0,0.05);
  --text-dark-theme: #e9ecef;
}

/* Базовые стили */
body {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Темная тема */
body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-dark-theme);
}

body.dark-theme header {
  background-color: #16213e !important;
  border-bottom: 1px solid #2a2a4a;
}

body.dark-theme .icon-box {
  background: rgba(26, 32, 58, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e6e6e6;
}

body.dark-theme .icon-box:hover {
  background: rgba(36, 42, 78, 0.9);
}

body.dark-theme .accordion-item,
body.dark-theme .accordion-body,
body.dark-theme .program-card,
body.dark-theme .review-card,
body.dark-theme .education-card,
body.dark-theme .event-card,
body.dark-theme .testimonial-card,
body.dark-theme .center-card {
  background: #1a2035;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .accordion-button:not(.collapsed) {
  background-color: rgba(67, 97, 238, 0.2);
  color: #a6b5ff;
}

body.dark-theme .accordion-button {
  background-color: #1a1a2e;
  color: #e6e6e6;
}

body.dark-theme footer {
  background-color: #0f0f1a;
  border-top: 1px solid #2a2a4a;
}

body.dark-theme .bg-light {
  background-color: #16213e !important;
}

body.dark-theme .bg-primary {
  background-color: #2a3a78 !important;
}

body.dark-theme .btn-primary {
  background-color: #3a4ca1;
  border-color: #3a4ca1;
}

body.dark-theme .btn-primary:hover {
  background-color: #4a5cb1;
  border-color: #4a5cb1;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
  background-color: #16213e;
  border-color: #2a2a4a;
  color: #e6e6e6;
}

body.dark-theme .form-control:focus {
  background-color: #16213e;
  border-color: #4361ee;
  color: #e6e6e6;
}

body.dark-theme .form-label {
  color: #d1d1d1;
}

body.dark-theme .nav-link {
  color: #d1d1d1 !important;
}

body.dark-theme .nav-link:hover {
  color: #a6b5ff !important;
}

body.dark-theme .preloader {
  background-color: #1a1a2e;
}

body.dark-theme .loader {
  border-color: #16213e;
  border-top-color: #4361ee;
}

body.dark-theme .program-badge {
  background: #c9166b;
}

body.dark-theme .review-content::before,
body.dark-theme .testimonial-text::before {
  color: rgba(67, 97, 238, 0.2);
}

body.dark-theme .author-info p,
body.dark-theme .event-description,
body.dark-theme .event-meta,
body.dark-theme .date-posted {
  color: #adb5bd;
}

body.dark-theme #contact-form,
body.dark-theme .contact-form-wrapper {
  background: rgba(26, 32, 58, 0.7);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body.dark-theme .social-links a {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .social-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.dark-theme .map-container {
  background: #1a2035;
  border-color: rgba(255,255,255,0.1);
}

body.dark-theme .center-header {
  border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-theme .center-header h3,
body.dark-theme .contact-details h3,
body.dark-theme .contact-social h3,
body.dark-theme .education-card h3,
body.dark-theme .event-card h3 {
  color: #a6b5ff;
}

body.dark-theme .event-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

body.dark-theme .center-body i,
body.dark-theme .author-location i {
  color: #a6b5ff;
}

/* Общие стили */
[data-aos] {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

.section-header h2 {
  display: inline-block;
  margin-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

.section-padding {
  border-radius: 40px;
  background: #f8f9fa;
  margin-bottom: 40px;
  padding: 60px 20px;
}

body.dark-theme .section-padding,
body.dark-theme #events,
body.dark-theme .faq-section,
body.dark-theme .contact-section {
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
}


.contact-form .form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.contact-form .form-check-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form textarea.form-control {
  min-height: 150px;
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid;
}

body.dark-theme .contact-form .form-control,
body.dark-theme .contact-form .form-select {
  background: rgba(26, 32, 58, 0.8);
  border-color: rgba(255,255,255,0.1);
  color: #e6e6e6;
}

body.dark-theme .contact-form .form-label {
  color: #e6e6e6;
}

/* Events Section */
#events {
  background-color: #f8f9fa;
}

.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
}

.events-filter {
  display: flex;
  justify-content: center;
}

.contact-form-wrapper {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  height: 100%;
  border: 2px solid #4361ee;
}

/* Индикатор прокрутки */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--scroll-color);
  z-index: 1000;
  width: var(--scroll-width, 0%);
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar {
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-left: 10px;
  color: var(--primary-dark);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: rotate(10deg);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-label {
  font-size: 0.7rem;
  margin-top: 3px;
  color: var(--text-light);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-nav {
  align-items: center;
  padding: 0.5rem 0;
}

.nav-item {
  margin: 0 0.25rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.nav-link:hover, 
.nav-link:focus {
  color: var(--primary-color) !important;
  background: rgba(67, 97, 238, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

.nav-link i {
  display: none;
}

.nav-link.active {
  color: white !important;
  font-weight: 600;
}

.nav-link.active::after {
  width: calc(100% - 2rem);
}

.navbar-extra {
  display: flex;
  align-items: center;
}

#theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background: var(--primary-color);
  color: white;
}

.navbar-extra .btn-primary {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-extra .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary-color);
  width: 0;
  transition: width 0.3s ease;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 70%, #2a0c5e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  z-index: 1;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  background: transparent;
}

body.dark-theme #particles-js {
  --particle-color: #a6b5ff;
}

.hero-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.circle-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 10%;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cards */
.icon-box {
  background: #ffffff;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  color: var(--text-dark);
  transition: transform 0.3s, box-shadow 0.3s;
}

.icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.program-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(67, 97, 238, 0.1);
  height: 100%;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.program-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.program-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: #d11d73;
  color: white;
  padding: 0.25rem 2rem;
  transform: rotate(45deg);
  font-size: 0.75rem;
  width: 120px;
  text-align: center;
}

#testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  position: relative;
  padding: 20px 0;
}

.review-card,
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(67, 97, 238, 0.1);
  display: flex;
  flex-direction: column;
}

.review-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

body.dark-theme .testimonial-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.review-author,
.testimonial-author {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.review-avatar,
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--primary-color);
}

.author-location {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.author-location i {
  margin-right: 5px;
  color: var(--primary-color);
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
}

body.dark-theme .testimonial-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.program-tag {
  background: rgba(67, 97, 238, 0.2);
  color: #3b56d3;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
}

body.dark-theme .program-tag {
  background: rgba(67, 97, 238, 0.35);
  color: #a6b5ff;
}

.date-posted {
  color: var(--text-light);
}

.author-info h3,
.author-info h5 {
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

body.dark-theme .author-info h5 {
  color: #a6b5ff;
}

.author-info p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content,
.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  font-style: italic;
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-content::before,
.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: rgba(67, 97, 238, 0.1);
  font-family: serif;
  line-height: 1;
}

.review-rating,
.testimonial-rating {
  color: #ffc107;
  margin-top: 1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.rating-value {
  margin-left: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

body.dark-theme .rating-value {
  color: #e6e6e6;
}

.education-card,
.event-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.education-card:hover,
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

body.dark-theme .education-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.education-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bg-purple {
  background: linear-gradient(135deg, #7209b7, #560bad);
}

.education-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.bg-orange {
  background: linear-gradient(135deg, #f48c06, #e85d04);
}

.education-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.education-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.education-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.education-features i {
  margin-right: 8px;
  font-size: 0.9rem;
}

.event-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.event-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.art-badge {
  background-color: #dd2276;
}

.sport-badge {
  background-color: #2f8098;
}

.science-badge {
  background-color: #7209b7;
}

.event-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.event-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.event-description {
  color: var(--text-light);
  margin-bottom: 15px;
  flex-grow: 1;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.event-meta span {
  display: flex;
  align-items: center;
}

.event-details-btn {
  align-self: flex-start;
  transition: all 0.3s ease;
}

.event-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Добавить в CSS */
:focus-visible {
  outline: 3px solid #4361ee;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.3);
}

.card:focus-visible, 
[tabindex="0"]:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.center-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
}

.center-card.active {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15);
}

.center-card:hover:not(.active) {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.program-card:focus-visible,
.education-card:focus-visible,
.center-card:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 4px;
  border-radius: 8px;
}

button:focus, a:focus {
  outline: 2px solid #4361ee;
  outline-offset: 2px;
}

.center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.center-header h3 {
  margin: 0;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
}



.center-body p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.center-body i {
  width: 20px;
  color: var(--primary-color);
}

.route-btn {
  transition: all 0.3s ease;
}

.route-btn:hover {
  background: var(--primary-color);
  color: white;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.cta-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Buttons */
.btn-primary {
  background-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 0 15px rgba(67, 97, 238, 0.4);
  border: none;
  transition: all 0.4s ease;
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(67, 97, 238, 0.7);
  transform: translateY(-2px) scale(1.02);
  color: white;
}

.btn-secondary {
  background-image: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  border: none;
  box-shadow: 0 0 15px rgba(247, 37, 133, 0.3);
}

.btn-secondary:hover {
  background-image: linear-gradient(135deg, var(--secondary-color), #d11dac));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
}

.btn-lg {
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-group > .btn-outline-primary {
  color: blue;
  border-color: #0a58ca;
}

.btn-group > .btn-outline-primary:hover,
.btn-group > .btn-outline-primary.active {
  background-color: #0a58ca;
  color: white;
}

body.dark-theme .btn-group > .btn-outline-primary {
  color: #3d8bfd;
  border-color: #3d8bfd;
}

body.dark-theme .btn-group > .btn-outline-primary:hover,
body.dark-theme .btn-group > .btn-outline-primary.active {
  background-color: #3d8bfd;
  color: #fff;
}

/* Forms */
.form-control {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  border-radius: 10px;
  transition: all 0.3s;
}

#contact-form {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

#contact-form button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  padding: 10px 25px;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Accordion */
.faq-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-item {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed) {
  background-color: white;
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 20px;
  color: var(--primary-dark);
  background-color: white;
  border-radius: 12px !important;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

.accordion-button .faq-icon {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) .faq-icon {
  transform: rotate(90deg);
  color: var(--secondary-color);
}

.accordion-collapse {
  transition: height 0.3s ease, opacity 0.2s ease;
}

/* Tabs */
.education-tabs .nav-pills {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 1rem;
}

body.dark-theme .education-tabs .nav-pills {
  border-bottom-color: rgba(255,255,255,0.1);
}

.education-tabs .nav-link {
  border-radius: 50px;
  padding: 12px 25px;
  margin: 0 5px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.education-tabs .nav-link.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.education-tabs .nav-link i {
  font-size: 1.1rem;
  margin-right: 8px;
}

/* Counters */
.counter {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
  transition: all 0.3s ease;
}

/* Carousel */
.swiper {
  width: 100%;
  height: auto;
  padding-bottom: 40px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s;
}

.swiper-slide img:hover {
  transform: scale(1.03);
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  transform: scale(1.2);
}

.swiper-pagination-bullet::after {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  right: -14px;
  bottom: -14px;
}

#add-testimonial-btn {
  padding: 12px 30px;
  transition: all 0.3s ease;
}

#add-testimonial-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.reviews-swiper,
.testimonials-carousel,
.events-carousel {
  padding-bottom: 50px;
}

.reviews-swiper .swiper-pagination-bullet,
.testimonials-carousel .swiper-pagination-bullet,
.events-carousel .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #dee2e6;
  opacity: 1;
}

.swiper-button-next, 
.swiper-button-prev {
  color: var(--primary-color);
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
  font-size: 1.2rem;
}

body.dark-theme .swiper-button-next, 
body.dark-theme .swiper-button-prev {
  background: rgba(26, 32, 58, 0.9);
}

/* Map */
.map-container {
  position: relative;
  height: 100%;
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.1);
}

.map-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: all 0.3s ease;
  z-index: 10;
}

.map-marker:hover {
  transform: translate(-50%, -100%) scale(1.2);
  background: var(--primary-dark);
}

.map-marker:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.kyiv-marker {
  top: 45%;
  left: 72%;
}

.lviv-marker {
  top: 30%;
  left: 25%;
}

.odesa-marker {
  top: 70%;
  left: 50%;
}

.centers-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a2035, #0f0f1a);
  color: #e6e6e6;
  position: relative;
  font-size: 0.95rem;
}

.footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-logo img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.contact-list i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 3px;
}

.contact-list a {
  color: #e6e6e6;
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a:hover::after {
  width: 100%;
}

.subscribe-form .input-group {
  border-radius: 50px;
  overflow: hidden;
}

.subscribe-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 12px 20px;
  height: 45px;
}

.subscribe-form .form-control::placeholder {
  color: #b0b0b0;
}

.subscribe-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.subscribe-form .btn {
  height: 45px;
  width: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 50px 50px 0 !important;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  outline: none;
  overflow: hidden;
  transform: translateY(0);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

.back-to-top i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

body.dark-theme .back-to-top {
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark-theme .back-to-top:hover {
  background: var(--primary-dark);
}

.contact-form .btn-primary {
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.back-to-top:hover {
  background: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
  background-image: none;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-color: var(--bg-light);
  border-top-color: var(--primary-color);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#education {
  position: relative;
}

/* Responsive styles */
@media (max-width: 992px) {
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  body.dark-theme .navbar-collapse {
    background: #1a2035;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
  }
  
  .nav-link i {
    display: inline-block;
    width: 20px;
    text-align: center;
  }
  
  .navbar-extra {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    justify-content: center;
  }
  
  body.dark-theme .navbar-extra {
    border-top-color: rgba(255,255,255,0.1);
  }

  .footer-widget {
    margin-bottom: 30px;
  }
  
  .footer-title {
    margin-bottom: 15px;
  }

  .contact-section {
    padding: 60px 0;
  }
  
  .contact-card {
    padding: 15px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer-widget {
    margin-bottom: 30px;
  }
  
  .footer-title {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .section-padding {
    padding: 50px 0;
    border-radius: 30px;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .icon-box, 
  .program-card,
  .education-card {
    padding: 20px;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .event-image {
    height: 150px;
  }
  
  .event-content {
    padding: 15px;
  }
  
  .swiper-button-next, 
  .swiper-button-prev {
    display: none;
  }

  .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    position: relative;
    opacity: 1;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
  }
  
  .footer-bottom .col-md-6 {
    text-align: center !important;
    margin-bottom: 10px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .contact-form-wrapper {
    padding: 20px;
  }
  
  .contact-form .btn-primary {
    font-size: 1rem;
  }

  .testimonial-card {
    padding: 20px;
  }

  .author-avatar {
    width: 50px;
    height: 50px;
  }

  .education-tabs .nav-link {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 0 2px;
  }

  .education-card {
    padding: 20px;
  }

  .education-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .cta-card {
    padding: 20px !important;
  }

  .cta-card h3 {
    font-size: 1.4rem;
  }

  .counter-section .col-md-4 {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  
  .counter-section .col-md-4:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1rem;
  }
  .display-4 {
    font-size: 2.5rem;
  }
  .program-card {
    margin-bottom: 1rem;
  }

  .education-tabs .nav-pills {
    flex-direction: column;
    align-items: center;
  }
  
  .education-tabs .nav-item {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .education-tabs .nav-link {
    width: 100%;
    justify-content: center;
    margin: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero::after, 
  .hero-decoration, 
  .circle {
    display: none;
  }

  .navbar-brand img,
  .nav-link,
  .navbar-extra .btn-primary,
  #theme-toggle {
    transition: none !important;
  }
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

body.dark-theme .contact-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

body.dark-theme .contact-details h4 {
  color: #a6b5ff;
}

body.dark-theme .contact-social h5 {
  color: #a6b5ff;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-social h5 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.contact-details p {
  color: var(--text-light);
  margin-bottom: 0;
}

body.dark-theme .contact-card {
  background: #1a2035;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 36px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.counter-section .col-md-4 {
  position: relative;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.counter-section .col-md-4:last-child {
  border-right: none;
}


/* English+ Program Styles */
#english-plus .table {
  background-color: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#english-plus .table th {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

#english-plus .table td, 
#english-plus .table th {
  padding: 12px 15px;
  vertical-align: middle;
}

#english-plus .table tr:nth-child(even) {
  background-color: var(--bg-light);
}

body.dark-theme #english-plus .table {
  background-color: #1a2035;
}

body.dark-theme #english-plus .table tr:nth-child(even) {
  background-color: rgba(255,255,255,0.05);
}

body.dark-theme #english-plus .table th {
  background-color: var(--primary-dark);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.step {
  background: white;
  border-radius: 12px;
  padding: 25px;
  width: 220px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.step-number {
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: bold;
}

.nav-item {
    margin: 0 0.15rem; /* Уменьшаем боковые отступы */
}

.nav-link {
    padding: 0.5rem 0.8rem !important; /* Уменьшаем внутренние отступы */
    font-size: 0.95rem; /* Чуть уменьшаем размер шрифта */
}

.navbar-extra {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
}

/* Исправление цвета активного пункта меню */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(67, 97, 238, 0.1) !important;
}

/* Особые стили для темной темы */
body.dark-theme .navbar-nav .nav-link.active,
body.dark-theme .navbar-nav .nav-link:focus,
body.dark-theme .navbar-nav .nav-link:hover {
    color: #a6b5ff !important;
    background: rgba(166, 181, 255, 0.1) !important;
}

.visually-hidden-focusable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}