/* ==========================================================================
  伊川县实验中学 · 全站基础样式（index-v4.css）
  作用：定义全站配色变量、导航栏、首页横幅、内容区块、页脚、图片灯箱等。
  使用：所有 HTML 页面统一引入本文件；各内页的补充样式见 pages.css。
  结构：变量 -> 基础重置 -> 导航 -> 横幅 -> 内容区块 -> 页脚 -> 灯箱 -> 响应式
  ========================================================================== */

:root {
  --paper: #f4f0e6;
  --paper-deep: #e9e2d2;
  --white: #fffdf7;
  --ink: #1e2522;
  --pine: #244b3b;
  --jade: #3f6b57;
  --cinnabar: #b4503c;
  --gold: #a57f46;
  --line: rgba(30, 37, 34, 0.14);
  --line-light: rgba(244, 240, 230, 0.24);
  --shadow: 0 18px 44px rgba(32, 40, 36, 0.1);
  --serif: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 锚点跳转时给固定导航栏让出高度，避免标题被盖住 */
html {
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 去掉移动端点击按钮时的高亮闪块 */
body {
  -webkit-tap-highlight-color: transparent;
}

body.menu-locked {
  overflow: hidden;
}

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

main {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* 键盘操作时显示清晰焦点，提升无障碍体验 */
:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(250, 247, 240, 0.92);
  box-shadow: 0 8px 28px rgba(30, 37, 34, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  transition: color 0.3s ease;
}

.site-nav.is-scrolled .brand {
  color: var(--ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 230, 0.68);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.site-nav.is-scrolled .brand__mark {
  border-color: var(--pine);
  color: var(--cinnabar);
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name strong {
  font-size: 1.04rem;
  font-weight: 700;
}

.brand__name span {
  font-size: 0.62rem;
  letter-spacing: 0;
  opacity: 0.72;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  color: rgba(244, 240, 230, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease;
  border-radius: 4px;
}

.site-nav.is-scrolled .nav-links a {
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--paper);
  background: rgba(244, 240, 230, 0.12);
}

.site-nav.is-scrolled .nav-links a:hover {
  color: var(--cinnabar);
  background: rgba(180, 80, 60, 0.08);
}

.nav-links a.is-current {
  color: var(--paper);
}

.site-nav.is-scrolled .nav-links a.is-current {
  color: var(--cinnabar);
}

.nav-tag {
  font-size: 0.62rem;
  font-style: normal;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.72;
  font-weight: 500;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--paper);
  font-size: 1.25rem;
}

.site-nav.is-scrolled .menu-btn {
  color: var(--ink);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--cinnabar);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(780px, 100svh);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 22, 19, 0.3) 0%, rgba(16, 22, 19, 0.16) 42%, rgba(13, 18, 16, 0.84) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 130px 0 86px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.92;
}

.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 1rem 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5rem, 5.4rem);
  line-height: 1.1;
  font-weight: 900;
  max-width: 9em;
}

.hero__lead {
  max-width: 620px;
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

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

.btn--solid {
  background: var(--cinnabar);
  color: #fffdf7;
}

.btn--solid:hover {
  background: #9a3c2c;
}

.btn--ghost {
  border-color: rgba(244, 240, 230, 0.52);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 240, 230, 0.1);
}

.hero__scroll {
  position: absolute;
  right: 4vw;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(244, 240, 230, 0.82);
  font-size: 0.74rem;
  writing-mode: vertical-rl;
}

.hero__scroll i {
  font-size: 0.9rem;
  animation: scrollHint 2.2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* ---------- Bands & section heads ---------- */

.band {
  padding: 92px 0;
}

.band--white {
  background: var(--white);
}

.band--pine {
  position: relative;
  overflow: hidden;
  background: var(--pine);
  color: var(--paper);
}

.band--pine::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(229, 199, 149, 0.12), transparent 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 46%);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 2.4rem;
}

/* 区块编号，例如 01、02、03 */
.section-head__no {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cinnabar);
}

.section-head__rule {
  flex: 1;
  max-width: 320px;
  height: 1px;
  background: var(--line);
  transform: translateY(-0.2em);
}

.band--pine .section-head__rule {
  background: rgba(244, 240, 230, 0.24);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6rem, 2.9rem);
  line-height: 1.3;
  font-weight: 900;
}

.section-title em {
  color: var(--cinnabar);
  font-style: normal;
}

.section-sub {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  opacity: 0.6;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: center;
}

.about-photo {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy p {
  margin: 0 0 1.1rem;
  opacity: 0.86;
  font-size: 0.98rem;
}

/* 简介区的首段强调文字 */
.about-copy__lead {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.65;
  font-weight: 700;
  color: var(--pine);
}

/* 学校基本档案列表 */
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.4rem;
  margin: 1.5rem 0 1.8rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
}

.about-facts li strong {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.58;
}

.about-facts li span {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pine);
}

.about-copy .btn {
  margin-top: 0.6rem;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 1.5rem 1.2rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat b {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6rem, 3.1rem);
  line-height: 1.1;
  font-weight: 900;
}

.stat small {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.9rem;
  font-weight: 700;
}

.stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  opacity: 0.66;
}

/* ---------- Philosophy ---------- */

.philosophy {
  position: relative;
  z-index: 1;
}

.philosophy__quote {
  position: relative;
  max-width: 920px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6rem, 3rem);
  line-height: 1.55;
  font-weight: 700;
}

.philosophy__quote::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 1.5rem;
  background: var(--cinnabar);
}

