*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0f172a;
  background: radial-gradient(circle at top left, #e0f2fe 0, #f8fafc 45%, #e5e7eb 100%);
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  max-width: 100%;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

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

.container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

/* Компенсация высоты фиксированной шапки */
.site-main {
  padding-top: var(--header-h, 84px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  border-radius: 14px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
}

.logo-text small {
  font-weight: 500;
  color: #64748b;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #475569;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: #e2e8f0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.button-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.button-ghost {
  border-color: #cbd5f5;
  color: #1e293b;
  background: #f1f5f9;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #020617;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.75),
    rgba(15, 23, 42, 0.45),
    rgba(15, 23, 42, 0.75)
  );
  z-index: 1;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Анимация узлов/линий: под всем контентом кроме hero (слой от верха страницы ниже hero) */
.site-main {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  max-width: 100%;
}

.site-footer {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

/* Анимация частиц — фиксированный фон на весь экран, позади всего контента */
.particle-site {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle-site canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 769px) {
  .particle-site {
    display: block;
  }
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 12s linear;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1.1);
}

.hero-bg-slide--1 {
  background-image: url("fon/lBp5lFOsEqCe1bn6vE7dnwZVVwIHO9qq7wjZQ8ongUArjSuKPrOEhx0U6YZhLQsApb1t3ldh71n7aopvrxAqweMg.jpg");
}

.hero-bg-slide--2 {
  background-image: url("fon/TPuQNzHfz8ZrqPj0rB2hh5WGWY0-9Lp4w0FcvQBsqu15Nz3OV9ZtsWelEHBzqtFgNsJ-gvYT6jb6CTmwtn_OHrJq.jpg");
}

.hero-bg-slide--3 {
  background-image: url("fon/Wda9WNBHqwSsMeLJCkgoSac9_S9mRKFTNGgzzNjb-dBa-BGyZ_T4wpeiLWoynkOQzU2CvjyPl1KUDFe6F2DChDax.jpg");
}

.hero-bg-slide--4 {
  background-image: url("fon/UuLKpdl1i0G08kjlRAyiA8NdVucae0CpW-RnklNV8ItNSHqfZJaUiglWy8aJ3HVqVwYNg3vUNNv8Rh6iBgz3nztA.jpg");
}

.hero-grid {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 10px 0 16px;
  color: #f9fafb;
}

.lead {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #bfdbfe;
  font-size: 12px;
}

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

.stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: 16px;
  min-width: 150px;
}

.stat strong {
  display: block;
  font-size: 20px;
}

.hero-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.hero-card-inner {
  display: grid;
  gap: 16px;
}

.card-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: #94a3b8;
}

.card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.card-list li {
  background: rgba(148, 163, 184, 0.15);
  padding: 12px 16px;
  border-radius: 12px;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: transparent;
}

.section-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.split {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.split-content,
.split-panel {
  flex: 1 1 320px;
  min-width: 280px;
}

.split.reverse .split-content {
  order: 2;
}

.split.reverse .split-panel {
  order: 1;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section h2 {
  text-align: center;
}

.section-text {
  color: #475569;
  line-height: 1.6;
}

#about .container,
#participants .container,
#organizers .container,
#program .container,
#teachers .container,
#faq .container,
#gallery .container,
#graduates .container,
#apply .container,
#contacts .container {
  display: flex;
  justify-content: center;
}

.about-card,
.section-card {
  max-width: min(1280px, calc(100% - 40px));
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 32px;
  padding: 40px 48px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(148, 163, 184, 0.12);
}

.about-heading {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #0f172a;
}

.info-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 18px;
}

.info-card h3 {
  margin: 0;
  font-size: 18px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #475569;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 12px;
  min-height: 180px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

#teachers .container {
  max-width: min(1280px, 96%);
}

.teachers-group-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #1e40af;
  padding: 10px 16px;
  background: linear-gradient(90deg, #dbeafe, #eff6ff);
  border-left: 4px solid #2563eb;
  border-radius: 0 12px 12px 0;
}

