/* Парламент ліцею №315 — оформлення нових секцій. */
:root {
  --accent: #13633F;
  --accent-soft: #e2efe7;
  --card: rgba(255, 255, 255, .62);
  --card-strong: rgba(255, 255, 255, .85);
  --radius: 22px;
  --done: var(--accent);
  --work: #a8701c;
  --goal: #2b2f34;
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 50px -28px rgba(30, 24, 90, .35);
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Шапка та липке меню ---------- */
.site-header { padding-top: 22px; padding-bottom: 10px; }
.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  margin: 0;
  background: rgba(242, 242, 242, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-block: 1px solid var(--line);
}
.main-nav__inner {
  display: flex;
  gap: clamp(14px, 2.6vw, 38px);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav__inner::-webkit-scrollbar { display: none; }
.main-nav__link { position: relative; white-space: nowrap; flex: none; }
.main-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.main-nav__link[aria-current="location"] { text-decoration: none; color: var(--accent); }
.main-nav__link[aria-current="location"]::after,
.main-nav__link:hover::after { transform: scaleX(1); }
.main-nav__link:hover { text-decoration: none; }
section, footer { scroll-margin-top: 64px; }

/* ---------- Hero ---------- */
.hero--parliament {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 100px);
  padding-bottom: clamp(48px, 7vw, 90px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 0 rgba(29,154,91,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(29,154,91,0); } 100% { box-shadow: 0 0 0 0 rgba(29,154,91,0); } }
.hero--parliament h1 {
  text-align: left;
  font-size: clamp(30px, 5.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.h1-accent { color: inherit; }
.hero__lead { max-width: 52ch; margin-top: 28px; font-size: 13px; line-height: 1.9; color: #2b2f34; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background: var(--ink); color: var(--bg); }
.btn--dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--dark:hover { background: #0d4a2e; border-color: #0d4a2e; }

.hero__president { margin: 0; position: relative; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e2e5;
  box-shadow: 0 30px 80px -40px rgba(30, 24, 90, .55);
  transform: rotate(2deg);
  transition: transform .8s var(--ease);
}
.hero__president:hover .hero__photo { transform: rotate(0deg) scale(1.01); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__president figcaption {
  position: relative;
  margin: -64px 16px 0 -28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--card-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.hero__president figcaption .eyebrow { margin-bottom: 8px; color: var(--accent); }
.hero__president strong { display: block; font-size: 17px; margin-bottom: 8px; }
.hero__president q { display: block; font-size: 10.5px; line-height: 1.75; color: #3a3f45; quotes: "«" "»"; }

/* ---------- Цифри ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: clamp(70px, 10vw, 130px);
}
.stat {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}
.stat__num { display: block; font-size: clamp(30px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.stat__label { display: block; margin-top: 10px; font-size: 10px; color: var(--muted); letter-spacing: .03em; }

/* ---------- Загальні блоки ---------- */
.block { padding-bottom: clamp(80px, 12vw, 160px); }
.block__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.block__head .eyebrow { color: var(--accent); }
.block__head h2, .socials h2 {
  font-size: clamp(24px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.block__lead { margin-top: 18px; max-width: 56ch; font-size: 12.5px; line-height: 1.85; color: #3a3f45; }
.team-heading .eyebrow { color: var(--muted); margin-bottom: 10px; }

/* ---------- Таймлайн ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px;
  left: 120px;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 44px;
  padding-bottom: 22px;
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 115px; top: 10px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
}
.timeline__item--now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline__year { font-size: clamp(18px, 2vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.timeline__item--now .timeline__year { color: var(--accent); }
.timeline__card {
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.timeline__card:hover { transform: translateX(6px); }
.timeline__item--now .timeline__card { background: var(--accent); color: #fff; border-color: var(--accent); }
.timeline__card h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.timeline__card p { font-size: 11.5px; line-height: 1.85; }
.timeline__item--now .timeline__card p { color: #d7d8da; }

/* ---------- Президенти ---------- */
.relay {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: relay;
}
.relay__item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.relay__item:hover { transform: translateY(-6px); }
.relay__item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -13px; top: 50%;
  z-index: 1;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: Arial, sans-serif;
  font-size: 12px;
  transform: translateY(-50%);
}
.relay__index { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.relay__item h3 { margin: 34px 0 8px; font-size: 14px; line-height: 1.35; }
.relay__term { font-size: 10px; letter-spacing: .03em; color: var(--muted); }
.relay__deed { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 9.5px; line-height: 1.7; }
.relay__item--now { background: var(--accent); color: #fff; border-color: var(--accent); }
.relay__item--now .relay__index, .relay__item--now .relay__term { color: rgba(255,255,255,.78); }
.relay__item--now .relay__deed { border-color: rgba(255,255,255,.3); }

/* ---------- Досягнення ---------- */
.deeds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.deeds__group { display: grid; gap: 14px; align-content: start; }
.deeds__who {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.deed {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), background .3s;
}
.deed:hover { transform: translateY(-4px); background: var(--card-strong); }
.deed__icon {
  grid-row: span 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 24px;
}
.deed h3 { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.deed p { font-size: 11px; line-height: 1.75; color: #3a3f45; }
.lyceum-facts {
  margin-top: clamp(30px, 4vw, 50px);
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px dashed rgba(12,13,14,.25);
}
.lyceum-facts .eyebrow { margin-bottom: 14px; }
.lyceum-facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lyceum-facts li { padding: 9px 14px; border-radius: 999px; background: var(--card-strong); font-size: 10.5px; }

/* ---------- Склад: картки ---------- */
.member__photo { border-radius: 16px; }
.team-section { padding-bottom: clamp(80px, 12vw, 160px); }

/* ---------- Дошка ідей ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: clamp(30px, 5vw, 60px); }
.board__col {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--c);
}
.board__col--done { --c: var(--done); }
.board__col--work { --c: var(--work); }
.board__col--goal { --c: var(--goal); }
.board__title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.pill { padding: 6px 12px; border-radius: 999px; font-size: 10px; letter-spacing: .06em; color: #fff; background: var(--c); }
.board__count { font-size: 22px; font-weight: 700; color: var(--c); }
.board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border-radius: 12px;
  background: var(--card-strong);
  font-size: 11px;
  line-height: 1.65;
}
.board li::before {
  content: '';
  position: absolute;
  left: 14px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.board__col--done li::before { content: '✓'; width: auto; height: auto; top: 11px; left: 13px; background: none; color: var(--done); font-family: Arial, sans-serif; font-weight: 700; font-size: 12px; }
.board li strong { display: block; margin-bottom: 4px; font-size: 11.5px; }
#ideas .initiative__index { color: var(--work); }

/* ---------- Новини ---------- */
.news { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 14px; }
.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.news-card:hover { transform: translateY(-5px); }
.news-card--lead {
  grid-row: span 2;
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  justify-content: flex-end;
  min-height: 320px;
}
.news-card--lead h3 { font-size: clamp(18px, 2.2vw, 26px); }
.news-card--lead p { color: #d7d8da; }
.news-card__tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: .06em;
}
.news-card--lead .news-card__tag { background: rgba(255,255,255,.14); color: #fff; }
.news-card time { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.news-card--lead time { color: rgba(255,255,255,.7); }
.news-card h3 { margin: 0; font-size: 13.5px; line-height: 1.4; }
.news-card p { font-size: 11px; line-height: 1.75; color: #3a3f45; }
.news-card:not(.news-card--lead):nth-child(4) { grid-column: span 2; }

/* ---------- Соцмережі ---------- */
.socials { padding-bottom: clamp(70px, 10vw, 130px); }
.socials__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}
.socials__box .eyebrow { color: var(--accent); }
.socials__box p { margin-top: 16px; max-width: 42ch; font-size: 12px; line-height: 1.8; }
.socials__links { display: grid; gap: 10px; }
.social-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 22px;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  text-decoration: none;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.social-card:hover { text-decoration: none; transform: translateX(6px); background: var(--accent); color: #fff; }
.social-card__name { font-size: 13px; font-weight: 700; }
.social-card__handle { font-size: 10px; opacity: .7; }
.social-card__arrow { font-size: 16px; }

/* ---------- Футер ---------- */
.site-footer { border-top: 0; }
.footer-socials a:hover { opacity: .6; }

/* ---------- Анімація появи ---------- */
.reveal.has-motion { opacity: 0; transform: translateY(34px); }
.reveal.has-motion.is-visible { animation: program-rise 1.1s var(--ease) both; }
.relay .reveal.has-motion.is-visible:nth-child(2), .board .reveal.is-visible:nth-child(2), .stats .reveal.is-visible:nth-child(2), .news .reveal.is-visible:nth-child(2) { animation-delay: .08s; }
.relay .reveal.has-motion.is-visible:nth-child(3), .board .reveal.is-visible:nth-child(3), .stats .reveal.is-visible:nth-child(3), .news .reveal.is-visible:nth-child(3) { animation-delay: .16s; }
.relay .reveal.has-motion.is-visible:nth-child(4), .stats .reveal.is-visible:nth-child(4), .news .reveal.is-visible:nth-child(4) { animation-delay: .24s; }
.relay .reveal.has-motion.is-visible:nth-child(5) { animation-delay: .32s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .relay { grid-template-columns: repeat(3, 1fr); }
  .relay__item:nth-child(3)::after { display: none; }
  .news { grid-template-columns: 1fr 1fr; }
  .news-card--lead { grid-row: auto; grid-column: span 2; min-height: 240px; }
  .news-card:not(.news-card--lead):nth-child(4) { grid-column: span 2; }
}
@media (max-width: 820px) {
  .hero--parliament { grid-template-columns: 1fr; }
  .hero__president { max-width: 420px; }
  .hero__president figcaption { margin-left: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .deeds, .board, .socials__box { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .timeline::before { left: 5px; }
  .timeline__item { grid-template-columns: 1fr; padding-left: 30px; gap: 10px; }
  .timeline__item::before { left: 0; top: 8px; }
  .relay { grid-template-columns: 1fr 1fr; }
  .relay__item:not(:last-child)::after { display: none; }
  .relay__item--now { grid-column: span 2; }
  .relay__item { min-height: 180px; }
  .news { grid-template-columns: 1fr; }
  .news-card--lead, .news-card:not(.news-card--lead):nth-child(4) { grid-column: auto; }
  .stat { padding: 20px 16px; }
  .deed { grid-template-columns: 44px 1fr; padding: 16px; }
  .deed__icon { width: 44px; height: 44px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.has-motion { opacity: 1; transform: none; }
  .dot { animation: none; }
}
@media print {
  .main-nav, .socials { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
.team-heading h2 { max-width: none; font-size: clamp(24px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
.relay__term { margin-bottom: 14px; }

/* ---------- Учасники без фото ---------- */
.member--text { flex-basis: 330px; }
.member--text .member__layout {
  grid-template-columns: 1fr;
  gap: 18px;
  height: calc(100% - 26px);
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), background .3s;
}
.member--text .member__layout:hover { transform: translateY(-4px); background: var(--card-strong); }
.member__monogram {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.member--text .member__body { height: 100%; }
@media (max-width: 768px) {
  .member--text { flex-basis: min(300px, 78vw); }
  .member--text .member__layout { grid-template-columns: 1fr; padding: 20px; }
}

.social-card { background: #fff; border: 1px solid var(--line); }
.deed__icon { font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.member__role { margin: 0 0 6px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.member__role + .member__name { margin-top: 0; }
.news-card--lead { justify-content: flex-start; }
.news-card__img { width: 100%; aspect-ratio: 1206 / 875; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }

/* ---------- Акцентний колір (ліцейний зелений #13633F — з герба Ліцею) ---------- */
.team-heading .eyebrow { color: var(--accent); }
.news-card.news-card--lead p { color: rgba(255,255,255,.82); }
.news-card.news-card--lead time { color: rgba(255,255,255,.7); }
.news-card--lead .news-card__tag { background: rgba(255,255,255,.16); color: #fff; }
.timeline__item--now .timeline__card p { color: rgba(255,255,255,.82); }
.board__col--goal .board__count { color: var(--accent); }
.member--text .member__role { color: var(--accent); }
.member__role { color: var(--accent); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--dark:hover { background: #0d4a2e; border-color: #0d4a2e; }
.h1-accent { color: var(--accent); }

/* ---------- Головна новина — біла, як інші ---------- */
.news-card.news-card--lead { background: var(--card); color: var(--ink); border-color: rgba(255,255,255,.8); }
.news-card.news-card--lead p { color: #3a3f45; }
.news-card.news-card--lead time { color: var(--muted); }
.news-card.news-card--lead .news-card__tag { background: var(--accent-soft); color: var(--accent); }
.board__col--goal .board__count { color: var(--goal); }

/* ---------- Розширена історія ---------- */
.timeline__date { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--accent); }
.timeline__item--now .timeline__date { color: rgba(255,255,255,.85); }
.timeline__tag {
  display: inline-block;
  margin: 0 0 6px 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  vertical-align: 1px;
}
.timeline__item--now .timeline__tag { background: rgba(255,255,255,.18); color: #fff; }
.timeline__item--parl .timeline__card { border-left: 3px solid var(--accent); }
.timeline__item--now .timeline__card { border-left-color: transparent; }

/* ---------- Традиції ---------- */
.traditions { margin-top: clamp(48px, 7vw, 90px); }
.traditions__title { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.traditions__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tradition {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}
.tradition__date { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.tradition strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.25; }
.tradition span:last-child { font-size: 13px; line-height: 1.55; color: #3a3f45; }
@media (max-width: 1100px) { .traditions__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .traditions__list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tradition { padding: 14px; }
  .tradition strong { font-size: 14px; }
  .tradition span:last-child { font-size: 12.5px; }
}
.timeline__year--same { visibility: hidden; }
@media (max-width: 600px) { .timeline__year--same { display: none; } .timeline__item { padding-bottom: 14px; } }
