/* css/base.css */
/* ——— Fonts ——— */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v20-cyrillic_latin-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v20-cyrillic_latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v20-cyrillic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v20-cyrillic_latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v20-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v20-cyrillic_latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v20-cyrillic_latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orelega One";
  src: url("/fonts/orelega-one-v14-cyrillic_latin-regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("/fonts/bitter_medium_italic.woff2?v=1") format("woff2"),
    url("/fonts/bitter_medium_italic.woff?v=1") format("woff");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face{
  font-family:"Bitter";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/bitter-300-italic-cyrillic.woff2?v=1") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face{
  font-family:"Bitter";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/bitter-300-italic-latin.woff2?v=1") 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 & Reset ——— */
:root {
  --ink: #14213d;
  --accent: #2ba3c6;
  --gold: #d4af37;
  --line: #e0e5ee;
  --card-glass: rgba(255, 255, 255, 0.92);
  --focus-ring: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  --shadow-soft: 0 2px 10px color-mix(in srgb, var(--ink) 12%, transparent);
  --viewport-height: 100vh;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body,
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}
html {
  scrollbar-gutter: stable both-edges;
  scroll-behavior: smooth;
}
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
body {
  margin: 0;
  background-color: #fff;
  background-image: url("/img/ns-bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: color-mix(in srgb, var(--ink) 88%, #fff 12%);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Inter, Arial;
  line-height: 1.4;
  min-height: var(--viewport-height, 100vh);
  display: flex;
  flex-direction: column;
}
body.is-preloading {
  overflow: hidden;
}
.ns-preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

@media (min-width: 601px) {
  .ns-preloader {
    background-image: var(--ns-preloader-bg, url("/img/ns-bg-start.jpg"));
  }
}
@media (max-width: 600px) {
  .ns-preloader {
    background-image: var(
      --ns-preloader-bg-mobile,
      var(--ns-preloader-bg, url("/img/bg-mobile.jpg"))
    );
  }
  .ns-preloader__spinner {
    width: min(24vw, 80px);
  }
}
.ns-preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ns-preloader__spinner {
  width: min(28vw, 112px);
  max-width: 160px;
  height: auto;
  animation: ns-preloader-spin 1.2s linear infinite;
  display: block;
}
@media (max-width: 600px) {
  .ns-preloader__spinner {
    width: min(24vw, 80px);
  }
}
@media (max-width: 1024px) {
  body,
  .ns-preloader {
    background-attachment: scroll;
    background-position: center top;
  }
}
@keyframes ns-preloader-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns-preloader__spinner {
    animation-duration: 1.2ms;
    animation-iteration-count: 1;
  }
}
@supports (height: 100vh) {
  :root {
    --viewport-height: 100vh;
  }
}
[id] {
  scroll-margin-top: 25px;
}
.logo__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin-left: 20px;
  padding-left: 0;
}
/* ——— Layout ——— */
.wrap {
  max-width: 960px;
  width: min(960px, 100%);
  margin: 0 auto;
  padding-inline: 12px;
}
header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.brand-link {
  display: inline-block;
} /* важно для клика по логотипу */
.logo .brand {
  height: clamp(96px, 40vw, 140px);
  width: auto;
  flex: 0 0 auto;
}
.site-menu__panel .line-core {
  display: block;
  width: 100%;
  height: 10px;
  background: url("../img/line-core.png") center/contain no-repeat;
  justify-self: center;
  margin: 4px 0;
}

.account-card__header .line-core {display: block;
  width: 100%;
  height: 10px;
  background: url("../img/line-core.png") center/contain no-repeat;
  justify-self: center;
  margin: 4px 0;}



.logo .tagline {
  flex: 1 1 420px;
  min-width: 120px;
  max-width: 620px;
  font-size: clamp(12px, 2.1vw, 15px);
  color: color-mix(in srgb, var(--ink) 92%, #fff 8%);
  line-height: 1.3;
  font-weight: 300;
  white-space: normal;
  overflow-wrap: anywhere;
  align-self: center;
  margin-bottom: 0;
}

.menu-trigger {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(20, 33, 61, 0.1) 72%);
  background: rgba(255, 255, 255, 0.9);
  color: color-mix(in srgb, var(--ink) 96%, #fff 4%);
  padding: 10px 16px 10px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.16), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: background-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease;
}
.menu-trigger__icon {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--accent);
}
.menu-trigger__label {
  white-space: nowrap;
  letter-spacing: 0.01em;
  font-size: 14px;
}
@media (hover: hover) {
  .menu-trigger:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line) 55%);
    box-shadow: 0 18px 34px rgba(20, 33, 61, 0.18);
    transform: translateY(-1px);
  }
}
.menu-trigger:active {
  transform: scale(0.97);
}
.menu-trigger:focus {
  outline: none;
}
.menu-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 163, 198, 0.25);
}
.site-menu {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding: clamp(8px, 2vw, 16px) !important;
  padding-top: max(8px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 1200;
}
.site-menu--visible {
  opacity: 1;
  pointer-events: auto;
}
.site-menu__backdrop {
  position: absolute;
  inset: 0;
  background: none;
  border-radius: 0;
  opacity: 1;
}
.site-menu__panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background-image: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.54) 0%,
      rgba(255, 255, 255, 0.29) 48%,
      color-mix(
          in srgb,
          rgba(255, 255, 255, 0.86) 78%,
          rgba(43, 163, 198, 0.4) 22%
        )
        100%
    ),
    url("/img/ns-bg-start.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid
    color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0) 82%);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(16, 30, 54, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  padding: clamp(26px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.6vw, 28px);
  overflow: hidden;
}
.site-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-menu__title {
  margin: 0;
  font-family: "Orelega One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 4.6vw, 30px);
  line-height: 1.1;
  color: color-mix(in srgb, var(--ink) 94%, #fff 6%);
}
.site-menu__subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 68%, #fff 32%);
}
.site-menu__close {
  appearance: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.site-menu__close:focus {
  outline: none;
}
.site-menu__close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 4px;
}
.site-menu__close-icon {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .site-menu__close-icon {
    transition: none;
  }
}
@media (hover: hover) {
  .site-menu__close:hover .site-menu__close-icon {
    transform: rotate(180deg);
  }
}
.site-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.site-menu__nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 10px !important;
  border: 0;
  background: none;
  border-radius: 12px;
  color: color-mix(in srgb, var(--ink) 92%, #fff 8%);
  font-weight: 200;
  font-size: clamp(18px, 4.6vw, 24px);
  letter-spacing: 0.02em;
  text-decoration: none;
  width: 100% !important;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center !important;
}
.site-menu__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8fb7cf, #dfe7ef) !important;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0.85;
}
@media (hover: hover) {
  .site-menu__nav a:hover {
    color: color-mix(in srgb, var(--ink) 98%, #fff 2%);
  }
  .site-menu__nav a:hover::after {
    transform: scaleX(1);
  }
}
.site-menu__nav a:focus-visible {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.site-menu__nav a:focus-visible::after {
  transform: scaleX(1);
}
.site-menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.site-menu__social-link {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 33, 61, 0.12);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}
.site-menu__social-icon {
  width: 26px;
  height: 26px;
  display: block;
}
@media (hover: hover) {
  .site-menu__social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(20, 33, 61, 0.2);
    background: rgba(255, 255, 255, 0.95);
    /* border-color: color-mix(in srgb, var(--accent) 45%, var(--line) 55%); */
  }
}

