/* ==========================================================================
   Stage Core — style strony (na bazie HTML5 Boilerplate, css/h5bp.css)
   Ciemna scena, jeden ciepły akcent (amber). Logical properties → działa też RTL (arabski).
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #07080a;
  --bg-alt: #0c0e12;
  --surface: #12151b;
  --surface-2: #191d25;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.18);
  --text: #f3f2ee;
  --text-muted: #a9aeb8;
  --accent: #ffb547;
  --accent-hover: #ffc56e;
  --on-accent: #140d02;
  --accent-soft: rgb(255 181 71 / 0.12);
  --danger: #ff7a70;
  --success: #6fdc9a;
  --focus: #ffd592;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-tracking: 0.06em;
  --display-case: uppercase;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t: 260ms;
  --t-slow: 600ms;

  --z-header: 40;
}

/* Arabic: no letter-spacing (it breaks cursive joining), Arabic typefaces. */
:root[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "Barlow Condensed", sans-serif;
  --font-body: "Noto Sans Arabic", "Barlow", system-ui, sans-serif;
  --display-tracking: 0;
}
:root[lang="zh-Hans"] {
  --font-display: "Barlow Condensed", "Noto Sans SC", sans-serif;
  --font-body: "Barlow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display-tracking: 0.02em;
}
:root[lang="ar"] *, :root[lang="ar"] *::before { letter-spacing: 0 !important; }
/* the brand name and Latin codes stay in Barlow */
.brand-word, .hero-title, .lang-code { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:root[lang="ar"] body { line-height: 1.75; }

::selection { background: var(--accent); color: var(--on-accent); }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }

[dir="rtl"] .flip-rtl, [dir="rtl"] .btn svg { transform: scaleX(-1); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }

.skip-link.focusable:focus {
  position: fixed !important;
  inset-block-start: 12px; inset-inline-start: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  text-transform: var(--display-case);
  letter-spacing: 0.005em;
  text-wrap: balance;
}
:root[lang="ar"] .section-title { font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.35; }
.section-title em, .hero-title span { font-style: normal; color: var(--accent); }
.section-lead { color: var(--text-muted); font-size: 1.125rem; max-width: 60ch; margin-top: var(--s-4); }
.muted { color: var(--text-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgb(255 255 255 / 0.04); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: rgb(255 255 255 / 0.08); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 1rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.2rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgb(7 8 10 / 0.5);
  color: var(--text);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.1); border-color: var(--text); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) ease, border-color var(--t) ease;
}
.site-header.is-scrolled, .site-header.is-open, .page-privacy .site-header {
  background: rgb(7 8 10 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand-word { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-size: 1.55rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-word span { color: var(--accent); margin-inline-start: 0.28em; }

.main-nav { display: none; }
.main-nav ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.main-nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.main-nav a[aria-current] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-cta { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--text); }
.lang-switch[open] summary { border-color: var(--accent); }
.lang-switch svg { color: var(--accent); }
.lang-switch ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.5);
  z-index: 5;
}
.lang-switch a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}
.lang-switch a:hover { background: var(--surface-2); color: var(--text); }
.lang-switch a[aria-current] { color: var(--accent); font-weight: 600; }

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  inset-inline: 0;
  padding: var(--s-4) var(--s-4) var(--s-6);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav ul { margin-bottom: var(--s-5); }
.mobile-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: var(--display-case);
}

@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 1.3rem; }
  .brand-mark { width: 28px; height: 28px; }
}

