

:root {
  color-scheme: light;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  --bg: #ffffff;
  --bg-sunken: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --border: #dde3ee;
  --border-strong: #bcc6d8;
  --text: #16203a;
  --text-muted: #4a5673;
  --text-subtle: #5d6884;

  --brand: #3a5999;
  --brand-hover: #2c4478;
  --brand-light: #4b6db8;
  --brand-soft: #eaeef8;
  --brand-ring: rgba(58, 89, 153, 0.3);
  --on-brand: #ffffff;

  --accent: #afdb32;
  --accent-strong: #5f7d0e;
  --accent-soft: #f3f9e2;

  --ua-blue: #2969b0;
  --ua-yellow: #fac51c;

  --ok: #5f7d0e;
  --danger: #a52020;
  --danger-soft: #fbeaea;
  --star: #c98a10;

  --radius-sm: 3px;
  --radius: 5px;
  --radius-lg: 8px;
  --ring: 0 0 0 3px var(--brand-ring);
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, 0.05);
  --shadow: 0 8px 24px rgba(16, 24, 32, 0.1);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 28px);
  --section-y: clamp(48px, 5.5vw, 80px);
  --header-h: 60px;

  --t-fast: 120ms;
  --t: 180ms;
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-sunken: #0e1626;
  --surface: #131c2e;
  --surface-2: #1a2437;
  --border: #253048;
  --border-strong: #3a4863;
  --text: #e2e8f4;
  --text-muted: #a6b2c8;
  --text-subtle: #8794ad;

  --brand: #8ba6e0;
  --brand-hover: #a6bcea;
  --brand-light: #3a5999;
  --brand-soft: #1a2540;
  --brand-ring: rgba(139, 166, 224, 0.4);
  --on-brand: #0b1020;

  --ok: #afdb32;
  --accent-strong: #afdb32;
  --accent-soft: #22300c;
  --danger: #f08585;
  --danger-soft: #2a1616;
  --star: #d9a52c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --bg-sunken: #0e1626;
    --surface: #131c2e;
    --surface-2: #1a2437;
    --border: #253048;
    --border-strong: #3a4863;
    --text: #e2e8f4;
    --text-muted: #a6b2c8;
    --text-subtle: #8794ad;
    --brand: #8ba6e0;
    --brand-hover: #a6bcea;
  --brand-light: #a6bcea;
    --brand-soft: #1a2540;
    --brand-ring: rgba(139, 166, 224, 0.4);
    --on-brand: #0b1020;
    --ok: #afdb32;
  --accent-strong: #afdb32;
  --accent-soft: #22300c;
    --danger: #f08585;
    --danger-soft: #2a1616;
    --star: #d9a52c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(58, 89, 153, 0.15);
}

a, button, summary, [role="button"] { touch-action: manipulation; }

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 650;
}

h1 { font-size: clamp(1.8rem, 1.3rem + 2.1vw, 2.6rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.3rem, 1.12rem + 0.85vw, 1.75rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.012em; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--brand); color: var(--on-brand); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(36px, 4vw, 56px); }

.section__head {
  position: relative;
  margin-bottom: clamp(28px, 3.4vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section__head h2 { display: block; }

.section__head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 60px; height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  justify-content: space-between;
}

.section__lead {
  margin-top: 8px;
  color: var(--text-muted);
}

.section__foot { margin-top: 20px; }

.section__note {
  margin-top: 18px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 9px 14px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius);
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 10px; color: var(--on-brand); text-decoration: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--solid { fill: currentColor; stroke: none; }

.flagline { display: flex; flex-direction: column; height: 6px; }
.flagline span { flex: 1; }
.flagline span:first-child { background: var(--ua-blue); }
.flagline span:last-child { background: var(--ua-yellow); }

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  min-height: 40px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { text-decoration: none; }

.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-bd: var(--brand); }
.btn--primary:hover {
  --btn-bg: var(--brand-light);
  --btn-bd: var(--brand-light);
  --btn-fg: var(--on-brand);
  box-shadow: inset 0 -2px 0 var(--accent);
  color: var(--accent);
}

.btn--ghost:hover { --btn-bd: var(--brand); --btn-fg: var(--brand); background: var(--brand-soft); }