.teachers-group-title--chem {
  color: #065f46;
  background: linear-gradient(90deg, #d1fae5, #f0fdf4);
  border-left-color: #10b981;
}

.teacher-achievements {
  margin: 8px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teacher-achievements li {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.teachers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.teachers-column {
  display: grid;
  gap: 16px;
}

.teacher-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.teacher-card-photo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 28%;
  overflow: hidden;
  border: 3px solid #e2e8f0;
  background: #f1f5f9;
}

.teacher-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.teacher-card-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.teacher-card h4 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
  font-weight: 600;
}

.teacher-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 500px) {
  .teacher-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .teacher-card-photo {
    width: 136px;
    height: 136px;
  }
}

@media (max-width: 768px) {
  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card-photo {
    width: 152px;
    height: 152px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.timeline-item strong {
  color: #1d4ed8;
}

#faq .container {
  max-width: min(1280px, 96%);
}

.faq {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}

.faq-item {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-item h4 {
  margin: 0;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item::after {
  content: "+";
  font-weight: 600;
  color: #64748b;
}

.faq-item.open {
  border-color: #2563eb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.faq-item.open::after {
  content: "−";
  color: #2563eb;
}

.faq-item.open p {
  max-height: 480px;
}


.history-faq {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.history-faq .faq-item {
  flex: 1 1 calc(50% - 6px);
}

@media (max-width: 768px) {
  .history-faq .faq-item {
    flex-basis: 100%;
  }
}

.gallery-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.gallery-controls button {
  border: 1px solid #cbd5f5;
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
}

.gallery-controls button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.gallery-years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.gallery-year-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gallery-year-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.gallery-year-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #2563eb;
}

.gallery-year-icon svg {
  flex-shrink: 0;
}

.gallery-year-label {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.gallery-image {
  height: 160px;
  background: linear-gradient(135deg, #c7d2fe, #e0f2fe);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #1e3a8a;
}

.gallery-caption {
  padding: 12px 14px;
  font-size: 14px;
  color: #475569;
}

.apply-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.apply-form {
  display: grid;
  gap: 16px;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.apply-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #475569;
}

.apply-form input,
.apply-form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-family: inherit;
}

.form-note {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.contacts-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contacts-list {
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: #475569;
}

.file-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
}

.file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  font-weight: 600;
}

.file-card:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.12);
}

.file-title {
  font-weight: 600;
}

.file-meta {
  font-size: 12px;
  color: #2563eb;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 999px;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 16px 0 20px;
}

.pdf-grid-single {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.apply-region-title {
  margin: 28px 0 12px 0;
  font-size: 18px;
  color: #0f172a;
  font-weight: 600;
}

.apply-region-title:first-of-type {
  margin-top: 20px;
}

.apply-docs-label {
  margin: 16px 0 8px 0;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.pdf-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.pdf-card--smart {
  padding: 16px 20px;
  gap: 14px;
}

.selection-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(100%, 900px);
  margin: 0 auto 24px;
}

.selection-result-item .apply-docs-label {
  margin: 0 0 8px;
  color: #1e40af;
  font-weight: 700;
  text-align: center;
}

.pdf-card--compact {
  padding: 14px;
  gap: 12px;
}

.pdf-card--compact .pdf-frame {
  height: 180px;
}

.pdf-card--compact .pdf-title {
  font-size: 13px;
}

.pdf-card--compact .pdf-view-btn {
  padding: 10px 18px;
  font-size: 14px;
}

.pdf-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-card-header svg {
  flex-shrink: 0;
}

.pdf-frame--desktop {
  display: block;
}

/* Кнопки под PDF */
.pdf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pdf-view-btn,
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.pdf-view-btn {
  background: #2563eb;
  color: #fff;
}
.pdf-view-btn:hover {
  background: #1d4ed8;
}

.pdf-download-btn {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}
.pdf-download-btn:hover {
  background: #eff6ff;
}


/* На мобильных — скрываем встроенный iframe */
@media (max-width: 768px) {
  .selection-results-grid {
    grid-template-columns: 1fr;
  }

  .pdf-frame--desktop {
    display: none;
  }

  .pdf-view-btn,
  .pdf-download-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
}

.pdf-title {
  margin: 0;
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

/* Блок с информацией для участников */
.participants-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

.participants-info-block {
  background: #f8faff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 20px 24px;
}

.participants-info-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 12px;
}

.participants-info-title--lhsh {
  display: block;
  margin-top: 28px;
}

.participants-list + .participants-info-title--lhsh {
  margin-top: 28px;
}

.about-map-link {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 600;
}

.about-map-link:hover {
  color: #1d4ed8;
}

.participants-info-block p {
  font-size: 15px;
  color: #334155;
  margin: 0 0 10px;
  line-height: 1.6;
}

.participants-list,
.participants-steps {
  margin: 8px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participants-list li,
.participants-steps li {
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
}

.participants-info-block a {
  color: #2563eb;
  word-break: break-all;
  text-decoration: underline;
}
.participants-info-block a:hover {
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .participants-info-block {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px 0;
  }
  .participants-info-block:last-child {
    border-bottom: none;
  }
}

.pdf-frame {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 12px;
  background: #f8fafc;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.organizers-section {
  margin-top: 32px;
}

.organizers-section h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #0f172a;
}

.graduates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
}

.graduates-list li {
  padding: 10px 16px;
  background: #f0f9ff;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

.organizers-text {
  display: grid;
  gap: 16px;
  color: #475569;
  line-height: 1.6;
}

.organizers-text p {
  margin: 0;
}

.organizers-text strong {
  color: #0f172a;
  font-weight: 600;
}

.organizers-text a {
  color: #2563eb;
  text-decoration: underline;
}

.map-container {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
}

.map-clickable {
  position: relative;
}

.map-clickable .map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  z-index: 2;
  cursor: pointer;
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    touch-action: manipulation;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    margin: 0;
    padding: 88px 20px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    font-size: 15px;
    background: rgba(248, 250, 252, 0.98);
    border-left: 1px solid #e2e8f0;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
    z-index: 45;
    pointer-events: none;
    visibility: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  body.nav-open .nav {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    visibility: visible;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    z-index: 50;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }
  
  .decorative-element {
    display: none;
  }
}

/* 3D Декоративные элементы */
.section {
  position: relative;
  overflow: hidden;
}

.decorative-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Молекула воды H2O */
.molecule-water {
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  animation: float 20s infinite ease-in-out;
}

.molecule-water::before,
.molecule-water::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #3b82f6, #1e40af);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.3);
}

