/* Neptuniva Games — shared styles.
   Tokens: light by default, dark via prefers-color-scheme or [data-theme=dark]; [data-theme=light] forces light.
   Style: "clay" (thick outline + solid bottom shadow, like the in-game buttons), Nunito. */

:root {
  --bg: #f3f5ff;
  --bg-glow: #dfe5ff;
  --surface: #ffffff;
  --surface-2: #eef1ff;
  --text: #15173f;
  --muted: #4d5380;
  --line: #15173f;
  --line-soft: #d9ddf6;
  --primary: #2f6dff;
  --primary-ink: #ffffff;
  --accent: #ffc533;
  --accent-ink: #15173f;
  --green: #22b864;
  --red: #ef4757;
  --violet: #8a52ff;
  --cyan: #12b9d8;
  --shadow: rgba(21, 23, 63, .9);
  --focus: #2f6dff;
  --radius: 22px;
  --radius-sm: 14px;
  --w: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11133a;
    --bg-glow: #2a2f8f;
    --surface: #1d2160;
    --surface-2: #262b72;
    --text: #eef0ff;
    --muted: #b3b9ec;
    --line: #070821;
    --line-soft: #343a8a;
    --primary: #4a86ff;
    --accent: #ffc533;
    --green: #2ed573;
    --red: #ff5a69;
    --violet: #a46dff;
    --cyan: #2ad7f3;
    --shadow: rgba(4, 5, 24, .95);
    --focus: #ffc533;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #11133a;
  --bg-glow: #2a2f8f;
  --surface: #1d2160;
  --surface-2: #262b72;
  --text: #eef0ff;
  --muted: #b3b9ec;
  --line: #070821;
  --line-soft: #343a8a;
  --primary: #4a86ff;
  --accent: #ffc533;
  --green: #2ed573;
  --red: #ff5a69;
  --violet: #a46dff;
  --cyan: #2ad7f3;
  --shadow: rgba(4, 5, 24, .95);
  --focus: #ffc533;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 85% -10%, var(--bg-glow), transparent 70%),
    radial-gradient(700px 420px at -10% 10%, color-mix(in srgb, var(--bg-glow) 60%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -22px rgba(0,0,0,.6);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .logo { width: 46px; height: 46px; flex: none; overflow: visible; }
.brand:hover .logo { animation: wobble .6s ease; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 30% { rotate: -8deg; } 65% { rotate: 6deg; } }
@media (prefers-reduced-motion: no-preference) {
  .logo-wave { animation: wave 3.2s linear infinite; }
  .logo-wave.b { animation-duration: 4.4s; animation-direction: reverse; }
}
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-12px); } }
.wm { display: grid; line-height: 1; }
.wm-name {
  font-weight: 900; font-size: 1.42rem; letter-spacing: -.01em;
  background: linear-gradient(95deg, var(--primary) 0%, var(--violet) 55%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wm-sub {
  font-weight: 900; font-size: .64rem; text-transform: uppercase; letter-spacing: .62em; color: var(--muted);
  margin-top: 3px; padding-left: .1em; display: flex; justify-content: space-between;
}
.nav { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; color: var(--text); font-weight: 800; padding: 10px 14px; border-radius: 12px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
/* Nav links: plain text; the current page's link becomes a clay button with liquid + bubbles. */
.nav a.nav-link {
  position: relative; isolation: isolate; height: 44px; min-height: 44px; padding: 0 16px; margin: 0 2px;
  border: 3px solid transparent; border-radius: 14px; transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.nav a.nav-link:hover { background: var(--surface-2); }
.nav a.nav-link[aria-current="page"] { background: var(--surface); border-color: var(--line); box-shadow: 0 3px 0 var(--shadow); }
.nav a.nav-link[aria-current="page"]:active { transform: translateY(3px); box-shadow: 0 0 0 var(--shadow); }
.nav-link .lbl { position: relative; z-index: 2; }
.nav-link .liquid, .nav-link .bubbles { display: none; position: absolute; inset: 0; border-radius: 11px; overflow: hidden; z-index: 1; pointer-events: none; }
.nav-link[aria-current="page"] .liquid, .nav-link[aria-current="page"] .bubbles { display: block; }
.nav-link .liquid::before {
  content: ""; position: absolute; left: -40px; right: -40px; bottom: 0; height: 30%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath d='M0 4c5-4 15 4 20 0s15 4 20 0v4H0z' fill='%234a86ff'/%3E%3C/svg%3E") repeat-x top / 40px 8px,
    linear-gradient(#4a86ff, #4a86ff) no-repeat bottom / 100% calc(100% - 7px);
  opacity: .55;
}
.nav-link .bubbles i {
  position: absolute; bottom: 18%; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid #4a86ff; background: transparent; opacity: 0;
}
.nav-link .bubbles i:nth-child(1) { left: 12%; }
.nav-link .bubbles i:nth-child(2) { left: 48%; width: 6px; height: 6px; }
.nav-link .bubbles i:nth-child(3) { left: 82%; width: 7px; height: 7px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-link .bubbles i { animation: rise 2.6s ease-in infinite; }
  .nav-link .bubbles i:nth-child(2) { animation-delay: .9s; }
  .nav-link .bubbles i:nth-child(3) { animation-delay: 1.7s; }
}
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; transform: translateY(-3px) scale(1); } 85% { opacity: .8; } 100% { transform: translateY(-22px) scale(1.05); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .nav-link .liquid::before { animation: slosh 2.6s linear infinite; }
}
@keyframes slosh { from { transform: translateX(0); } to { transform: translateX(40px); } }
.icon-btn {
  min-width: 44px; height: 44px; border-radius: 13px; border: 3px solid var(--line);
  background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer;
  box-shadow: 0 3px 0 var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--shadow); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn svg.ic-auto { width: 26px; height: 26px; } /* 'auto' = sun outline with a moon inside (after Material's brightness_4) */
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--primary); --ink: var(--primary-ink);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 16px; border: 3px solid var(--line);
  background: var(--b); color: var(--ink); font: inherit; font-weight: 900; text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--shadow), inset 0 3px 0 rgba(255,255,255,.28);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--shadow), inset 0 3px 0 rgba(255,255,255,.28); }
