/* БФ «Рій». Стилі сайту. Кольори й шрифти за макетом клієнта. */
:root {
  --bg: #2c2c2e;
  --bg-2: #353537;
  --y: #ffd43f;
  --beige: #e9dfc9;
  --ink: #2c2c2e;
  --line: rgba(233, 223, 201, 0.34);
  --muted: rgba(255, 255, 255, 0.8);
  --fh: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --fb: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --wrap: 1360px;
  --gut: 40px;
  --hh: 68px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12L12 4M5.5 4H12v6.5'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); }
body.riy { background: var(--bg); color: #fff; font-family: var(--fb); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.riy #page-container { padding-top: 0 !important; background: var(--bg); overflow: clip; }
body.riy #et-main-area, body.riy #main-content { background: var(--bg); }
body.riy #main-content .container:before { display: none; }
body.riy a { color: inherit; text-decoration: none; }
body.riy img { max-width: 100%; height: auto; display: block; }
body.riy ::selection { background: var(--y); color: var(--ink); }
body.riy :focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

/* ---------- каркас блоків Divi ---------- */
.riy-sec.et_pb_section { padding: 0 !important; margin: 0; background: transparent; }
.riy-sec > .et_pb_row { width: 100% !important; max-width: var(--wrap) !important; margin: 0 auto !important; padding: 0 var(--gut) !important; display: block; }
.riy-sec > .et_pb_row > .et_pb_column { width: 100% !important; margin: 0 !important; padding: 64px 0; border-top: 1px solid var(--line); display: grid; gap: 40px; }
.riy-sec .et_pb_module { margin: 0 !important; padding: 0; min-width: 0; }
.riy-sec .et_pb_text, .riy-sec .et_pb_text_inner { color: #fff; font-family: var(--fb); font-size: 16px; line-height: 1.55; }
.riy-sec .et_pb_text_inner p { padding-bottom: 0; margin: 0 0 14px; }
.riy-sec .et_pb_text_inner p:last-child { margin-bottom: 0; }
.riy-sec .et_pb_text_inner ul { padding: 0; margin: 0; list-style: none; }
.riy-sec h1, .riy-sec h2, .riy-sec h3 { color: #fff; padding: 0; margin: 0; font-family: var(--fh); }
.riy-sec strong { font-weight: 700; }
.riy-sec h1, .riy-sec h2, .riy-sec h3, .riy-sec p { word-break: normal; overflow-wrap: break-word; hyphens: manual; }
.s-uniq .m-uniq-title .r-h2, .s-awards .m-awards-title .r-h2 { font-size: clamp(28px, 2.75vw, 40px); }

/* ---------- типографіка ---------- */
.riy .r-h1 { font: 900 clamp(34px, 5.4vw, 76px)/1.04 var(--fh); text-transform: uppercase; color: var(--y); letter-spacing: -0.01em; }
.riy .r-h2 { font: 900 clamp(32px, 3.5vw, 50px)/1.05 var(--fh); text-transform: uppercase; color: #fff; letter-spacing: -0.005em; }
.riy .r-h2--xl { font-size: clamp(40px, 4.6vw, 64px); }
.riy .r-h3 { font: 800 15px/1.3 var(--fh); text-transform: uppercase; color: var(--y); letter-spacing: 0.02em; margin-bottom: 10px; }
.riy .r-h3--w { color: #fff; font-size: 20px; margin: 0; }
.riy .r-h3--xl { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin-bottom: 22px; }
.riy .r-y, .riy .r-h2.r-y { color: var(--y); }
.riy .r-eyebrow { font: 800 14px/1.3 var(--fh); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; margin: 0 0 14px; }
.riy .r-ico { width: 64px; height: 64px; flex: none; }

/* ---------- кнопки й посилання ---------- */
.riy .r-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.riy .r-btns--center { justify-content: center; }
.riy .r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 30px; font: 700 12px/1.2 var(--fh); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; text-align: center; }
.riy .r-btn::after, .riy .r-link::after, .riy .rh__cta::after { content: ""; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center/contain no-repeat; mask: var(--arrow) center/contain no-repeat; transition: transform .25s; }
.riy .r-btn:hover::after, .riy .r-link:hover::after, .riy .rh__cta:hover::after { transform: translate(3px, -3px); }
.riy .r-btn--y { background: var(--y); color: var(--ink); border-color: var(--y); }
.riy .r-btn--y:hover { background: #fff; border-color: #fff; color: var(--ink); }
.riy .r-btn--o { color: var(--y); border-color: var(--y); background: rgba(44, 44, 46, 0.25); }
.riy .r-btn--o:hover { background: var(--y); color: var(--ink); }
.riy .r-btn--d { background: var(--ink); color: var(--y); border-color: var(--ink); }
.riy .r-btn--d:hover { background: #000; }
.riy .r-btn--od { color: var(--ink); border-color: var(--ink); }
.riy .r-btn--od:hover { background: var(--ink); color: var(--beige); }
.riy .r-btn--wide { width: 100%; }
.riy .r-link { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.2 var(--fh); letter-spacing: 0.06em; text-transform: uppercase; color: var(--y); white-space: nowrap; }
.riy .r-link:hover { color: #fff; }

/* ---------- шапка ---------- */
.rh { position: sticky; top: 0; z-index: 900; background: rgba(44, 44, 46, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-family: var(--fh); }
.rh__in { max-width: var(--wrap); margin: 0 auto; padding: 0 0 0 var(--gut); height: var(--hh); display: flex; align-items: center; gap: 34px; }
.rh__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.riy .rh__logo img { height: 44px; width: auto; }
.rh__logo span { font: 800 8.5px/1.25 var(--fh); letter-spacing: 0.04em; text-transform: uppercase; color: var(--y); }
.rh__nav { flex: 1; }
.rh ul { list-style: none; margin: 0; padding: 0; }
.rh__menu { display: flex; gap: 30px; }
.rh__menu a { font: 600 12px/1 var(--fh); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; padding: 8px 0; position: relative; }
.rh__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.rh__menu a:hover, .rh__menu .current-menu-item a:not([href*="#"]) { color: var(--y); }
.rh__menu a:hover::after, .rh__menu .current-menu-item a:not([href*="#"])::after { transform: scaleX(1); }
.rh__soc { display: flex; gap: 18px; padding-left: 28px; border-left: 1px solid var(--line); height: 34px; align-items: center; }
.rh-soc { color: #fff; display: inline-flex; transition: color .2s, transform .2s; }
.rh-soc:hover { color: var(--y); transform: translateY(-2px); }
.rh__cta { align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 0 44px; background: var(--beige); color: var(--ink) !important; font: 700 12px/1 var(--fh); letter-spacing: 0.08em; text-transform: uppercase; transition: background .25s; }
.rh__cta:hover { background: var(--y); }
.rh__burger { display: none; width: 48px; height: 48px; background: none; border: 0; padding: 12px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.rh__burger span { display: block; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.rh.is-open .rh__burger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.rh.is-open .rh__burger span:nth-child(2) { opacity: 0; }
.rh.is-open .rh__burger span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.rh__mobile { background: var(--bg); border-top: 1px solid var(--line); padding: 20px var(--gut) 32px; max-height: calc(100vh - var(--hh)); overflow: auto; }
.rh__mobile[hidden] { display: none; }
.rh__mmenu li { border-bottom: 1px solid var(--line); }
.rh__mmenu a { display: block; padding: 18px 0; font: 800 20px/1.2 var(--fh); text-transform: uppercase; color: #fff; }
.rh__mobile .r-btn { width: 100%; margin-top: 16px; }
.rh__msoc { display: flex; gap: 24px; justify-content: center; margin-top: 26px; }

/* ---------- перший екран ---------- */
.s-hero > .et_pb_row > .et_pb_column { border-top: 0; padding: 0; margin-top: 0 !important; position: relative; min-height: min(640px, calc(100vh - var(--hh))); display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
.s-hero .m-hero-media { position: absolute; inset: 0; overflow: hidden; }
.s-hero .m-hero-media .et_pb_text_inner, .s-hero .m-hero-media p { height: 100%; margin: 0; }
.s-hero .m-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: riy-zoom 16s ease-out both; }
.s-hero .m-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 20, 0.15) 0%, rgba(20, 20, 20, 0.1) 35%, rgba(24, 24, 24, 0.86) 100%), linear-gradient(90deg, rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0) 70%); }
.s-hero .m-hero-body, .s-hero .m-hero-foot { position: relative; z-index: 1; padding: 0 28px; }
.s-hero .m-hero-body { padding-top: 120px; }
.s-hero .m-hero-foot { padding-top: 34px; padding-bottom: 44px; }
.s-hero .m-hero-foot .et_pb_text_inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.riy .r-hero-lead { max-width: 380px; margin: 0 !important; font-size: 17px; line-height: 1.45; }
@keyframes riy-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- три тези ---------- */
.s-theses > .et_pb_row > .et_pb_column { grid-template-columns: repeat(3, 1fr); padding: 44px 0; }
.m-thesis .r-flex { display: flex; align-items: center; gap: 22px; }
.m-thesis p { margin: 0; max-width: 300px; }
.m-thesis strong { color: var(--y); font-weight: 600; }

/* ---------- хто ми ---------- */
.s-who > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.25fr); gap: 0; padding: 0; }
.s-who .et_pb_module { padding: 56px 32px 56px 0; }
.s-who .m-who-stats { padding-left: 32px; border-left: 1px solid var(--line); }
.s-who .m-who-slider { padding-right: 0; }
.m-who-about .r-h2 { margin-bottom: 36px; }
.m-who-about .r-link { margin-top: 18px; }
.m-who-stats .r-h3 { margin-bottom: 26px; }
.riy .r-stats li { margin-bottom: 20px; }
.riy .r-stats li:last-child { margin: 0; }
.riy .r-stats b { display: block; font: 800 17px/1.25 var(--fh); text-transform: uppercase; color: var(--y); margin-bottom: 4px; }
.riy .r-stats span { color: var(--muted); }

/* ---------- слайдер ---------- */
.riy .r-slider { position: relative; }
.riy .r-slider__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.riy .r-slider__track::-webkit-scrollbar { display: none; }
.riy .r-slider__track > * { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.riy .r-slider img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.riy .r-slider--multi .r-slider__track > * { flex-basis: calc((100% - 32px) / 3); }
.riy .r-slider:not(.is-ready) { display: flex; gap: 16px; overflow: hidden; }
.riy .r-slider:not(.is-ready) > img { flex: 0 0 100%; }
.riy .r-slider__nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.riy .r-slider__dots { display: flex; gap: 8px; margin-right: 6px; }
.riy .r-slider__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transition: background .2s, transform .2s; }
.riy .r-slider__dots i.is-on { background: var(--y); transform: scale(1.4); }
.riy .r-arrow { width: 40px; height: 40px; border: 1px solid var(--line); background: none; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; padding: 0; }
.riy .r-arrow:hover { background: var(--y); border-color: var(--y); color: var(--ink); }
.riy .r-arrow svg { width: 18px; height: 18px; }

/* ---------- унікальність ---------- */
.s-uniq > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 44px 48px; }
.s-uniq .m-uniq-title { grid-row: span 2; padding-right: 32px; border-right: 1px solid var(--line); }
.m-card .r-flex { display: flex; gap: 22px; align-items: flex-start; }
.m-card p { color: var(--muted); }

/* ---------- обличчя ---------- */
.s-faces > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 0; padding: 0; align-items: stretch; }
.s-faces .m-faces-grid { padding: 40px 32px 40px 0; overflow: hidden; }
.s-faces .m-faces-text { padding: 56px 0 56px 32px; border-left: 1px solid var(--line); }
.s-faces .m-faces-text .r-h2 { margin-bottom: 30px; }
.riy .r-hex { display: flex; --s: 104px; --m: 3px; --f: calc(1.732 * var(--s) + 4 * var(--m) - 1px); }
.riy .r-hex__in { font-size: 0; padding-bottom: calc(var(--s) * 0.2886); }
.riy .r-hex__in::before { content: ""; width: calc(var(--s) / 2 + var(--m)); float: left; height: 120%; shape-outside: repeating-linear-gradient(#0000 0 calc(var(--f) - 3px), #000 0 var(--f)); }
.riy .r-hex__in img { width: var(--s); height: calc(var(--s) * 1.1547); margin: var(--m); margin-bottom: calc(var(--m) - var(--s) * 0.2885); display: inline-block; object-fit: cover; clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%); filter: saturate(.85); transition: filter .3s, transform .3s; }
.riy .r-hex__in img:hover { filter: none; transform: scale(1.06); }

/* ---------- проєкти ---------- */
.s-projects > .et_pb_row > .et_pb_column { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; row-gap: 40px; }
.s-projects .m-projects-title { grid-column: 1 / -1; }
.s-projects .m-project { padding: 0 20px; border-left: 1px solid var(--line); }
.s-projects .m-project:nth-child(2) { padding-left: 0; border-left: 0; }
.s-projects .m-project:last-child { padding-right: 0; }
.m-project .et_pb_text_inner { display: flex; flex-direction: column; height: 100%; }
.riy .r-proj__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 20px; }
.riy .r-proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.m-project:hover .r-proj__media img { transform: scale(1.06); }
.riy .r-proj__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55)); }
.riy .r-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 10px; background: var(--beige); color: var(--ink); font: 700 9px/1 var(--fh); letter-spacing: 0.1em; text-transform: uppercase; }
.riy .r-proj__title { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font: 900 19px/1.5 var(--fh); text-transform: uppercase; color: var(--y); }
.riy .r-proj__title span { background: rgba(44, 44, 46, 0.86); padding: 3px 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.riy .r-proj__text { color: var(--muted); font-size: 15px; flex: 1; }
.riy .r-proj__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 !important; }
.riy .r-proj__stats b { display: block; font: 800 15px/1.25 var(--fh); text-transform: uppercase; margin-bottom: 4px; }
.riy .r-proj__stats span { font-size: 14px; color: var(--muted); display: block; line-height: 1.35; }

/* ---------- новини ---------- */
.s-news > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 0; padding: 0; }
.s-news .m-news-title { padding: 56px 32px 56px 0; border-right: 1px solid var(--line); }
.s-news .m-news-title .r-h2 { margin-bottom: 30px; }
.s-news .m-news-feed { padding: 56px 0 56px 32px; }
.riy .r-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.riy .r-tiles a { display: block; overflow: hidden; aspect-ratio: 1; position: relative; }
.riy .r-tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; filter: saturate(.8); }
.riy .r-tiles a:hover img { transform: scale(1.07); filter: none; }

/* ---------- партнери ---------- */
.s-partners > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; padding: 0; }
.s-partners .m-partners-logos { padding: 40px 32px 40px 0; }
.s-partners .m-partners-title { padding: 56px 0 56px 32px; border-left: 1px solid var(--line); }
.s-partners .m-partners-title .r-h2 { margin-bottom: 36px; }
.riy .r-logos { display: grid; grid-template-columns: repeat(4, 1fr); }
.riy .r-logos img { width: 100%; height: 110px; object-fit: contain; padding: 30px 26px; filter: brightness(0) invert(1); opacity: .9; border-bottom: 1px solid var(--line); transition: opacity .25s, transform .25s; }
.riy .r-logos img:hover { opacity: 1; transform: scale(1.05); }

/* ---------- разом ми сила ---------- */
.s-together > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 0 48px; }
.s-together .m-together-title { grid-row: span 4; padding-right: 32px; border-right: 1px solid var(--line); display: flex; }
.s-together .m-together-title .et_pb_text_inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.s-together .m-way { padding: 28px 0; border-bottom: 1px solid var(--line); }
.s-together .m-way:nth-child(2) { padding-top: 0; }
.s-together .m-way:last-child { border-bottom: 0; padding-bottom: 0; }
.riy .r-way__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.m-way p { max-width: 640px; color: var(--muted); }
.m-way p strong { color: #fff; }

/* ---------- про фонд ---------- */
.s-ahero > .et_pb_row > .et_pb_column { border-top: 0; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 0; padding: 0; }
.s-ahero .m-ahero-text { padding: 56px 32px 56px 0; border-right: 1px solid var(--line); }
.s-ahero .m-ahero-text .et_pb_text_inner { display: flex; flex-direction: column; height: 100%; }
.s-ahero .m-ahero-text h1 { margin-bottom: auto; padding-bottom: 40px; }
.s-ahero .m-ahero-text p:last-child { margin-top: 20px; }
.s-ahero .m-ahero-words { padding: 56px 0 56px 32px; }
.riy .r-words p { display: flex; justify-content: space-between; margin: 0 !important; font: 500 clamp(11px, 1.75vw, 25px)/1.72 var(--fb); color: rgba(255, 255, 255, 0.82); text-transform: uppercase; }
.riy .r-words p > span { flex: 1; text-align: center; }
.riy .r-words b { display: flex; flex: var(--n, 1); justify-content: space-around; font-weight: 800; color: var(--y); outline: 1px solid var(--y); outline-offset: -3px; background: rgba(255, 212, 63, 0.08); }
.riy-js .r-words b { animation: riy-blink 5s ease-in-out infinite; }
.riy-js .r-words p:nth-child(5) b { animation-delay: .8s; }
.riy-js .r-words p:nth-child(9) b { animation-delay: 1.6s; }
@keyframes riy-blink { 0%, 100% { background: rgba(255, 212, 63, 0.06); } 50% { background: rgba(255, 212, 63, 0.26); } }

.s-about > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0; padding: 0; }
.s-about .m-about-photo { padding: 40px 32px 40px 0; }
.s-about .m-about-photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.s-about .m-about-photo .et_pb_text_inner, .s-about .m-about-photo p { height: 100%; }
.s-about .m-about-text { padding: 40px 0 40px 32px; border-left: 1px solid var(--line); }
.s-about .m-about-text h3 { margin-top: 26px; }
.s-about .m-about-text p { color: var(--muted); }