@media (max-width: 600px) {
  .site-menu__nav {
    align-items: center; /* не обязательно, но ровнее */
  }

  .site-menu__nav a {
    display: flex !important;
    justify-content: center !important; /* <-- ключевое */
    text-align: center !important; /* на всякий случай */
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-inline: 0 !important;
  }

  .site-menu__title {
    display: none;
  }
  .site-menu__header {
    margin-bottom: -30px;
  }
  .site-menu__nav a {
    font-size: 22px;
  }
  .site-menu__backdrop {
    backdrop-filter: blur(3px);
  }
}

.site-menu__social-link:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 163, 198, 0.28);
}
body.site-menu-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .site-menu,
  .menu-trigger,
  .site-menu__close,
  .site-menu__nav a,
  .site-menu__social-link {
    transition: none;
  }
}
@media (max-width: 900px) {
  .logo {
    gap: 12px;
  }
  .logo__meta {
    gap: 10px;
  }
}
@media (max-width: 720px) {
  header {
    gap: 12px;
  }
  .logo {
    gap: 12px;
  }
  .logo__meta {
    gap: 12px;
  }
  .logo .tagline {
    flex-basis: auto;
    max-width: none;
  }
}
@media (max-width: 520px) {
  .site-menu__panel {
    width: min(420px, 100%);
    border-radius: 24px;
    padding: 22px 18px 34px;
    box-shadow: 0px 20px 70px 10px rgba(20, 33, 61, 0.28);
  }

  .menu-trigger {
    border: 1px solid color-mix(in srgb, var(--accent) 30%, rgba(20, 33, 61, 0.1) 70%);
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 13px 8px 11px;
  }

  .site-menu__social {
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .menu-trigger {
    padding: 8px 11px 8px 9px;
    gap: 6px;
  }
  .menu-trigger__icon {
    width: 21px;
    height: 21px;
  }
  .menu-trigger__label {
    font-size: 12px;
  }
  .site-menu__panel {
    gap: 20px;
  }
  .site-menu__nav a {
    padding: 6px 0 6px;
    font-size: 20px;
    font-weight: 200;
  }
}
@media (max-width: 520px) {
  .site-menu__nav a {
    font-size: 20px;
  }
}

.legal-hub {
  width: min(720px, 100%);
  margin: clamp(40px, 12vw, 120px) auto;
  padding: clamp(40px, 10vw, 80px);
  border-radius: 36px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.96) 0%,
    color-mix(in srgb, #ffffff 80%, var(--accent) 20%) 45%,
    color-mix(in srgb, #ffffff 84%, var(--gold) 16%) 100%
  );
  box-shadow: 0 34px 80px rgba(16, 30, 54, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vw, 28px);
  text-align: center;
}
.legal-hub__title {
  margin: 0;
  font-family: "Orelega One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 42px);
  color: color-mix(in srgb, var(--ink) 92%, #fff 8%);
}
.legal-hub__lead {
  margin: 0;
  max-width: 540px;
  font-size: clamp(16px, 3.2vw, 18px);
  font-weight: 300;
  color: color-mix(in srgb, var(--ink) 75%, #fff 25%);
}
.legal-hub__links {
  list-style: none;
  margin: clamp(6px, 2vw, 14px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4vw, 24px);
  width: 100%;
}
.legal-hub__links a {
  display: block;
  width: 100%;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.015em;
  text-decoration: none;
  color: color-mix(in srgb, var(--ink) 92%, #fff 8%);
  padding: clamp(10px, 2.6vw, 14px) clamp(16px, 3.4vw, 24px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent 82%);
  box-shadow: 0 18px 44px rgba(20, 33, 61, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
@media (hover: hover) {
  .legal-hub__links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 64px rgba(16, 30, 54, 0.24);
    color: color-mix(in srgb, var(--accent) 75%, var(--ink) 25%);
  }
}
.legal-hub__links a:focus-visible {
  outline: none;
  color: color-mix(in srgb, var(--accent) 78%, var(--ink) 22%);
  box-shadow: 0 0 0 4px rgba(43, 163, 198, 0.28),
    0 24px 54px rgba(16, 30, 54, 0.22);
}
@media (max-width: 560px) {
  .legal-hub {
    padding: clamp(32px, 12vw, 56px);
    border-radius: 28px;
  }
  .legal-hub__links a {
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.2;
    box-shadow: none;
  }
}
/* ——— Typography ——— */
h1 {
  font-family: "Orelega One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 38px);
  line-height: 1.15;
  margin: 20px;
  color: var(--ink);
}
.muted {
  color: #666;
  font-size: 18px;
  line-height: 1.2;
}

/* ——— Buttons ——— */
.pill {
  appearance: none;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pill .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}




@media (hover: hover) {
  .pill:hover {
    background: color-mix(in srgb, var(--ink) 88%, #fff 12%);
    box-shadow: 0 10px 20px rgba(14, 84, 104, 0.15);
    transform: translateY(-1px);
  }
}
.pill:active {
  transform: scale(0.98);
}
.pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}
.pill.ghost {
  background: #fff;
  color: color-mix(in srgb, var(--ink) 95%, #fff 5%);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line) 82%);
}
.pill.is-disabled {
  background: #e8e8e8 !important;
  border-color: #c4c4c4 !important;
  color: #505050 !important;
  cursor: default;
  pointer-events: none;
  box-shadow: none !important;
  font-weight: 300 !important;
  filter: none;
}
.pill.is-disabled:hover {
  filter: none;
}
.pill.is-loading {
  position: relative;
  padding-right: 44px;
}
.pill.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-top-color: #fff;
  animation: pill-spin 0.9s linear infinite;
}
.pill.ghost.is-loading::after {
  border-color: color-mix(in srgb, var(--ink) 70%, #fff 30%);
  border-top-color: var(--ink);
}

@keyframes pill-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.actions {
  padding-bottom: 30px;
}

/* ——— Legal docs (.doc) ——— */
.doc {
  --muted: #55607a;
  --line: #e9eef5;
  --accent: #2ba3c6;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
  padding: 26px;
  color: var(--ink);
  margin-bottom: 50px;
}
.doc .doc-head {
  margin-bottom: 6px;
}
.doc .doc-title {
  font-family: "Orelega One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 4.8vw, 32px);
  line-height: 1.1;
  margin: 0 0 6px;
}
.doc .doc-meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.doc .doc-meta .dot::before {
  content: "•";
  margin: 0 6px;
  color: #a8b0c0;
}
.doc .doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 0;
}
.doc .doc-actions .pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
}
.doc .doc-actions .pill.print {
  background: #f6f8fb;
  color: #1c274c;
  border-color: #e3e8ef;
}
.doc .doc-actions .pill.print:hover {
  filter: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.doc p {
  margin: 10px 10px 12px 20px;
  font-size: 14px;
  line-height: 1.4;
}
.doc h2,
.doc h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 20px 0 10px;
}
.doc h2 {
  font-size: 20px;
}
.doc h3 {
  font-size: 18px;
  color: #1d2a44;
}
.doc ul,
.doc ol {
  margin: 10px 0 14px;
  padding-left: 1.4rem;
}
.doc li {
  margin: 6px 20px;
  font-size: 14px;
}
.doc a {
  color: #0b6b86;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 107, 134, 0.25);
}
.doc a:hover {
  border-bottom-color: transparent;
}
.doc .sog-title {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Inter, Arial;
  font-weight: 700;
  font-size: clamp(24px, 4.8vw, 32px);
  line-height: 1.1;
  margin: 0 0 6px;
}
.doc .note {
  border: 1px solid var(--line);
  background: #f9fbfe;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  color: #0b4e63;
  font-size: 14px;
  margin: 14px 0;
}

/* TOC + anchors */
.toc {
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0 18px;
}
.toc .toc-title {
  font-weight: 600;
  font-size: 14px;
  color: #44506a;
  margin: 16px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc a {
  display: block;
  padding: 6px;
  border-radius: 8px;
  color: #1c274c;
  border: none;
}
.toc a:hover {
  background: rgba(43, 163, 198, 0.08);
}
.doc h2[id]::after,
.doc h3[id]::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
}
.doc .anchor {
  opacity: 0;
  margin-left: 0.25rem;
  font-size: 0.9em;
  color: #8ba0b7;
  text-decoration: none;
  border: 0;
}
.doc h2:hover .anchor,
.doc h3:hover .anchor {
  opacity: 1;
}

/* Нумерация разделов */
.doc {
  counter-reset: h2counter;
}
.doc h2 {
  counter-increment: h2counter;
  counter-reset: h3counter;
}
.doc h2 .num::before {
  content: counter(h2counter) ". ";
  font-variant-numeric: tabular-nums;
  color: #1c274c;
}
.doc h3 {
  counter-increment: h3counter;
}
.doc h3 .num::before {
  content: counter(h2counter) "." counter(h3counter) ". ";
  color: #47536a;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

/* ——— Account access ——— */
.card--login {
  display: flex;
  justify-content: center;
  padding: clamp(22px, 5vw, 32px) clamp(16px, 5vw, 38px) clamp(24px, 6vw, 56px);
}






.account-card {
  position: relative;
  width: min(520px, 100%);
  margin: 0;
  background: color-mix(in srgb, #fff 85%, rgba(20, 33, 61, 0.08) 15%);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, #fff 90%);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(22, 38, 58, 0.18);
  padding: clamp(28px, 6vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 28px);
  color: var(--ink);
  overflow: hidden;
}
.account-card--dashboard {
  width: min(760px, 100%);
}
.account-dashboard {
  position: relative;
  display: grid;
  gap: 14px;
}
.account-dashboard__heading {
  margin: 0;
  font: 600 13px/1.3 "Manrope", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 62%, #fff 38%);
}
.account-dashboard__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-dashboard__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, #fff 90%);
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 12px 30px rgba(20, 33, 61, .08);
}
.account-dashboard__info {
  min-width: 0;
}
.account-dashboard__title {
  margin: 0;
  color: var(--ink);
  font: 600 16px/1.35 "Manrope", ui-sans-serif, system-ui, sans-serif;
}
.account-dashboard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin: 6px 0 0;
  color: color-mix(in srgb, var(--ink) 63%, #fff 37%);
  font-size: 13px;
  line-height: 1.4;
}
.account-dashboard__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.account-dashboard__status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6f89a5;
  box-shadow: 0 0 0 3px rgba(111, 137, 165, .12);
}
.account-dashboard__status[data-status="ready"]::before {
  background: #2f9b75;
  box-shadow: 0 0 0 3px rgba(47, 155, 117, .14);
}
.account-dashboard__status[data-status="waiting"]::before {
  background: #c38a32;
  box-shadow: 0 0 0 3px rgba(195, 138, 50, .14);
}
.account-dashboard__action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, #fff 62%);
  border-radius: 13px;
  padding: 9px 15px;
  background: color-mix(in srgb, var(--accent) 9%, #fff 91%);
  color: color-mix(in srgb, var(--ink) 90%, #fff 10%);
  font: 600 13px/1.2 "Manrope", ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .account-dashboard__action:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--accent) 15%, #fff 85%);
    box-shadow: 0 9px 20px rgba(43, 163, 198, .13);
  }
}
.account-new-pass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff 80%);
  background: color-mix(in srgb, var(--accent) 7%, rgba(255, 255, 255, .8) 93%);
}
.account-new-pass__title {
  margin: 0 0 4px;
  font: 600 16px/1.35 "Manrope", ui-sans-serif, system-ui, sans-serif;
}
.account-new-pass__text {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 65%, #fff 35%);
  font-size: 13px;
  line-height: 1.5;
}
.account-new-pass__form {
  margin: 0;
}
.account-new-pass__button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #22aeca 0%, #267cae 100%);
  color: #fff;
  font: 600 14px/1.25 "Manrope", ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(38, 124, 174, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.account-new-pass__button:focus-visible,
.account-dashboard__action:focus-visible {
  outline: 3px solid rgba(43, 163, 198, .28);
  outline-offset: 3px;
}
@media (hover: hover) {
  .account-new-pass__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(38, 124, 174, .25);
  }
}
.account-card::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -28%;
  width: 165%;
  height: 165%;
  background: radial-gradient(
    120% 120% at 20% 18%,
    rgba(43, 163, 198, 0.26),
    rgba(43, 163, 198, 0) 70%
  );
  pointer-events: none;
  opacity: 0.8;
}
.account-card__header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.account-card__title {
  margin: 0;
  font-family: "Orelega One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5.6vw, 44px);
  line-height: 1.12;
}
.account-card__lead {
  margin: 0;
  font-size: clamp(16px, 2.6vw, 19px);
  line-height: 1.6;
  font-weight: 400;
  color: color-mix(in srgb, var(--ink) 78%, #fff 22%);
  max-width: 36ch;
  text-align: center;
}
.account-card__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.account-card__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-card__field label {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ink) 92%, #fff 8%);
}
.account-card__field input {
  height: 52px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--line) 86%);
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .account-card__field input:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line) 62%);
    box-shadow: 0 8px 20px rgba(43, 163, 198, 0.18);
  }
}
.account-card__field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 163, 198, 0.24);
}
.account-card__hint {
  margin: 0px 0px 0px 10px;
  font-size: 12px;
  color: color-mix(in srgb, var(--ink) 55%, #fff 45%);
  line-height: 1.2;
}
.account-card__notice,
.account-card__error {
  position: relative;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.account-card__notice {
  background: rgba(43, 163, 198, 0.12);
  border-color: color-mix(in srgb, var(--accent) 35%, #fff 65%);
  color: color-mix(in srgb, var(--ink) 88%, #fff 12%);
}
.account-card__notice a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
  font-size: 13px;
}
@media (hover: hover) {
  .account-card__notice a:hover {
    color: var(--accent);
  }
}
.account-card__error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.32);
  color: #7f1d1d;
}
.account-card__error ul {
  margin: 0;
  padding-left: 18px;
}
.account-card__error li {
  margin: 4px 0;
}
.account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 20px 8px;
  justify-content: center;
}
.account-card__submit {
  min-width: 220px;
  padding-inline: 26px;
}
@media (hover: hover) {
  .card--login .account-card__submit:hover {
    background: color-mix(in srgb, var(--ink) 92%, #fff 8%);
    box-shadow: 0 12px 28px rgba(22, 38, 58, 0.2);
  }
}
.account-card__logout {
  color: color-mix(in srgb, var(--ink) 70%, #fff 30%);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.account-card__logout::before {
  content: "↺";
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
@media (hover: hover) {
  .account-card__logout:hover {
    color: var(--ink);
    transform: translateY(-1px);
  }
  .account-card__logout:hover::before {
    opacity: 1;
  }
}
.account-card__support {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 65%, #fff 35%);
  text-align: center;
}
.account-card__support a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 163, 198, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.account-data-control {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 11%, transparent 89%);
  color: color-mix(in srgb, var(--ink) 62%, #fff 38%);
}
.account-data-control__title,
.account-card__eyebrow {
  margin: 0 0 7px;
  font: 600 12px/1.3 "Manrope", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 58%, #fff 42%);
}
.account-data-control p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  max-width: 52ch;
}
.account-data-control__form {
  margin-top: 8px;
}
.account-data-control__link,
.account-card__cancel {
  display: inline;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  background: none;
  color: color-mix(in srgb, var(--ink) 67%, #fff 33%);
  font: 600 13px/1.45 "Manrope", ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) {
  .account-data-control__link:hover,
  .account-card__cancel:hover {
    color: var(--ink);
    border-bottom-color: transparent;
  }
}
.account-card--deletion {
  width: min(590px, 100%);
}
.account-card__eyebrow {
  margin-bottom: -3px;
}
.account-card__notice--plain {
  background: rgba(255, 255, 255, .5);
  border-color: color-mix(in srgb, var(--ink) 12%, #fff 88%);
}
.account-card__notice--plain p {
  margin: 0;
}
.account-card__notice--plain p + p {
  margin-top: 12px;
}
.account-card__danger {
  width: 100%;
  min-height: 50px;
  border: 1px solid #9f3434;
  border-radius: 14px;
  background: #a53b3b;
  color: #fff;
  padding: 12px 20px;
  font: 600 15px/1.4 "Manrope", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(127, 29, 29, .16);
}
.account-card__danger:focus-visible,
.account-data-control__link:focus-visible,
.account-card__cancel:focus-visible {
  outline: 3px solid rgba(43, 163, 198, .28);
  outline-offset: 3px;
}
.account-card__cancel {
  align-self: center;
  margin-top: 4px;
}
.account-card__actions--compact {
  margin: 0;
}
@media (hover: hover) {
  .account-card__support a:hover {
    color: color-mix(in srgb, var(--accent) 80%, #0e1a2c 20%);
    border-bottom-color: transparent;
  }
}
@media (max-width: 900px) {
  .card--login {
    padding: clamp(24px, 7vw, 60px) clamp(16px, 5vw, 36px)
      clamp(36px, 9vw, 84px);
  }
  .account-card__lead {
    max-width: unset;
  }
}
@media (max-width: 700px) {
  .account-card {
    border-radius: 24px;
    padding: clamp(24px, 7vw, 36px);
  }
}
@media (max-width: 600px) {
  .card--login {
    padding: 28px 8px 48px;
  }
  .account-card {
    gap: 22px;
  }
  .account-card__header {
    text-align: center;
    align-items: center;
  }
  .account-card__lead {
    font-size: 15px;
  }
  .account-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .account-card__submit {
    width: 100%;
  }
  .account-card__logout {
    justify-content: center;
  }
  .account-card__support {
    text-align: center;
  }
  .account-dashboard__item,
  .account-new-pass {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .account-dashboard__action,
  .account-new-pass__button {
    width: 100%;
  }
  
  .account-card__actions .pill {
    background: linear-gradient(135deg, #00c0d5 0%, #1e7eb7 100%);
    color: #fbffff;
    border-color: #d8e5f6;
    box-shadow: 0 12px 28px rgba(20, 33, 61, .12);
    font-weight: 300 !important;
    justify-content: center;
    transition: box-shadow .25s ease, transform .25s ease;
    font-size: 18px;
    padding: 12px 30px !important;
    height: auto !important;
    border-radius: 16px !important;
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
}
      
.account-card__actions .pill:hover{
        box-shadow:0 8px 16px rgba(20,33,61,.1);
        transform:translateY(-2px);
      }
.account-card__actions .pill:active{
        box-shadow:0 8px 16px rgba(20,33,61,.1);
        transform:translateY(0);
      }
  
  
}
@media (max-width: 420px) {
  .account-card {
    padding: 24px 16px;
  }
  .account-card__field input {
    height: 48px;
  }
  .account-card__submit {
    min-width: 0;
  }
}

/* ——— Footer ——— */
.site-footer {
  margin: 24px 0 26px;
  color: #6b7280;
  margin-top: auto;
}
.site-footer .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
}
.site-footer .f-row {
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.site-footer a {
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  padding: 4px 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
@media (hover: hover) {
  .site-footer a:hover {
    color: var(--ink);
    background: rgba(43, 163, 198, 0.08);
  }
}
.f-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}
.f-brand .dot {
  opacity: 0.5;
}
.site-footer .f-brand > a,
.site-footer .f-brand > span:not(.dot) {
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1.2;
}
.site-footer .f-brand .dot {
  padding: 0;
  opacity: 0.5;
}
.site-footer .copyright__brand {
  display: inline;
  padding: 0;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .site-footer .copyright__brand:hover {
    color: var(--ink);
    background: transparent;
  }
}
.site-footer .copyright__brand:focus-visible {
  outline: 2px solid rgba(43, 163, 198, 0.35);
  outline-offset: 2px;
  background: rgba(43, 163, 198, 0.08);
}
.site-footer .f-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.site-footer .f-telegram img {
  display: block;
  width: 18px;
  height: 18px;
}

/* ——— Legal accordion в футере ——— */
.f-legal {
  display: block;
  color: #6b7280;
}
.legal-accordion {
  display: block;
  position: relative;
}
.legal-accordion summary {
  list-style: none;
  cursor: pointer;
  border: 0;
  outline: 0;
  border-radius: 8px;
  line-height: 1.2;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 6px;
}
.legal-accordion summary::-webkit-details-marker {
  display: none;
}
.legal-accordion summary:after {
  content: "↑";
  opacity: 0.6;
  transform: translateY(-1px);
}
.legal-accordion[open] summary:after {
  transform: rotate(180deg) translateY(1px);
}
@media (hover: hover) {
  .legal-accordion summary:hover {
    color: var(--ink);
    background: rgba(43, 163, 198, 0.08);
  }
}
.legal-accordion ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
  list-style: none;
  padding: 8px 10px;
  min-width: 240px;
  max-width: min(92vw, 520px);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.legal-accordion[open] ul {
  opacity: 1;
  transform: translateY(0);
}
.legal-accordion li + li {
  margin-top: 4px;
}
.legal-accordion a {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
}
@media (hover: hover) {
  .legal-accordion a:hover,
  .legal-accordion a:focus-visible {
    background: rgba(43, 163, 198, 0.08);
    color: var(--ink);
  }
}

/* ——— Consent bar ——— */
.consent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e6e9f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
  max-width: 860px;
  margin: 10px auto 0;
}
.consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #55607a;
  text-wrap: pretty;
}
.consent-text .kbd {
  white-space: nowrap;
  color: #1c274c;
}
.consent-text .dot {
  opacity: 0.45;
  margin: 0 0.4em;
}
.consent-text a {
  color: #0b6b86;
  text-decoration: none;
  border-bottom: 1px dashed rgba(11, 107, 134, 0.45);
  border-radius: 6px;
  padding: 0 2px;
}
@media (hover: hover) {
  .consent-text a:hover {
    background: rgba(43, 163, 198, 0.08);
    border-bottom-color: transparent;
  }
  .consent-text a:focus-visible {
    outline: 2px solid rgba(43, 163, 198, 0.35);
    outline-offset: 2px;
    background: rgba(43, 163, 198, 0.08);
  }
}
.consent-actions {
  display: flex;
  gap: 10px;
}
.consent-actions .pill {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
}

/* ——— SVG zoom block ——— */
.ns-zoom {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.ns-zoom .ns-wrap {
  width: 100%;
  height: 360px;
}
.ns-zoom .ns-toolbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.ns-zoom .ns-toolbar button {
  cursor: pointer;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
}
.ns-zoom .ns-toolbar button:hover {
  background: #f6f6f6;
}
.ns-zoom .ns-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#nsWrap svg text,
#nsWrap svg tspan {
  font-family: "Bitter", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

/* ——— Cookie / localStorage notice ——— */
:root {
  --ns-cookie-notice-height: 0px;
}

.ns-cookie-notice[hidden] {
  display: none !important;
}

.ns-cookie-notice {
  position: fixed;
  z-index: 2147483000;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid rgba(20, 33, 61, .14);
  box-shadow: 0 -12px 30px rgba(20, 33, 61, .12);
  backdrop-filter: blur(12px);
}

.ns-cookie-notice__inner {
  width: min(1260px, calc(100% - 32px));
  min-height: 54px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.ns-cookie-notice__text {
  margin: 0;
  color: #14213d;
  font-size: 13px;
  line-height: 1.45;
}

.ns-cookie-notice__text a {
  color: #1769e0;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 105, 224, .35);
}

.ns-cookie-notice__text a:hover,
.ns-cookie-notice__text a:focus-visible {
  border-bottom-color: currentColor;
}

.ns-cookie-notice__button {
  flex: 0 0 auto;
  min-width: 130px;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  color: #fff;
  background: #3478f6;
  font: 600 13px/1.2 Manrope, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(52, 120, 246, .24);
}

.ns-cookie-notice__button:hover {
  background: #2869df;
}

.ns-cookie-notice__button:focus-visible {
  outline: 3px solid rgba(52, 120, 246, .3);
  outline-offset: 3px;
}

body.ns-cookie-notice-visible .controls {
  bottom: var(--ns-cookie-notice-height);
}

/* ——— Responsive ——— */
@media (max-width: 560px) {
  .logo .brand {
    height: 86px;
  }
  .muted {
    color: #666;
    font-size: 18px;
    line-height: 1.3;
    max-width: 100%;
  }
  .site-footer .f-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .site-footer .f-brand {
    gap: 2px;
  }
  .site-footer .f-brand > a,
  .site-footer .f-brand > span {
    padding: 2px 4px;
  }
  .site-footer .f-brand > .org-desktop-only,
  .site-footer .f-brand > .dot-org-only {
    display: none !important;
  }
  /* consent bar в колонку */
  .consent-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .consent-actions {
    width: 100%;
  }
  .consent-actions .pill {
    flex: 1 1 auto;
  }
  .consent-text {
    text-align: left;
  }

  .ns-cookie-notice__inner {
    width: min(100% - 24px, 520px);
    min-height: 0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    align-items: center;
    gap: 12px;
  }

  .ns-cookie-notice__text {
    font-size: 11px;
    line-height: 1.35;
  }

  .ns-cookie-notice__button {
    min-width: 82px;
    padding: 8px 14px;
    font-size: 12px;
  }

  body {
    background-color: #fff !important;
    background-image: none !important;
  }
}
@media (max-width: 400px) {
  .logo .brand {
    height: 62px;
  }

  .logo .tagline {
    font-size: 10px;
    min-width: 74px;
  }
  .logo {
    gap: 4px;
  }

  .logo__meta {
    min-width: 46px;
  }
}
/* ——— Print ——— */
@media print {
  header.site-header,
  .site-footer,
  .toc,
  .doc-actions {
    display: none !important;
  }
  .doc {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