.btn.gold { --b: var(--accent); --ink: var(--accent-ink); }
.btn.ghost { --b: var(--surface); --ink: var(--text); }
.btn[aria-disabled="true"] { cursor: default; filter: saturate(.6); opacity: .85; }
.btn svg { width: 22px; height: 22px; }
.store-badge { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 60px; min-width: 200px; padding: 0 22px 0 16px; border-radius: 16px; background: #0b0c1e; color: #fff; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--shadow); text-decoration: none; }
:root[data-theme="dark"] .store-badge { border-color: #3a4096; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store-badge { border-color: #3a4096; } }
.store-badge[aria-disabled="true"] { cursor: default; }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge .t { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge small { font-size: .72rem; font-weight: 700; opacity: .8; }
.store-badge strong { font-size: 1.25rem; font-weight: 900; letter-spacing: -.01em; }
.store-badge .chip { position: absolute; top: -12px; right: -10px; background: var(--accent); color: var(--accent-ink); border: 2.5px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 900; padding: 2px 9px; box-shadow: 0 2px 0 var(--shadow); transform: rotate(4deg); }
.store-btn small { display: block; font-size: .7rem; font-weight: 700; opacity: .85; line-height: 1; }
.store-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }

/* ---------- clay card ---------- */
.card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 7px 0 var(--shadow);
}

/* ---------- home ---------- */
.hero { padding: 64px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 340px; margin: 0 auto; } }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
/* Optical alignment: the tallest tube's cap sits on the title's top line, the tube bottoms a little below the button. */
@media (min-width: 861px) { .hero-art { translate: 0 28px; } }
@media (prefers-reduced-motion: no-preference) {
  /* Each tube floats on its own clock (5.2 / 6.7 / 5.9 s, coprime-ish): the pattern never lines up into a wave,
     so it reads as random; the outer two rest at the same height. */
  .hero-art .tube { animation: bob 5.2s ease-in-out infinite; } /* no transform-origin here: it would move the SVG rotate() pivot and lift the right tube above the left one */
  .hero-art .t-b { animation-duration: 6.7s; animation-delay: -2.3s; }
  .hero-art .t-c { animation-duration: 5.9s; animation-delay: -4.1s; }
  .hero-art .sparkles { animation: twinkle 3s ease-in-out infinite; }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 span { background: linear-gradient(90deg, var(--primary), var(--violet), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--line-soft); font-weight: 800; font-size: .85rem; color: var(--muted);
  margin-bottom: 18px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
.section { padding: 28px 0 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.game-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease; }
.game-card:hover { transform: translateY(-4px); }
.game-cover { position: relative; aspect-ratio: 16 / 10; background: var(--game-bg, linear-gradient(160deg, #3a40c4, #151755)); overflow: hidden; border-bottom: 3px solid var(--line); }
.game-cover .shots { position: absolute; inset: 14% -6% -22% 30%; display: flex; align-items: flex-start; gap: 12px; transform: rotate(-8deg); }
/* Keep the screenshots' own proportions (a flex row stretched them to its height: squashed). */
.game-cover .shots img { width: 46%; height: auto; aspect-ratio: 1080 / 2316; object-fit: cover; flex: none; border-radius: 16px; padding: 3px; background: var(--line); box-shadow: 0 6px 0 rgba(0,0,0,.35); }
.game-cover .icon { position: absolute; left: 22px; bottom: 22px; width: 92px; height: 92px; border-radius: 24px; border: 3px solid var(--line); box-shadow: 0 5px 0 rgba(0,0,0,.4); }
.game-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-body h3 { font-size: 1.5rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tag { font-size: .8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.soon { background: var(--accent); color: var(--accent-ink); }
.game-card.next { position: relative; overflow: hidden; min-height: 340px; display: grid; place-items: center; text-align: center; }
.game-card.next .scene { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }
.game-card.next .frost {
  position: absolute; inset: 0;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"),
    color-mix(in srgb, var(--surface) 38%, transparent);
}
.game-card.next .next-copy { position: relative; padding: 24px; }
.game-card.next .next-title {
  font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2rem); line-height: 1.1; color: #fff; margin: 0 0 8px;
  -webkit-text-stroke: 7px #14123a; paint-order: stroke fill; text-shadow: 0 5px 0 #14123a;
}
.game-card.next .next-sub { display: inline-block; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: rgba(20,18,58,.55); color: #fff; }

/* ---------- game page ---------- */
.game-hero { padding: 56px 0 32px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .game-hero { grid-template-columns: 1fr; } }
.game-hero .app-icon { width: 112px; height: 112px; border-radius: 28px; border: 3px solid var(--line); box-shadow: 0 6px 0 var(--shadow); margin-bottom: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.phones { display: flex; justify-content: center; gap: 18px; perspective: 1200px; }
/* The dark frame is padding over a dark background, not a border: on a tilted image a border leaves a hairline of the page showing between frame and picture. */
.phone { width: min(44%, 230px); height: auto; aspect-ratio: 1080 / 2316; object-fit: cover; border-radius: 32px; padding: 4px; background: var(--line); overflow: hidden; box-shadow: 0 10px 0 var(--shadow); }
.phone:first-child { transform: rotate(-5deg) translateY(16px); }
.phone:last-child { transform: rotate(5deg) translateY(-8px); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature { padding: 24px; }
.feature .fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--shadow); margin-bottom: 14px; color: #fff; }
.feature .fi svg { width: 26px; height: 26px; }
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.gallery img { width: 220px; height: auto; aspect-ratio: 1080 / 2316; object-fit: cover; flex: none; border-radius: 26px; padding: 3px; background: var(--line); box-shadow: 0 6px 0 var(--shadow); scroll-snap-align: start; }
.links-card { padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------- document pages (privacy, support) ---------- */
.doc-head { padding: 48px 0 18px; }
.crumbs { font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: inherit; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.meta .tag { background: var(--surface); border: 2px solid var(--line-soft); height: 40px; padding: 0 14px; display: inline-flex; align-items: center; font-size: .85rem; line-height: 1; }
.meta .lang { margin-left: auto; height: 40px; align-items: center; padding: 3px; }
.meta .lang a { min-height: 30px; padding: 4px 12px; display: inline-flex; align-items: center; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-bottom: 64px; align-items: start; }
.doc > * { min-width: 0; }
.prose { overflow-wrap: anywhere; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: 92px; padding: 18px; }
.toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .92rem; line-height: 1.35; }
.toc a::before { content: counter(t); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc a:hover, .toc a.active { background: var(--surface-2); }
@media (max-width: 900px) {
  .toc { position: static; }
  .toc ol { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
}
.prose { padding: 34px clamp(20px, 4vw, 44px); }
.prose section { padding-top: 6px; }
.prose section + section { border-top: 2px dashed var(--line-soft); margin-top: 26px; padding-top: 26px; }
.prose h2 { display: flex; gap: 12px; align-items: baseline; font-size: 1.35rem; }
.prose h2 .n { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: .95rem; background: var(--surface-2); border: 2px solid var(--line-soft); }
.prose h2 a.anchor { margin-left: auto; text-decoration: none; color: var(--muted); opacity: 0; font-size: 1rem; }
.prose h2:hover a.anchor, .prose h2 a.anchor:focus-visible { opacity: 1; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 1em; }
.kv dt { font-weight: 800; color: var(--muted); }
.kv dd { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 2px solid var(--line-soft); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; }
th { background: var(--surface-2); font-weight: 900; }
tr + tr td { border-top: 1px solid var(--line-soft); }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--green) 14%, var(--surface)); border: 2px solid color-mix(in srgb, var(--green) 45%, transparent); margin: 0 0 1em; }
.callout svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }

/* ---------- support ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 36px; }
.topic { padding: 22px; text-decoration: none; color: inherit; display: flex; gap: 16px; align-items: flex-start; transition: transform .2s ease; }
.topic:hover { transform: translateY(-3px); }
.topic .fi { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; border: 3px solid var(--line); box-shadow: 0 3px 0 var(--shadow); }
.topic .fi svg { width: 22px; height: 22px; }
.topic h3 { margin: 0 0 4px; }
.topic p { margin: 0; color: var(--muted); font-size: .95rem; }
.faq { display: grid; gap: 14px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 900; display: flex; gap: 14px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 12px; height: 12px; border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 22px 18px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
.faq h2 { margin: 24px 0 10px; font-size: 1.1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact { padding: 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 28px; margin-top: 24px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 28px; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--text); text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--primary); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--muted); }
.lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line-soft); }
.lang a, .lang button { border: 0; background: none; font: inherit; font-weight: 800; color: var(--muted); padding: 6px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; min-height: 36px; }
.lang [aria-current="true"] { background: var(--primary); color: var(--primary-ink); }

/* motion */
/* Only hidden when JS runs (html.js), and site.js reveals everything after 1.5 s at the latest. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease var(--d, 0s), transform .45s cubic-bezier(.2, .9, .3, 1.2) var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }
