/* ArtInDIGECDevelopment – публичен сайт (версия 4: морско синьо, бяло и тюркоаз, един шрифт, плосък стил) */

@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --stage: rgb(13 48 85 / .88);          /* морското синьо на сцените: начало, резултати, контакти, футър */
  --ink: #10202f;            /* текст и тъмни елементи */
  --ink-2: rgb(255 255 255 / .1);
  --ink-line: rgb(255 255 255 / .24);
  --bg: #ffffff;
  --tint: #f1f4f7;
  --card: #ffffff;
  --line: #d5dde5;
  --text: #10202f;
  --muted: #4c5c6d;
  --on-ink: #ffffff;
  --on-ink-muted: rgb(255 255 255 / .74);
  --acc: #2bb5d8;            /* тюркоазеният акцент */
  --acc-d: #0b5394;          /* акцент като текст върху светло */
  --focus: #ff4d00;
  --display: "Onest", "Segoe UI", system-ui, sans-serif;
  --sans: "Onest", "Segoe UI", system-ui, sans-serif;
  --wrap: 82rem;
  --gap: clamp(1.1rem, 3vw, 2.5rem);
  --sec-y: clamp(3rem, 6vw, 5rem);
  --r-xl: .625rem;
  --r-lg: .375rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
html.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: rgb(43 181 216 / .25); }
h1, h2, h3, h4, h5 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a, button, label, input, textarea { touch-action: manipulation; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .07em; }
abbr { text-decoration: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 200; background: var(--card); color: var(--ink); padding: .7rem 1.1rem; border-radius: 99px; font-weight: 600; }
.skip:focus { top: 1rem; }

