/* ============ Variables ============ */
:root {
  --blue: #03adfc;
  --lightblue: #03e3fc;
  --orange: #fcb103;
  --dark: #0b2540;
  --dark-2: #123159;
  --text: #1c2b3a;
  --muted: #5c6b7a;
  --bg: #f5f9fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(3, 62, 97, 0.1);
  --gradient-main: linear-gradient(135deg, var(--blue) 0%, var(--lightblue) 100%);
  --gradient-warm: linear-gradient(135deg, var(--orange) 0%, #ffcf5c 100%);
}

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

/* ============ Language toggle ============ */
html[data-lang="ru"] .lang-kz {
  display: none !important;
}

html[data-lang="kz"] .lang-ru {
  display: none !important;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 3px;
  margin-right: 6px;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button.active {
  background: var(--orange);
  color: var(--dark);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head {
  text-align: center;
  margin: 0 auto 44px;
}

.section-head .section-subtitle {
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(3, 173, 252, 0.1);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(3, 173, 252, 0.35);
}

.btn-accent {
  background: var(--gradient-warm);
  color: var(--dark);
  box-shadow: 0 10px 25px rgba(252, 177, 3, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ============ Topbar ============ */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-info a,
.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.topbar-social {
  display: flex;
  gap: 10px;
}

.topbar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.topbar-social a:hover {
  background: var(--orange);
}
.social-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--primary, #333);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.social-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* ============ Header / Nav ============ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(11, 37, 64, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
}

.logo-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;

}

.brand-text {
  line-height: 1.25;
}

.brand-text .name-ru {
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  display: block;
}

.brand-text .name-kz {
  font-size: 12.5px;
  color: var(--muted);
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-menu a {
  font-weight: 600;
  color: var(--dark-2);
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-main);
  transition: width 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
}

/* ============ Hero Slider ============ */
.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--slide-bg, var(--gradient-main));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 64, 0.25) 0%, rgba(11, 37, 64, 0.65) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-slide-content .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.hero-slide-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero-slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.hero-dots button.active {
  background: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

/* ============ Stats strip ============ */
.stats-strip {
  background: var(--white);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

.stats-strip .container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 0;
}

.stat {
  text-align: center;
  border-right: 1px solid #eef2f6;
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* ============ About preview ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  min-height: 360px;
  background: var(--gradient-main);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-media-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-warm);
  color: var(--dark);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.about-media-badge span {
  display: block;
  font-size: 30px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--dark-2);
}

.check-ico {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ============ Director ============ */
.director-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
}

.director-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gradient-warm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
}

.director-info h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 4px;
}

.director-info span {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ News section (home + list) ============ */
.news-and-feed {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 37, 64, 0.16);
}

.news-thumb {
  height: 190px;
  background: var(--gradient-main);
  position: relative;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-thumb .news-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 37, 64, 0.75);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-body h3 {
  font-size: 18px;
  color: var(--dark);
  line-height: 1.35;
}

.news-body p {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
}

.news-readmore {
  font-weight: 700;
  color: var(--blue);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Facebook feed panel */
.fb-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.fb-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 17px;
}

.fb-panel h3 .fb-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1877f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.fb-embed-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

/* ============ Contacts ============ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f6;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-main);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 3px;
}

.contact-item span,
.contact-item a {
  color: var(--muted);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
}

/* ============ CTA band ============ */
.cta-band {
  background: var(--gradient-main);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .name-ru {
  color: var(--white);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 10px;
  display: block;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
}

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

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--orange);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: var(--gradient-warm);
  color: var(--dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ============ Page header (inner pages) ============ */
.page-header {
  background: var(--gradient-main);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--white);
  font-weight: 700;
}

/* ============ About page content ============ */
.doc-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 30px;
}

.doc-block h2 {
  color: var(--dark);
  font-size: 22px;
  margin-bottom: 16px;
}

.doc-block p {
  color: var(--muted);
  margin-bottom: 14px;
}

.names-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.names-card .doc-block {
  margin-bottom: 0;
  border-top: 4px solid var(--blue);
}

.names-card .doc-block:nth-child(2) {
  border-top-color: var(--orange);
}

/* ============ News detail ============ */
.news-detail-media {
  height: 380px;
  border-radius: var(--radius);
  background: var(--gradient-main);
  margin-bottom: 30px;
  overflow: hidden;
}

