/* Support to Settle CIC — stscic.gainers.website · premium build */
/* Палітра: синій України #005BBB · жовтий #FFD500 · золото #E6A800 · темно-синій UK #012169 */

:root {
  --blue: #005BBB;
  --blue-deep: #003E82;
  --navy: #012169;
  --navy-ink: #0A1B4A;
  --yellow: #FFD500;
  --gold: #E6A800;
  --gold-text: #9A6E00;
  --red: #C8102E;
  --ink: #1E2A3E;
  --muted: #5C6779;
  --line: #E4E9F2;
  --paper: #FFFFFF;
  --paper-soft: #F4F7FC;
  --cream: #FFFBF0;
  --radius: 16px;
  --shadow: 0 14px 44px rgba(1, 33, 105, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif; color: var(--navy); line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-weight: 800; letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.6px; }
h3 { font-size: 1.08rem; font-weight: 700; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; position: relative; }

/* ---------- зерно (фіксоване, не репейнтить скрол) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- прелоадер ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: grid; place-items: center; transition: transform .8s var(--ease);
}
.loader.done { transform: translateY(-101%); }
.loader-inner { text-align: center; width: 300px; }
.loader-inner img { width: 112px; margin: 0 auto 18px; animation: birdFloat 2.2s ease-in-out infinite; }
@keyframes birdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.loader-orn { display: block; margin: 0 auto; overflow: visible; }
.loader-orn .lo-line { transform: scaleX(0); transform-origin: 50% 50%; animation: loLine 1.2s var(--ease) .1s forwards; }
@keyframes loLine { to { transform: scaleX(1); } }
.loader-orn .lo-el {
  transform-box: fill-box; transform-origin: center;
  transform: scale(0); animation: loPop .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.loader-orn .lo-el:nth-of-type(1) { animation-delay: .25s; }
.loader-orn .lo-el:nth-of-type(2) { animation-delay: .40s; }
.loader-orn .lo-el:nth-of-type(3) { animation-delay: .55s; }
.loader-orn .lo-el:nth-of-type(4) { animation-delay: .72s; }
.loader-orn .lo-el:nth-of-type(5) { animation-delay: .90s; }
.loader-orn .lo-el:nth-of-type(6) { animation-delay: 1.05s; }
@keyframes loPop { to { transform: scale(1); } }
.loader-word { font-family: 'Montserrat'; font-weight: 700; color: var(--navy); font-size: .95rem; letter-spacing: .16em; margin-top: 16px; text-transform: uppercase; }

/* ---------- нитка-прогрес ---------- */
.thread {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 120; pointer-events: none;
}
.thread .bar {
  height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue) 0%, var(--yellow) 42%, var(--gold) 60%, var(--navy) 82%, var(--red) 100%);
}
.thread .bird {
  position: absolute; top: -4px; left: 0; width: 26px; height: 18px;
  transform: translateX(-13px);
}

