/* =========================================================
   Доопрацювання поточного стилю (зелений + Geologica/Golos Text).
   Без зміни характеру: чистіше тло, крупніший текст, акуратніші
   підписи, різна вага карток, зелений «підвал» сайту.
   ========================================================= */
:root {
  --bg: #f3f5f4;
  --ink: #0f1a14;
  --muted: #56635c;
  --line: #e0e6e2;
  --accent: #13633F;
  --accent-deep: #0d4a2e;
  --accent-soft: #e3f0e8;
  --mint: #cfe5d8;
  --card: #ffffff;
  --card-strong: #ffffff;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 26, 20, .04), 0 12px 32px -24px rgba(15, 26, 20, .25);
}
html, body { background: var(--bg); color: var(--ink); }
/* Рожево-бузкові плями на тлі не пасували до зеленого */
.atmosphere { display: none; }

/* ---------- Текст ---------- */
body { font-size: 16px; }
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 44ch; }
.block__lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 58ch; }
:is(.deed p, .news-card p, .tradition span:last-child, .timeline__card p, .member__note, .initiative__copy p) { color: var(--muted); }
.timeline__card p { font-size: 15.5px; line-height: 1.6; }
.timeline__item--now .timeline__card p { color: rgba(255, 255, 255, .88); }
.deed p, .news-card p { font-size: 15px; line-height: 1.6; }
.tradition span:last-child { font-size: 14.5px; }
.member__note { font-size: 15px; line-height: 1.6; }
.initiative__copy p { font-size: 17px; line-height: 1.65; }

