/* GOFAR — gofar.at
   Тёмная тема «как на платформе GOFAR School» (решение Кирилла, 20.11.2026).
   Палитра брендбука v1.1 переложена на тёмный фон:
   Royal Blue #3075FC, Iris #767CF6, Periwinkle #6C70E6, Violet #7B3FE4 — блоб и свечения;
   кнопки и акценты — фиолетовый платформы (#7572FF / #8577FF), сиреневый #C7C6FF;
   Butter Yellow #FFF29A — только плашкой с тёмным текстом #1B1A28.
   Шрифты: Montserrat (замена Gotham Pro) + Raleway, локально (DSGVO).
   Сквозной полёт самолёта: js/flight.js, параметры — js/journey-config.js. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-wght-normal.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: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/raleway-latin-wght-normal.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: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/raleway-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/raleway-latin-wght-italic.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: "Raleway"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/raleway-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: dark;
  /* фон и поверхности */
  --bg: #0A0A0C;
  --bg-2: #0E0E12;
  --surface: #131318;
  --surface-2: #1A1A21;
  --line: #26262E;
  --line-2: #34343F;
  /* текст: контраст к --bg 17:1 / 13:1 / 7.6:1 */
  --text: #EEEEF2;
  --body: #D4D4DC;
  --muted: #A0A0AB;
  /* акценты платформы */
  --violet: #7572FF;
  --violet-2: #8577FF;
  --lilac: #C7C6FF;
  --btn: #625EEB;        /* белый текст на кнопке 4.9:1 */
  --btn-hover: #5652D9;
  /* бренд */
  --royal: #3075FC;
  --iris: #767CF6;
  --peri: #6C70E6;
  --purple: #7B3FE4;
  --butter: #FFF29A;
  --butter-ink: #1B1A28;

  --display: "Montserrat", "Poppins", "Segoe UI", system-ui, sans-serif;
  --text-font: "Raleway", "Lato", "Segoe UI", system-ui, sans-serif;

  --wrap: 1400px;                         /* ширина контейнера вместе с полями */
  --gutter: clamp(16px, 2.8vw, 40px);     /* поля: 16 px на телефоне, 40 px на десктопе */
  --section: clamp(72px, 9vw, 136px);
  --header-h: 78px;
  --radius-l: 30px;
  --radius-m: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text-font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 450;
  font-feature-settings: "lnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--lilac); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter); color: var(--butter-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* контент секций лежит выше слоя полёта (.flight, z-index 1), декор — ниже */
main > section > .wrap, .journey-track { position: relative; z-index: 2; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--lilac); color: var(--butter-ink); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; color: var(--butter-ink); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--text); margin: 0; font-weight: 800; }
h1 { font-size: clamp(42px, 6vw, 92px); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.04em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.22; letter-spacing: -.015em; font-weight: 700; }
h1, h2 { text-wrap: balance; overflow-wrap: break-word; }
.sub { font-family: var(--text-font); font-style: italic; font-weight: 700; color: var(--lilac); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.38; margin: 18px 0 0; max-width: 34em; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--body); max-width: 36em; }
p { margin: 0 0 1em; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) .way-name { hyphens: auto; -webkit-hyphens: auto; }

.dash { list-style: none; padding: 0; margin: 0; }
.dash li { position: relative; padding-left: 1.6em; margin: .45em 0; }
.dash li::before { content: "—"; position: absolute; left: 0; color: var(--violet-2); font-weight: 700; }

/* стикер маскота: белый контур уже в файле, лёгкий наклон как у наклейки */
.sticker { height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); pointer-events: none; user-select: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.005em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 14px 40px -14px rgba(117,114,255,.65); }
.btn-primary:hover { background: var(--btn-hover); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--lilac); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,.86);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav a:hover { color: #fff; }
.header-tools { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  color: var(--muted); padding: 7px 12px; border-radius: 999px; min-width: 42px;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--lilac); color: var(--butter-ink); }