/* ---------- навігація ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, box-shadow .4s, transform .4s var(--ease);
  background: transparent;
}
.nav.scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { height: 44px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) translateY(-2px); }
.brand b { font-family: 'Montserrat'; font-weight: 800; color: var(--navy); font-size: 1.05rem; white-space: nowrap; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .93rem; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2.5px;
  background: var(--gold); transition: right .35s var(--ease); border-radius: 2px;
}
.nav-links a:hover::after { right: 0; }
.lang-toggle {
  display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: 'Montserrat'; font-weight: 700; font-size: .78rem; background: #fff;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 13px; cursor: pointer;
  color: var(--muted); font: inherit; transition: background .25s, color .25s;
}
.lang-toggle button.active { background: var(--navy); color: var(--yellow); }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Montserrat'; font-weight: 700; font-size: .98rem;
  padding: 15px 30px; border-radius: 999px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  white-space: nowrap; cursor: pointer;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--navy); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .38s var(--ease); z-index: 0;
}
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn > * { position: relative; z-index: 1; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(0, 91, 187, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(1, 33, 105, .32); }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); padding: 13px 28px; background: transparent; }
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover { color: #fff; transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 24px rgba(230, 168, 0, .3); }
.btn-yellow::before { background: #fff; }
.btn-yellow:hover { color: var(--navy); transform: translateY(-2px); }
.nav .btn { padding: 11px 22px; font-size: .88rem; }
.burger { display: none; border: 0; background: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 23px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 40px; overflow: hidden; position: relative;
}
.hero-bg {
  position: absolute; inset: -10% -20%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(46% 38% at 82% 18%, rgba(0, 91, 187, .10), transparent 70%),
    radial-gradient(36% 30% at 12% 82%, rgba(255, 213, 0, .14), transparent 70%),
    radial-gradient(28% 24% at 70% 88%, rgba(1, 33, 105, .07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .14em;
  background: var(--yellow); z-index: -1; border-radius: 3px;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease) 1.1s;
}
.hero.ready h1 em::after { transform: scaleX(1); }
.hero-sub { margin: 26px 0 34px; font-size: 1.16rem; color: var(--muted); max-width: 30em; }
.hero-cta { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 30px; font-size: .9rem; color: var(--gold-text); font-weight: 700; letter-spacing: .04em; }
.hero-fade > * { opacity: 0; transform: translateY(28px); }
.hero-media { position: relative; z-index: 1; }
.hero-media .frame {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  transform: rotate(1.4deg); position: relative;
}
.hero-media .frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(1, 33, 105, .08);
}
.hero-media .frame img { width: 100%; height: 520px; object-fit: cover; transform: scale(1.12); }
.hero-media .badge {
  position: absolute; left: -30px; bottom: -28px; width: 158px; padding: 16px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
}
.hero-orn { margin-top: 84px; position: relative; z-index: 1; }
.hero-orn svg { display: block; width: min(520px, 76%); margin: 0 auto; }
.hero-orn .draw { stroke-dasharray: 720; stroke-dashoffset: 720; }

/* ---------- марквіз ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; gap: 64px; width: max-content; will-change: transform; animation: mq 30s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 64px; }
.marquee-item span {
  font-family: 'Montserrat'; font-weight: 800; font-size: 1.35rem; color: var(--navy);
  white-space: nowrap; letter-spacing: -.01em;
}
.marquee-item span.out { color: transparent; -webkit-text-stroke: 1.3px rgba(1, 33, 105, .45); }
.marquee-item .dia-s { width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); flex: none; }
.marquee-item .rose-s { width: 20px; height: 20px; flex: none; }
.marquee-item .rose-s svg { width: 100%; height: 100%; display: block; }

/* ---------- заголовки секцій ---------- */
.sec-head { margin-bottom: 18px; }
.sec-head h2 { max-width: 20em; }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat'; font-weight: 700; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px;
}
.sec-head .kicker::before { content: ''; width: 11px; height: 11px; background: var(--blue); transform: rotate(45deg); }
.sec-lead { color: var(--muted); max-width: 44em; margin-bottom: 48px; font-size: 1.05rem; }

/* reveal (легкий, batch) */
.rv { opacity: 0; transform: translateY(34px); }

/* ---------- про нас ---------- */
.mission { position: relative; padding: 10px 0 10px 34px; margin: 44px 0 64px; }
.mission::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: linear-gradient(var(--blue), var(--yellow)); }
.mission p { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-family: 'Montserrat'; font-weight: 600; color: var(--navy); line-height: 1.45; max-width: 27em; }
.mission .stitch { display: block; margin-top: 22px; }
.mission .stitch path { stroke-dasharray: 480; stroke-dashoffset: 480; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values > div { border-top: 3px solid var(--navy); padding-top: 20px; position: relative; }
.values > div::before {
  content: ''; position: absolute; top: -3px; left: 0; width: 46px; height: 3px; background: var(--gold);
}
.values h3 { margin-bottom: 10px; font-size: 1.15rem; }
.values p { font-size: .96rem; color: var(--muted); }

/* ---------- послуги (bento + spotlight) ---------- */
.services { background: var(--paper-soft); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 20px; }
.card {
  --mx: 50%; --my: 50%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(0, 91, 187, .08), transparent 65%);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card .ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(0, 91, 187, .09); display: grid; place-items: center; margin-bottom: 16px; flex: none; transition: transform .4s var(--ease); }