/* ==========================================================================
   Hero (home) + page hero (crew)
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #000; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 7s linear;
}
.hero-video.is-active { opacity: 1; transform: scale(1); }
.hero-scrim, .page-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(7 8 10 / 0.55) 0%, rgb(7 8 10 / 0.1) 30%, rgb(7 8 10 / 0.35) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgb(7 8 10 / 0.78) 0%, rgb(7 8 10 / 0.15) 65%);
}
[dir="rtl"] .hero-scrim, [dir="rtl"] .page-hero-scrim {
  background:
    linear-gradient(180deg, rgb(7 8 10 / 0.55) 0%, rgb(7 8 10 / 0.1) 30%, rgb(7 8 10 / 0.35) 60%, var(--bg) 100%),
    linear-gradient(270deg, rgb(7 8 10 / 0.78) 0%, rgb(7 8 10 / 0.15) 65%);
}
.hero-inner { align-self: end; padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-7); }
.hero-title {
  font-weight: 700;
  font-size: clamp(4.2rem, min(17vw, 19svh), 12.5rem);
  line-height: 0.84;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
  text-shadow: 0 4px 40px rgb(0 0 0 / 0.35);
}
.hero-lead { max-width: 40ch; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: #e4e3df; margin-bottom: var(--s-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-4); padding-block: var(--s-4) var(--s-6); }
.hero-dots { display: flex; gap: 6px; }
.hero-dots span { width: 22px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.25); }
.hero-dots span.is-active { background: var(--accent); }
#heroPause .i-play { display: none; }
#heroPause[aria-pressed="true"] .i-play { display: block; }
#heroPause[aria-pressed="true"] .i-pause { display: none; }

.page-hero { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero-scrim { z-index: -1; }
.page-hero-inner { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-8); }
.page-title { font-size: clamp(2.8rem, 7vw, 5.6rem); margin-bottom: var(--s-4); max-width: 16ch; }
.page-hero .hero-lead { margin-bottom: var(--s-6); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--s-9); }
@media (min-width: 1024px) { .section { padding-block: var(--s-10); } }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: var(--s-7); }
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }
.section-head-split { display: grid; gap: var(--s-4); align-items: end; }
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 1.1fr 1fr; gap: var(--s-7); }
  .section-head-split .section-lead { margin-top: 0; }
}

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* why */
.why { padding-block: var(--s-8); border-bottom: 1px solid var(--line); }
.why .section-head { margin-bottom: var(--s-6); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid:not(.why-grid-2) { grid-template-columns: repeat(4, 1fr); } }
.why-item { padding-top: var(--s-4); border-top: 2px solid var(--line-strong); }
.why-item svg { color: var(--accent); margin-bottom: var(--s-3); }
.why-item h3 { font-family: var(--font-display); font-size: 1.45rem; text-transform: var(--display-case); letter-spacing: 0.02em; margin-bottom: 6px; }
.why-item p { color: var(--text-muted); }

/* services */
.service-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.service-card {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--t) ease, transform var(--t) var(--ease-out);
}
.service-card:hover { border-color: rgb(255 181 71 / 0.45); transform: translateY(-4px); }
.service-num { position: absolute; inset-block-start: var(--s-5); inset-inline-end: var(--s-5); font-family: var(--font-display); font-weight: 600; color: var(--text-muted); letter-spacing: 0.1em; }
.service-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin-bottom: var(--s-5); }
.service-card h3 { font-family: var(--font-display); font-size: 1.65rem; text-transform: var(--display-case); margin-bottom: var(--s-3); }
.service-card p { color: var(--text-muted); }

/* event gallery */
.event-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: var(--s-5); }
  .event-tile.is-wide { grid-column: span 2; grid-row: span 2; }
}
.event-tile { position: relative; min-height: 240px; border-radius: var(--radius); overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: var(--surface); }
.event-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease-out); }
.event-tile:hover img { transform: scale(1.05); }
.event-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 8 10 / 0) 45%, rgb(7 8 10 / 0.9) 100%); }
.event-tile h3 { position: absolute; inset-inline: var(--s-5); inset-block-end: var(--s-5); font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); text-transform: var(--display-case); text-wrap: balance; }
.event-tile.is-wide h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .process:not(.process-vertical) { grid-template-columns: repeat(3, 1fr); } }
.process li { padding: var(--s-5) 0; border-top: 2px solid var(--line-strong); transition: border-color var(--t) ease; }
.process li:hover { border-top-color: var(--accent); }
.process-step { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: var(--s-4); }
.process h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: var(--display-case); margin-bottom: var(--s-2); }
.process p { color: var(--text-muted); }
.process-vertical li { display: grid; grid-template-columns: 64px 1fr; column-gap: var(--s-4); padding: var(--s-4) 0; }
.process-vertical .process-step { grid-row: span 2; font-size: 2.4rem; margin: 0; }