.menu-btn { display: none; appearance: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; color: var(--text); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 1060px) {
  .nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
}
.mobile-nav { display: none; }
.mobile-nav.open {
  display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 49;
  padding: 24px var(--gutter) 40px; overflow-y: auto;
}
.mobile-nav a { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; color: var(--text); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 28px; width: 100%; font-size: 16px; border-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 8vw, 128px); overflow: hidden; }
.hero-glow { position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background:
    radial-gradient(38% 46% at 82% 30%, rgba(117,114,255,.22), transparent 70%),
    radial-gradient(28% 36% at 2% 62%, rgba(48,117,252,.10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero h1 { max-width: 11em; }
.h1-stroke { width: min(420px, 62%); height: auto; margin-top: clamp(14px, 1.6vw, 22px); opacity: .95; }
.hero .lead { margin-top: clamp(20px, 2.4vw, 34px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 44px 0 0; padding: 0; list-style: none; color: var(--body); font-weight: 600; font-size: 15.5px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--iris); }
.hero-facts li:last-child { background: var(--butter); color: var(--butter-ink); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.hero-facts li:last-child::before { background: var(--butter-ink); width: 6px; height: 6px; }

/* блоб брендбука: мягкие края, Periwinkle → Violet → Royal Blue; внутри line-art глобус */
.blob-stage { position: relative; aspect-ratio: 1 / 1.04; width: 100%; max-width: 600px; justify-self: end; }
.blob {
  position: absolute; inset: 6% 4% 8% 6%;
  border-radius: 46% 54% 58% 42% / 44% 40% 60% 56%;
  background:
    radial-gradient(60% 55% at 30% 28%, rgba(199,198,255,.55), transparent 62%),
    radial-gradient(70% 70% at 78% 22%, var(--royal), transparent 66%),
    radial-gradient(80% 80% at 20% 82%, var(--purple), transparent 70%),
    radial-gradient(90% 90% at 72% 86%, var(--peri), transparent 70%),
    var(--iris);
  filter: blur(18px) saturate(1.05);
  opacity: .92;
  animation: morph 18s ease-in-out infinite alternate;
}
@keyframes morph {
  0% { border-radius: 46% 54% 58% 42% / 44% 40% 60% 56%; transform: rotate(0deg); }
  100% { border-radius: 56% 44% 46% 54% / 52% 58% 42% 48%; transform: rotate(6deg); }
}
.blob-globe { position: absolute; left: 22%; top: 14%; width: 56%; height: auto; opacity: .55; mix-blend-mode: screen; filter: brightness(1.6) saturate(.6); }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route .path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 11; opacity: .85; }
.route .hero-plane path { fill: #fff; stroke: var(--violet); stroke-width: 1.4; }
/* самолёт и пунктир в блобе — только когда сквозного полёта нет (без JS, reduced motion) */
.flight-live .route { display: none; }
.fly-start { position: absolute; left: 76%; top: 22%; width: 2px; height: 2px; }
.blob-mascot { position: absolute; left: -4%; bottom: -2%; width: 44%; transform: rotate(-5deg); }
.route-label {
  position: absolute; right: 2%; bottom: 10%;
  background: rgba(19,19,24,.92); color: var(--text); border: 1px solid var(--line-2); border-radius: 18px; padding: 10px 16px 10px 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -.01em;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.route-label small { display: block; font-family: var(--text-font); font-weight: 600; color: var(--muted); font-size: 12.5px; letter-spacing: 0; }
.route-label .flag-img { width: 54px; height: auto; flex: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .blob-stage { max-width: 420px; width: 88%; margin: 18px auto 0; justify-self: center; }
  .blob-mascot { width: 36%; left: -6%; bottom: 14%; }
  .route-label { right: -4%; bottom: -2%; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 48em; margin-bottom: clamp(40px, 5vw, 72px); }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.head-row .section-head { margin-bottom: 0; }
.head-sticker { width: clamp(132px, 13vw, 200px); transform: rotate(4deg); margin-right: clamp(40px, 9vw, 160px); }
@media (max-width: 760px) {
  .head-row { grid-template-columns: 1fr; }
  .head-sticker { width: 120px; margin: 0; justify-self: end; margin-top: -8px; }
}

/* study paths */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
.way { position: relative; padding: 30px 0 4px; border-top: 1px solid var(--line-2); }
.way::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--lilac)); }
.way-name { font-family: var(--display); font-weight: 800; color: var(--violet-2); font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 8px; }
.way-alt { font-weight: 700; font-style: italic; color: var(--lilac); margin: 0 0 18px; font-size: 16.5px; }
.way p:last-child { color: var(--muted); margin: 0; max-width: 32em; }
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; gap: 0; }
  .way { padding: 26px 0; }
}

/* services */
/* промежуток между колонками — коридор самолёта: не уже 124 px, чтобы до текста с обеих сторон было ≥ 40 px */
.services { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(124px, 11vw, 176px); align-items: start; }
.services-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.services-aside h2 { font-size: clamp(34px, 3.6vw, 54px); }
.note-wrap { position: relative; margin-top: 40px; }
.note {
  background: var(--butter); color: var(--butter-ink); border-radius: var(--radius-m);
  padding: 24px 26px; font-size: 16.5px; line-height: 1.55; font-weight: 500;
}
.note strong { font-family: var(--display); font-weight: 800; display: block; margin-bottom: 6px; font-size: 17px; }
.note p { margin: 0; }
.note-sticker { position: absolute; left: -14px; top: calc(100% - 26px); width: 124px; transform: rotate(-6deg); }
.services-aside { padding-bottom: 96px; }
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 3vw, 48px); }
.service { padding: 30px 0; border-top: 1px solid var(--line); }
.service .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--lilac); display: grid; place-items: center; margin-bottom: 18px; }
.service .ico svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 10px; color: var(--text); }
.service p { margin: 0; color: var(--muted); }
@media (max-width: 1180px) { .services-list { grid-template-columns: 1fr; } }
/* резерв справа под коридор сквозного полёта (значение ставит js/flight.js, без JS — 0) */
#studienwege .head-row, #studienwege .ways, .school-card { padding-right: var(--lane-reserve, 0px); }
.hero-grid.wrap, .faq.wrap { padding-right: calc(var(--gutter) + var(--lane-reserve, 0px)); }
.contact-card { margin-right: var(--lane-reserve, 0px); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; gap: 40px; }
  .services-aside { position: static; }
  .note-wrap { max-width: 40em; }
}
@media (max-width: 520px) { .note-sticker { width: 100px; left: -4px; } .services-aside { padding-bottom: 76px; } }