.s-history.et_pb_section { background: var(--beige); }
.s-history > .et_pb_row > .et_pb_column { border-top: 0; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); align-items: center; padding: 52px 0; }
.s-history .r-h2 { color: var(--ink); }
.riy .r-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.riy .r-facts li { border-left: 1px solid rgba(44, 44, 46, 0.3); padding-left: 20px; }
.riy .r-facts span { display: block; font: 800 12px/1.3 var(--fh); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 8px; }
.riy .r-facts b { display: block; font: 900 clamp(26px, 2.8vw, 40px)/1 var(--fh); color: var(--ink); }

.s-timeline > .et_pb_row > .et_pb_column { border-top: 0; display: block; padding: 56px 0; }
.riy .r-tl:not(.is-ready) h3 { font: 900 28px/1 var(--fh); color: var(--y); margin: 28px 0 14px; }
.riy .r-tl:not(.is-ready) li { padding: 6px 0; }
.riy .r-tl b { color: var(--y); font-family: var(--fh); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.riy .r-tl__years { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; align-items: center; }
.riy .r-tl__year { font: 900 22px/1 var(--fh); padding: 12px 20px; color: #fff; background: none; border: 1px solid var(--line); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.riy .r-tl__year:hover { border-color: var(--y); color: var(--y); }
.riy .r-tl__year.is-on { background: var(--y); border-color: var(--y); color: var(--ink); }
.riy .r-tl__nav { margin-left: auto; display: flex; gap: 10px; }
.riy .r-tl__panel { display: none; }
.riy .r-tl__panel.is-on { display: block; animation: riy-fade .5s both; }
.riy .r-tl__track { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; grid-template-rows: 1fr 1fr; overflow-x: auto; padding: 0 0 14px; scrollbar-width: thin; scrollbar-color: var(--y) transparent; position: relative; }
.riy .r-tl__track li { position: relative; padding: 0 22px 22px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 132px; font-size: 14.5px; line-height: 1.4; }
.riy .r-tl__track li b { display: block; margin-bottom: 8px; }
.riy .r-tl__track li::before { content: ""; position: absolute; left: -6px; width: 11px; height: 12.7px; background: var(--beige); clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%); }
.riy .r-tl__track li:nth-child(odd) { grid-row: 1; border-bottom: 1px solid var(--line); grid-column: span 2; padding-right: 250px; }
.riy .r-tl__track li:nth-child(odd)::before { top: 0; }
.riy .r-tl__track li:nth-child(even) { grid-row: 2; grid-column: span 2; justify-content: flex-end; padding: 22px 22px 0 18px; margin-left: 116px; }
.riy .r-tl__track li:nth-child(even) b { order: 2; margin: 8px 0 0; }
.riy .r-tl__track li:nth-child(even)::before { bottom: 0; }
@keyframes riy-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.s-gallery > .et_pb_row > .et_pb_column { display: block; padding: 40px 0; }

.s-awards > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px 48px; }
.s-awards .m-awards-title { grid-row: span 3; padding-right: 32px; border-right: 1px solid var(--line); }
.m-award .r-flex { display: flex; gap: 20px; align-items: center; }
.m-award p { color: var(--muted); }
.riy .r-award__ico { flex: none; width: 66px; height: 76px; background: var(--beige); clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%); display: flex; align-items: center; justify-content: center; }
.riy .r-award__ico img { width: 34px; height: 46px; object-fit: cover; object-position: top; }