.btn--sm { padding: 6px 12px; min-height: 34px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn.is-loading { pointer-events: none; opacity: 0.6; }

.btn.is-loading::after {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.brand-group { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand__sep { width: 1px; height: 20px; flex: none; background: var(--border); }

.author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.author img {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.author:hover { color: var(--brand); text-decoration: none; }
.author:hover img { border-color: var(--accent); }

@media (max-width: 620px) {
  .author span { display: none; }
  .brand__sep { height: 18px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; object-fit: contain; }

.nav__list { display: flex; align-items: center; gap: 0; }

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav__link[aria-current] { position: relative; color: var(--brand); }
.nav__link[aria-current]::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-strong);
}
.nav__toggle .icon { width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__more { position: relative; }

.nav__submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease),
    visibility var(--t) var(--ease);
}
.nav__more.is-open .nav__submenu { opacity: 1; visibility: visible; transform: none; }

.nav__sublink {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav__sublink:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.header__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.theme-toggle .icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: block; }
}

.lang { display: flex; align-items: center; gap: 2px; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  filter: saturate(0.15);
  opacity: 0.7;
  transition: filter var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.lang__btn:hover { filter: none; opacity: 1; }
.lang__btn[aria-current="true"] { filter: none; opacity: 1; border-color: var(--border); }

.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease),
      visibility var(--t) var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__more { position: static; }
  .nav__toggle { width: 100%; justify-content: space-between; }

  .nav__submenu {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__more.is-open .nav__submenu { display: block; }
  .nav__sublink { padding: 10px 4px; }
  .nav__cta { margin-top: 14px; }
}

@media (min-width: 1024px) {
  .nav__cta { display: none; }
}

.hero { padding-block: clamp(36px, 5vw, 72px); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero .lead {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.hero__media img { width: 100%; }

.release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: clamp(20px, 2.5vw, 28px);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 20px;
}

.release__item { display: inline-flex; align-items: baseline; gap: 6px; }
.release__label { color: var(--text-subtle); }
.release__value { font-weight: 650; font-variant-numeric: tabular-nums; }
.release__date { font-weight: 400; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.release__sep { width: 1px; height: 14px; background: var(--border); }
.release__link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 550; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.card--hover:hover { border-color: var(--border-strong); background: var(--surface-2); }

.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand); text-decoration: none; }
.card__foot { margin-top: auto; padding-top: 14px; }

.fgroups { columns: 3 290px; column-gap: 16px; }

.fgroup {
  display: inline-block;
  width: 100%;
  margin-bottom: 16px;
  padding: 16px 18px;
  break-inside: avoid;
}

.fgroup__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  font-size: 0.9375rem;
}
.fgroup__title .icon { width: 18px; height: 18px; color: var(--brand); }

.fgroup__list { margin-top: 4px; }

.fgroup__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.fgroup__item:first-child { border-top: 0; }
.fgroup__item .icon { width: 15px; height: 15px; color: var(--text-subtle); }
.fgroup__item a { color: var(--text); }
.fgroup__item a:hover { color: var(--brand); }
.fgroup__item:hover .icon { color: var(--accent-strong); }

.checklist { display: grid; gap: 10px; }
.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text-muted);
}
.checklist .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }

.logo-wall {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(max(12.5%, 88px), 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
  overflow: hidden;
}

.logo-wall__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 10px;
  min-height: 76px;
  border: 0;
  background: var(--surface);
  color: inherit;
  font: inherit;
  transition: background var(--t-fast) var(--ease);
}

button.logo-wall__item { cursor: pointer; }
button.logo-wall__item:hover { background: var(--surface-2); }
button.logo-wall__item[aria-current="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
button.logo-wall__item[aria-current="true"] img { filter: none; opacity: 1; }
button.logo-wall__item[aria-current="true"] .logo-wall__name { color: var(--brand); }

.logo-wall__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.logo-wall__count {
  position: absolute;
  top: 4px; right: 6px;
  font-size: 0.6875rem;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.logo-wall__item img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--t) var(--ease), opacity var(--t) var(--ease),
              background var(--t) var(--ease), box-shadow var(--t) var(--ease),
              padding var(--t) var(--ease);
}
.logo-wall__item:hover img { filter: none; opacity: 1; }
/* Dark theme: idle logos are normalized to a light monochrome silhouette.
   On hover and active states the brand colors are restored without inversion.
   The logo uses a light plate so dark marks stay readable. */