/* Підписи без капсу й розрідки — читаються спокійніше */
:is(.eyebrow, .member__role, .tradition__date, .timeline__date, .deeds__who, .initiative__index, .news-card__tag, .pill, .team-intro__eyebrow) {
  text-transform: none;
  letter-spacing: 0;
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.block__head .eyebrow, .team-heading .eyebrow, .socials__box .eyebrow { color: var(--accent); }
.member__role { font-size: 13.5px; }
.tradition__date, .timeline__date { font-size: 14px; }
.deeds__who { font-size: 16px; font-weight: 700; border-bottom: 2px solid var(--ink); }
.initiative__index { font-size: 14px; }
.news-card__tag, .pill { font-size: 13px; }

/* Меню звичайними літерами */
.main-nav { background: rgba(243, 245, 244, .88); }
.main-nav__link { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.main-nav__link::after { height: 3px; border-radius: 3px; bottom: 8px; }
.kicker { text-transform: none; letter-spacing: 0; font-size: 13.5px; background: #fff; border-color: var(--line); }

/* ---------- Заголовки розділів ---------- */
.block__head { max-width: none; }
.block__head > * { max-width: 760px; }
.block__head h2, .team-heading h2, .socials h2 { font-size: clamp(36px, 5vw, 68px); }

/* ---------- Кнопки ---------- */
.btn {
  min-height: 54px;
  padding: 0 26px;
  border-radius: 16px;
  border: 1.5px solid var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--dark:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Перший екран ---------- */
.hero__photo { border-radius: 26px; background: var(--mint); box-shadow: none; }
.hero__president figcaption {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 22px 44px -28px rgba(15, 26, 20, .35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero__president figcaption :is(strong, q) { color: var(--ink); }
.hero__president figcaption .eyebrow { color: var(--muted); }
.hero__president q { font-size: 14px; color: var(--muted) !important; }
.hero__president strong { font-size: 19px; }

/* ---------- Цифри — як табло, без карток ---------- */
.stats { gap: 0; }
.stat {
  background: transparent;
  border: 0;
  border-left: 1.5px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 4px 24px 8px;
}
.stat:first-child { border-left-color: var(--accent); }
.stat__num { color: var(--accent); font-size: clamp(52px, 6vw, 88px); line-height: 1; }
.stat__label { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* ---------- Картки: біле тло, тонка рамка, легка тінь ---------- */
:where(.timeline__card, .relay__item, .deed, .board__col, .news-card, .tradition, .games, .social-card, .member--text .member__layout) {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.news-card.news-card--lead { background: #fff; border-color: var(--line); }
:where(.timeline__card, .relay__item, .deed, .news-card, .tradition):hover { border-color: var(--mint); }
.timeline__card:hover { transform: translateX(4px); }

/* Хронологія */
.timeline::before { background: var(--mint); width: 2px; }
.timeline__item::before { background: #fff; border: 3px solid var(--accent); }
.timeline__card { border-radius: 18px; }
.timeline__card h3 { font-size: 19px; }
.timeline__item--now .timeline__card { box-shadow: 0 24px 50px -28px rgba(13, 74, 46, .7); }

/* Президенти */
.relay__item { border-radius: 18px; }
.relay__item h3 { font-size: 17px; }
.relay__item:not(:last-child)::after { border-color: var(--line); color: var(--accent); }

/* Досягнення */
.deed { border-radius: 18px; }
.deed h3 { font-size: 18px; }
.lyceum-facts { background: var(--accent-soft); border: 0; }
.lyceum-facts li { background: #fff; font-size: 14.5px; }

/* Склад */
.member__photo { border-radius: 20px; background: var(--mint); }
.member__name { font-size: 21px; }
.link-more { font-size: 15px; font-weight: 600; color: var(--accent); border-color: var(--accent); }
.carousel-controls button { border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; }
.carousel-controls button:hover:not(:disabled) { background: var(--ink); color: #fff; }

/* Ідеї */
.board__col { border-radius: 18px; }
.board li { background: var(--bg); font-size: 15px; }
.initiative__copy h3 { font-size: clamp(36px, 4.6vw, 68px); line-height: .98; }

/* Новини */
.news-card { border-radius: 20px; }
.news-card h3 { font-size: 19px; }
.news-card--lead h3 { font-size: clamp(24px, 2.6vw, 32px); }
.news-card__img { border-radius: 14px; }

/* Ігри */
.games { border-radius: 28px; }
.game { background: var(--bg); }

/* ---------- Соцмережі — зелена плита ---------- */
.socials__box { background: var(--accent); border: 0; border-radius: 32px; box-shadow: none; color: #fff; }
.socials__box :is(h2, p, .eyebrow) { color: #fff; }
.socials__box p { opacity: .85; font-size: 17px; }
.social-card { background: #fff; border: 0; border-radius: 16px; box-shadow: none; color: var(--ink); }
.social-card:hover { background: var(--ink); color: #fff; }
.social-card__name { font-family: var(--font-display); font-size: 18px; }

/* ---------- Підвал — темно-зелений на всю ширину ---------- */
.site-footer {
  width: 100%;
  max-width: none;
  margin-top: 30px;
  padding-inline: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  background: #0c2a1c;
  color: #fff;
}
.site-footer .eyebrow { color: var(--mint); }
.site-footer :is(.footer-column, .copyright) { color: rgba(255, 255, 255, .75); }
.site-footer address a, .site-footer .footer-nav a, .site-footer .footer-socials a { color: #fff; }
.site-footer.has-motion::before { background: rgba(255, 255, 255, .12); }
.footer-socials { border-color: rgba(255, 255, 255, .14); }
.site-footer a:hover { color: var(--mint); opacity: 1; }
.footer-nav a { text-transform: none; letter-spacing: 0; font-size: 15px; }
.footer-socials a { text-transform: none; letter-spacing: 0; font-size: 15px; }

/* ---------- Мобільна версія ---------- */
@media (max-width: 820px) {
  .site-header { background: rgba(243, 245, 244, .92); }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .stat:nth-child(3) { border-left-color: var(--line); }
  .mobile-menu { background: var(--bg); }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero__lead { font-size: 16px; }
  .block__lead { font-size: 15.5px; }
  .stat { padding: 2px 14px 6px; }
  .stat__num { font-size: 46px; }
  .stat__label { font-size: 13.5px; }
  .block__head h2, .team-heading h2, .socials h2 { font-size: 34px; }
  .member__layout { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .member__name { font-size: 15px; }
  .member__role { font-size: 12px; }
  .timeline__card h3 { font-size: 17px; }
  .timeline__card p { font-size: 14.5px; }
  .initiative__copy h3 { font-size: 38px; }
  .socials__box { border-radius: 24px; }
  .hero__president figcaption { margin-left: 12px; }
}

/* ---------- Фільтр складу ---------- */
.team-heading { align-items: flex-end; }
.team-filter { margin-top: 24px; }
.team-filter__row { display: flex; flex-wrap: wrap; gap: 8px; }
.team-filter__row--sub { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.team-filter__row[hidden] { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: #0c2a1c; border-color: #0c2a1c; color: #fff; }
.chip__count {
  min-width: 26px;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, .16); color: #fff; }
.chip--small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; background: var(--bg); }
.chip--small .chip__count { min-width: 22px; padding: 3px 6px; font-size: 12px; }
.chip--small[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

/* Картки під час фільтрації */
.member.is-filtered-out { display: none; }
.member.is-entering { animation: member-in .5s var(--ease) both; animation-delay: var(--enter-delay, 0ms); }
@keyframes member-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .team-heading { flex-direction: column; align-items: stretch; }
  .team-filter { margin-top: 18px; }
  .team-filter__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .team-filter__row::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 42px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .member.is-entering { animation: none; } }
