/* Root Variables */
:root {
  /* Ultra-light, modern color palette with better spacing */
  --primary-color: #4a90e2;
  --primary-dark: #357abd;
  --primary-light: #6ba3e8;
  --secondary-color: #5ba3d0;
  --accent-color: #7cb342;
  --text-dark: #1a1a1a;
  --text-medium: #4a5568;
  --text-light: #718096;
  --bg-light: #f8fafc;
  --bg-lighter: #ffffff;
  --white: #ffffff;
  --black: #000000;
  --border-light: #e2e8f0;

  /* Theme-aware rgba colors for overlays and backgrounds */
  --overlay-light: rgba(255, 255, 255, 0.15);
  --overlay-medium: rgba(255, 255, 255, 0.25);
  --overlay-dark: rgba(255, 255, 255, 0.3);
  --overlay-subtle: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Reduced shadow intensity for more subtle design */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.01);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 6px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Theme-specific color variables */
  --secondary-color-rgb: 91, 163, 208;
  --primary-color-rgb: 74, 144, 226;
  --primary-light-rgb: 107, 163, 232;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Added fluid typography using clamp for better responsive design */
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}

h5,
h6 {
  font-weight: 600;
  line-height: 1.5;
}

p {
  margin-bottom: 1.25rem;
}

a {
  transition: var(--transition);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Header Top */
.header-top {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  font-size: 0.875rem;
  padding: 0.75rem 0;
}

.header-top a:hover {
  opacity: 0.85;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--overlay-light);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--overlay-dark);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  padding: 1.25rem 0;
  transition: var(--transition);
  background: var(--white) !important;
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 700;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.2;
}

.nav-link {
  font-weight: 500;
  color: var(--text-medium) !important;
  padding: 0.625rem 1.25rem !important;
  position: relative;
  transition: var(--transition);
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: var(--bg-light);
}

.nav-link::after {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.carousel {
  height: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.hero-slide {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
}

/* Updated gradient opacity in background-image to be more transparent so images are visible */
.hero-slide-1 {
  background-image: linear-gradient(
      135deg,
      rgba(var(--secondary-color-rgb), 0.5) 0%,
      rgba(var(--primary-color-rgb), 0.45) 50%,
      rgba(var(--primary-light-rgb), 0.4) 100%
    ), url("https://fond-34.ru/assets/img/card/objects-v-rabote.jpg");
}

.hero-slide-2 {
  background-image: linear-gradient(
      135deg,
      rgba(var(--secondary-color-rgb), 0.5) 0%,
      rgba(var(--primary-color-rgb), 0.45) 50%,
      rgba(var(--primary-light-rgb), 0.4) 100%
    ), url("https://fond-34.ru/assets/img/card/fond-5.jpg");
}

.hero-slide-3 {
  background-image: linear-gradient(
      135deg,
      rgba(var(--secondary-color-rgb), 0.5) 0%,
      rgba(var(--primary-color-rgb), 0.45) 50%,
      rgba(var(--primary-light-rgb), 0.4) 100%
    ), url("https://fond-34.ru/assets/img/card/fond-4.jpg");
}

.hero-slide-4 {
  background-image: linear-gradient(
      135deg,
      rgba(var(--secondary-color-rgb), 0.5) 0%,
      rgba(var(--primary-color-rgb), 0.45) 50%,
      rgba(var(--primary-light-rgb), 0.4) 100%
    ), url("https://fond-34.ru/assets/img/card/fond-3.jpg");
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

/* Removed hero-overlay styles since we're not using the overlay div anymore */

/* Statistics Section */
.statistics-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 0 0 var(--spacing-xl) 0;
}

.stat-card {
  /* Simplified stat card design - removed heavy shadows and decorative elements */
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Removed gradient top border effect */
.stat-card:hover {
  /* Reduced hover transform for subtlety */
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(74, 144, 226, 0.3);
}

.stat-icon {
  /* Smaller, more subtle icon design */
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  background: rgba(74, 144, 226, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: rgba(74, 144, 226, 0.12);
}

.stat-number {
  /* Reduced size and weight for more subtle appearance */
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.6;
}

/* Section Styles */
.section-padding {
  padding: var(--spacing-xl) 0;
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.section-divider {
  width: 80px;
  height: 4px;
  /* Simplified divider without shadow */
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* Info Cards */
.info-card {
  /* Simplified card design with minimal shadows */
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Removed gradient overlay effect */

.info-card:hover {
  /* Minimal hover effect */
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(74, 144, 226, 0.3);
}

.info-card-icon {
  /* Smaller, more subtle icon */
  width: 56px;
  height: 56px;
  background: rgba(74, 144, 226, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.info-card:hover .info-card-icon {
  /* Removed rotation effect */
  background: rgba(74, 144, 226, 0.12);
}

.info-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.info-card p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-light);
}

.service-card:hover {
  /* Reduced hover transform */
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(74, 144, 226, 0.3);
}

.service-image {
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
  position: relative;
}

/* Removed image overlay effect */

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  /* Reduced scale effect */
  transform: scale(1.03);
}

.service-content {
  padding: 2rem;
}

.service-content h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.service-content p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* News Cards */
.news-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-light);
}

.news-card:hover {
  /* Reduced hover transform */
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(74, 144, 226, 0.3);
}

.news-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
}

/* Removed image overlay effect */

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  /* Reduced scale effect */
  transform: scale(1.03);
}

.news-date {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  padding: 0.875rem 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.news-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.news-date .month {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.news-content {
  padding: 2rem;
}

.news-content h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

.news-content p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Contact Cards */
.contact-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Removed gradient overlay effect */

.contact-card:hover {
  /* Minimal hover effect */
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(74, 144, 226, 0.3);
}

.contact-icon {
  /* Smaller, more subtle icon */
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  background: rgba(74, 144, 226, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  /* Removed rotation effect */
  background: rgba(74, 144, 226, 0.12);
}

.contact-card h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.contact-card p {
  color: var(--text-medium);
  margin: 0;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Added card-link styles to ensure theme colors apply */
.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

.card-link i {
  transition: var(--transition);
}

/* Added news-link styles to ensure theme colors apply */
.news-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.news-link:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

/* Ensure all button variants use theme colors */
.btn-outline-primary {
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.btn-secondary {
  background: var(--text-medium);
  border: none;
  color: var(--white);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
}

/* Ensure contact card links use theme colors */
.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Map Container */
.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

/* Modern Video Wrapper and Container Styles */
.video-wrapper {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.video-wrapper:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.video-header {
  padding: 2.5rem 2.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.05) 0%,
    rgba(var(--secondary-color-rgb), 0.05) 100%
  );
  border-bottom: 1px solid var(--border-light);
}

.video-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.video-description {
  font-size: 1rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.7;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--black);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  /* Updated footer to light blue gradient */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-brand img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.footer-brand h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.9;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

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

.footer-contacts li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--overlay-light);
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--overlay-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--overlay-light);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.875rem;
}

/* Modal Styles */
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  /* Updated modal header to light blue */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 2rem;
  border-bottom: none;
}

.modal-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
}

.form-control {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--overlay-subtle);
  outline: none;
}