.card:hover .ico { transform: translateY(-3px) rotate(-4deg); }
.card .ico svg { width: 26px; height: 26px; stroke: var(--blue); }
.card h3 { margin-bottom: 9px; font-size: 1.12rem; }
.card p { font-size: .92rem; color: var(--muted); line-height: 1.62; }
.card-a { grid-column: 1 / 3; }
.card-b { grid-column: 3; grid-row: 1 / 3; }
.card-f { grid-column: 2 / 4; }
.card-photo { color: #fff; justify-content: flex-end; border: 0; }
.card-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(178deg, rgba(1, 33, 105, .04) 28%, rgba(1, 33, 105, .85) 84%);
  z-index: 1;
}
.card-photo::after { display: none; }
.card-photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-photo:hover img.bg { transform: scale(1.05); }
.card-photo h3, .card-photo p { position: relative; z-index: 2; }
.card-photo h3 { color: #fff; font-size: 1.3rem; }
.card-photo p { color: rgba(255, 255, 255, .88); }
.card-tint { background: var(--navy); border: 0; }
.card-tint::after { background: radial-gradient(340px circle at var(--mx) var(--my), rgba(255, 213, 0, .13), transparent 65%); }
.card-tint h3 { color: var(--yellow); }
.card-tint p { color: rgba(255, 255, 255, .84); }
.card-tint .ico { background: rgba(255, 213, 0, .15); }
.card-tint .ico svg { stroke: var(--yellow); }

/* ---------- сторі-панелі ---------- */
.story { padding: 0; background: var(--navy-ink); }
.story-panel {
  position: sticky; top: 0; min-height: 100svh;
  display: grid; align-items: center; overflow: hidden;
}
.story-panel .bgimg { position: absolute; inset: 0; }
.story-panel .bgimg img { width: 100%; height: 100%; object-fit: cover; }
.story-panel .bgimg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2, 16, 56, .93) 34%, rgba(2, 16, 56, .45) 75%, rgba(2, 16, 56, .25));
}
.story-inner { position: relative; z-index: 2; max-width: 1220px; margin: 0 auto; padding: 90px 24px; width: 100%; }
.story-inner .step {
  font-family: 'Montserrat'; font-weight: 700; letter-spacing: .18em; font-size: .8rem;
  color: var(--yellow); text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.story-inner .step::before { content: ''; width: 34px; height: 2px; background: var(--gold); }
.story-inner h3 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.5px; max-width: 15em; line-height: 1.1; }
.story-inner p { color: rgba(255, 255, 255, .82); max-width: 34em; margin-top: 20px; font-size: 1.08rem; }

/* ---------- події ---------- */
.events-intro { padding-bottom: 40px; }
.hgal { position: relative; overflow: hidden; background: #fff; }
.hgal-track { display: flex; gap: 22px; align-items: stretch; padding: 0 24px; width: max-content; }
.hgal-card { position: relative; border-radius: var(--radius); overflow: hidden; height: min(62vh, 560px); flex: none; }
.hgal-card img { height: 100%; width: auto; display: block; }
.hgal-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 22px 18px;
  background: linear-gradient(transparent, rgba(1, 15, 45, .72));
  color: #fff; font-family: 'Montserrat'; font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s;
}
.hgal-card:hover .cap { opacity: 1; transform: none; }
.hgal-head { padding: 0 24px 34px; }
.hgal-hint { display: none; }

