/* =========================================================
   Листи надії — Герої та героїні hromadske 2026
   ========================================================= */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-cyrillic-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/playfair-display-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fixel";
  src: url("../fonts/FixelVariable.woff2") format("woff2-variations"),
       url("../fonts/FixelVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 87.5% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #93B5C6;
  --blue-2: #86ABBD;
  --navy: #071C30;
  --red: #A4320F;
  --red-hover: #b03b16;
  --ink: #1B1A1D;
  --grey: #676767;
  --white: #fff;

  --f-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-text: "Fixel", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --topbar-h: 84px;
}
@media (max-width: 767.98px) { :root { --topbar-h: 68px; } }
:root {
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.ln { overflow-x: clip; }
.section { position: relative; padding: clamp(56px, 8vw, 110px) 0; }

/* reveal on scroll (замість AOS) */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Кнопки ---------- */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 22px 6px;
  border: 1px solid currentColor; border-radius: 999px;
  background: transparent;
  font-family: var(--f-head); font-size: 14px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-pill--dark { color: var(--ink); }
.btn-pill--dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-pill--light { color: var(--white); }
.btn-pill--light:hover { background: var(--white); color: var(--red); border-color: var(--white); }

/* =========================================================
   1. HERO
   ========================================================= */
.hero { position: relative; background: var(--blue); color: var(--white); }

/* ---------- Меню (fixed) ---------- */
.topbar {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--topbar-h);
  padding: 0 clamp(16px, 3vw, 40px);
  color: var(--white);
  transition: transform .45s var(--ease), background-color .35s, box-shadow .35s;
	background-color: rgba(147, 181, 198, 0.94);
}
.topbar.is-solid { background-color: rgba(147, 181, 198, .94); box-shadow: 0 2px 20px rgba(7, 28, 48, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__logo img { display: block; width: clamp(46px, 4.6vw, 60px); height: auto; filter: brightness(0) invert(1); }
.topbar__nav { position: absolute; left: 50%; transform: translateX(-50%); }
.topbar__menu { display: flex; gap: clamp(16px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.topbar__menu a { font-size: 13px; font-weight: 500; text-decoration: none; transition: opacity .2s; }
.topbar__menu a:hover { opacity: .65; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__support {
  padding: 10px 24px; border-radius: 999px; background: var(--white); color: var(--red);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s;
}
.topbar__support:hover { background: var(--red); color: var(--white); }

.burger { display: none; position: relative; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.burger span {
  position: absolute; left: 10px; width: 22px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .4s var(--ease), opacity .25s, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.is-menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.is-menu-open .burger span:nth-child(2) { opacity: 0; }
.is-menu-open .burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mnav {
  position: fixed; z-index: 90; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--topbar-h) + 20px) 24px 40px;
  background: var(--blue); color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
}
.mnav__list { margin: 0; padding: 0; list-style: none; text-align: center; }
.mnav__list li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mnav__list a {
  display: block; padding: 10px 0; text-decoration: none;
  font-family: var(--f-head); font-size: clamp(30px, 9vw, 44px); line-height: 1.1; letter-spacing: -.03em; text-transform: uppercase;
}
.is-menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.is-menu-open .mnav__list li { opacity: 1; transform: none; }
.is-menu-open .mnav__list li:nth-child(2) { transition-delay: .05s; }
.is-menu-open .mnav__list li:nth-child(3) { transition-delay: .1s; }
.is-menu-open .mnav__list li:nth-child(4) { transition-delay: .15s; }
.is-menu-open { overflow: hidden; }
.is-menu-open .topbar { background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

@media (max-width: 991.98px) {
  .topbar__nav { display: none; }
  .burger { display: block; }
  .topbar__support { padding: 8px 18px; }
}
@media (min-width: 992px) { .mnav { display: none; } }

/* ---------- Скролі-сцена ---------- */
.hero__scrolly { position: relative; height: 180vh; }  /* фіксована фаза = перші 30 кадрів (90°) */
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: var(--topbar-h) clamp(16px, 3vw, 40px) 16px;
}

/* Горизонтальні екрани (десктоп, планшет/телефон лежачи): сцена 1280×720 у px макета,
   усе в cqw (1cqw = 1/100 ширини сцени). Ширина до 1600px і обмежена висотою екрана,
   тож статуетка завжди вміщається повністю.
   Композиція: заголовок ліворуч | статуетка правіше центру (вісь ≈ 58%) | підпис і рік праворуч. */
.hero__stage {
  position: relative; flex: none;
  width: min(1600px, 100%, calc((100svh - var(--topbar-h) - 16px) * 1280 / 720));
  aspect-ratio: 1280 / 720;
  container-type: inline-size;
  --statue-x: 58.2cqw;           /* вертикальна вісь статуетки — по ній центрується «Щорічна номінація» */
}
.hero__stage > * { position: absolute; margin: 0; }

.hero__shape { left: 5.7cqw; top: 3.4cqw; width: 89.2cqw; height: auto; z-index: 1; }
.hero__title {
  z-index: 4; left: 1.5cqw; top: 11.2cqw;
  font-family: var(--f-head); font-weight: 400;
  font-size: 13.4cqw; line-height: .9; letter-spacing: -.055em;
  text-transform: uppercase; color: var(--white);
}
.hero__title span, .hero__title em { display: block; }
.hero__title em { font-style: italic; padding-left: .02em; }
.hero__statuette {
  z-index: 3; top: .78cqw; width: 23.4cqw; height: 55.08cqw;   /* кадр 530×1248 */
  left: calc(var(--statue-x) - 11.7cqw);
  pointer-events: none;
}
.hero__sub {
  z-index: 2; left: 72cqw; top: 30.4cqw;
  font-family: var(--f-text); font-weight: 300; font-size: 2.7cqw; line-height: 1.2;
}
.hero__year {
  z-index: 4; left: 71.6cqw; top: 37.5cqw;
  font-family: var(--f-head); font-weight: 400; font-size: 11.4cqw; line-height: 1; letter-spacing: -.04em;
}
.hero__ceremony {
  z-index: 4; left: var(--statue-x); top: 50.5cqw; transform: translateX(-50%);
  font-size: max(11px, 1.1cqw); white-space: nowrap; opacity: .9;
  background: rgb(147 181 198 / 73%);
  padding: 4px 10px;
  border-radius: 50px;
}

/* Рух текстів до статуетки під час фіксації hero (лише горизонтальні екрани).
   --dx (відстань до осі статуетки) і --hp (прогрес 0…1) задає main.js.
   Заголовок іде ПЕРЕД статуеткою (z-index 4), підпис і рік — ЗА нею (z-index 2, статуетка — 3). */
@media (orientation: landscape) {
  .hero__title, .hero__sub, .hero__year {
    transform: translateX(calc(var(--hp, 0) * var(--dx, 0px) * 0.6));
    will-change: transform;
  }
  .hero__title { z-index: 4; }
  .hero__sub, .hero__year { z-index: 2; }
}

/* Вертикальні екрани (телефон, планшет стоячи): сцена 390 px макета завширшки
   (1cqw = 3.9px), висота 180cqw. Підпис і рік прибрані — вони є на статуетці. */
@media (orientation: portrait) {
  .hero__sticky { padding-left: 0; padding-right: 0; }
  .hero__stage { width: min(100%, calc((100svh - var(--topbar-h) - 16px) * 100 / 180)); aspect-ratio: 100 / 180; --statue-x: 50cqw; }
	.hero__shape {
			left: -82cqw;
			top: 78cqw;
			width: 254cqw;
			opacity: .9;
			max-width: none;
			transform: rotate(-195deg);
	}
  .hero__title { left: 5.5cqw; top: 6cqw; font-size: 19.5cqw; width: 100%;
        background: linear-gradient(178deg, rgba(147, 181, 198, .9) 62%, rgba(147, 181, 198, 0) 96%);}
  .hero__sub, .hero__year { display: none; }
  /*.hero__statuette { left: 27.9cqw; top: 70cqw; width: 44.2cqw; height: 104cqw; }*/
  .hero__statuette { left: 8.9cqw;
        top: 27cqw;
        width: 86.2cqw;
        height: 203cqw;}
  .hero__ceremony { top: 168cqw; font-size: 3cqw; }
}

/* =========================================================
   2. ВСТУПНЕ СЛОВО
   ========================================================= */
.intro { background: var(--white); text-align: center; }
.intro__name {
  margin: 0; font-family: var(--f-head); font-style: italic; font-weight: 700;
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
}
.intro__role { margin: 2px 0 22px; font-size: 12px; color: var(--grey); }
.intro__photo {
  display: block; width: clamp(130px, 16vw, 170px); height: auto; aspect-ratio: 1;
  margin: 0 auto clamp(32px, 5vw, 56px); border-radius: 50%; object-fit: cover;
}
.intro__text { font-family: var(--f-head); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.intro__text p { margin: 0 0 1em; }
.intro__text b { font-weight: 700; }

.intro__more {
  height: 0; overflow: hidden;
  transition: height 1s var(--ease);
}
.intro__more-inner { padding-top: .1px; }
.intro__more p { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.intro__more.is-open p { opacity: 1; transform: none; }
.intro__more.is-open p:nth-child(2) { transition-delay: .08s; }
.intro__more.is-open p:nth-child(3) { transition-delay: .16s; }
.intro__more.is-open p:nth-child(n+4) { transition-delay: .24s; }
#introToggle { margin-top: 12px; }

/* =========================================================
   3. НОМІНАЦІЇ — акордеон
   ========================================================= */
.nominations { background: var(--red); color: var(--white); }
.nominations__title {
  margin: 0; font-family: var(--f-head); font-weight: 400;
  font-size: clamp(52px, 9vw, 120px); line-height: 1; letter-spacing: -.05em; text-transform: uppercase;
}
.nominations__lead {
  max-width: 560px; margin: 14px auto clamp(40px, 6vw, 72px);
  font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: .02em;
}

.acc__item { border-bottom: 1px solid rgba(255,255,255,.55); }
.acc__head {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 12px 6px 9px; border: 0; background: transparent; text-align: left; cursor: pointer;
  transition: background-color .35s var(--ease);
}
.acc__label {
  font-family: var(--f-head); font-weight: 400; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.15;
  text-transform: uppercase; letter-spacing: -.01em;
  transition: transform .45s var(--ease);
}
.acc__arrow { flex: none; width: clamp(26px, 2.6vw, 34px); height: auto; transition: transform .5s var(--ease); }
.acc__head:hover, .acc__head:focus-visible { background-color: var(--red-hover); outline: none; }
.acc__head:hover .acc__label, .acc__head:focus-visible .acc__label { transform: translateX(clamp(10px, 1.6vw, 22px)); }
.acc__item.is-open .acc__arrow { transform: rotate(180deg); }

.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel-inner { min-height: 0; overflow: hidden; }
.acc__content {
  padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 48px);
  opacity: 0; transform: translateY(-10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.acc__item.is-open .acc__content { opacity: 1; transform: none; transition-delay: .15s; }

/* Картка героя */
.hcard { display: flex; gap: clamp(20px, 3vw, 36px); align-items: start; max-width: 900px; margin: 0 auto; }
.hcard__photo {
  position: relative; flex: none; width: clamp(150px, 26vw, 286px); aspect-ratio: 286 / 376; overflow: hidden;
  background: linear-gradient(153deg, #93B5C6 0%, #86ABBD 30%, #071C30 87%);
}
.hcard__photo::before {
  content: ""; position: absolute; inset: 0;
  background: url("../../images/hero-card-bg.svg") center / 100% 100% no-repeat;
}
.hcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.hcard__photo--empty::after {
  content: "фото"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-head); font-style: italic; font-size: 20px; opacity: .45;
}
.hcard__body { flex: 1; min-width: 0; }
.hcard__name {
  margin: 0 0 8px; font-family: var(--f-head); font-style: italic; font-weight: 700;
  font-size: clamp(16px, 1.8vw, 21px); line-height: 1.2; letter-spacing: .02em; text-transform: uppercase;
}
.hcard__desc { margin: 0 0 clamp(20px, 3vw, 34px); font-size: clamp(13px, 1.2vw, 15px); line-height: 1.45; }
.hcard__desc:not(:last-of-type) { margin-bottom: .8em; }
.hcard__partner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hcard__partner span { font-family: var(--f-head); font-style: italic; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.hcard__partner img { width: 30px; height: 30px; }
.hcard__note { display: inline-block; margin-top: 10px; font-size: 11px; opacity: .6; }

@media (max-width: 575.98px) {
  .hcard { flex-direction: column; align-items: stretch; }
  .hcard__photo { width: min(100%, 300px); margin: 0 auto; }
}

/* =========================================================
   4. ЯК ЦЕ БУЛО?
   ========================================================= */
.how {
    background: var(--blue);
    color: var(--white);
    padding-bottom: 0;
    background-image: url(../../images/hero-bg.svg);
    background-size: 200%;
    background-position: center;
    background-repeat: no-repeat;
}
.how__title {
  position: relative; margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--f-head); font-weight: 400; line-height: .92; letter-spacing: -.055em;
}
.how__l1, .how__l2 { display: block; font-size: clamp(40px, 7.6vw, 104px); }
.how__l1 { text-transform: uppercase; }
.how__l2 { letter-spacing: -.02em; }
.how__l3 {
  display: block; text-align: right; margin-top: -.3em;
  font-size: clamp(28px, 4.4vw, 60px); font-style: italic; text-transform: uppercase;
}
.how__text { font-size: 18px; line-height: 1.5; }

.fold__scrolly {
    position: relative;
    margin-top: 0;
    padding-bottom: clamp(24px, 4vw, 48px);
}
.fold__sticky { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; }  /* top задає JS */
.fold__text { margin-bottom: clamp(12px, 2vw, 24px); }
.fold__text .how__text:last-child { margin-bottom: 0; }
.fold__sticky .slides { margin: 0 clamp(8px, 3vw, 40px); }
/* «Нагородження минулих років» усередині зафіксованого блоку (лише вертикальні екрани) */
.fold__extra:empty { display: none; }
.fold__extra .timeline { padding: clamp(20px, 4vh, 36px) 0 0; }
.fold__extra .timeline__title { margin-bottom: 12px; }
.fold { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Слайдер у фреймі ---------- */
.slides {
  position: relative;
  /* --slides-w рахує JS: щоб текст + фото разом вміщались в екран */
  width: min(calc(100% - 2 * clamp(8px, 3vw, 40px)), 1100px, var(--slides-w, 1100px));
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.slides__img { opacity: 0; transition: opacity .7s var(--ease); }
.slides__img.is-active { opacity: 1; }

/* Елементи керування — поверх фото, з'являються з UI_P (main.js), ще під час розгортання */
.slides__ui { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.slides.is-ui .slides__ui { opacity: 1; visibility: visible; transition: opacity .6s var(--ease) .1s, visibility 0s; }

.slides__zoom { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }

.slides__count {
  position: absolute; top: clamp(8px, 1.4vw, 16px); left: clamp(8px, 1.4vw, 16px);
  padding: 4px 10px; border-radius: 999px; background: rgba(7, 28, 48, .55);
  font-size: 12px; line-height: 1.4; letter-spacing: .04em; pointer-events: none;
}
.slides__count b { font-weight: 600; }

.slides__arrow {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: clamp(36px, 4vw, 52px); height: clamp(36px, 4vw, 52px);
  margin-top: calc(clamp(36px, 4vw, 52px) / -2 - clamp(20px, 3vw, 36px));
  padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
  background: rgba(7, 28, 48, .35); cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .25s, transform .25s var(--ease);
}
.slides__arrow svg { width: 45%; height: 45%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slides__arrow:hover { background: var(--red); border-color: var(--red); }
.slides__arrow--prev { left: clamp(8px, 1.6vw, 20px); }
.slides__arrow--next { right: clamp(8px, 1.6vw, 20px); }
.slides__arrow--prev:hover { transform: translateX(-3px); }
.slides__arrow--next:hover { transform: translateX(3px); }

/* Мініатюри внизу фото (як у fancybox) — один ряд, активна завжди в центрі видимої частини */
.slides__thumbs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; gap: clamp(4px, .6vw, 8px);
  padding: clamp(20px, 3vw, 36px) clamp(8px, 1.4vw, 16px) clamp(8px, 1.2vw, 14px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth;
  scrollbar-width: none;
  /*background: linear-gradient(to top, rgba(7, 28, 48, .7), rgba(7, 28, 48, 0));*/
}
.slides__thumbs::-webkit-scrollbar { display: none; }
.slides__thumb {
  flex: none; position: relative; width: clamp(48px, 7vw, 84px); aspect-ratio: 3 / 2;
  padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,.15);
  opacity: .55; transition: opacity .3s, transform .3s var(--ease);
}
.slides__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slides__thumb::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 3px; transition: border-color .3s; }
.slides__thumb:hover { opacity: .9; }
.slides__thumb.is-active { opacity: 1; transform: translateY(-3px); }
.slides__thumb.is-active::after { border-color: #fff; }
.slides__thumbs::before, .slides__thumbs::after { content: ""; flex: 1 0 0; }  /* центрує ряд, коли мініатюр мало */

@media (max-width: 575.98px) {
  .slides__count { font-size: 11px; padding: 2px 8px; }
  .slides__thumbs { padding-top: 14px; }
  .slides__thumb { width: 44px; }
}

/* Таймлайн */
.timeline { padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.timeline__title { margin: 0 0 clamp(24px, 3vw, 40px); font-weight: 500; font-size: clamp(18px, 2vw, 26px); }
.timeline__row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.timeline__row::before {
  content: ""; position: absolute; left: 16.66%; right: 16.66%;
  top: calc(clamp(40px, 5vw, 64px) + 12px); height: 1px; background: rgba(255,255,255,.85);
}
.timeline__item { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.timeline__year {
  height: clamp(40px, 5vw, 64px); font-family: var(--f-head); font-style: italic;
  font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.03em; transition: transform .4s var(--ease);
}
.timeline__dot { position: relative; width: 7px; height: 7px; margin: 9px 0; border-radius: 50%; background: var(--white); }
.timeline__dot::after { content: ""; position: absolute; left: 3px; top: 7px; width: 1px; height: clamp(14px, 2vw, 26px); background: rgba(255,255,255,.85); }
.timeline__img {
  width: clamp(88px, 15vw, 160px); aspect-ratio: 1; margin-top: clamp(16px, 2vw, 28px);
  border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05);
  transition: filter .5s, transform .5s var(--ease);
}
.timeline__item:hover .timeline__img { filter: none; transform: scale(1.06); }
.timeline__item:hover .timeline__year { transform: translateY(-4px); }

/* =========================================================
   5. ПАРТНЕРИ
   ========================================================= */
.partners { background: var(--white); }
.partners__title {
  margin: 0 0 clamp(32px, 5vw, 64px); color: var(--red);
  font-family: var(--f-head); font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: 1;
  letter-spacing: -.055em; text-transform: uppercase;
}
.partners__item { display: flex; align-items: center; justify-content: center; height: clamp(70px, 9vw, 110px); transition: opacity .3s, transform .3s var(--ease); }
.partners__item img { max-height: 100%; max-width: 80%; width: auto; }
.partners__item:hover { opacity: .7; transform: translateY(-3px); }

/* =========================================================
   6. ФУТЕР
   ========================================================= */
.footer { background: var(--white); padding: 24px 0 32px; border-top: 1px solid #eee; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 70px;}
.footer__logo img { display: block; width: 56px; height: auto; filter: grayscale(1) brightness(.55); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer__social a {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #d5d5d5; border-radius: 50%;
  transition: border-color .25s, transform .25s var(--ease);
}
.footer__social img { width: 17px; height: 17px; object-fit: contain; filter: grayscale(1); opacity: .8; }
.footer__social a:hover { border-color: var(--red); transform: translateY(-2px); }
@media (max-width: 575.98px) {
  .footer__row { flex-direction: column; }
  .footer__social { justify-content: center; }
}

/* GLightbox: трохи під стиль */
.glightbox-clean .gslide-description { background: transparent; }
.goverlay { background: rgba(7, 28, 48, .94); }
