/* Instrument Sans for Latin, Onest for Cyrillic (both SIL OFL 1.1), self-hosted variable subsets */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #131313;
  --paper: #f6f4ee;
  --white: #fff;
  --green: #6c9a4c;
  --green-dark: #4f7a35;
  --green-light: #8fc06a;
  --blue: #5b7fb5;
  --line: rgba(0, 0, 0, .1);
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --glass: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .6);
  --avatar-1: #c9a27a;
  --avatar-2: #7a8fa6;
  --avatar-3: #8aa37b;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.page { width: 100%; overflow: hidden; }

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .5;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; white-space: nowrap;
  transition: transform .15s, background-color .15s, color .15s;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); transform: translateY(-1px); }
.btn-glass {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 500;
}

.avatar { flex: none; border-radius: 50%; background: var(--avatar-1); }
.avatar-2 { background: var(--avatar-2); }
.avatar-3 { background: var(--avatar-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #cfe3f4 0%, #eef2ee 55%, #b9c9a4 100%);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 42% at 50% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .25) 100%);
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
}
.logo {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
  font-weight: 700; font-size: 15px; letter-spacing: -.04em;
}
.logo:hover { color: var(--white); }
.nav-pill {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; font-weight: 500;
}
.nav-pill a { padding: 8px 14px; border-radius: 999px; transition: background-color .15s; }
.nav-pill a:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.nav-actions { display: flex; gap: 8px; }
.nav-actions .btn { padding: 11px 18px; font-size: 14px; }
.nav-actions .btn-dark { padding: 11px 20px; }

.hero-body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: clamp(24px, 7vh, 88px) 20px 40px;
  text-align: center;
}
.social-proof {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 500;
}
.avatar-stack { display: flex; }
.avatar-stack > span {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--white); margin-left: -8px;
}
.avatar-stack > span:first-child { margin-left: 0; }
.avatar-stack .more {
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
  font-size: 9px; font-weight: 700;
}
.hero h1 {
  font-size: clamp(46px, 8.4vw, 118px); font-weight: 700;
  letter-spacing: -.045em; line-height: .94;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(255, 255, 255, .55);
}
.hero-lede {
  max-width: 40ch;
  font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; line-height: 1.35;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 10px; padding: 16px 28px; font-size: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-meta { font-size: 13px; font-weight: 500; letter-spacing: .02em; opacity: .75; }

.hero-stats {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto 36px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding: 22px 28px; border-radius: 32px;
  background: rgba(20, 20, 20, .42);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  color: var(--white); text-align: center;
  list-style: none;
}
.hero-stats strong {
  display: block;
  font-size: clamp(26px, 3vw, 40px); font-weight: 600;
  letter-spacing: -.04em; line-height: 1;
}
.hero-stats span { display: block; margin-top: 6px; font-size: 13px; opacity: .8; }

/* ---------- Mindset ---------- */
.mindset {
  max-width: 1280px; margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px; align-items: start;
}
.mindset h2 {
  margin: 16px 0 22px;
  font-size: clamp(34px, 4.6vw, 64px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1; text-wrap: balance;
}
.mindset-intro p { font-size: 18px; line-height: 1.5; opacity: .8; text-wrap: pretty; }
.principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.principle {
  min-height: 220px; padding: 26px 24px; border-radius: 24px;
  background: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: transform .2s;
}
.principle:hover { transform: translateY(-4px); }
.principle-num { font-size: 13px; font-weight: 600; opacity: .45; }
.principle h3 {
  font-size: clamp(19px, 1.6vw, 23px); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.2;
}
.principle p { margin-top: 10px; font-size: 14px; line-height: 1.45; opacity: .65; }
.principle-accent { background: var(--green); color: var(--white); }
.principle-accent .principle-num { opacity: .6; }
.principle-accent p { opacity: .85; }

/* ---------- Who ---------- */
.who { background: var(--white); padding: var(--section-y) var(--gutter); }
.container { max-width: 1280px; margin: 0 auto; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 44px;
}
.section-title {
  font-size: clamp(36px, 5vw, 68px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1;
}
.section-head p { max-width: 44ch; font-size: 17px; line-height: 1.45; opacity: .75; text-wrap: pretty; }

.personas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.persona {
  display: flex; flex-direction: column;
  padding: 28px 26px 30px; border-radius: 28px;
  background: var(--paper);
  transition: transform .2s;
}
.persona:hover { transform: translateY(-4px); }
.persona h3 {
  margin: 28px 0 12px;
  font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
}
.persona p { font-size: 15px; line-height: 1.5; opacity: .75; }

.common {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: start;
}
.common h3 {
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.05; text-wrap: balance;
}
.traits { margin: 0; padding: 0; list-style: none; }
.trait {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-top: 1px solid var(--line);
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.35;
}
.trait:last-child { border-bottom: 1px solid var(--line); }
.trait-mark {
  flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
}
.trait-mark svg { width: 12px; height: 12px; }
.trait-accent .trait-mark { background: var(--green); }
.trait-not { opacity: .45; }
.trait-not .trait-mark { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* ---------- Events ---------- */
.events { padding: var(--section-y) var(--gutter); }
.events .container { max-width: 1080px; }
.events .section-head { margin-bottom: 36px; }
.filter {
  display: flex; gap: 6px; padding: 5px;
  border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 500;
}
.filter button {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.filter button[aria-pressed='true'] { background: var(--ink); color: var(--white); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot-lviv { background: var(--green); }
.dot-online { border: 2px solid var(--blue); }

.event-list { margin: 0; padding: 0; list-style: none; }
.event {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 20px; align-items: center;
  padding: 22px 0; border-top: 1px solid var(--line);
  transition: padding-left .2s;
}
.event:hover { padding-left: 8px; }
.event[hidden] { display: none; }
.event-date { display: flex; flex-direction: column; line-height: 1; }
.event-date .eyebrow { opacity: .5; }
.event-day { margin-top: 4px; font-size: 40px; font-weight: 600; letter-spacing: -.04em; }
.event h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.025em; }
.event-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; font-size: 14px; opacity: .7;
}
.event-cta {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.event-cta:hover { background: var(--ink); color: var(--white); }
.events-note { margin-top: 28px; font-size: 14px; opacity: .6; }

/* ---------- Online ---------- */
.online { background: var(--ink); color: var(--white); padding: var(--section-y) var(--gutter); }
.online-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px; align-items: center;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7ad37a; box-shadow: 0 0 0 4px rgba(122, 211, 122, .25);
}
.online h2 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5vw, 68px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1; text-wrap: balance;
}
.online-lede { margin-bottom: 28px; max-width: 44ch; font-size: 17px; line-height: 1.5; opacity: .7; text-wrap: pretty; }
.rituals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px; margin: 0; padding: 0; list-style: none;
  font-size: 16px; font-weight: 500;
}
.rituals li { display: flex; gap: 10px; align-items: baseline; }
.rituals li::before {
  content: ''; flex: none; width: 14px; height: 2px;
  background: var(--green-light); transform: translateY(-4px);
}

.chat {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: 28px;
  background: #1d1d1d; border: 1px solid rgba(255, 255, 255, .08);
  font-size: 15px;
  transform: rotate(-1.5deg);
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.chat-head strong { font-weight: 600; }
.chat-head span { font-size: 12px; opacity: .5; }
.msg { display: flex; gap: 12px; }
.msg .avatar { width: 34px; height: 34px; }
.msg-author { font-size: 13px; opacity: .55; }
.msg-text {
  margin-top: 4px; padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #2a2a2a; line-height: 1.4;
}
.msg-text-accent { background: var(--green); color: var(--white); }
.chat-input {
  padding: 12px 14px; border-radius: 999px;
  background: #2a2a2a; font-size: 14px; opacity: .6;
}

/* ---------- Story ---------- */
.story {
  max-width: 1200px; margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px; align-items: center;
}
.story-media { position: relative; aspect-ratio: 4 / 5; max-width: 520px; width: 100%; }
.story-photo {
  position: absolute; inset: 0; border-radius: 32px; overflow: hidden;
  background: #d9d8d4;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.story h2 {
  margin: 16px 0 22px;
  font-size: clamp(34px, 4.4vw, 58px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.02; text-wrap: balance;
}
.story-text p { margin-bottom: 14px; font-size: 17px; line-height: 1.55; opacity: .8; text-wrap: pretty; }
.story-text p:last-of-type { margin-bottom: 28px; }
.signature { display: flex; align-items: center; gap: 14px; }
.signature .avatar { width: 44px; height: 44px; object-fit: cover; }
.signature strong { display: block; font-weight: 600; }
.signature div span { font-size: 14px; opacity: .6; }

/* ---------- Apply ---------- */
.apply {
  position: relative; isolation: isolate;
  margin: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
  min-height: 640px; padding: 80px 20px;
  border-radius: 40px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #cfe3f4, #b9c9a4);
}
.apply-media { position: absolute; inset: 0; z-index: -1; }
.apply-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.apply-card {
  width: min(520px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  padding: 36px; border-radius: 32px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.apply h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.apply-lede { margin-bottom: 8px; font-size: 15px; line-height: 1.45; opacity: .75; }
.field {
  width: 100%;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .12); background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field-area { resize: vertical; min-height: 54px; line-height: 1.4; }
.field::placeholder { color: rgba(19, 19, 19, .5); }
.field:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(108, 154, 76, .25); }
.base-choice { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.base-choice label { flex: 1; position: relative; }
.base-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.base-choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, .2); background: var(--white);
  font-size: 15px; font-weight: 500;
  transition: background-color .15s, color .15s, border-color .15s;
}
.base-choice span::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.base-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.base-choice input:checked + span::before { background: currentColor; }
.base-choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.apply-submit { margin-top: 6px; padding: 16px; font-size: 16px; }
.apply-submit:hover { transform: translateY(-2px); }
.apply-status { font-size: 14px; line-height: 1.45; text-align: center; }
.apply-status:empty { display: none; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--gutter) 40px;
  font-size: 14px;
}
.footer, .footer a { color: rgba(19, 19, 19, .7); }
.footer a:hover { color: var(--green-dark); }
.footer { align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: var(--white);
  border: 1px solid var(--line);
}
.lang-switch button {
  padding: 6px 12px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(19, 19, 19, .7);
  transition: background-color .15s, color .15s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed='true'] { background: var(--ink); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-pill { display: none; }
}

@media (max-width: 720px) {
  /* Portrait: the photo drops below the headline so the whole car stays in frame. */
  .hero {
    min-height: 0;
    background: linear-gradient(180deg, #a9cce6 0%, #dfe6e6 45%, #f1ead9 100%);
  }
  .hero-body { flex: none; padding: 20px 20px 0; }
  .hero-media {
    position: relative; inset: auto; order: 1; z-index: auto;
    aspect-ratio: 9 / 10; margin-top: -72px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  }
  .hero-media img { object-position: 68% 50%; }
  .hero-scrim { display: none; }
  .hero-stats {
    position: relative; order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 8px; padding: 20px 16px; border-radius: 26px;
    margin: -44px auto 20px;
    background: rgba(20, 20, 20, .72);
  }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; }
  .event { grid-template-columns: 64px minmax(0, 1fr); row-gap: 14px; }
  .event-cta { grid-column: 2; justify-self: start; }
  .event-day { font-size: 34px; }
  .filter { width: 100%; }
  .filter button { flex: 1; justify-content: center; padding: 9px 10px; }
  .chat { transform: none; }
  .apply { border-radius: 28px; padding: 48px 12px; min-height: 0; }
  .apply-card { padding: 26px 20px; border-radius: 24px; }
}

@media (max-width: 520px) {
  .nav { padding-top: 16px; padding-bottom: 16px; gap: 10px; }
  .nav-signin { display: none; }
}