:root[data-theme="dark"] .logo-wall__item img {
  filter: grayscale(1) invert(1) brightness(1.7);
}
:root[data-theme="dark"] .logo-wall__item:hover img,
:root[data-theme="dark"] button.logo-wall__item[aria-current="true"] img {
  filter: none;
  opacity: 1;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 4px 8px;
  max-height: 44px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-wall__item img {
    filter: grayscale(1) invert(1) brightness(1.7);
  }
  :root:not([data-theme="light"]) .logo-wall__item:hover img,
  :root:not([data-theme="light"]) button.logo-wall__item[aria-current="true"] img {
    filter: none;
    opacity: 1;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 4px 8px;
    max-height: 44px;
  }
}

.steps__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3.5vw, 40px); align-items: start; }
@media (min-width: 960px) { .steps__grid { grid-template-columns: 1.15fr 0.85fr; } }

.steps__lead { margin: 8px 0 20px; color: var(--text-muted); }

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.accordion__item + .accordion__item { border-top: 1px solid var(--border); }

.accordion__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.accordion__btn:hover { background: var(--surface-2); }

.accordion__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 700;
}

.accordion__btn > .icon { margin-left: auto; color: var(--text-subtle); transition: transform var(--t) var(--ease); }
.accordion__btn[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.accordion__btn[aria-expanded="true"] .accordion__num { border-color: var(--brand); color: var(--brand); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__panel.is-open { grid-template-rows: 1fr; }

.accordion__body {
  padding: 0 16px 16px 52px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.accordion__body p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.accordion__body p + p { margin-top: 8px; }
.accordion__body .icon { color: var(--text-subtle); }
.accordion__note { color: var(--text-subtle); font-size: 0.8125rem; }

.media-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 16px;
}

.cta-band {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band p { margin-top: 8px; color: var(--text-muted); max-width: 78ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 780px) { .stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

.stat {
  display: grid;
  gap: 4px;
  padding: clamp(18px, 2.6vw, 28px) 18px;
  background: var(--surface);
}
.stat .icon { width: 20px; height: 20px; margin-bottom: 6px; color: var(--accent-strong); }
.stat__value {
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.stat__label {
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rating { position: relative; display: inline-block; line-height: 0; }
.rating__base, .rating__fill { display: flex; gap: 1px; color: var(--border-strong); }
.rating__fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.rating .icon { width: 15px; height: 15px; }

.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.rating-summary__label { color: var(--text-muted); }
.rating-summary__score { font-weight: 700; font-variant-numeric: tabular-nums; }
.rating-summary__meta { color: var(--text-subtle); font-size: 0.875rem; }

.carousel { position: relative; }

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  z-index: 1;
  width: 56px;
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.carousel::before { left: -1px; background: linear-gradient(90deg, var(--bg-sunken), transparent); }
.carousel::after { right: -1px; background: linear-gradient(270deg, var(--bg-sunken), transparent); }
.carousel.at-start::before { opacity: 0; }
.carousel.at-end::after { opacity: 0; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--surface-2);
  overscroll-behavior-x: contain;
}
@media (min-width: 720px) { .carousel__track { grid-auto-columns: calc(50% - 8px); } }
@media (min-width: 1080px) { .carousel__track { grid-auto-columns: calc(33.333% - 10.67px); } }
.carousel__track::-webkit-scrollbar { height: 8px; }
.carousel__track::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--surface-2); }
.carousel__track::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.carousel__item { scroll-snap-align: start; }

.carousel__nav { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.carousel__nav .icon-btn { border-color: var(--border); }
.carousel__nav .icon-btn[disabled] { opacity: 0.35; cursor: default; }

.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.reviews__list { min-width: 0; }
.carousel { min-width: 0; }
@media (min-width: 1100px) { .reviews { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); } }

.reviews__summary { gap: 10px; }

.reviews__score { display: flex; align-items: baseline; gap: 6px; }
.reviews__score-value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.reviews__score-max { color: var(--text-subtle); font-size: 0.9375rem; }

.reviews__count { color: var(--text-muted); font-size: 0.875rem; }

.reviews__dist { display: grid; gap: 6px; margin-top: 6px; }
.reviews__dist-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 26px; gap: 8px; align-items: center; }
.reviews__dist-star {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.reviews__dist-star .icon { width: 11px; height: 11px; color: var(--star); }
.reviews__dist-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.reviews__dist-bar span { display: block; height: 100%; background: var(--star); }
.reviews__dist-count { color: var(--text-subtle); font-size: 0.8125rem; text-align: right; font-variant-numeric: tabular-nums; }

.reviews__hint { margin-top: 8px; color: var(--text-subtle); font-size: 0.75rem; }

.rating--lg .icon { width: 18px; height: 18px; }

.review {
  position: relative;
  height: 100%;
  gap: 12px;
  padding-top: 22px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.review:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.review__mark {
  position: absolute;
  top: 14px; right: 16px;
  width: 28px; height: 28px;
  color: var(--accent);
  opacity: 0.55;
}

.review__head { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 30px; }

.review__logo-box {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.review__logo-box--round { border-radius: 50%; }

.review__logo { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.review__avatar { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.review__ident { display: grid; gap: 5px; min-width: 0; }
.review__who {
  font-size: 0.9375rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review__stars { display: inline-flex; align-items: center; gap: 7px; }
.review__stars b {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.review__text {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review__text.is-open { -webkit-line-clamp: unset; overflow: visible; }

.review__more {
  align-self: flex-start;
  margin-top: -4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.review__more:hover { color: var(--brand-hover); text-decoration: underline; }

.review__link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  min-width: 0;
}
.review__link .icon { width: 13px; height: 13px; flex: none; }
.review__url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.member { flex-direction: row; gap: 16px; align-items: center; }
.member img {
  width: 88px; height: 88px;
  flex: none;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}
.member__role { display: block; margin-top: 2px; color: var(--text-subtle); font-size: 0.8125rem; }
.member__note { margin-top: 6px; color: var(--text-muted); font-size: 0.875rem; }
.member__social { display: flex; gap: 4px; margin-top: 8px; }

.plan--featured { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--accent); }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 16px; min-height: 44px; }
.plan__price sup { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.plan__amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.plan__period { color: var(--text-subtle); font-size: 0.875rem; }
.plan__ask { font-size: 1.125rem; font-weight: 600; }

.plan__features { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.875rem; }
.plan__features li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.plan__features .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
.plan__features li.is-off { color: var(--text-subtle); }
.plan__features li.is-off .icon { color: var(--text-subtle); }

.plan__actions { display: grid; gap: 8px; margin-top: 18px; }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-soft);
  font-size: 0.9375rem;
}
.notice .icon { color: var(--brand); margin-top: 3px; }

.donate-card { align-items: center; text-align: center; gap: 10px; color: var(--text); }
.donate-card:hover { text-decoration: none; color: var(--text); }
.donate-card img { max-height: 140px; width: auto; border-radius: var(--radius); }
.donate-card p { color: var(--text-muted); font-size: 0.875rem; }

.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 940px) { .contact__grid { grid-template-columns: 0.8fr 1.2fr; } }

.contact-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.contact-item:first-child { padding-top: 0; }
.contact-item + .contact-item { border-top: 1px solid var(--border); }
.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--brand);
}
.contact-item__label { font-size: 0.8125rem; color: var(--text-subtle); }
.contact-item__value { font-weight: 550; word-break: break-word; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 5px; }
.field__label { font-size: 0.875rem; font-weight: 550; color: var(--text-muted); }

.field__control {
  width: 100%;
  padding: 9px 12px;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field__control:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
textarea.field__control { min-height: 124px; resize: vertical; }

.field__error { display: none; font-size: 0.8125rem; color: var(--danger); }
.field__error:not(:empty) { display: block; }
.field.has-error .field__control { border-color: var(--danger); }
.field.has-error .field__control:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

.form__foot { display: flex; justify-content: flex-end; }

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filters__btn {
  padding: 6px 14px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.filters__btn:hover { border-color: var(--border-strong); color: var(--text); }
.filters__btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.empty-state {
  grid-column: 1 / -1;
  padding: 32px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
}

.carousel__track--reviews { grid-auto-columns: min(100%, 360px); }

.page-hero { border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-top: 10px; }
.page-hero .lead { margin-top: 12px; max-width: 72ch; color: var(--text-muted); font-size: 1.0625rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-subtle); }
.crumbs span[aria-current] { color: var(--text-muted); }

.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-muted);
}
.toc__link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; }
@media (min-width: 1000px) { .spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
@media (min-width: 1000px) { .spec--flip .spec__text { order: 2; } }

.spec__lead { margin-top: 10px; color: var(--text-muted); max-width: 60ch; }

.spec__list { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 620px) and (max-width: 999px) { .spec__list { grid-template-columns: 1fr 1fr; } }

.spec__item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.spec__icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.spec__item h3 { font-size: 0.9375rem; margin-bottom: 2px; }
.spec__item h3 a { color: inherit; }
.spec__item h3 a:hover { color: var(--brand); text-decoration: none; }
.spec__item p { color: var(--text-muted); font-size: 0.875rem; }

.spec__media { display: grid; gap: 12px; }

@media (min-width: 1000px) {
  .spec__text { position: sticky; top: calc(var(--header-h) + 20px); }
}

.shot {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.shot img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: zoom-in;
}
.shot figcaption { padding: 8px 4px 2px; color: var(--text-subtle); font-size: 0.8125rem; }

.copyright { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 900px) { .copyright { grid-template-columns: minmax(0, 1fr) 280px; } }

.shot--cert { justify-self: start; }
.shot--cert img { max-height: 320px; width: auto; margin-inline: auto; }
.shot--cert figcaption { text-align: center; }

.spec__thumbs {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 620px) {
  .spec__thumbs { grid-template-columns: repeat(var(--thumb-cols, 3), minmax(0, 1fr)); }
}

.thumb {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: zoom-in;
  transition: border-color var(--t-fast) var(--ease);
}
.thumb:hover { border-color: var(--brand); }
.thumb img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.thumb__title {
  font-size: 0.6875rem;
  color: var(--text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.thumbs__more {
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-muted);
  cursor: pointer;
}
.thumbs__more:hover { border-color: var(--brand); color: var(--brand); }

.shot--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 24px 16px;
  border-style: dashed;
  border-color: var(--border-strong);
  text-align: center;
}
.shot--empty .icon { width: 24px; height: 24px; color: var(--text-subtle); }
.shot__slot { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.shot__hint { font-size: 0.8125rem; color: var(--text-subtle); }

.dt__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.dt__search { flex: 1 1 240px; }
.dt__types { margin-bottom: 0; }
.dt__size { flex: 0 0 auto; }
.dt__size .field__control { width: auto; min-width: 92px; }

.dt__active { margin-bottom: 10px; }

.tag--active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 10px;
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.tag__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.tag__clear:hover { background: var(--brand); color: var(--on-brand); }

.dt__count { margin-bottom: 10px; color: var(--text-subtle); font-size: 0.8125rem; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow-x: auto;
}

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { padding: 8px 12px; text-align: left; white-space: nowrap; }
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table tbody tr { border-top: 1px solid var(--border); }
.table tbody tr:nth-child(odd) { background: var(--bg-sunken); }
.table tbody tr:hover { background: var(--brand-soft); }
.table__num, .table__mono { font-variant-numeric: tabular-nums; color: var(--text-muted); }

.table__sort {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}
.table__sort:hover { color: var(--text); }
.table__sort::after { content: "\2195"; opacity: 0.35; font-size: 0.875rem; }
.table__sort[data-dir="asc"]::after { content: "\2191"; opacity: 1; }
.table__sort[data-dir="desc"]::after { content: "\2193"; opacity: 1; }
.table__sort[data-dir] { color: var(--brand); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-sunken);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dt__pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.dt__page {
  min-width: 34px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.dt__page:hover { border-color: var(--border-strong); color: var(--text); }
.dt__page[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dt__page[disabled] { opacity: 0.4; cursor: default; }
.dt__gap { padding: 0 4px; color: var(--text-subtle); }

.error-state {
  max-width: 620px;
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 80px);
  text-align: center;
}
.error-state__code {
  display: block;
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand);
  opacity: 0.28;
}
.error-state h1 { margin-top: 8px; }
.error-state p { margin-top: 12px; color: var(--text-muted); }
.error-state .hero__actions { justify-content: center; }

.meter {
  display: block;
  height: 6px;
  min-width: 60px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.meter span { display: block; height: 100%; background: var(--brand); }
.meter--accent span { background: var(--accent-strong); }

.is-ok { color: var(--ok); }
.is-bad { color: var(--danger); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.kv { display: grid; gap: 8px; }
.kv__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 56px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.kv__row:first-child { border-top: 0; }
.kv__row b { font-variant-numeric: tabular-nums; }
.kv__row span:last-child { color: var(--text-subtle); text-align: right; font-variant-numeric: tabular-nums; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.map-frame > div { height: clamp(420px, 68vh, 820px); }
.map-frame + .map-frame > div,
.map-frame > #map2 { height: clamp(360px, 56vh, 640px); }
.leaflet-tooltip { font-size: 12px; }

.code-cell {
  display: block;
  max-width: 640px;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  white-space: normal;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: clamp(12px, 3vw, 36px);
  background: rgba(8, 14, 22, 0.94);
}
.lightbox.is-open { display: grid; place-items: center; }

.lightbox__figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-height: 100%; }
.lightbox__img {
  max-width: min(1200px, 92vw);
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox__caption { color: #e6edf5; font-size: 0.875rem; text-align: center; }
.lightbox__counter { color: #93a1b1; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 22, 32, 0.75);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.lightbox__btn:hover { background: rgba(20, 83, 143, 0.9); }
.lightbox__btn--close { top: 14px; right: 14px; }
.lightbox__btn--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 10px; top: 50%; transform: translateY(-50%); }

.site-footer { padding-block: 24px; border-top: 1px solid var(--border); background: var(--bg-sunken); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer__copy { color: var(--text-muted); font-size: 0.875rem; }
.footer__cert { display: block; margin-top: 4px; color: var(--text-subtle); font-size: 0.8125rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; }

.to-top {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 70;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease),
    background var(--t-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.toasts {
  position: fixed;
  z-index: 140;
  right: 14px; bottom: 14px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toast-in var(--t) var(--ease);
}
.toast.is-hiding { animation: toast-out var(--t) var(--ease) forwards; }
.toast--success { border-left-color: var(--ok); }
.toast--success .toast__icon { color: var(--ok); }
.toast--error { border-left-color: var(--danger); }
.toast--error .toast__icon { color: var(--danger); }
.toast--info .toast__icon { color: var(--brand); }
.toast__icon { margin-top: 3px; }
.toast__body { flex: 1; font-size: 0.875rem; }
.toast__close {
  flex: none;
  width: 24px; height: 24px;
  border: 0;
  background: transparent;
  color: var(--text-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.toast__close:hover { background: var(--surface-2); color: var(--text); }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.reveal { opacity: 0; transform: translateY(6px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

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

[hidden] { display: none !important; }

@media (hover: none) {
  .card--hover:hover { background: var(--surface); border-color: var(--border); }
  .logo-wall__item:hover img { filter: grayscale(1); opacity: 0.7; }
  :root[data-theme="dark"] .logo-wall__item:hover img,
  :root:not([data-theme="light"]) .logo-wall__item:hover img {
    filter: grayscale(1) invert(1) brightness(1.7);
    opacity: 0.7;
    background: none;
    box-shadow: none;
    padding: 0;
    max-height: 40px;
  }
  .review:hover { border-color: var(--border); box-shadow: none; }
  .carousel::before,
  .carousel::after { display: none; }
  .fgroup__item { padding: 11px 0; }
  .nav__sublink { padding: 12px; }
  .brand, .author { padding-block: 7px; }
  .crumbs a,
  .footer__links a,
  .spec__item a,
  .contact-item__value,
  .review__link { padding-block: 6px; }
}