.molecule-water::before {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 40px;
  transform: translateZ(20px);
}

.molecule-water::after {
  width: 30px;
  height: 30px;
  top: 50px;
  left: 20px;
  transform: translateZ(-10px);
}

/* Атом */
.atom {
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
  animation: rotate3d 15s infinite linear;
}

.atom::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #10b981, #059669);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(30px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.7), 0 0 35px rgba(16, 185, 129, 0.4);
}

.atom::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(60deg);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
}

/* ДНК спираль */
.dna-helix {
  width: 80px;
  height: 150px;
  position: relative;
  animation: helixRotate 12s infinite linear;
}

.dna-helix::before,
.dna-helix::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #8b5cf6, #6366f1);
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.7), 0 0 25px rgba(139, 92, 246, 0.4);
}

.dna-helix::before {
  left: 20px;
  transform: rotateY(45deg);
}

.dna-helix::after {
  right: 20px;
  transform: rotateY(-45deg);
}

/* Клетка */
.cell {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.35), rgba(139, 92, 246, 0.2));
  border: 4px solid rgba(236, 72, 153, 0.5);
  position: relative;
  animation: pulse 8s infinite ease-in-out;
  transform-style: preserve-3d;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.4), 0 0 50px rgba(139, 92, 246, 0.2);
}

.cell::before {
  content: "";
  position: absolute;
  width: 35px;
  height: 35px;
  background: radial-gradient(circle, #ec4899, #be185d);
  border-radius: 50%;
  top: 25%;
  left: 30%;
  transform: translateZ(10px);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.8), 0 0 35px rgba(236, 72, 153, 0.5);
}

