/* ── Site Header ── */
.site-header {
  background: #223D72;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-top {
  background: #223D72;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
}

.header-top-row {
  width: 100%;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.header-logo:hover {
  opacity: 0.9;
}

.header-logo img,
.header-logo-circle img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-logo-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-logo:hover img,
.header-logo:hover .header-logo-circle img {
  transform: scale(1.05);
}

.header-brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-brand-text {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.header-brand-subtitle {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1.2;
  white-space: nowrap;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.header-info {
  color: #fff;
  font-size: 0.9rem;
  align-self: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
}

.header-info-rows {
  gap: 0.75rem;
}

.header-col {
  flex: 1;
  min-width: 0;
}

.header-info-rows:first-child .header-col:last-child {
  text-align: center;
}

.header-info > div {
  white-space: nowrap;
}

.header-address,
.header-hours {
  font-size: 1.05rem;
}

.header-info i {
  color: rgba(255,255,255,0.7);
  width: 18px;
  text-align: center;
}

.phone-link {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.phone-link:hover {
  color: rgba(255,255,255,0.8);
}



.header-social-icons {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-social-icons i {
  width: auto;
  margin-right: 0;
}

.header-social-icons .social-icon {
  border-color: rgba(255,255,255,0.4);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #000;
  overflow: hidden;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.social-icon:hover {
  transform: scale(1.2);
}

.footer-social-icons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.footer-social-icons .social-icon {
  border-color: #141f58;
}

.social-wa  { background: #25D366; }
.social-wa:hover  { background: #1DA851; }
.social-icon.social-tg  { color: #0088CC; background: #fff; }
.social-icon.social-tg:hover  { color: #0077B5; background: #f0f0f0; }
.header-social-icons .social-tg { background: #0088CC; color: #fff; }
.header-social-icons .social-tg:hover { background: #0077B5; color: #fff; }
.social-icon.social-vk  { color: #4680C2; background: #fff; }
.social-icon.social-vk:hover  { color: #3A6FA8; background: #f0f0f0; }
.header-social-icons .social-vk { background: #4680C2; color: #fff; }
.header-social-icons .social-vk:hover { background: #3A6FA8; color: #fff; }

.footer-social-icons .social-tg,
.footer-social-icons .social-vk,
.footer-social-icons .social-wa {
  background: #bbd9f3;
}
.footer-social-icons .social-tg:hover,
.footer-social-icons .social-vk:hover,
.footer-social-icons .social-wa:hover {
  background: #a8c9e5;
}

.header-nav {
  background: #B1D8CC url('/static/uploads/navbar_bg_cropped.png') center/cover no-repeat;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  left: 0;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.header-nav .nav-link {
  color: #223D72 !important;
  font-weight: 500;
  font-size: 1rem !important;
  padding: 0.7rem 1rem !important;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-nav .nav-link:hover,
.header-nav .nav-link:focus {
  color: #1a2d54 !important;
  background: rgba(0,0,0,0.08);
}

/* ── Navbar dropdown on hover ── */
.header-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.header-nav .dropdown-menu {
  margin-top: 0;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #fff;
  padding: 0.5rem 0;
  min-width: 220px;
}

.header-nav .dropdown-item {
  color: #223D72;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-nav .dropdown-item:hover {
  background: #f0f7f4;
  color: #1a2d54;
}

.header-nav .dropdown-item i {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  color: #B1D8CC;
}

/* Fix for nav items without dropdown (no caret) */
.header-nav .no-dropdown::after {
  display: none !important;
}

.header-nav .nav-link.dropdown-toggle::after {
  margin-left: 0.4rem;
  vertical-align: middle;
}

.header-nav .navbar-toggler {
  border: 2px solid #223D72;
  padding: 0.4rem 0.6rem;
}

.header-nav .navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 992px) {
  .header-top-row { flex-wrap: wrap; justify-content: center !important; gap: 0.25rem; padding: 0.25rem 0.75rem; }
  .header-logo img, .header-logo-circle img { width: 80px; height: 80px; }
  .header-logo-circle { width: 90px; height: 90px; }
  .header-brand-text { font-size: 1.4rem; }
  .header-info { font-size: 0.8rem; gap: 0.5rem !important; margin-left: 0 !important; }
  .phone-link { font-size: 1rem; }
  /* Hide address & hours on tablets/mobile — only phones + icons remain */
  .header-address,
  .header-hours {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-logo-circle {
    width: 80px;
    height: 80px;
  }
  .header-logo-circle img {
    width: 70px;
    height: 70px;
  }
  .header-brand-text {
    font-size: 1.2rem;
  }
  .header-brand-subtitle {
    font-size: 0.72rem;
  }
  .header-info-rows {
    gap: 0.25rem;
  }
  .header-info-rows:first-child .header-col:last-child {
    text-align: center;
  }
  .header-top-row {
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
  }
  .header-info {
    gap: 0.25rem !important;
  }
  .phone-link {
    font-size: 0.9rem;
  }
  .header-info-rows:first-child .header-col:last-child .phone-link:last-child {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .header-logo-circle {
    width: 64px;
    height: 64px;
    margin-right: 4px;
  }
  .header-logo-circle img {
    width: 56px;
    height: 56px;
  }
  .header-brand-text {
    font-size: 1rem;
  }
  .header-brand-subtitle {
    display: none;
  }
  .header-top-row {
    padding: 0.15rem 0.3rem;
    gap: 0.15rem;
  }
  .header-info {
    font-size: 0.7rem !important;
    gap: 0.15rem !important;
  }
  .phone-link {
    font-size: 0.95rem;
  }
  .header-social-icons .social-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 50% !important;
    flex-shrink: 0;
  }
  .header-social-icons {
    gap: 4px;
  }
  .header-top {
    padding: 0;
  }
  .header-nav .nav-link {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  /* Hide empty placeholder columns in social icons row */
  .header-info-rows:last-child .header-col:first-child,
  .header-info-rows:last-child .header-col:nth-child(2) {
    display: none;
  }
  .header-info-rows:last-child .header-col:last-child {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Color Palette */
:root {
  --primary-light: #87CEEB;
  --primary: #1E90FF;
  --primary-dark: #1874CD;
  --accent: #3CC7D4;
  --dark-text: #2A677E;
  --light-text: #2A677E;
  --border-light: #3CC7D4;
}

/* Wider container for large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1560px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--light-text);
  background-color: #f8fbfd;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .container.mt-4 {
  flex-shrink: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Hero Section */
.hero {
  background: #223D72;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.85);
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

/* Cards */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(74, 144, 164, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(74, 144, 164, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--dark-text);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 164, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 164, 0.3);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
}

.btn-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 3rem 0;
  border-radius: 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.advantage-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(74, 144, 164, 0.08);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(74, 144, 164, 0.15);
}

.advantage-card h5 {
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Personnel Cards */
.personnel-card {
  text-align: center;
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.personnel-card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.personnel-section {
  padding: 1.5rem 0 !important;
}

.personnel-card:hover img {
  transform: scale(1.05);
}

.personnel-card .card-body {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e1f5fe 100%);
}

.personnel-card .card-title {
  color: var(--dark-text);
  font-size: 1.2rem;
}

.personnel-position {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Gallery */
.carousel-item img {
  border-radius: 20px;
}

.carousel-control-prev, .carousel-control-next {
  width: auto;
  opacity: 0.8;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0 1rem;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  opacity: 1;
  background-color: transparent;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-image: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background-color: rgba(0,0,0,0.3);
  color: white;
  font-size: 1.5rem;
  line-height: 36px;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
  background-color: rgba(0,0,0,0.5);
  border-color: white;
}

/* Form Elements */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(42, 103, 126, 0.25);
  background-color: #fafbfc;
}

.form-label {
  color: var(--dark-text);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background: url('/static/uploads/footer_bg.png') center/cover no-repeat;
  color: #141f58;
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
  box-shadow: 0 -2px 12px rgba(74, 144, 164, 0.1);
}



.footer h6 {
  color: #141f58;
  font-weight: 700;
  font-size: 1.15rem;
}

.footer h6 i {
  font-size: 2rem;
  color: #0a63c4;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.footer p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Vertical borders between footer columns */
.footer .row > [class*="col-"]:not(:last-child) {
  border-right: 1px solid rgba(20, 31, 88, 0.12);
}

/* Alert Messages */
.alert {
  border: none;
  border-radius: 12px;
  border-left: 4px solid transparent;
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left-color: #4caf50;
}

.alert-error, .alert-danger {
  background-color: #ffebee;
  color: #c62828;
  border-left-color: #f44336;
}

/* Services Section */
.service-card {
  text-align: center;
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(74, 144, 164, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(74, 144, 164, 0.15);
}

.service-card .card-body {
  padding: 2rem 1.5rem;
}

.service-card-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card-text {
  color: var(--dark-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card .btn {
  margin-top: 0.5rem;
}

/* ── Book of the Day (homepage) ── */
.daily-audio-list-home {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.daily-audio-item-home {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.daily-audio-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.daily-audio-item-home:hover {
  background: rgba(255,255,255,0.9);
  transform: translateX(4px);
}

.daily-audio-icon-home {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}

.daily-audio-info-home {
  flex: 1;
  min-width: 0;
}

.daily-audio-title-home {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.3rem;
}

.daily-audio-desc-home {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.daily-audio-date-home {
  font-size: 0.85rem;
  color: var(--primary-dark);
}

.daily-audio-date-home i {
  margin-right: 0.3rem;
}

/* Testimonials Section */
.testimonial-card {
  text-align: center;
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(74, 144, 164, 0.08);
  transition: all 0.3s ease;
  background: white;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(74, 144, 164, 0.15);
}

.testimonial-card .card-body {
  padding: 2rem;
}

.testimonial-rating {
  font-size: 1.2rem;
}

.testimonial-card .card-text {
  font-style: italic;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-card .card-text::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--primary);
  position: absolute;
  left: -1rem;
  top: -1rem;
  opacity: 0.1;
}

.testimonial-author {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.testimonial-author h6 {
  font-size: 1rem;
  margin: 0;
}

/* FAQ Section */
.accordion {
  --bs-accordion-btn-bg: #2A677E;
  --bs-accordion-btn-color: #FFFFFF;
  --bs-accordion-border-color: #3CC7D4;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #3CC7D4;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(42, 103, 126, 0.1);
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  background: #2A677E;
  color: #FFFFFF;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: #2A677E;
  color: #FFFFFF;
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233CC7D4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233CC7D4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  background-color: #2A677E;
  padding: 1.25rem 1.5rem;
  color: #FFFFFF;
}

/* ── Lightbox Overlay ── */
#lb-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  user-select: none;
  -webkit-user-select: none;
}

#lb-overlay.lb-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 88vh;
  animation: lb-fadein 0.25s ease;
}

.lb-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lb-title {
  color: #fff;
  font-size: 1rem;
  margin-top: 12px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 100%;
  padding: 0 1rem;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 48px;
  text-align: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.lb-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 56px;
  text-align: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-prev:hover,
.lb-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 576px) {
  .lb-prev,
  .lb-next {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    line-height: 40px;
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 8px; right: 10px; width: 40px; height: 40px; line-height: 40px; font-size: 1.6rem; }
}

@keyframes lb-fadein {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Cursor: pointer on lightbox triggers ── */
[data-lightbox] {
  cursor: pointer;
}

/* ── Карта на странице контактов (80% экрана) ── */
.contact-map-wrapper {
  width: 80vw;
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-map-container {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  height: 0;
  overflow: hidden;
}

.contact-map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 800px) {
  .contact-map-wrapper {
    width: 100%;
    border-radius: 0;
  }
  .contact-map-container {
    padding-bottom: 75%;
  }
}

/* ── Achievements + Services Split Section ── */
.achievements-bg-wrapper {
  width: 100%;
  background: url('/static/uploads/image_bg.png') 65% center/cover no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 380px;
  display: flex;
  align-items: stretch;
}

.achievements-overlay {
  position: relative;
  z-index: 1;
  width: 50%;
  max-width: 50%;
  padding: 2rem 1rem;
  background: rgba(255,255,255,0.20);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(255,255,255,0.5);
  transform: translateX(4px);
}

.achievement-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.achievement-item:hover .achievement-item-icon {
  transform: scale(1.1);
}

.achievement-item-content {
  display: flex;
  flex-direction: column;
}

.achievement-item-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #141f58;
}

.achievement-item-label {
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(20, 31, 88, 0.75);
}

.services-bg-wrapper {
  width: 100%;
  background: url('/static/uploads/services_bg.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 380px;
  display: flex;
  align-items: stretch;
}

.services-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-split-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-item-split {
  transition: all 0.3s ease;
}

.service-item-overlay {
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
}

.service-item-overlay:hover {
  background: rgba(255,255,255,0.65);
  transform: translateX(4px);
}

.service-split-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #141f58;
  margin-bottom: 0.4rem;
}

.service-split-text {
  font-size: 0.9rem;
  color: rgba(20, 31, 88, 0.7);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* ── Cookie Consent Banner ── */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #223D72;
  color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  animation: cookie-slide-up 0.4s ease;
}

@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

.cookie-consent-text i {
  margin-right: 0.4rem;
  color: #ffc107;
}

.cookie-consent-text a {
  color: #87CEEB;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #fff;
}

.cookie-consent-btn {
  flex-shrink: 0;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ── Consent Checkbox ── */
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  font-size: 0.9rem;
  color: var(--dark-text);
  line-height: 1.4;
}

.form-check-input:invalid ~ .form-check-label {
  color: #dc3545;
}

.form-check-input:valid ~ .form-check-label {
  color: var(--dark-text);
}

/* ── Animations for Achievements ── */
.anim-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-item.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-item:nth-child(1) { transition-delay: 0s; }
.anim-item:nth-child(2) { transition-delay: 0.15s; }
.anim-item:nth-child(3) { transition-delay: 0.3s; }
.anim-item:nth-child(4) { transition-delay: 0.45s; }

.stat-counter {
  display: inline-block;
  transition: color 0.3s ease;
}

.stat-fade {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-visible .stat-fade {
  opacity: 1;
  transform: translateX(0);
}

/* ── Custom grid: Personnel (2 cols mobile, 3 tablet, 4 desktop) ── */
.personnel-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0; /* Bootstrap's mb-3 handled via padding */
  margin: 0 -0.75rem;
}
.personnel-grid-item {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 800px) {
  .personnel-grid-item {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}
@media (min-width: 992px) {
  .personnel-grid-item {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* ── Custom grid: Split row (stack on mobile, side-by-side on desktop) ── */
.split-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
}
.split-col {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  padding: 0;
}
.split-col.achievements-col {
  margin-bottom: 1rem;
}
@media (min-width: 800px) {
  .split-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .split-col.achievements-col {
    margin-bottom: 0;
  }
}

/* ── Mobile Responsive (< 800px) ── */
@media (max-width: 799.98px) {
  .achievements-overlay, .achievements-overlay-mobile {
    width: 100% !important;
    max-width: 100% !important;
  }
  .achievements-bg-wrapper {
    min-height: 300px;
    border-radius: 12px !important;
  }
  .services-bg-wrapper {
    min-height: 300px;
    border-radius: 12px !important;
  }
  .personnel-card img {
    height: 140px;
  }
  .hero {
    padding: 1.5rem 0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p.lead {
    font-size: 1rem;
  }
  .section {
    padding: 1.5rem 0;
  }
  .section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  .section-title::after {
    width: 40px;
    height: 3px;
  }
  .footer {
    padding: 1rem 0;
  }
  .footer h6 {
    font-size: 1rem;
  }
  .footer h6 i {
    font-size: 1.5rem;
  }
  .footer p {
    font-size: 0.9rem;
  }
  .daily-audio-item-home {
    padding: 0.75rem 1rem;
  }
  .daily-audio-icon-home {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .daily-audio-title-home {
    font-size: 1rem;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .advantage-card {
    padding: 1.25rem;
  }
  .achievement-item {
    padding: 0.35rem 0.25rem;
    gap: 0.75rem;
  }
  .contact-map-wrapper {
    width: 100%;
    border-radius: 0;
  }
  .contact-map-container {
    padding-bottom: 75%;
  }
  .card:hover, .advantage-card:hover, .testimonial-card:hover {
    transform: translateY(-4px);
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .footer .row > [class*="col-"]:not(:last-child) {
    border-right: none;
  }
}