/* team */
.team-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(28px, 3.4vw, 56px); align-items: start; }
/* между заголовком и первым фото — широкий промежуток: коридор сквозного полёта */
@media (min-width: 1101px) {
  .team-grid { grid-template-columns: minmax(0, 3.2fr) 132px minmax(0, 4fr) clamp(28px, 3.4vw, 56px) minmax(0, 4fr); column-gap: 0; }
  .team-intro { grid-column: 1; }
  .team-grid > .person:nth-of-type(1) { grid-column: 3; }
  .team-grid > .person:nth-of-type(2) { grid-column: 5; }
}
.team-intro .section-head { margin-bottom: 0; }
.team-intro h2 { font-size: clamp(34px, 3.6vw, 54px); }
.team-intro .sub { max-width: 18em; }
.team-sticker { width: clamp(130px, 12vw, 180px); margin-top: clamp(28px, 4vw, 56px); transform: rotate(-4deg); }
.person-photo { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.94) brightness(.95) contrast(1.02); }
/* единая подача портретов: естественный цвет + лёгкий фиолетовый градиент снизу */
.person-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,10,12,.62) 0%, rgba(98,94,235,.26) 22%, rgba(98,94,235,0) 48%),
    radial-gradient(120% 70% at 50% 0%, rgba(10,10,12,0) 55%, rgba(10,10,12,.22) 100%);
}
/* карточки команды выровнены по верху: одинаковый размер и кадр */
.person h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.035em; margin: 28px 0 4px; }
.person .role { font-style: italic; font-weight: 700; color: var(--lilac); font-size: 18px; margin: 0 0 16px; line-height: 1.4; }
.person p { color: var(--body); }
.person .dash { color: var(--muted); font-size: 16.5px; }
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-intro { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
  .team-sticker { margin-top: 0; }
}
@media (max-width: 680px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-sticker { width: 110px; }
}