/* crew banner (home) */
.crew-banner { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-10); }
.crew-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.crew-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(7 8 10 / 0.92) 0%, rgb(7 8 10 / 0.6) 60%, rgb(7 8 10 / 0.35) 100%); }
[dir="rtl"] .crew-banner::after { background: linear-gradient(270deg, rgb(7 8 10 / 0.92) 0%, rgb(7 8 10 / 0.6) 60%, rgb(7 8 10 / 0.35) 100%); }
.crew-banner-inner .section-lead { margin-bottom: var(--s-6); color: #d6d8dd; }

/* crew page: roles, benefits */
.role-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }
.role-card { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); border-inline-start: 3px solid var(--accent); }
.role-card h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: var(--display-case); margin-bottom: 6px; }
.role-card p { color: var(--text-muted); }
.benefits-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .benefits-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.benefits-side { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.side-title { font-family: var(--font-display); font-size: 1.7rem; text-transform: var(--display-case); margin-bottom: var(--s-3); }

/* realizations (only rendered when the admin adds real ones) */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-muted); font-family: var(--font-display); font-weight: 600; text-transform: var(--display-case); }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter .count { opacity: 0.7; margin-inline-start: 4px; }
.real-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .real-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .real-grid { grid-template-columns: repeat(3, 1fr); } }
.real-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); text-align: start; isolation: isolate; }
.real-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease-out); }
.real-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 8 10 / 0) 35%, rgb(7 8 10 / 0.92) 100%); }
.real-card:hover img { transform: scale(1.05); }
.real-card-body { position: absolute; inset: auto 0 0; padding: var(--s-5); display: grid; gap: 6px; }
.real-card h3 { font-family: var(--font-display); font-size: 1.6rem; text-transform: var(--display-case); color: var(--text); }
.real-meta { color: #cfd2d8; font-size: 0.95rem; }
.real-card .tag { justify-self: start; background: rgb(7 8 10 / 0.7); }
.real-play { position: absolute; inset-block-start: var(--s-4); inset-inline-end: var(--s-4); padding: 6px 12px; border-radius: 999px; background: rgb(7 8 10 / 0.7); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; color: var(--text); }

.notice, .grid-message { padding: var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-muted); text-align: center; max-width: 60ch; margin-inline: auto; }

/* ==========================================================================
   Forms (quote + application)
   ========================================================================== */