.event { margin-bottom: 84px; }
.event:last-child { margin-bottom: 0; }
.event-head { max-width: 46em; margin-bottom: 28px; }
.event-head .tag {
  display: inline-block; font-family: 'Montserrat'; font-weight: 700; font-size: .74rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 9px;
}
.event-head h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.event-head p { color: var(--muted); font-size: .98rem; margin-top: 9px; }
.shots { display: grid; gap: 16px; }
.shots figure { border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; }
.shots img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: saturate(.82);
}
.shots figure:hover img { transform: scale(1.05); filter: saturate(1.06); }
.shots-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; }
.shots-2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 360px; }
.event-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: center; }
.event-split .event-head { margin-bottom: 0; }

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(1, 12, 38, .94);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s;
  padding: 4vh 4vw;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox button {
  position: absolute; top: 20px; right: 24px; border: 0; background: rgba(255, 255, 255, .13);
  color: #fff; font-size: 1.5rem; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  transition: background .3s, transform .3s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .24); transform: rotate(90deg); }

/* ---------- партнери ---------- */
.partners-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 13px; background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.partner:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.partner img { height: 58px; width: auto; border-radius: 8px; }
.partner b { font-family: 'Montserrat'; color: var(--navy); font-size: 1rem; }
.partner span { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.partner .ph {
  height: 58px; display: flex; align-items: center; font-family: 'Montserrat'; font-weight: 800;
  color: var(--blue); font-size: 1.6rem; letter-spacing: .5px;
}

/* ---------- заклик + гніздо ---------- */
.join { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: 130px 0; }
.join .float-dia { position: absolute; width: 16px; height: 16px; transform: rotate(45deg); opacity: .16; pointer-events: none; }
.join h2 { color: #fff; max-width: 15em; }
.join .kicker { color: var(--yellow) !important; }
.join .kicker::before { background: var(--yellow) !important; }
.join p { color: rgba(255, 255, 255, .84); margin-top: 16px; max-width: 32em; font-size: 1.05rem; }
.join .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.join-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.join-actions a.mail { color: var(--yellow); font-weight: 700; font-size: 1.12rem; }
.join-actions a.mail:hover { text-decoration: underline; }
.join-orn { margin-top: 44px; max-width: 560px; }
.join-orn svg { width: 100%; height: auto; overflow: visible; }

/* орнамент, що «вишивається» по скролу */
.orn-anim .oel { transform-box: fill-box; transform-origin: center; }
.about-orn { margin-top: 74px; }
.about-orn svg { width: min(680px, 88%); margin: 0 auto; display: block; overflow: visible; }

/* ---------- футер ---------- */
footer { padding: 52px 0 40px; border-top: 1px solid var(--line); }
.foot { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.foot img { height: 72px; }
.foot .info { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.foot .info b { color: var(--navy); font-family: 'Montserrat'; font-size: 1rem; }
.foot .spacer { margin-left: auto; text-align: right; font-size: .84rem; color: var(--muted); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv, .hero-fade > *, .hero h1 .w > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .loader { display: none; }
  .hero-orn .draw, .mission .stitch path, .loader-nest path { stroke-dashoffset: 0 !important; animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px 26px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 44px rgba(1,33,105,.09); }
  .nav-links.open { display: flex; align-items: flex-start; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-media .frame img { height: 380px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .card-a { grid-column: 1 / 3; }
  .card-b { grid-column: auto; grid-row: auto; }
  .card-f { grid-column: 1 / 3; }
  .event-split { grid-template-columns: 1fr; gap: 26px; }
  .partners-row { grid-template-columns: 1fr; }
  .join .wrap { grid-template-columns: 1fr; }
  /* горизонтальна стрічка стає свайпом */
  .hgal-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 14px; }
  .hgal-card { scroll-snap-align: center; height: 380px; }
  .hgal-hint { display: block; text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding: 108px 0 30px; min-height: auto; }
  .hero-media .frame img { height: 300px; }
  .hero-media .badge { width: 116px; left: -6px; bottom: -20px; padding: 10px; }
  .hero-orn { margin-top: 56px; }
  .values { grid-template-columns: 1fr; gap: 26px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(200px, auto); }
  .card-a, .card-f { grid-column: auto; }
  .shots-3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .shots-2 { grid-template-columns: 1fr; grid-auto-rows: 270px; }
  .brand b { font-size: .92rem; }
  .nav .btn { display: none; }
  .hgal-card { height: 300px; }
  .story-inner { padding: 70px 24px; }
  .marquee-item span { font-size: 1.05rem; }
  .marquee { padding: 18px 0; }
}
