 :root {
  --bg: #f5f7fb;
  --bg-muted: #eef1f7;
  --text: #1a1c23;
  --text-muted: #5e6475;
  --accent: #2554ff;
  --accent-soft: rgba(37, 84, 255, 0.08);
  --border: #dde1ee;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
  --container-width: 1120px;
  --transition: 0.2s ease;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 56px 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 840px) {
  .section__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    align-items: flex-start;
  }
}

.section__intro {
  max-width: 640px;
  color: var(--text-muted);
}

.section__note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section--narrow {
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero {
  background-color: #f5f7fb;
  background-image: linear-gradient(
      135deg,
      rgba(245, 247, 251, 0.92),
      rgba(219, 227, 255, 0.72)
    ),
    url("../images/campus-main.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero__content {
  display: grid;
  gap: 32px;
}

@media (min-width: 880px) {
  .hero__content {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.6fr);
    align-items: center;
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  margin: 0 0 20px;
  max-width: 640px;
  color: rgba(26, 28, 35, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__photos {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 12px;
}

.hero__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #fff;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero__photo--main {
  grid-row: 1 / span 2;
  min-height: 340px;
}

.hero__photo--stack {
  align-self: end;
  min-height: 164px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.94);
  border-bottom: 1px solid rgba(221, 225, 238, 0.8);
}

.top-nav__inner {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 16px;
}

.top-nav__inner::-webkit-scrollbar {
  height: 4px;
}

.top-nav__inner::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.top-nav__link {
  flex: 0 0 auto;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.top-nav__link:hover {
  background: #fff;
  border-color: var(--border);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 84, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(37, 84, 255, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn--ghost:hover {
  background: #fff;
}

.link-inline {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.link-inline:hover {
  text-decoration: underline;
}

.cards-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 840px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card--accent {
  background: linear-gradient(145deg, #ffffff, #e3ebff);
  border-color: rgba(129, 140, 248, 0.4);
}

.card__note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
}

.news-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 880px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.news-card__date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.news-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 0;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  perspective: 900px;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-style: preserve-3d;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover,
  .campus-item:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-3deg) scale(1.02);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
    z-index: 5;
  }

  .gallery-item:hover img,
  .campus-item:hover img {
    transform: translateZ(24px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img,
  .campus-item,
  .campus-item img {
    transition: none;
  }
}

.campus-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  perspective: 900px;
}

@media (min-width: 880px) {
  .campus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.campus-item {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-style: preserve-3d;
}

.campus-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform 220ms ease;
}

.campus-item figcaption {
  padding: 10px 12px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .hero {
    padding-top: 52px;
  }

  .section {
    padding: 40px 0;
  }

  .card {
    padding: 16px;
  }
}