.philosophy__quote span {
  color: #e5c795;
}

.motto-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2.3rem 0 0;
  padding: 0;
  list-style: none;
}

.motto-list li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-light);
  font-size: 0.9rem;
}

/* ---------- News ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  padding: 0.46rem 0.95rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  opacity: 1;
  background: var(--pine);
  border-color: var(--pine);
  color: var(--paper);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

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

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card.is-hidden {
  display: none;
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.news-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.24rem 0.62rem;
  background: var(--cinnabar);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.3rem 1.4rem;
}

.news-card__date {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  opacity: 0.56;
}

.news-card__title {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.5;
}

.news-card__excerpt {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.8;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--cinnabar);
  font-size: 0.86rem;
  font-weight: 700;
}

/* 新闻卡片底部的“查看详情”链接 */
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.05rem;
  color: var(--cinnabar);
  font-size: 0.88rem;
  font-weight: 700;
  transition: gap 0.2s ease, color 0.2s ease;
}

.news-more:hover {
  gap: 0.8rem;
  color: #9a3c2c;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

.gallery-item__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(13, 18, 16, 0.78));
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}

/* ---------- Timeline（首页历史沿革） ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 1.6rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cinnabar);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.24rem 0.62rem;
  background: var(--paper-deep);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
}

.timeline-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
  opacity: 0.78;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--pine);
  color: var(--paper);
}

/* 当前页面使用的页脚容器：深绿色背景 + 浅色文字 */
.site-footer {
  background: var(--pine);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.4rem;
  padding: 72px 0 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.1rem;
}

.footer-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 230, 0.5);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.18rem;
}

.footer p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  opacity: 0.74;
  line-height: 1.9;
}

.footer h4 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #e5c795;
}

.footer-bottom {
  padding: 1.15rem 0 1.35rem;
  border-top: 1px solid rgba(244, 240, 230, 0.16);
  font-size: 0.8rem;
  opacity: 0.62;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 18, 16, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: min(920px, 90vw);
  max-height: 78vh;
  object-fit: contain;
}

.lightbox__caption {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--paper);
  font-size: 0.9rem;
  white-space: nowrap;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(244, 240, 230, 0.1);
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.lightbox__btn:hover {
  background: rgba(244, 240, 230, 0.22);
}

.lightbox__btn--prev {
  left: 3vw;
}

.lightbox__btn--next {
  right: 3vw;
}

.lightbox__close {
  top: 24px;
  right: 24px;
  transform: none;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  box-shadow: 0 10px 28px rgba(30, 37, 34, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Follow band ---------- */

.follow-band {
  background: var(--gold);
  color: #fffaf0;
}

.follow-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 30px 0;
}

.follow-band h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.4;
}

.follow-band p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  opacity: 0.82;
}

.follow-band .btn--ghost {
  flex-shrink: 0;
}

/* 关注学校的渠道按钮列表 */
.follow-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  flex-shrink: 0;
}

.channel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(244, 240, 230, 0.3);
  color: #fffaf0;
  font-size: 0.86rem;
  font-weight: 600;
}

.channel i {
  color: #f2c879;
}

/* ---------- Reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 5vw 30px;
    background: rgba(250, 247, 240, 0.98);
    box-shadow: 0 20px 40px rgba(30, 37, 34, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 10px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-links a:hover,
  .site-nav.is-scrolled .nav-links a:hover {
    color: var(--cinnabar);
    background: transparent;
  }

  .menu-btn {
    display: grid;
  }

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

  .about-photo {
    order: -1;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .band {
    padding: 66px 0;
  }

  .site-nav__inner {
    height: 66px;
  }

  .nav-links {
    inset: 66px 0 auto;
  }

  .brand__name span {
    display: none;
  }

  .hero__inner {
    padding: 112px 0 70px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 3.2rem, 3.6rem);
  }

  .hero__scroll {
    display: none;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .section-head__rule {
    flex-basis: 100%;
    height: 1px;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline-item {
    padding: 1.1rem;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .follow-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox__btn--prev {
    left: 4vw;
  }

  .lightbox__btn--next {
    right: 4vw;
  }

  .lightbox__caption {
    white-space: normal;
    width: 78vw;
    text-align: center;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 430px) {
  .nav-links {
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }

  .brand__name strong {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .menu-btn {
    width: 40px;
    height: 44px;
    touch-action: manipulation;
  }

  .hero__inner {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.7rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 46px;
    padding-inline: 0.9rem;
    text-align: center;
    touch-action: manipulation;
  }

  .band {
    padding: 58px 0;
  }

  .philosophy__quote {
    font-size: 1.55rem;
    line-height: 1.6;
  }

  .filter-bar {
    gap: 0.45rem;
  }

  .filter-btn {
    min-height: 40px;
  }

  .timeline-item::before {
    left: -29px;
  }

  .follow-channels .channel {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 42px;
  }

  .lightbox__img {
    max-width: 94vw;
    max-height: 74vh;
  }

  .lightbox__btn {
    width: 42px;
    height: 42px;
    touch-action: manipulation;
  }

  .lightbox__close {
    top: calc(14px + env(safe-area-inset-top));
    right: 14px;
  }

  .lightbox__caption {
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 88vw;
  }

  .back-to-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    touch-action: manipulation;
  }
}

@media (hover: none), (pointer: coarse) {
  .news-card:hover,
  .person-card:hover,
  .join-card:hover,
  .btn:hover,
  .filter-btn:hover,
  .carousel__btn:hover,
  .lightbox__btn:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll i {
    animation: none;
  }
}