/* думи за анимирано появяване (създават се от скрипта) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Встъпителен екран ---------- */
.pre { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: #0d3055; color: #fff; animation: pre-failsafe .01s 7s forwards; }
.pre-in { display: grid; gap: 1.5rem; width: min(22rem, 72vw); }
.pre-num { font-weight: 600; font-size: clamp(3.5rem, 10vw, 6rem); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pre-bars { display: grid; gap: .45rem; }
.pre-bars i { display: block; height: 4px; background: #fff; transform-origin: left; }
.pre-bars i:nth-child(2) { width: 72%; background: var(--acc); }
.pre-bars i:nth-child(3) { width: 46%; opacity: .5; }
.pre-name { font-size: .875rem; font-weight: 500; opacity: .8; }
@keyframes pre-failsafe { to { visibility: hidden; opacity: 0; } }

.notice { background: var(--tint); color: var(--muted); font-size: .8125rem; text-align: center; padding: .4rem var(--gap); }

/* ---------- Хедър: плаваща капсула ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: 0; }
.pill { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 2 * var(--gap) - 1.2rem, var(--wrap)); margin-inline: auto; padding-top: 1.5rem; }
.brand, .head-right { position: relative; z-index: 2; }
.brand, .lang { transition: opacity .4s, visibility .4s, translate .5s var(--ease); }
.is-scrolled .brand, .is-scrolled .lang { opacity: 0; visibility: hidden; translate: 0 -1rem; }
.menu-open .is-scrolled .brand, .menu-open .is-scrolled .lang { opacity: 1; visibility: visible; translate: 0 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; height: 2.75rem; padding: 0 1.1rem; border-radius: 99px; background: #fff; color: var(--stage); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9375rem; letter-spacing: -.01em; }
.brand::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--acc); }
.brand-logo { height: 1.6rem; width: auto; }
.brand:has(.brand-logo)::before { display: none; }
.head-right { display: flex; align-items: center; gap: .4rem; }
.lang { display: flex; gap: 2px; height: 2.75rem; padding: 4px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.lang a { display: grid; place-items: center; padding: 0 .7rem; border-radius: 99px; font-size: .75rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: var(--stage); color: #fff; }
.nav-toggle { display: inline-flex; align-items: center; gap: .6rem; height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 99px; background: var(--acc); color: var(--stage); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: scale .2s; }
.nav-toggle:active { scale: .96; }
.nav-toggle .bars { position: relative; width: 1rem; height: .6rem; }
.nav-toggle .bars i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle .bars i:first-child { top: 0; }
.nav-toggle .bars i:last-child { top: calc(100% - 2px); }
.menu-open .nav-toggle .bars i { top: calc(50% - 1px); }
.menu-open .nav-toggle .bars i:first-child { transform: rotate(45deg); }
.menu-open .nav-toggle .bars i:last-child { transform: rotate(-45deg); }

.nav { overscroll-behavior: contain; position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; padding: 6.5rem max(var(--gap) + .6rem, calc((100vw - var(--wrap)) / 2)) 2.5rem; background: #0d3055; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; overflow: auto; }
.menu-open .nav { opacity: 1; visibility: visible; }
.nav ul { display: grid; width: 100%; max-width: 46rem; }
.nav li { overflow: hidden; border-bottom: 1px solid var(--ink-line); }
.nav li a { display: block; padding: .7rem 0; text-decoration: none; font-weight: 600; font-size: clamp(1.5rem, 4.2vw, 2.75rem); line-height: 1.15; letter-spacing: -.03em; color: #fff; translate: 0 110%; transition: translate .7s var(--ease), color .25s; }
.nav li a:hover, .nav li a[aria-current] { color: var(--acc); }
.menu-open .nav li a { translate: 0 0; }
.nav li:nth-child(2) a { transition-delay: .04s; } .nav li:nth-child(3) a { transition-delay: .08s; } .nav li:nth-child(4) a { transition-delay: .12s; }
.nav li:nth-child(5) a { transition-delay: .16s; } .nav li:nth-child(6) a { transition-delay: .2s; } .nav li:nth-child(7) a { transition-delay: .24s; } .nav li:nth-child(8) a { transition-delay: .28s; }
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; background: var(--acc); transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (max-width: 30rem) {
  .pill { gap: .4rem; }
  .nav-toggle .label { display: none; }
  .nav-toggle { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; }
  .brand { height: 2.5rem; font-size: .75rem; padding: 0 .8rem; gap: .4rem; }
  .lang { height: 2.5rem; }
  .lang a { padding: 0 .5rem; }
}

/* ---------- Бутони ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .75rem 1.6rem; border-radius: 99px; border: 1.5px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s, scale .2s; }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:active { scale: .97; }
.btn > span { position: relative; }
.btn-acc { background: #fff; color: var(--stage); }
.btn-acc::before { background: var(--acc); }
.btn-ghost { border-color: var(--ink-line); color: var(--on-ink); }
.btn-ghost::before { background: var(--on-ink); }
.btn-ghost:hover { color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.more { font-weight: 600; color: var(--acc); }

/* ---------- Сцена и начален екран ---------- */
.stage { position: relative; margin: .6rem; border-radius: var(--r-xl); background: var(--stage); color: var(--on-ink); overflow: hidden; }
.hero .stage { min-height: 50dvh; display: grid; transform-origin: 50% 100%; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; padding-block: 5.75rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: 1fr auto auto; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 1.25rem; pointer-events: none; }
.hero-in a { pointer-events: auto; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
.hero-no { font-size: .8125rem; color: var(--on-ink-muted); margin-bottom: .75rem; }
.hero h1 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -.04em; color: #fff; text-wrap: balance; }
.hero-sub { margin-top: 1rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.35; color: var(--acc); max-width: 34ch; }
.hero-foot { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink-line); }
.hero-lead { color: var(--on-ink-muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-area { grid-column: 2; grid-row: 1 / 3; position: relative; min-height: 13rem; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .4rem 1.4rem; }
.vx { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 600; line-height: 1.2; color: #fff; white-space: nowrap; }
.vx::before { content: ""; width: 1.1rem; height: 3px; border-radius: 2px; background: #fff; }
.vx-b::before { background: var(--acc); }
.vx-c::before { opacity: .6; }
.hero-hint { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; font-size: .75rem; color: var(--on-ink-muted); }
.motion-toggle { pointer-events: auto; font: inherit; font-weight: 600; color: #fff; background: none; border: 1px solid var(--ink-line); border-radius: 99px; padding: .3rem .8rem; cursor: pointer; transition: background-color .25s, color .25s; }
.motion-toggle:hover { background: #fff; color: var(--stage); }

@media (max-width: 56rem) {
  .hero-in { grid-template-columns: 1fr; grid-template-rows: auto; padding-block: 5.75rem 1.5rem; row-gap: 1.5rem; }
  .hero-area { grid-column: 1; grid-row: 1; min-height: 0; height: clamp(12rem, 52vw, 19rem); }
  .hero-copy { grid-row: 2; }
  .hero-foot { grid-row: 3; }
  .hero-hint { grid-row: 4; }
  .vx { font-size: .75rem; }
}

/* ---------- Бягаща лента ---------- */
.band { overflow: hidden; padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.band-track { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); width: max-content; will-change: transform; }
.band-track span { font-weight: 700; font-size: clamp(2rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; color: var(--ink); }
.band-track span:nth-of-type(even) { color: var(--stage); }
.band-track i { flex: none; width: clamp(.7rem, 1.3vw, 1.1rem); aspect-ratio: 1; border-radius: 50%; background: var(--acc); }

/* ---------- Трите стълба: натрупващи се карти ---------- */
.pillars { padding-bottom: 0; }
.sec.sec-summary { padding-top: clamp(2rem, 4vw, 3.25rem); }
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: center; gap: 1.5rem 3rem; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3.25rem); border-radius: var(--r-xl); margin-bottom: .75rem; transform-origin: 50% 0; will-change: transform; }
.pillar-1 { background: var(--tint); }
.pillar-2 { background: #2a4868; color: #fff; }
.pillar-3 { background: var(--acc); color: var(--stage); }
.pillar h2 { font-weight: 600; font-size: clamp(1.75rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.pillar p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); opacity: .85; }
@media (max-width: 44rem) { .pillar { grid-template-columns: 1fr; align-content: end; } }

/* ---------- Секции ---------- */
.sec { padding-block: var(--sec-y); }
.sec-tint { background: var(--tint); }
.sec-head { display: grid; gap: .75rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sec-head h2, .contact h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; }
.sec-intro { color: var(--muted); max-width: 62ch; font-size: 1.0625rem; }
.sec h3 { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; }

.kicker { font-family: var(--display); font-weight: 600; font-size: .875rem; color: var(--acc-d); margin-bottom: 1.75rem; }
.statement { margin-bottom: 2.5rem; }
.statement p { font-size: clamp(1.35rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.22; letter-spacing: -.02em; max-width: 30em; }
.statement p + p { margin-top: 1em; }

.prose { max-width: 62ch; font-size: 1.125rem; line-height: 1.65; }
.prose p + p { margin-top: 1em; }

/* ---------- Числа: бенто ---------- */
.sec-stats { background: var(--tint); }
.stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1rem; }
.stat { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem 1.75rem; border-radius: var(--r-xl); background: var(--card); }
.stat-n { order: -1; margin-bottom: 1.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat dt { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.stat-period { font-size: .875rem; color: var(--muted); margin-top: .2rem; }
.stat:first-child { background: var(--stage); color: #fff; }
.stat:first-child .stat-n { color: var(--acc); }

.stat:first-child .stat-period { color: var(--on-ink-muted); }

@media (max-width: 56rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

/* ---------- За проекта ---------- */
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.names > div { padding: 1.5rem 1.75rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); }
.names dt, .facts dt { font-size: .8125rem; font-weight: 600; color: var(--acc-d); margin-bottom: .5rem; }
.names dd { font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.about-grid h3 { margin-bottom: 1rem; }
.about-grid h3:not(:first-child) { margin-top: 2.25rem; }
.goal { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--tint); color: var(--ink); border-left: 6px solid var(--acc); }
.goal p { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.list-num { counter-reset: n; display: grid; }
.list-num li { counter-increment: n; display: grid; grid-template-columns: 2.5rem 1fr; padding: .9rem 0; border-top: 1px solid var(--line); }
.list-num li::before { content: counter(n, decimal-leading-zero); font-family: var(--display); font-size: .8125rem; font-weight: 600; color: var(--acc-d); padding-top: .25rem; }
.list-q { display: grid; }
.list-q li { padding: .9rem 0; border-top: 1px solid var(--line); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.facts > div { padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: var(--tint); }
@media (max-width: 50rem) { .names, .about-grid, .facts { grid-template-columns: 1fr; } }

.tl-head { margin-top: clamp(4rem, 9vw, 7.5rem); margin-bottom: 2rem; }
.sec .tl-head h3 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; }
.tl-head .muted { margin-top: .6rem; }
.timeline { position: relative; padding-left: 2.75rem; }
.tl-line { position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); border-radius: 2px; }
.tl-line i { display: block; height: 100%; background: var(--acc-d); border-radius: 2px; transform-origin: top; }
.stage-group + .stage-group { margin-top: 2rem; }
.stage-group h4 { font-family: var(--display); font-weight: 600; font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.stage-group ol { display: grid; gap: .85rem; }
.wp { position: relative; padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.wp::before { content: ""; position: absolute; left: calc(-2.2rem - 8px); top: 1.6rem; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px dashed var(--muted); }
.wp-done::before { background: var(--stage); border: 2px solid var(--stage); }
.wp-active::before { background: var(--acc); border: 2px solid var(--ink); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(43 181 216 / .35); } }
.wp-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.wp-code { font-family: var(--display); font-weight: 600; font-size: .875rem; }
.wp-period { font-size: .875rem; color: var(--muted); }
.wp h5 { margin-top: .6rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.wp p { margin-top: .4rem; max-width: 64ch; color: var(--muted); }
.wp-related { font-size: .9375rem; }
.wp-related span { font-weight: 600; color: var(--text); }

.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; padding: .2rem .7rem; border-radius: 99px; background: var(--tint); color: var(--muted); }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-done, .status-published { background: #e2ecf5; color: var(--stage); }
.status-active, .status-accepted, .status-in_press { background: var(--acc); color: var(--ink); }

/* ---------- Екип ---------- */
.sec .group-title { margin-bottom: 1.25rem; color: var(--muted); }
.people + .group-title { margin-top: 3rem; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.person-top { display: grid; justify-items: start; gap: 1rem; margin-bottom: .75rem; }
.person-top .avatar { margin-bottom: 0; }
.person-group { font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 99px; background: var(--tint); color: var(--muted); white-space: nowrap; }
.person-admin .person-group { background: var(--acc); color: var(--stage); }
.person { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--r-xl); background: var(--card); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.person:hover { translate: 0 -6px; }
.avatar { width: 5rem; height: 5rem; border-radius: 1.25rem; object-fit: cover; margin-bottom: 1.5rem; }
.avatar-mono { display: grid; place-items: center; background: var(--tint); color: var(--stage); font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.person h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.person-role { margin-top: .15rem; font-weight: 600; color: var(--acc-d); }
.person-pos, .person-int { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }
.person-int span { font-weight: 600; }
.person-links { margin-top: .85rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.person-links a { font-size: .8125rem; font-weight: 600; padding: .25rem .75rem; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; transition: background-color .25s, color .25s; }
.person-links a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Резултати: хоризонтално плъзгане ---------- */
.sec-ink { background: var(--stage); color: var(--on-ink); }
.sec-ink .sec-intro { color: var(--on-ink-muted); }
.hscroll { overflow: hidden; }
.hscroll-pin { display: flex; flex-direction: column; justify-content: center; }
.rtrack { display: flex; gap: 1rem; padding-inline: max(var(--gap), calc((100vw - var(--wrap)) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rtrack::-webkit-scrollbar { display: none; }
.hscroll.is-pinned .rtrack { overflow: visible; width: max-content; scroll-snap-type: none; will-change: transform; }
.rcard { flex: 0 0 clamp(17rem, 30vw, 25rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 12.5rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--r-xl); background: var(--ink-2); border: 1px solid var(--ink-line); scroll-snap-align: center; }
.rcard:nth-child(3n + 2) { background: var(--acc); color: var(--ink); border-color: transparent; }
.rcard:nth-child(3n + 2) .more { color: var(--ink); }
.sec .rcard h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -.025em; line-height: 1.12; }
.rcard p { opacity: .8; }
.rcard figure img { border-radius: var(--r-lg); }

/* ---------- Публикации ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.filters button { font: inherit; font-size: .9375rem; font-weight: 600; min-height: 2.75rem; padding: .4rem 1.15rem; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pub { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; padding: 1.6rem 1rem; margin-inline: -1rem; border-top: 1px solid var(--line); transition: background-color .35s, border-radius .35s, border-color .35s; }
.pub:hover { background: var(--card); border-radius: var(--r-lg); border-color: transparent; }
.pub:hover + .pub { border-color: transparent; }
.pub[hidden] { display: none; }
.pub-year { font-family: var(--display); font-weight: 600; font-size: 1.375rem; color: var(--muted); line-height: 1.2; }
.pub-cite cite { font-style: normal; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.pub-by { margin-top: .35rem; color: var(--muted); }
.pub-links { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9375rem; font-weight: 600; color: var(--acc-d); overflow-wrap: anywhere; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; font-size: .8125rem; }
.pub-type { font-weight: 600; color: var(--muted); }
@media (max-width: 44rem) { .pub { grid-template-columns: 1fr; gap: .5rem; } .pub-meta { justify-content: flex-start; } }

/* ---------- Новини ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.news-item { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--r-xl); background: var(--card); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.news-item:hover { translate: 0 -6px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .8125rem; color: var(--muted); }
.news-cat { font-weight: 600; padding: .2rem .7rem; border-radius: 99px; background: var(--tint); color: var(--text); }
.cat-award { background: var(--acc); color: var(--ink); }
.sec .news-item h3 { margin-top: 1.5rem; font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -.02em; line-height: 1.2; }
.news-text { margin-top: .9rem; color: var(--muted); }
.news-text p + p { margin-top: .8em; }
.news-img { margin-top: 1.25rem; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-links { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-weight: 600; color: var(--acc-d); }

/* ---------- Ресурси ---------- */
.res-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; align-items: start; }
.guide { position: sticky; top: 6rem; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--r-xl); background: var(--stage); color: var(--on-ink); }
.sec .guide h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.guide p { margin-top: .9rem; color: var(--on-ink-muted); }
.files { display: grid; gap: .75rem; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .3s; }
.file:hover { border-color: var(--ink); }
.sec .file h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.file p { margin-top: .25rem; color: var(--muted); }
.file-meta { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .8125rem; margin-top: .6rem; }
.file-meta span { padding: .1rem .6rem; border-radius: 99px; background: var(--tint); font-weight: 600; }
.file-terms { font-size: .875rem; }
.file .btn { flex: none; min-height: 2.75rem; padding: .5rem 1.2rem; }
.pending { flex: none; font-size: .8125rem; font-weight: 600; padding: .25rem .8rem; border-radius: 99px; border: 1px dashed var(--muted); color: var(--muted); }
@media (max-width: 56rem) { .res-grid { grid-template-columns: 1fr; } .guide { position: static; } }
@media (max-width: 36rem) { .file { flex-direction: column; align-items: flex-start; } }

/* ---------- Галерия ---------- */
.album + .album { margin-top: clamp(2.5rem, 5vw, 4rem); }
.album-head { margin-bottom: 1.25rem; }
.sec .album-head h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.album-head .muted { margin-top: .35rem; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: .75rem; }
.shots li { border-radius: var(--r-lg); overflow: hidden; }
.shots li:first-child { grid-column: span 2; grid-row: span 2; }
.shot { display: block; height: 100%; background: var(--tint); }
.shot img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.06); }
@media (max-width: 44rem) { .shots { grid-template-columns: repeat(2, 1fr); } }

.lightbox { overscroll-behavior: contain; border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(8 26 46 / .97); color: #fff; }
.lightbox::backdrop { background: rgb(8 26 46 / .9); }
.lightbox figure { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 4.5rem 5rem 1.5rem; gap: 1rem; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: var(--r-lg); }
.lightbox figcaption { text-align: center; color: var(--on-ink-muted); }
.lightbox button { position: absolute; font: inherit; font-weight: 600; color: #fff; background: rgb(255 255 255 / .1); border: 0; border-radius: 99px; cursor: pointer; min-width: 3rem; min-height: 3rem; display: grid; place-items: center; transition: background-color .25s; }
.lightbox button[hidden] { display: none; }
.lightbox button:hover { background: rgb(255 255 255 / .24); }
.lb-close { top: 1rem; right: 1rem; padding: 0 1.2rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 36rem) { .lightbox figure { padding: 4.5rem .75rem 5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; } }

/* ---------- Контакти ---------- */
.stage-contact { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.contact-grid { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact h2 { color: #fff; }
.contact-intro { margin-top: 1.5rem; color: var(--on-ink-muted); max-width: 40ch; font-size: 1.125rem; }
.contact address { margin-top: 2.5rem; display: grid; gap: .4rem; }
.c-uni { font-family: var(--display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; color: #fff; margin-bottom: .4rem; }
.contact address dl { margin-top: 1.25rem; display: grid; gap: 1rem; }
.contact address dt { font-size: .8125rem; color: var(--on-ink-muted); }
.contact address dd { font-weight: 600; }
.c-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.c-links a { display: inline-block; padding: .55rem 1.1rem; border-radius: 99px; border: 1px solid var(--ink-line); text-decoration: none; font-size: .9375rem; font-weight: 600; transition: background-color .3s, color .3s; }
.c-links a:hover { background: var(--on-ink); color: var(--ink); }
.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-xl); background: var(--ink-2); border: 1px solid var(--ink-line); }
.form h3 { font-family: var(--display); font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; color: #fff; }
.form label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form textarea { font: inherit; font-weight: 400; font-size: 1rem; color: #fff; background: rgb(255 255 255 / .08); border: 1.5px solid var(--ink-line); border-radius: .9rem; padding: .8rem 1rem; width: 100%; transition: border-color .25s, background-color .25s; }
.form textarea { resize: vertical; min-height: 7rem; }
.form input:hover, .form textarea:hover { border-color: var(--on-ink-muted); }
.form input[type="text"]:focus, .form input[type="email"]:focus, .form textarea:focus { border-color: var(--acc); background: rgb(255 255 255 / .09); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form .check { grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; font-weight: 400; line-height: 1.45; color: var(--on-ink-muted); }
.check input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--acc); }
.form .btn { justify-self: start; }
.form-status { font-size: .9375rem; font-weight: 600; min-height: 1.5rem; }
.form-status.is-ok { color: var(--acc); }
.form-status.is-err { color: #ffd3c7; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Финансиране и футър ---------- */
.funding { padding-block: clamp(3rem, 6vw, 5rem); }
.funding-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.funding h2 { font-family: var(--display); font-weight: 600; font-size: 1.125rem; }
.funding p { margin-top: .6rem; color: var(--muted); max-width: 48ch; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.logos li > * { display: grid; place-items: center; text-align: center; min-height: 6rem; height: 100%; padding: 1rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .3s; }
.logos a:hover { border-color: var(--ink); }
.logos img { max-height: 3.75rem; width: auto; }
@media (max-width: 56rem) { .funding-grid { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .logos { grid-template-columns: 1fr; } }

.site-footer { margin: 0 .6rem .6rem; border-radius: var(--r-xl); background: var(--stage); color: var(--on-ink-muted); padding-top: clamp(3rem, 6vw, 5rem); font-size: .9375rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2.5rem; }
.footer-full { font-size: 1.125rem; line-height: 1.45; color: var(--on-ink); max-width: 36ch; }
.footer-no { margin-top: 1rem; font-size: .8125rem; }
.site-footer h2 { font-size: .8125rem; font-weight: 600; color: var(--acc); margin-bottom: .9rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.wordmark { margin-top: clamp(2.5rem, 6vw, 5rem); padding-inline: var(--gap); font-family: var(--display); font-weight: 700; font-size: 8.4vw; line-height: 1.05; letter-spacing: -.055em; white-space: nowrap; text-align: center; color: var(--acc); overflow: hidden; }
.wordmark .ch { display: inline-block; will-change: transform; }
.footer-base { padding-block: 1.5rem; font-size: .8125rem; }
@media (max-width: 50rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Правни страници ---------- */
.legal { padding-block: clamp(7rem, 12vw, 10rem) clamp(3rem, 7vw, 6rem); max-width: 52rem; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; }
.legal .prose { margin-block: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pre { display: none; }
}
@media print {
  .site-header, .notice, .pre, .band, .field, .hero-hint, .form, .lightbox, .filters { display: none !important; }
  .stage, .sec-ink, .site-footer, .guide, .stat:first-child, .pillar { background: #fff !important; color: #000 !important; }
  .hero h1, .contact h2, .c-uni { color: #000 !important; }
  .pillar { position: static; }
}

.person-links { margin-top: auto; padding-top: .85rem; }

@media (max-width: 30rem) { .stat { padding: 1.25rem 1.1rem; } .stat dt { font-size: 1rem; hyphens: auto; overflow-wrap: anywhere; } }
