/* Palette: same as the app dark theme (ui/theme/Color.kt) */
:root {
  --bg: #111412;
  --panel: #20251f;
  --panel-light: #292e27;
  --forest: #384735;
  --olive: #707653;
  --olive-bright: #8c9467;
  --sand: #d0c6a7;
  --sand-dark: #9e957d;
  --orange: #c56d32;
  --text: #e5e1d5;
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--sand); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--sand-dark); font-size: 15px; }
.eyebrow {
  color: var(--olive-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  background: var(--olive);
  color: #f4f1e8;
  font-weight: 700; font-size: 16px; letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px -12px rgba(112, 118, 83, .7);
}
.btn:hover { background: var(--olive-bright); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--ghost { background: transparent; border-color: var(--sand); color: var(--sand); box-shadow: none; }
.btn--ghost:hover { background: rgba(208, 198, 167, .08); }
.btn--small { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn--disabled { background: var(--panel-light); color: var(--sand-dark); box-shadow: none; cursor: default; }
.btn--disabled:hover { transform: none; background: var(--panel-light); }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(17, 20, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(158, 149, 125, .14);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; font-weight: 800; letter-spacing: .2em; color: var(--sand); }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 20px; margin-left: auto; white-space: nowrap; }
.nav__links a { text-decoration: none; color: var(--sand-dark); font-weight: 600; font-size: 14px; }
.nav__inner > .lang, .nav__inner > .btn { flex-shrink: 0; }
.nav__links a:hover { color: var(--sand); }

/* Relief: contour lines like on a topographic map */
.topo {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23384735' stroke-width='1.2'%3E%3Cpath d='M-50 120c90-60 180 40 270-10s170-90 260-20 120 60 170 30'/%3E%3Cpath d='M-50 170c100-50 170 50 270 0s160-80 250-10 130 70 180 40'/%3E%3Cpath d='M-50 220c110-40 160 60 270 10s150-70 240 0 140 80 190 50'/%3E%3Cpath d='M-50 330c80 30 150-50 240-20s140 90 230 60 120-70 230-40'/%3E%3Cpath d='M-50 380c90 30 150-40 240-10s150 90 240 60 110-60 220-30'/%3E%3Cpath d='M-50 430c100 30 150-30 240 0s160 90 250 60 100-50 210-20'/%3E%3Cpath d='M-50 520c120-30 200 30 300 10s200-60 400-10'/%3E%3Cellipse cx='420' cy='300' rx='60' ry='34'/%3E%3Cellipse cx='420' cy='300' rx='100' ry='60'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(112, 118, 83, .32), transparent 65%);
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 19px; color: #cfcab9; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 34px; list-style: none; padding: 0; margin: 0; color: var(--sand-dark); }
.hero__facts b { display: block; color: var(--sand); font-size: 30px; font-weight: 800; line-height: 1.1; }
.hero__phones { position: relative; height: 600px; }

/* Phone frame for a screenshot */
.phone { margin: 0; }
.phone img {
  width: 100%;
  height: auto; /* otherwise the height="1200" attribute overrides aspect-ratio */
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border-radius: 34px;
  border: 8px solid #0a0c0b;
  outline: 1px solid rgba(208, 198, 167, .18);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  background: var(--panel);
}
.phone figcaption { text-align: center; color: var(--sand-dark); font-size: 14px; font-weight: 600; margin-top: 14px; }
.hero__phones .phone { position: absolute; width: 250px; }
.phone--front { right: 10px; top: 0; z-index: 2; transform: rotate(3deg); }
.phone--back { right: 190px; top: 80px; opacity: .9; transform: rotate(-7deg); }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, #151915, #131713); border-block: 1px solid rgba(158, 149, 125, .08); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.card {
  background: var(--panel);
  border: 1px solid rgba(158, 149, 125, .16);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(140, 148, 103, .55); }
.card p { color: #c4bfae; font-size: 15px; margin: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--forest);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--sand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split--reverse .split__text { order: 2; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .phone:nth-child(2) { transform: translateY(-28px); }

.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: #cfcab9; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0c6a7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks b { color: var(--sand); }

.legend { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legend li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.legend__line { width: 34px; height: 6px; border-radius: 6px; background: var(--c); box-shadow: 0 0 12px -2px var(--c); }
.stat { color: var(--sand-dark); }
.stat b { color: var(--sand); font-size: 22px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid rgba(158, 149, 125, .16); border-radius: var(--radius); padding: 28px; }
.steps p { color: #c4bfae; font-size: 15px; margin: 0; }
.steps__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; border: 2px solid var(--olive); color: var(--sand); font-weight: 800; font-size: 18px;
}

.maps { margin-top: 36px; background: var(--panel); border: 1px solid rgba(158, 149, 125, .16); border-radius: var(--radius); padding: 24px 28px; }
.maps ul { list-style: none; padding: 0; margin: 0; }
.maps li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(158, 149, 125, .12); }
.maps li:first-child { border-top: 0; }
.maps small { color: var(--sand-dark); }

details.faq {
  background: var(--panel); border: 1px solid rgba(158, 149, 125, .16); border-radius: 14px;
  padding: 0 22px; margin-top: 12px;
}
details.faq[open] { border-color: rgba(140, 148, 103, .5); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--sand); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
.lang summary { list-style: none; }
.faq summary::after { content: "+"; color: var(--olive-bright); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: #c4bfae; padding-bottom: 20px; margin: 0; }

.cta { position: relative; overflow: hidden; padding: 110px 0; text-align: center; background: radial-gradient(ellipse at center, #1d241c, var(--bg) 70%); }
.cta__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.cta img { border-radius: 24px; margin-bottom: 24px; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .9); }
.cta h2 { max-width: none; }
.cta p { color: var(--sand-dark); margin-bottom: 28px; }

.footer { border-top: 1px solid rgba(158, 149, 125, .14); padding: 28px 0; font-size: 14px; color: var(--sand-dark); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Language picker: <details> without JS */
.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer;
  border: 1px solid rgba(158, 149, 125, .3); border-radius: 12px; color: var(--sand); font-weight: 600; font-size: 14px;
}
.lang summary::after { content: none; }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 190px; margin: 0; padding: 6px;
  list-style: none; background: var(--panel); border: 1px solid rgba(158, 149, 125, .25); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
}
.lang a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 15px; }
.lang a:hover { background: var(--panel-light); }
.lang a[aria-current] { color: var(--sand); font-weight: 700; }
details.lang { background: none; border: 0; padding: 0; margin: 0; }
.nav__links + .lang { margin-left: 8px; }

/* Section menu in the header: <details>, like the language picker */
.nav__links { align-items: center; }
.menu { position: relative; }
.menu summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  color: var(--sand-dark); font-weight: 600; font-size: 14px;
}
.menu summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.menu[open] summary, .menu summary:hover { color: var(--sand); }
.menu ul {
  position: absolute; left: -12px; top: calc(100% + 14px); z-index: 20; min-width: 240px; margin: 0; padding: 6px;
  list-style: none; background: var(--panel); border: 1px solid rgba(158, 149, 125, .25); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
}
.menu ul a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: 15px; }
.menu ul a:hover { background: var(--panel-light); color: var(--sand); }

/* Section menu on narrow screens: <details> with an icon, full-width list under the header */
.burger { display: none; flex-shrink: 0; }
.burger summary {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; list-style: none;
  border: 1px solid rgba(158, 149, 125, .3); border-radius: 12px; color: var(--sand);
}
.burger summary::-webkit-details-marker { display: none; }
.burger summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.burger[open] summary { background: var(--panel-light); }
.burger ul {
  position: absolute; left: 16px; right: 16px; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 6px;
  max-height: calc(100vh - 90px); overflow-y: auto;
  list-style: none; background: var(--panel); border: 1px solid rgba(158, 149, 125, .25); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
}
.burger ul a { display: block; padding: 12px 14px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 16px; }
.burger ul a:hover { background: var(--panel-light); color: var(--sand); }

/* Text blocks without screenshots: text and a column on the right */
.split--text { align-items: start; }
/* Landscape screenshots (tablet, head unit, TV): text on top, screenshots in a 2×2 grid */
.split--wide { grid-template-columns: 1fr; gap: 32px; }
.split--wide .split__text { max-width: 760px; }
.gallery.gallery--wide { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery--wide .screen:nth-child(2) { transform: none; }
.screen { margin: 0; }
.screen img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(214, 196, 160, .25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); background: #111412; }
.screen figcaption { text-align: center; color: var(--sand-dark); font-size: 14px; font-weight: 600; margin-top: 12px; }
/* "In development" note in the hero */
.devnote { display: inline-block; margin: 0 0 18px; padding: 8px 14px; line-height: 1.5;
  border-radius: 14px; background: rgba(197, 109, 50, .14); border: 1px solid rgba(197, 109, 50, .45); font-size: 14px; }
.devnote a { color: inherit; font-weight: 700; white-space: nowrap; }
.devnote__dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #c56d32;
  vertical-align: 1px; }
/* Feedback */
.feedback { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.feedback__form { display: grid; gap: 10px; }
.feedback__form label { font-weight: 600; font-size: 14px; }
.feedback__form textarea, .feedback__form input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(214, 196, 160, .3); background: rgba(0, 0, 0, .25); color: inherit; font: inherit; }
.feedback__form .btn { justify-self: start; margin-top: 6px; border: 0; cursor: pointer; }
.feedback__trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.feedback__done { font-size: 18px; font-weight: 700; padding: 18px; border-radius: 12px; background: rgba(112, 118, 83, .25); }
.feedback__error { color: #e07a4f; margin: 0; font-size: 14px; }

/* Maps: available and upcoming */
.maps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.maps-grid .maps { margin-top: 0; }
.maps--soon li span { color: var(--sand-dark); }
.maps li a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(158, 149, 125, .35); }
.maps li a:hover { color: var(--sand); }
/* Country maps page (/maps/<slug>/) */
.country h1 { font-size: clamp(30px, 4.4vw, 52px); }
.country h2 { font-size: 26px; margin-top: 40px; max-width: none; }
.country .eyebrow a { color: inherit; text-decoration: none; }
.country-packs { list-style: none; padding: 0; margin: 16px 0; background: var(--panel); border: 1px solid rgba(158, 149, 125, .16); border-radius: var(--radius); padding: 8px 24px; }
.country-packs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(158, 149, 125, .12); }
.country-packs li:first-child { border-top: 0; }
.country-packs small { color: var(--sand-dark); white-space: nowrap; }
.country-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.country-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.country-links a { color: var(--sand); }