.modal-footer {
  padding: 1.5rem 2.5rem 2.5rem;
  border-top: none;
}

.modal-footer .btn {
  padding: 0.625rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Added better background sections */
.bg-light {
  background: var(--bg-light) !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }

  .section-padding {
    padding: var(--spacing-lg) 0;
  }

  .statistics-section {
    margin-top: 0;
    padding-top: var(--spacing-lg);
  }

  .section-header {
    margin-bottom: var(--spacing-md);
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 48px;
    height: 48px;
    margin: 0 1rem;
  }

  .carousel-indicators {
    bottom: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2.5rem;
  }

  .section-padding {
    padding: var(--spacing-lg) 0;
  }

  .contact-info {
    font-size: 0.75rem;
  }

  .contact-info a {
    display: block;
    margin-bottom: 0.5rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
  }

  .stat-card {
    padding: 2.5rem 2rem;
  }

  .info-card,
  .service-content,
  .news-content,
  .contact-card {
    padding: 2rem;
  }

  .modal-body {
    padding: 2rem;
  }

  .modal-footer {
    padding: 1.5rem 2rem 2rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
    margin: 0;
  }

  .carousel-control-prev {
    left: 0.75rem;
  }

  .carousel-control-next {
    right: 0.75rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }

  .carousel-indicators {
    bottom: 1.5rem;
    margin-bottom: 0;
    gap: 0.5rem;
  }

  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
  }
}