/* school: полоса на всю ширину в стиле gofar.school */
.school { position: relative; overflow: hidden; padding: var(--section) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.school-glow { position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background: radial-gradient(40% 60% at 88% 0%, rgba(117,114,255,.32), transparent 70%), radial-gradient(30% 50% at 0% 100%, rgba(123,63,228,.18), transparent 70%); }
.school-card { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.school-logo { height: 30px; width: auto; margin-bottom: 34px; }
.school h2 { color: #fff; max-width: 13em; }
.school .sub { color: var(--lilac); }
.school p { color: var(--body); }
.school-text { margin-top: 24px; max-width: 34em; }
.school-side { position: relative; }
.school-sticker { width: clamp(150px, 15vw, 230px); margin: 0 0 18px auto; transform: rotate(5deg); }
.courses { list-style: none; margin: 0; padding: 0; }
.course { border-top: 1px solid var(--line-2); padding: 20px 0; display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.course:last-child { border-bottom: 1px solid var(--line-2); }
.course b { font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; letter-spacing: -.01em; }
.course span { color: var(--muted); font-size: 15px; text-align: right; }
.course .tag { display: inline-block; margin-left: 8px; font-family: var(--text-font); font-size: 12.5px; font-weight: 700; color: var(--lilac); background: #1d1c33; padding: 3px 10px; border-radius: 999px; vertical-align: 2px; }
.btn-school { background: var(--btn); color: #fff; margin-top: 30px; }
.btn-school:hover { background: var(--btn-hover); color: #fff; }
@media (max-width: 900px) {
  .school-card { grid-template-columns: 1fr; }
  .school-sticker { position: absolute; right: 0; top: -40px; width: 120px; margin: 0; }
  .school-side { padding-top: 70px; }
}

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 110px); }
.faq-aside { position: relative; }
.faq-art { position: relative; width: clamp(150px, 15vw, 220px); margin-top: clamp(28px, 4vw, 56px); }
.faq-art .seal { position: absolute; left: -12%; top: -8%; width: 124%; height: auto; max-width: none; opacity: .2; }
.faq-art .sticker { position: relative; width: 100%; transform: rotate(-6deg); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.55vw, 21px); letter-spacing: -.015em; line-height: 1.3;
}
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2.5px solid var(--violet-2); border-bottom: 2.5px solid var(--violet-2); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 44em; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq-aside { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
  .faq-art { width: 118px; margin-top: 0; flex: none; }
}

/* contact */
.contact { position: relative; padding: var(--section) 0; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-glow { position: absolute; z-index: 0; pointer-events: none; width: min(760px, 90vw); aspect-ratio: 1; right: -10vw; top: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(118,124,246,.42), rgba(123,63,228,.18) 55%, transparent);
  filter: blur(20px); }
.contact-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius-l);
  padding: clamp(30px, 5vw, 76px); box-shadow: 0 40px 120px -50px rgba(117,114,255,.45);
}
.contact-card h2 { max-width: 12em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact-fine { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.contact-art { position: relative; justify-self: center; width: min(300px, 100%); }
.contact-art .sticker { width: 100%; transform: rotate(4deg); }
.contact-arrow { position: absolute; left: -36%; bottom: 4%; width: 36%; height: auto; transform: rotate(-8deg); opacity: .9; }
.contact-star { position: absolute; width: 34px; height: auto; opacity: .9; }
.contact-star.s1 { right: -4%; top: 2%; }
.contact-star.s2 { left: 2%; top: -6%; width: 20px; opacity: .7; }
.fly-end { position: absolute; left: 6%; top: 18%; width: 2px; height: 2px; }
@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-art { width: 170px; justify-self: end; order: -1; margin-bottom: -10px; }
  .contact-arrow { display: none; }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--muted); background: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; justify-content: space-between; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 28em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--lilac); }
.footer-legal { margin-top: 32px; font-size: 13.5px; color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 100px) 0 var(--section); }
.legal-inner > * { max-width: 820px; }
.legal .lead { margin-top: 22px; }
.legal-wrap { position: relative; }
.legal h1 { font-size: clamp(40px, 6vw, 76px); }
.legal .edition { color: var(--muted); margin-top: 14px; font-size: 15px; }
.legal h2 { font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.02em; margin: 52px 0 14px; color: var(--text); }
.legal h3 { color: var(--text); }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--body); }
.legal dl { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.legal dt { font-weight: 700; color: var(--text); }
.legal dd { margin: 0; color: var(--body); }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }
.ph { background: var(--butter); color: var(--butter-ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0 20px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--body); }
.legal th { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text); }
.table-scroll { overflow-x: auto; }
.back { display: inline-block; margin-bottom: 26px; font-weight: 700; text-decoration: none; }
.legal-glow { position: absolute; z-index: 0; pointer-events: none; right: -14vw; top: 2vw; width: min(700px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(117,114,255,.22), transparent); }
.legal > .wrap { position: relative; z-index: 1; }
.nf-mascot { width: 200px; height: auto; margin-bottom: 28px; transform: rotate(-5deg); }

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  h2 { font-size: clamp(30px, 8.4vw, 40px); }
  body { font-size: 17px; }
  .header-row { gap: 12px; }
  .brand img { height: 26px; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.brand + .header-tools { margin-left: auto; }