/* APK files */
.downloads { display: grid; gap: 12px; }
.apk {
  display: grid; gap: 4px; padding: 18px 20px; text-decoration: none;
  background: var(--panel); border: 1px solid rgba(158, 149, 125, .2); border-radius: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.apk:hover { border-color: var(--olive-bright); transform: translateY(-2px); }
.apk--main { background: var(--forest); border-color: var(--olive); }
.apk__title { display: flex; align-items: center; gap: 10px; color: var(--sand); font-weight: 700; }
.apk__title svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.apk__meta { color: var(--sand-dark); font-size: 14px; }
.apk__sha { color: var(--sand-dark); font-size: 11px; word-break: break-all; opacity: .8; }

/* Donations */
.donations { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.donation {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 18px 20px;
  background: var(--panel); border: 1px solid rgba(158, 149, 125, .2); border-radius: 16px;
}
.donation__title { color: var(--sand); font-weight: 700; grid-column: 1 / -1; }
.donation__value { font-size: 14px; color: var(--text); word-break: break-all; user-select: all; }
.donation__note { grid-column: 1 / -1; color: var(--sand-dark); }
.donation .btn { width: auto; }

/* Responsive */
/* On narrow screens menu items are hidden: logo, language and "Download" remain */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links + .lang { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .maps-grid { grid-template-columns: 1fr; }
  .nav__inner .btn { margin-left: 0; }
  .hero { padding-top: 40px; }
  .hero__grid, .split, .feedback { grid-template-columns: 1fr; }
  .gallery.gallery--wide { grid-template-columns: 1fr; overflow: visible; }
  .split--reverse .split__text { order: 0; }
  .hero__phones { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero__phones .phone { width: 220px; }
  .phone--front { right: 20px; }
  .phone--back { right: auto; left: 10px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .gallery .phone { scroll-snap-align: center; }
  .gallery .phone:nth-child(2) { transform: none; }
  .hero__phones { height: 440px; }
  .hero__phones .phone { width: 180px; }
  .btn { width: 100%; justify-content: center; }
  .nav__inner .btn { width: auto; }
  /* One-line header: logo, language (icon only), "Download" */
  .nav__inner { gap: 12px; }
  .brand span { letter-spacing: .12em; }
  .lang summary { padding: 8px 10px; }
  .lang summary span { display: none; }
  .nav .btn--small { padding: 9px 14px; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Releases */
.releases h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 40px; color: var(--sand); }
.release { border: 1px solid rgba(158, 149, 125, .2); border-radius: 18px; padding: 28px; margin-bottom: 24px; background: var(--panel); }
.release__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.release__head h2 { margin: 0; font-size: 28px; }
.release__component { color: var(--olive-bright); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.release time { color: var(--sand-dark); margin-left: auto; }
.release h3 { font-size: 16px; color: var(--sand); margin: 22px 0 8px; }
.release ul { margin: 0; padding-left: 20px; color: #c4bfae; }
.release ul.checks { padding-left: 0; gap: 8px; margin: 0; }
.release li { margin: 6px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sand); }
@media (max-width: 560px) { .release { padding: 20px; } }

/* Screenshot gallery and viewer */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-top: 28px; }
.shots__item { all: unset; cursor: zoom-in; display: grid; gap: 8px; text-align: center; }
.shots__item img {
  width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 18px;
  border: 5px solid #0a0c0b; outline: 1px solid rgba(208, 198, 167, .18); background: var(--panel);
  transition: transform .2s;
}
.shots__item:hover img, .shots__item:focus-visible img { transform: translateY(-4px); }
.shots__item span { color: var(--sand-dark); font-size: 13px; font-weight: 600; }
body.noscroll { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 9, .94);
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__frame { margin: 0; display: grid; justify-items: center; gap: 10px; max-height: 100%; overflow: hidden; }
.lightbox__frame img {
  max-height: calc(100vh - 90px); max-width: min(92vw, 520px); border-radius: 22px; cursor: zoom-in;
  transition: transform .2s; user-select: none; -webkit-user-drag: none;
}
.lightbox--zoom .lightbox__frame img { transform: scale(2.2); cursor: zoom-out; }
.lightbox--zoom .lightbox__nav, .lightbox--zoom figcaption { visibility: hidden; }
.lightbox figcaption { color: var(--sand); font-size: 14px; font-weight: 600; text-align: center; }
.lightbox__nav, .lightbox__close {
  all: unset; cursor: pointer; color: var(--sand); font-size: 44px; line-height: 1; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(208, 198, 167, .08); flex-shrink: 0;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(208, 198, 167, .18); }
.lightbox__close { position: absolute; top: 14px; right: 14px; font-size: 34px; }
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lightbox__nav { position: absolute; bottom: 18px; width: 46px; height: 46px; font-size: 36px; }
  .lightbox__prev { left: 18px; } .lightbox__next { right: 18px; }
  .lightbox__frame img { max-height: calc(100vh - 150px); }
}

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--olive); color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); cursor: pointer;
}
.to-top:hover { background: var(--olive-bright); }
.to-top[hidden] { display: none; }
.copy[hidden] { display: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.update-banner {
  display: block; padding: 10px 16px; text-align: center; font-size: 14px;
  background: var(--forest); color: var(--text); text-decoration: none;
}
.update-banner b { color: var(--sand); }
.update-banner:hover { background: var(--olive); }
.oss-banner {
  padding: 8px 16px; text-align: center; font-size: 14px;
  background: var(--panel); color: var(--sand); border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Documents (/legal/…) and the complaint form (/complaint/) */
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 28px; font-size: 14px; }
.legal__nav a { color: var(--sand-dark); text-decoration: none; }
.legal__nav a.current, .legal__nav a:hover { color: var(--sand); text-decoration: underline; }
.legal__doc { color: var(--text); line-height: 1.6; }
.legal__doc h1 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 8px; }
.legal__doc h2 { font-size: 20px; margin: 32px 0 10px; color: var(--sand); }
.legal__doc p, .legal__doc li { font-size: 16px; }
.legal__doc ul, .legal__doc ol { padding-left: 22px; }
.legal__doc a, .legal a { color: var(--sand); overflow-wrap: anywhere; }
.complaint-form { display: grid; gap: 16px; margin-top: 24px; }
.complaint-form label { display: grid; gap: 6px; color: var(--sand); font-weight: 600; font-size: 15px; }
.complaint-form input, .complaint-form select, .complaint-form textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--panel-light);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 400;
}
.complaint-form .errorlist { color: var(--orange); margin: 0; padding-left: 18px; font-weight: 400; }
.notice { background: var(--forest); color: var(--text); padding: 14px 18px; border-radius: 12px; }
