:root {
  --bg-main: #07111d;
  --bg-dark: #0b1728;
  --bg-card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.8);
  --accent: #8dd3ff;
  --accent-light: #dcefff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(141, 211, 255, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(141, 211, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #06101a 0%, #081423 40%, #0a182a 100%);
  overflow-x: hidden;
}

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

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 12, 20, 0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(141, 211, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 24px;
  box-shadow: var(--shadow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text span {
  font-size: 17px;
  font-weight: 700;
}

.logo-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 20px;
  background: rgba(5, 12, 20, 0.96);
}

.mobile-menu a {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 6px 0;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  background: url("../images/hero-school.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 15, 0.48), rgba(3, 8, 15, 0.78)),
    linear-gradient(90deg, rgba(4, 10, 18, 0.9) 0%, rgba(4, 10, 18, 0.64) 46%, rgba(4, 10, 18, 0.28) 72%, rgba(4, 10, 18, 0.78) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-label {
  display: inline-block;
  margin-bottom: 28px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 16px;
  font-weight: 600;
}

.hero h1 {
  font-size: 52px !important;
}

.hero p {
  font-size: 21px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  transition: 0.3s;
}

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

.btn-primary {
  color: #07111d;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 14px 35px rgba(141, 211, 255, 0.28);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero-side {
  width: 100%;
}

.hero-card {
  overflow: hidden;
}

.hero-card img {
  height: 320px;
  object-fit: cover;
}

.hero-card-content {
  padding: 26px;
}

.hero-card-content h3 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-card-content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.section {
  padding: 110px 0;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 42px;
}

.section-kicker {
  color: #b8e0ff;
  font-size: 13px;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  font-weight: 700;
}

.section-top h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -1px;
  max-width: 700px;
}

.section-top p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.text-card,
.image-card {
  padding: 32px;
}

.text-card h3 {
  font-size: 30px;
  margin-bottom: 20px;
}

.text-card p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 17px;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.image-card img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.place-card {
  overflow: hidden;
  transition: 0.3s;
}

.place-card:hover {
  transform: translateY(-8px);
  border-color: rgba(141, 211, 255, 0.3);
}

.place-card img {
  height: 250px;
  object-fit: cover;
}

.place-body {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  padding: 8px 13px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(141, 211, 255, 0.14);
  border: 1px solid rgba(141, 211, 255, 0.18);
  color: #dff3ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.place-body h3 {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.place-body p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 250px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(5, 12, 20, 0.5);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 600;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.route-card {
  padding: 26px;
}

.route-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: #b8e0ff;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.route-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.route-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.quote-section {
  padding-top: 30px;
}

.quote-card {
  padding: 40px 34px;
  text-align: center;
}

.quote-card p {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.4;
}

.footer {
  padding: 36px 0 60px;
}

.footer-inner {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero-grid,
  .about-grid,
  .places-grid,
  .route-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-item.large {
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .places-grid,
  .gallery-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-card img {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-inner {
    min-height: 76px;
  }

  .logo-badge {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .logo-text span {
    font-size: 15px;
  }

  .logo-text small {
    font-size: 11px;
  }

  .hero-label {
    font-size: 14px;
    padding: 10px 14px;
  }

  .hero h1 {
    font-size: clamp(42px, 4.8vw, 68px);
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 760px;
  }

  .hero p,
  .section-top p,
  .text-card p,
  .route-card p,
  .place-body p {
    font-size: 15px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}