.news-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-body {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.news-detail-date {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.news-detail-body h1 {
  color: var(--dark);
  font-size: 28px;
  margin-bottom: 20px;
}

.news-detail-content {
  color: var(--text);
  white-space: pre-line;
}

/* ============ Empty state ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .about-grid,
  .contacts-grid,
  .footer-grid,
  .names-card {
    grid-template-columns: 1fr;
  }

  .news-and-feed {
    grid-template-columns: 1fr;
  }

  .fb-panel {
    position: static;
  }

  .stats-strip .container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }

  .stat:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 800px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px;
    gap: 26px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 200;
  }

  .nav-menu.open {
    right: 0;
  }

  .burger {
    display: flex;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 560px;
  }

  .director-card {
    flex-direction: column;
    text-align: center;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-arrow {
    display: none;
  }

  .cta-band {
    padding: 34px 20px;
  }

  .section {
    padding: 56px 0;
  }
}

/* Overlay for mobile nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 64, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 150;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pdf-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pdf-slider-track {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fff;
}

.pdf-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pdf-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.pdf-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.pdf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}
.pdf-arrow.prev { left: 12px; }
.pdf-arrow.next { right: 12px; }
.pdf-arrow:hover { background: rgba(0,0,0,0.6); }

.pdf-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.pdf-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
}
.pdf-dots button.active {
  background: var(--primary, #0378c9);
}

/* Контейнер слайдера (заменяет синий прямоугольник) */
.school-slider-container {
    position: relative;
    width: 100%;
    max-width: 550px; /* Настройте под размеры вашей верстки */
    height: 380px;    /* Настройте под высоту вашей верстки */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Настройки отображения слайдов */
.school-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.school-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.school-slide.active {
    opacity: 1;
}

.school-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фотографии будут красиво заполнять блок без искажений */
}

/* Желтая плашка директора поверх фото */
.director-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #f1b317; /* Точный цвет с вашего макета */
    color: #1a202c;
    font-family: sans-serif; /* Поменяйте на шрифт вашего сайта */
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.2;
    padding: 15px 25px;
    border-top-left-radius: 20px;
    text-align: right;
    z-index: 10;
}

/* Стрелки навигации */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 5;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.school-slider-container {
    position: relative;
    width: 100%;
    max-width: 550px; 
    height: 380px;    
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* background-color: #00d2ff;  <-- УДАЛИТЕ ИЛИ ЗАКОММЕНТИРУЙТЕ ЭТУ СТРОКУ, ЕСЛИ ОНА ТУТ ЕСТЬ */
}

/* Контейнер слайдера */
.school-slider-container {
    position: relative;
    width: 100%;
    max-width: 550px; 
    height: 380px;    
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Настройки отображения слайдов */
.school-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.school-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.school-slide.active {
    opacity: 1;
    z-index: 1;
}

.school-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Желтая плашка директора */
.director-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #f1b317; 
    color: #1a202c;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.2;
    padding: 15px 25px;
    border-top-left-radius: 20px;
    text-align: right;
    z-index: 10;
}

/* Стрелки навигации */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
    z-index: 5;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* ============ School Slider ============ */
        .school-slider-container {
            position: relative;
            width: 100%;
            max-width: 550px; 
            height: 380px;    
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        .school-slides {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .school-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.6s ease-in-out;
        }

        .school-slide.active {
            opacity: 1;
        }

        .school-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; 
        }

        .director-badge {
            position: absolute;
            bottom: 0;
            right: 0;
            background-color: #f1b317; 
            color: #1a202c;
            font-family: sans-serif; 
            font-weight: bold;
            font-size: 1.25rem;
            line-height: 1.2;
            padding: 15px 25px;
            border-top-left-radius: 20px;
            text-align: right;
            z-index: 10;
        }

        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.3);
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 18px;
            border-radius: 50%;
            transition: background 0.3s;
            z-index: 5;
        }

        .slider-btn:hover {
            background: rgba(255, 255, 255, 0.6);
        }

        .prev-btn { left: 15px; }
        .next-btn { right: 15px; }

        .hero-slide {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 100%),
    var(--slide-image, none), 
    var(--slide-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}