/* Manrope, локальная поставка под SIL OFL 1.1. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --brand: #1478f2;
  --brand-dark: #0b59c7;
  --success: #18a873;
  --ink: #10233f;
  --muted: #63738a;
  --canvas: #f5f8fc;
  font-synthesis: none;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.6 "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

/* Переключатель показывает только опубликованные версии текущего маршрута. */
.site-language-switcher {
  position: fixed;
  z-index: 10;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 26px rgba(16, 35, 63, .1);
  backdrop-filter: blur(12px);
}

.site-language-switcher a {
  min-width: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.site-language-switcher a:hover,
.site-language-switcher a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 10%, white);
  color: var(--brand-dark);
}

.site-language-switcher a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent);
  outline-offset: 2px;
}

.site-lightbox__item {
  display: inline-block;
  cursor: zoom-in;
}

.site-lightbox__item img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-lightbox__item:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.installation-page {
  display: grid;
  place-items: center;
  padding: 16px;
}

.installation-card {
  width: min(660px, 100%);
  padding: 32px 48px 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(16, 35, 63, .08);
  text-align: center;
}

.installation-card__logo {
  width: min(340px, 100%);
  height: auto;
  margin: -48px 0 -42px;
}

.installation-card__slogan {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 700;
}

.installation-card h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.installation-card h1 + p {
  margin: 0;
}

.brand-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
}

.brand-credit__copyright {
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: .01em;
}

.brand-credit__divider {
  color: var(--success);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.brand-credit__made,
.brand-credit__product,
.brand-credit__link {
  display: inline-flex;
  align-items: center;
}

.brand-credit__made {
  gap: 6px;
}

.brand-credit__product {
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease;
}

.brand-credit__product:hover,
.brand-credit__product:active {
  color: var(--brand-dark);
  text-decoration: none;
}

.brand-credit__link {
  gap: 3px;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  transition: color 160ms ease;
}

.brand-credit__link::after {
  content: "↗";
  font-size: 10px;
  letter-spacing: 0;
}

.brand-credit__link:hover,
.brand-credit__link:active {
  color: var(--brand);
  text-decoration: none;
  transform: none;
}

.brand-credit__product:focus-visible,
.brand-credit__link:focus-visible {
  border-radius: 4px;
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 3px;
}

.site-page {
  display: flex;
  flex-direction: column;
}

.site-content {
  width: min(1120px, calc(100% - 48px));
  flex: 1;
  margin: 0 auto;
  padding: 48px 0;
}

.site-page > .brand-credit {
  margin: 0;
  padding: 24px;
}

@media (max-width: 520px) {
  .site-language-switcher {
    position: absolute;
    top: 12px;
    right: 12px;
  }
  .installation-page {
    padding: 16px;
  }

  .installation-card {
    padding: 28px 22px 16px;
    border-radius: 20px;
  }

  .installation-card__logo {
    margin: -42px 0 -36px;
  }

  .installation-card h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .site-content {
    width: calc(100% - 32px);
    padding: 32px 0;
  }
}

.site-error-page {
  min-width: 320px;
  min-height: 100vh;
  display: grid;
  margin: 0;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(20, 120, 242, .14), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(27, 201, 223, .12), transparent 32%),
    var(--canvas);
}

.site-error-card {
  position: relative;
  width: min(100%, 660px);
  padding: 48px;
  overflow: hidden;
  border: 1px solid #e0e9f4;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 35, 63, .11);
}

.site-error-card__status {
  position: absolute;
  top: 6px;
  right: 22px;
  margin: 0;
  color: rgba(20, 120, 242, .075);
  font-size: clamp(110px, 24vw, 180px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1;
}

.site-error-card__eyebrow,
.site-error-card h1,
.site-error-card__message,
.error-actions,
.site-error-card__details,
.site-error-card .error-credit {
  position: relative;
  z-index: 1;
}

.site-error-card__eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-error-card h1 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.site-error-card__message {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.error-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #d4e0ee;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.error-button--primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.error-button:hover {
  border-color: var(--brand-dark);
}

.error-button--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.error-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 3px;
}

.site-error-card__details {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-error-card__details pre {
  max-height: 180px;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: #eef4fb;
  white-space: pre-wrap;
}

.site-error-card__slogan {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-error-card .error-credit {
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.site-error-page--404 .site-error-card {
  border-top: 4px solid var(--brand);
}

.site-error-page--404 .site-error-card::after {
  position: absolute;
  right: -48px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border: 32px solid rgba(27, 201, 223, .08);
  border-radius: 50%;
  content: "";
}

.site-error-page--404 .site-error-card__status {
  color: rgba(20, 120, 242, .095);
}

.site-error-page--404 .error-actions {
  justify-content: center;
}

@media (max-width: 520px) {
  .site-error-page {
    padding: 16px;
  }

  .site-error-card {
    padding: 34px 22px 18px;
    border-radius: 20px;
  }

  .site-error-card__status {
    right: 12px;
    font-size: 104px;
  }

  .error-button {
    width: 100%;
  }
}
/* Баннер выбора остаётся поверх страницы, но не блокирует доступ к содержимому. */
.privacy-choice { position: relative; z-index: 50; font-family: Manrope, sans-serif; }
.privacy-choice--open { position: fixed; right: 20px; bottom: 20px; left: 20px; }
.privacy-choice__panel,
.privacy-choice__settings { max-width: 760px; margin-left: auto; padding: 20px; color: #e8f0ff; background: #091726; border: 1px solid #2b4662; border-radius: 18px; box-shadow: 0 18px 48px rgb(0 0 0 / 28%); }
.privacy-choice__panel h2 { margin: 0 0 8px; font-size: 20px; }
.privacy-choice__panel p,
.privacy-choice__settings p { margin: 0 0 16px; color: #afc0d5; }
.privacy-choice__settings { margin: 24px 20px 0 auto; max-width: 420px; }
.privacy-choice__settings summary { cursor: pointer; font-weight: 700; }
.privacy-choice__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.privacy-choice__actions button { min-height: 44px; padding: 0 16px; border: 1px solid #45627f; border-radius: 10px; color: #e8f0ff; background: #14283d; font: inherit; font-weight: 700; cursor: pointer; }
.privacy-choice__actions button:last-child { color: #071423; background: #58a2ff; border-color: #58a2ff; }
.privacy-choice__actions button:focus-visible { outline: 3px solid #8fc2ff; outline-offset: 2px; }
@media (max-width: 640px) {
    .privacy-choice--open { right: 10px; bottom: 10px; left: 10px; }
    .privacy-choice__actions { flex-direction: column; }
    .privacy-choice__actions button { width: 100%; }
}