/* Utility Classes */
.min-vh-75 {
  min-height: 75vh;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Added scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
  background: var(--overlay-light);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  margin: 0 2rem;
  border: 2px solid var(--overlay-light);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: var(--overlay-medium);
  border-color: var(--overlay-medium);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

.carousel-indicators {
  bottom: 3rem;
  margin-bottom: 0;
  gap: 0.75rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background-color: transparent;
  opacity: 0.6;
  transition: var(--transition);
}

.carousel-indicators [data-bs-target]:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

.carousel-indicators .active {
  background-color: var(--white);
  opacity: 1;
  transform: scale(1.3);
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
}

/* Theme Selector Styles */
.theme-selector {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 320px;
  z-index: 9999;
  border: 1px solid var(--border-light);
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-selector-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-selector-header h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.theme-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
}

.theme-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.theme-selector-body {
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  margin-bottom: 0.5rem;
}

.theme-option:hover {
  background: var(--bg-light);
  border-color: var(--border-light);
}

.theme-option.active {
  background: rgba(74, 144, 226, 0.08);
  border-color: var(--primary-color);
}

.theme-preview {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.theme-color {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-option span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

.theme-selector-footer {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.theme-selector-footer small {
  color: var(--text-light);
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .theme-selector {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

/* Breadcrumbs Section */
.breadcrumbs-section {
  background: var(--bg-light);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--text-medium);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
}

.breadcrumb-item.active {
  color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

/* Page Title Section */
.page-title-section {
  padding: 3rem 0;
  background: var(--white);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}

/* Contacts Map Section */
.contacts-map-section {
  margin-bottom: var(--spacing-lg);
}

.map-container-full {
  width: 100%;
  height: 450px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container-full iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  height: 100%;
}

.contact-form-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-form-card .text-muted {
  color: var(--text-medium) !important;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact-form-card .form-control {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.contact-form-card .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
  outline: none;
}

.contact-form-card .form-check-input {
  border: 2px solid var(--border-light);
  border-radius: 6px;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form-card .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-form-card .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
  border-color: var(--primary-color);
}

.contact-form-card .form-check-label {
  font-size: 0.875rem;
  color: var(--text-medium);
  cursor: pointer;
  margin-left: 0.5rem;
}

.contact-form-card .form-check-label a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-form-card .form-check-label a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Contact Details Card */
.contact-details-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  height: 100%;
}

.contact-detail-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-detail-item:last-child {
  margin-bottom: 0;
}

.contact-detail-item:hover {
  background: var(--white);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-detail-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-detail-item:hover .contact-detail-icon {
  background: rgba(var(--primary-color-rgb), 0.15);
  transform: scale(1.05);
}

.contact-detail-content {
  flex: 1;
}

.contact-detail-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-detail-content p {
  color: var(--text-medium);
  margin: 0;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.contact-detail-content a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.contact-detail-content a:hover {
  color: var(--primary-dark);
}

/* Responsive adjustments for contacts page */
@media (max-width: 991px) {
  .contacts-hero-section {
    padding: 2.5rem 0 2rem;
  }

  .modern-form-wrapper {
    padding: 2.5rem 2rem;
    margin-top: 2rem;
  }

  .modern-contact-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .modern-contact-icon {
    width: 52px;
    height: 52px;
    font-size: 1.375rem;
  }
}

@media (max-width: 767px) {
  .contacts-hero-section {
    padding: 2rem 0 1.5rem;
  }

  .modern-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .modern-contact-card {
    padding: 1.5rem;
  }

  .contacts-map-section-bottom .map-container-full {
    height: 350px;
  }
}

/* Modern Contacts Page Styles */
/* Contacts Hero Section */
.contacts-hero-section {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.05) 0%,
    rgba(var(--secondary-color-rgb), 0.05) 100%
  );
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border-light);
}

.contacts-hero-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.contacts-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
  max-width: 700px;
}

/* Modern Contact Cards */
.modern-contact-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.modern-contact-card:last-child {
  margin-bottom: 0;
}

.modern-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--primary-color-rgb), 0.3);
}

.modern-contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  transition: var(--transition);
}

.modern-contact-card:hover .modern-contact-icon {
  transform: scale(1.05);
}

.modern-contact-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.modern-contact-card p {
  color: var(--text-medium);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.modern-contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.875rem;
}

.modern-contact-card a:hover {
  color: var(--primary-dark);
}

/* Modern Form Wrapper */
.modern-form-wrapper {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  height: 100%;
}

.modern-form-wrapper .section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: 0.75rem;
}

.modern-form .form-floating > .form-control {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  height: calc(3.5rem + 2px);
  font-size: 1rem;
}

.modern-form .form-floating > label {
  padding: 1rem 1.25rem;
  color: var(--text-light);
  font-size: 0.9375rem;
}

.modern-form .form-floating > .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
}

.modern-form .form-floating > .form-control:focus ~ label {
  color: var(--primary-color);
}

.modern-form textarea.form-control {
  height: 150px !important;
  resize: none;
}

.modern-form .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.modern-form .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modern-form .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
  border-color: var(--primary-color);
}

.modern-form .form-check-label {
  font-size: 0.9375rem;
  color: var(--text-medium);
  cursor: pointer;
  margin-left: 0.5rem;
}

.modern-form .form-check-label a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.modern-form .form-check-label a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Map Section at Bottom */
.contacts-map-section-bottom {
  margin-top: 0;
}

.contacts-map-section-bottom .map-container-full {
  height: 500px;
  border-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .contacts-hero-section {
    padding: 4rem 0 3rem;
  }

  .modern-form-wrapper {
    padding: 3rem 2.5rem;
  }

  .modern-contact-card {
    padding: 2rem 1.5rem;
  }

  .modern-contact-icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .contacts-hero-section {
    padding: 3rem 0 2rem;
  }

  .modern-form-wrapper {
    padding: 2.5rem 2rem;
  }

  .modern-contact-card {
    padding: 2rem;
  }

  .contacts-map-section-bottom .map-container-full {
    height: 400px;
  }
}

html.special section.hero-section {
  display: none!important;
}

html.special  .statistics-section {
  margin-top: 60px;
}