.cell::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #8b5cf6, #6366f1);
  border-radius: 50%;
  bottom: 30%;
  right: 25%;
  transform: translateZ(-5px);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Химическая колба */
.flask {
  width: 60px;
  height: 90px;
  position: relative;
  animation: float 18s infinite ease-in-out;
  transform-style: preserve-3d;
}

.flask::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(10px);
  width: 50px;
  height: 70px;
  border: 4px solid rgba(59, 130, 246, 0.6);
  border-top: none;
  border-radius: 0 0 25px 25px;
  background: linear-gradient(to top, rgba(59, 130, 246, 0.2), transparent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 35px rgba(59, 130, 246, 0.3);
}

.flask::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(5px);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

/* Микроскоп */
.microscope {
  width: 100px;
  height: 80px;
  position: relative;
  animation: float 16s infinite ease-in-out reverse;
  transform-style: preserve-3d;
}

.microscope::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(15px);
  width: 60px;
  height: 8px;
  background: linear-gradient(to right, #64748b, #475569);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.microscope::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateZ(20px);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59, 130, 246, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.7), 0 0 40px rgba(59, 130, 246, 0.4);
}

/* Лист растения */
.leaf {
  width: 80px;
  height: 100px;
  position: relative;
  animation: float 14s infinite ease-in-out;
  transform-style: preserve-3d;
}

.leaf::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotateY(20deg) translateZ(5px);
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(5, 150, 105, 0.35));
  border-radius: 0 100% 0 100%;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 35px rgba(16, 185, 129, 0.3);
}

.leaf::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateZ(-3px);
  width: 3px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(5, 150, 105, 0.5), transparent);
  border-radius: 2px;
}

/* Анимации */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) translateX(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-30px) translateX(5px) rotate(3deg);
  }
}

@keyframes rotate3d {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg);
  }
}

@keyframes helixRotate {
  0% {
    transform: rotateY(0deg) translateZ(0);
  }
  100% {
    transform: rotateY(360deg) translateZ(20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1) translateZ(0);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1) translateZ(10px);
    opacity: 0.6;
  }
}

/* Позиционирование элементов в секциях - по краям */
.split-content,
.split-panel {
  position: relative;
  z-index: 1;
}

/* Ограничение размеров декоративных элементов */
.decorative-element {
  max-width: 140px;
  max-height: 140px;
}

/* Элементы не должны выходить за границы */
.decorative-element[style*="left"] {
  left: 0 !important;
}

.decorative-element[style*="right"] {
  right: 0 !important;
}

/* (убраны боковые 3D‑картинки .side-3d по просьбе пользователя) */

/* --- Mobile tweaks + smoother hero transitions --- */

/* Center hero buttons on all screens */
.hero-actions {
  justify-content: center;
}

/* Smoother background slideshow transition */
.hero-bg-slide {
  transform: scale(1.02);
  transition: opacity 1.8s ease-in-out, transform 2.4s ease-in-out;
  will-change: opacity, transform;
}

.hero-bg-slide.active {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide {
    transition: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 82vh;
  }

  .lead {
    font-size: 14px;
  }

  .hero-actions {
    margin: 18px 0;
    gap: 10px;
  }
}

/* Мобильные: плоский белый фон без «карточек» */
@media (max-width: 768px) {
  body {
    background: #ffffff;
    color: #0f172a;
  }

  body::before {
    display: none;
  }

  .container {
    width: min(1400px, calc(100% - 24px));
    padding-left: 12px;
    padding-right: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .about-card,
  .section-card {
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    border: none;
  }

  .stat,
  .faq-item,
  .teacher-card,
  .gallery-year-card,
  .info-card,
  .card,
  .timeline-item,
  .pdf-card,
  .gallery-item,
  .file-card,
  .apply-form {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .faq-item,
  .timeline-item,
  .teacher-card {
    padding-left: 0;
    padding-right: 0;
  }

  .faq-item {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
  }

  .timeline-item {
    border-bottom: 1px solid #e2e8f0;
  }

  .teacher-card-photo {
    border: none;
  }

  .pdf-frame {
    height: 240px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }

  .site-footer {
    background: #ffffff;
  }
}