.quote-wrap { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .quote-wrap { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .quote-wrap > .section-head { position: sticky; top: calc(var(--header-h) + var(--s-6)); margin-bottom: 0; }
}
.check-list { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7 12.5 3 3 7-7' stroke='%23FFB547' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.form-panel { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
@media (min-width: 768px) { .form-panel { padding: var(--s-7); } }
.js-form { display: grid; gap: var(--s-5); }
.form-sub { font-family: var(--font-display); font-size: 1.3rem; text-transform: var(--display-case); color: var(--accent); letter-spacing: var(--display-tracking); }
.field-group legend, .field label { display: block; margin-bottom: var(--s-2); font-weight: 600; font-size: 0.98rem; }
.field-group legend { padding: 0; }
.req { color: var(--accent); }
.hint { font-weight: 400; color: var(--text-muted); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.chip:hover span { color: var(--text); border-color: var(--text); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chip input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-group[data-invalid] .chip span { border-color: rgb(255 122 112 / 0.6); }

.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row-narrow { grid-template-columns: 1fr 1fr; } }
.field { min-width: 0; }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7d828c; }
.field input:hover, .field textarea:hover { border-color: rgb(255 255 255 / 0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(255 181 71 / 0.25); }
.field input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.95rem;
}
.field input[type="file"]::file-selector-button {
  margin-inline-end: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 0.93rem; margin-top: 6px; }
.field-error:empty { display: none; }
.field-help { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.field-check label { font-weight: 400; color: var(--text-muted); margin: 0; cursor: pointer; }
.field-check .field-error { grid-column: 2; }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-summary { padding: var(--s-4) var(--s-5); border: 1px solid var(--danger); border-inline-start-width: 4px; border-radius: var(--radius-sm); background: rgb(255 122 112 / 0.08); }
.error-summary h3 { font-family: var(--font-body); font-size: 1rem; margin-bottom: var(--s-2); }
.error-summary ul { margin: 0; padding-inline-start: 1.2em; }
.error-summary a { color: var(--danger); }

.btn-submit { justify-self: start; }
.btn-submit .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgb(20 13 2 / 0.3); border-top-color: var(--on-accent); border-radius: 50%; animation: spin 700ms linear infinite; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit:disabled { opacity: 0.7; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 1.5em; color: var(--text-muted); }
.form-status.is-error { color: var(--danger); }

.form-success { text-align: center; padding: var(--s-6) 0; color: var(--success); }
.form-success svg { margin-inline: auto; }
.form-success h3 { font-family: var(--font-display); font-size: 2rem; text-transform: var(--display-case); color: var(--text); margin: var(--s-4) 0 var(--s-3); }
.form-success p { color: var(--text-muted); max-width: 44ch; margin: 0 auto var(--s-5); }

/* ==========================================================================
   Contact, legal, footer
   ========================================================================== */
.contact-grid { display: grid; gap: var(--s-4); max-width: 1180px; margin-inline: auto; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-card { display: grid; gap: 4px; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--t) ease, background-color var(--t) ease; }
a.contact-card:hover { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.contact-card svg { color: var(--accent); margin-bottom: var(--s-3); }
.contact-label { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.contact-value { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-social-wrap { margin-top: var(--s-6); text-align: center; }
.contact-social, .footer-social { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; gap: var(--s-2); justify-content: center; }
.contact-social a, .footer-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); }
.contact-social a:hover, .footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social { margin: 0; }

.legal { padding-top: calc(var(--header-h) + var(--s-8)); }
.legal-wrap { max-width: 780px; }
.legal h1 { margin-bottom: var(--s-3); }
.legal h2 { font-family: var(--font-display); font-size: 1.6rem; text-transform: var(--display-case); margin: var(--s-6) 0 var(--s-2); }
.legal p { color: #d4d6db; margin-top: var(--s-3); }

.site-footer { padding-block: var(--s-7); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.brand-sm .brand-mark { width: 28px; height: 28px; }
.brand-sm .brand-word { font-size: 1.3rem; }
.footer-tag { font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer-links a { color: var(--text-muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.93rem; }

.btn-link { background: transparent; color: var(--text); padding-inline: 8px; }
.btn-link:hover { color: var(--accent); }
.play-dot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.play-dot svg { transform: none !important; }
.film-dialog { width: min(1200px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #000; overflow: hidden; }
.film-dialog::backdrop { background: rgb(0 0 0 / 0.88); }
.film-dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ==========================================================================
   Realization dialog
   ========================================================================== */
.real-dialog { width: min(1120px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); overflow: auto; }
.real-dialog::backdrop { background: rgb(0 0 0 / 0.82); }
.dlg-inner { display: grid; position: relative; }
@media (min-width: 900px) { .dlg-inner { grid-template-columns: 1.35fr 1fr; } }
.dlg-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2; }
.dlg-media { background: #000; aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .dlg-media { aspect-ratio: auto; min-height: 520px; } }
.dlg-media img, .dlg-media video { width: 100%; height: 100%; object-fit: cover; }
.dlg-body { padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.dlg-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-muted); padding-inline-end: 48px; }
.dlg-body h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.7rem); text-transform: var(--display-case); }
.dlg-audience { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--accent); }
.dlg-sub { margin-top: var(--s-3); font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.dlg-scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dlg-scope li { display: flex; gap: 10px; }
.dlg-scope li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; background: var(--accent); }
.dlg-actions { margin-top: auto; padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.dlg-nav { display: flex; align-items: center; gap: var(--s-2); }
.dlg-count { min-width: 4ch; text-align: center; color: var(--text-muted); }
body.dialog-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Subpages
   ========================================================================== */
.page-hero-compact { min-height: min(62svh, 560px); }
.page-hero-compact .page-hero-inner { padding-bottom: var(--s-7); }
.page-hero-compact + .section, .page-hero-compact + .why { border-top: 1px solid var(--line); }
.section-more { margin-top: var(--s-6); }
.cta-band { background: linear-gradient(135deg, var(--surface) 0%, var(--bg-alt) 100%); border-top: 1px solid var(--line); }
.cta-band-inner { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) { .cta-band-inner { grid-template-columns: 1.4fr auto; } }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.main-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--accent); }
.page-hero-compact + .section { padding-top: var(--s-7); }