.s-fight.et_pb_section { background: var(--beige); }
.s-fight > .et_pb_row > .et_pb_column { border-top: 0; display: block; text-align: center; padding: 56px 0 60px; }
.s-fight .et_pb_text_inner, .s-fight p { color: var(--ink); }
.riy .r-mega, .rf-cta__title { font: 900 clamp(34px, 7.6vw, 104px)/1 var(--fh); text-transform: uppercase; color: var(--ink) !important; letter-spacing: -0.01em; margin: 0 0 26px !important; }
.s-fight p { font-size: 17px; margin-bottom: 30px !important; }

/* ---------- зробити внесок ---------- */
.s-dhero > .et_pb_row > .et_pb_column { border-top: 0; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; padding: 56px 0 44px; }
.s-dhero h1 { margin-bottom: 22px; }
.s-dhero .m-dhero-title p { max-width: 560px; color: var(--muted); }
.riy .r-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--beige); }
.riy .r-switch a { padding: 16px 14px; text-align: center; font: 800 12px/1.3 var(--fh); letter-spacing: 0.06em; text-transform: uppercase; color: var(--beige); transition: background .25s, color .25s; }
.riy .r-switch a.is-on { background: var(--beige); color: var(--ink); }
.riy .r-switch a:not(.is-on):hover { color: var(--y); }
body.riy-mode-abroad .s-mode-ua, body:not(.riy-mode-abroad) .s-mode-abroad { display: none; }
.s-dua > .et_pb_row > .et_pb_column, .s-dabroad > .et_pb_row > .et_pb_column { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 48px 0; }
.s-dabroad > .et_pb_row > .et_pb_column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-dcommon { grid-column: 1 / -1; }
.m-dcommon h2 { margin-bottom: 20px !important; }
.riy .r-req { margin: 0; display: grid; gap: 0; }
.riy .r-req > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); align-items: center; }
.riy .r-req dt { color: var(--muted); font-weight: 400; }
.riy .r-req dd { margin: 0; color: var(--y); font-weight: 600; text-transform: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.m-dcard { background: var(--bg-2); border: 1px solid var(--line); padding: 28px !important; transition: border-color .25s, transform .25s; }
.m-dcard:hover { border-color: var(--y); transform: translateY(-3px); }
.m-dcard .et_pb_text_inner { display: flex; flex-direction: column; height: 100%; }
.m-dcard h3 { font-size: 18px; margin-bottom: 16px; }
.m-dcard .r-req { margin-bottom: 22px; flex: 1; align-content: start; }
.m-dcard .r-req > div { grid-template-columns: 1fr; gap: 4px; }
.m-dcard .r-req dt { font-size: 13px; }
.m-dcard .r-btns .r-btn { flex: 1 1 150px; padding-left: 16px; padding-right: 16px; }
.riy .r-copyval { overflow-wrap: anywhere; }
.riy .r-copy { flex: none; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; color: #fff; font: 600 11px/1 var(--fh); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: color .2s; }
.riy .r-copy:hover, .riy .r-copy.is-done { color: var(--y); }
.riy .r-copy svg { width: 14px; height: 14px; }
.s-dsubs.et_pb_section { background: var(--y); }
.s-dsubs > .et_pb_row > .et_pb_column { border-top: 0; display: block; padding: 40px 0; }
.m-dsubs .et_pb_text_inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; color: var(--ink); }
.m-dsubs .r-h2 { color: var(--ink); font-size: clamp(26px, 3vw, 40px); margin-bottom: 10px; }
.m-dsubs p { color: var(--ink); max-width: 620px; font-weight: 500; }

.s-faq > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 0; padding: 0; }
.s-dsubs + .s-dabroad + .s-faq > .et_pb_row > .et_pb_column { border-top: 0; }
.s-faq .m-faq-title { padding: 56px 32px 56px 0; border-right: 1px solid var(--line); }
.s-faq .m-faq { padding: 44px 0 44px 32px; }
.riy .r-faq { border-bottom: 1px solid var(--line); }
.riy .r-faq:last-child { border-bottom: 0; }
.riy .r-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 700 14px/1.4 var(--fh); text-transform: uppercase; color: var(--y); letter-spacing: 0.02em; }
.riy .r-faq summary::-webkit-details-marker { display: none; }
.riy .r-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--y); border-bottom: 1.5px solid var(--y); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.riy .r-faq[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.riy .r-faq > *:not(summary) { color: var(--muted); max-width: 760px; }
.riy .r-faq > p:last-child, .riy .r-faq > ul:last-child { padding-bottom: 20px !important; margin-bottom: 0; }
.riy .r-faq ul { margin: 0 0 14px !important; }
.riy .r-faq li { position: relative; padding: 3px 0 3px 22px; }
.riy .r-faq li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 10.4px; background: var(--y); clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%); }
.riy .r-faq a { color: var(--y); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- звітність ---------- */
.s-rhero > .et_pb_row > .et_pb_column { border-top: 0; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); align-items: end; padding: 56px 0 44px; }
.s-rhero .m-rhero-text p { max-width: 560px; color: var(--muted); }
.s-ryear > .et_pb_row > .et_pb_column { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 0 0; padding: 36px 0; align-items: start; }
.s-ryear .m-ryear-title { grid-row: span 2; }
.riy .r-year { font: 900 clamp(44px, 5vw, 72px)/1 var(--fh); color: #fff; }
.riy .r-report { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-weight: 500; transition: color .2s, padding .25s; }
.s-ryear .m-report:last-child .r-report { border-bottom: 0; }
.riy .r-report::after { content: ""; width: 18px; height: 18px; flex: none; background: var(--y); -webkit-mask: var(--arrow) center/contain no-repeat; mask: var(--arrow) center/contain no-repeat; transition: transform .25s; }
.riy .r-report:hover { color: var(--y); padding-left: 10px; }
.riy .r-report:hover::after { transform: translate(3px, -3px); }
.s-ryear:last-child > .et_pb_row > .et_pb_column { padding-bottom: 72px; }

/* ---------- підвал ---------- */
.rf-cta { background: var(--beige); color: var(--ink); text-align: center; padding: 56px var(--gut) 60px; }
.rf-cta__in { max-width: var(--wrap); margin: 0 auto; }
.rf-cta__text { font-size: 17px; margin: 0 0 30px; padding: 0; color: var(--ink); }
.rf-cta__title, .riy .r-mega { padding: 0 !important; }
.rf { background: var(--beige); color: var(--ink); padding: 0; }
.rf__in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); padding: 0 var(--gut); position: relative; }
.rf__in::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: rgba(44, 44, 46, 0.3); }
.rf__in > * { padding: 34px 32px; }
.rf__in > * + * { border-left: 1px solid rgba(44, 44, 46, 0.3); }
.rf__logo { display: flex; align-items: center; gap: 16px; padding-left: 0; }
.riy .rf__logo img { height: 70px; width: auto; }
.rf__logo span { font: 800 11px/1.3 var(--fh); letter-spacing: 0.04em; text-transform: uppercase; }
.rf__contacts a { display: block; font-size: 17px; font-weight: 500; }
.rf__contacts a:hover { text-decoration: underline; }
.rf__contacts p { margin: 14px 0 0; padding: 0; }
.rf__meta { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; font: 600 12px/1.4 var(--fh); letter-spacing: 0.06em; text-transform: uppercase; }
.rf__meta p { margin: 0; padding: 0; }
.rf__soc { display: flex; gap: 18px; }
.rf .rh-soc { color: var(--ink); }
.rf .rh-soc:hover { color: #000; }

/* ---------- вікно «Отримати допомогу» ---------- */
.rm { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rm[hidden] { display: none; }
.rm__back { position: absolute; inset: 0; background: rgba(15, 15, 16, 0.78); backdrop-filter: blur(4px); animation: riy-fade-in .25s both; }
.rm__box { position: relative; width: min(520px, 100%); background: var(--bg); border: 1px solid var(--y); padding: 44px 40px 40px; animation: riy-pop .35s cubic-bezier(.2, .8, .2, 1) both; font-family: var(--fb); color: #fff; }
.rm__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rm__x:hover { color: var(--y); }
.rm__eyebrow { font: 800 12px/1.3 var(--fh); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; padding: 0; }
.rm__title { font: 900 30px/1.1 var(--fh); text-transform: uppercase; color: var(--y); margin: 0 0 26px; padding: 0; }
.rm__label { margin: 18px 0 4px; padding: 0; color: var(--muted); font-size: 14px; }
.rm__val { display: inline-block; font: 800 22px/1.3 var(--fh); color: #fff !important; overflow-wrap: anywhere; }
.rm__val:hover { color: var(--y) !important; }
@keyframes riy-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes riy-pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
body.riy-lock { overflow: hidden; }

/* ---------- поява під час прокрутки ---------- */
.riy-js .riy-sec .et_pb_module.riy-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.riy-js .riy-sec .et_pb_module.riy-rv.is-in { opacity: 1; transform: none; }

/* ---------- планшет ---------- */
@media (max-width: 1180px) {
  :root { --gut: 28px; }
  .rh__in { gap: 22px; }
  .rh__menu { gap: 20px; }
  .rh__soc { display: none; }
  .rh__cta { padding: 0 28px; }
  .s-who > .et_pb_row > .et_pb_column { grid-template-columns: 1fr 1fr; }
  .s-who .m-who-slider { grid-column: 1 / -1; padding: 0 0 56px; }
  .s-projects > .et_pb_row > .et_pb_column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-projects .m-project:nth-child(2n) { padding-left: 0; border-left: 0; padding-right: 20px; }
  .s-projects .m-project:nth-child(2n+1) { padding-right: 0; }
  .riy .r-hex { --s: 86px; }
  .riy .r-tiles { grid-template-columns: repeat(2, 1fr); }
  .riy .r-logos { grid-template-columns: repeat(3, 1fr); }
  .s-dabroad > .et_pb_row > .et_pb_column { grid-template-columns: 1fr; }
  .riy .r-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- телефон ---------- */
@media (max-width: 860px) {
  :root { --gut: 18px; --hh: 60px; }
  .rh__in { padding-right: 6px; gap: 10px; }
  .rh__nav { display: none; }
  .rh__logo { margin-right: auto; }
  .riy .rh__logo img { height: 38px; }
  .rh__cta { align-self: center; height: 38px; padding: 0 16px; font-size: 11px; }
  .rh__cta::after { display: none; }
  .rh__burger { display: flex; }

  .riy-sec > .et_pb_row > .et_pb_column { padding: 44px 0; gap: 28px; grid-template-columns: minmax(0, 1fr) !important; }
  .riy-sec .et_pb_module { grid-column: auto !important; grid-row: auto !important; }

  .s-hero > .et_pb_row { padding: 0 !important; }
  .s-hero > .et_pb_row > .et_pb_column { min-height: calc(100svh - var(--hh)); padding: 0; }
  .s-hero .m-hero-body, .s-hero .m-hero-foot { padding-left: var(--gut); padding-right: var(--gut); }
  .s-hero .m-hero-foot { padding-bottom: 32px; padding-top: 22px; }
  .s-hero .m-hero-foot .et_pb_text_inner { gap: 22px; }
  .s-hero .r-btns { width: 100%; }
  .s-hero .r-btn { flex: 1 1 100%; }
  .riy .r-h1 br { display: none; }

  .s-theses > .et_pb_row > .et_pb_column { padding: 36px 0; gap: 24px; }
  .m-thesis p { max-width: none; }
  .riy .r-ico { width: 54px; height: 54px; }

  .s-who > .et_pb_row > .et_pb_column, .s-faces > .et_pb_row > .et_pb_column, .s-news > .et_pb_row > .et_pb_column, .s-partners > .et_pb_row > .et_pb_column, .s-ahero > .et_pb_row > .et_pb_column, .s-about > .et_pb_row > .et_pb_column, .s-faq > .et_pb_row > .et_pb_column { padding: 44px 0; gap: 32px; }
  .s-who .et_pb_module, .s-faces .et_pb_module, .s-news .et_pb_module, .s-partners .et_pb_module, .s-ahero .et_pb_module, .s-about .et_pb_module, .s-faq .et_pb_module { padding: 0 !important; border: 0 !important; }
  .s-who .m-who-stats { padding-top: 28px !important; border-top: 1px solid var(--line) !important; }
  .m-who-about .r-h2, .s-news .m-news-title .r-h2 { margin-bottom: 22px; }
  .riy .r-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .riy .r-stats li { margin: 0; }
  .riy .r-stats li:last-child { grid-column: 1 / -1; }

  .s-uniq .m-uniq-title, .s-awards .m-awards-title, .s-together .m-together-title { padding-right: 0; border-right: 0; }
  .s-faces .m-faces-text { order: -1; }
  .riy .r-hex { --s: 78px; --m: 2px; margin: 0 -6px; }

  .s-projects .m-project { padding: 0 0 36px !important; border-left: 0; border-bottom: 1px solid var(--line); }
  .s-projects .m-project:last-child { padding-bottom: 0 !important; border-bottom: 0; }
  .s-projects > .et_pb_row > .et_pb_column { row-gap: 36px; }

  .riy .r-logos { grid-template-columns: repeat(2, 1fr); }
  .riy .r-logos img { height: 96px; padding: 26px 20px; }
  .s-partners .m-partners-title { order: -1; }
  .s-partners .m-partners-title .r-h2 { margin-bottom: 20px; }

  .s-together .m-way:nth-child(2) { padding-top: 8px; border-top: 1px solid var(--line); padding-top: 28px; }
  .riy .r-way__head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .s-ahero .m-ahero-text h1 { padding-bottom: 22px; }
  .riy .r-words p { font-size: clamp(9px, 3.05vw, 16px); line-height: 1.8; }
  .s-about .m-about-photo img { min-height: 0; aspect-ratio: 3 / 2; }
  .s-history > .et_pb_row > .et_pb_column { padding: 40px 0; }
  .riy .r-tl__year { font-size: 18px; padding: 10px 14px; }
  .riy .r-tl__nav { display: none; }
  .riy .r-tl__track { display: block; overflow: visible; border-left: 1px solid var(--line); margin-left: 6px; padding: 0; }
  .riy .r-tl__track li, .riy .r-tl__track li:nth-child(odd), .riy .r-tl__track li:nth-child(even) { display: block; min-height: 0; margin: 0; padding: 0 0 26px 24px; border: 0; }
  .riy .r-tl__track li:last-child { padding-bottom: 0; }
  .riy .r-tl__track li::before, .riy .r-tl__track li:nth-child(even)::before { left: -6px; top: 3px; bottom: auto; }
  .riy .r-tl__track li:nth-child(even) b { margin: 0 0 6px; }
  .riy .r-slider--multi .r-slider__track > * { flex-basis: 86%; }
  .s-awards > .et_pb_row > .et_pb_column { gap: 26px; }

  .s-dhero > .et_pb_row > .et_pb_column { padding: 40px 0 32px; }
  .riy .r-switch a { padding: 14px 8px; font-size: 11px; }
  .s-dua > .et_pb_row > .et_pb_column, .s-dabroad > .et_pb_row > .et_pb_column { padding: 36px 0; gap: 18px; }
  .riy .r-req > div { grid-template-columns: 1fr; gap: 2px; }
  .m-dcard { padding: 22px 18px !important; }
  .m-dsubs .r-btn { width: 100%; }

  .s-rhero > .et_pb_row > .et_pb_column { padding: 40px 0 28px; gap: 18px; }
  .s-ryear > .et_pb_row > .et_pb_column { padding: 28px 0; gap: 0; }
  .s-ryear .m-ryear-title { margin-bottom: 8px !important; }

  .rf-cta { padding: 44px var(--gut) 48px; }
  .rf-cta__text br { content: " "; display: inline; }
  .rf-cta__text br::after { content: " "; }
  .rf-cta .r-btn, .s-fight .r-btn { flex: 1 1 100%; }
  .rf__in { grid-template-columns: 1fr; }
  .rf__in > * { padding: 26px 0; }
  .rf__in > * + * { border-left: 0; border-top: 1px solid rgba(44, 44, 46, 0.3); }
  .rm__box { padding: 40px 24px 30px; }
  .rm__title { font-size: 25px; }
  .rm__val { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .riy *, .riy *::before, .riy *::after { animation: none !important; transition: none !important; }
  .riy-js .riy-sec .et_pb_module.riy-rv { opacity: 1; transform: none; }
}

/* ---------- уточнення після перегляду ---------- */
.riy .r-slider__track > img { width: auto; min-width: 0; }
.riy .r-tl__track { grid-auto-columns: 190px; padding-left: 6px; }
.riy .r-tl__track li:nth-child(odd) { padding-right: 70px; }
.riy .r-tl__track li:nth-child(even) { margin-left: 95px; }
.s-fight .et_pb_text_inner { text-align: center; }
.riy .r-logos { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.riy .r-facts b { font-size: clamp(24px, 2.4vw, 34px); white-space: nowrap; }
@media (max-width: 860px) {
  .riy .r-tl__track { padding-left: 0; }
  .riy .r-tl__track li:nth-child(odd), .riy .r-tl__track li:nth-child(even) { margin-left: 0; padding-right: 0; }
  .riy .r-logos { grid-template-columns: repeat(2, 1fr); }
}
