/* Прайс-лист Про — публичные страницы (инструкция, лицензия, политика).
   Без внешних шрифтов, скриптов и CDN; шрифт IBM Plex Sans (SIL OFL 1.1, static/fonts/OFL.txt). */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.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;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.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 {
  --ink: #0f172a;
  --muted: #5b6475;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #1e63d6;
  --primary-hover: #1752b4;
  --primary-soft: #eaf1fd;
  --header: #0b1220;
  --header-ink: #e2e8f0;
  --header-muted: #94a3b8;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --warn: #92400e;
  --warn-soft: #fff7ed;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.05);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip:focus {
  top: 12px;
}

/* ---------- Шапка ---------- */
.site-header {
  background: var(--header);
  color: var(--header-ink);
}
.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  min-height: 44px;
}
.brand:hover {
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--header-muted);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--header-ink);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #fff;
}
.site-nav a[aria-current="page"] {
  background: rgba(56, 189, 248, 0.16);
  color: #fff;
  font-weight: 600;
}

/* ---------- Заголовок страницы ---------- */
.hero {
  background: var(--header);
  color: var(--header-ink);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}
.hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero p {
  margin: 0;
  max-width: 760px;
  color: var(--header-muted);
  font-size: 17px;
}
.hero .meta {
  margin-top: 12px;
  font-size: 14px;
}

/* ---------- Раскладка ---------- */
.layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}
.layout--guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@media (min-width: 1024px) {
  .layout--guide {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 40px);
  min-width: 0;
}
.layout--doc .card {
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- Оглавление ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 8px;
}
.toc summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-weight: 600;
}
.toc ol {
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  counter-reset: toc;
}
.toc li a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}
.toc li a:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.toc--desktop {
  display: none;
  padding: 8px;
}
@media (min-width: 1024px) {
  .toc--mobile {
    display: none;
  }
  .toc--desktop {
    display: block;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}

.toc summary,
.doc-toc summary {
  justify-content: space-between;
  list-style: none;
}
.toc summary::-webkit-details-marker,
.doc-toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after,
.doc-toc summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.toc[open] > summary::after,
.doc-toc[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
@media (prefers-reduced-motion: no-preference) {
  .toc summary::after,
  .doc-toc summary::after {
    transition: transform 0.15s ease-out;
  }
}
.nowrap {
  white-space: nowrap;
}

/* ---------- Текст ---------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  margin: 40px 0 12px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  scroll-margin-top: 16px;
}
.prose > h2:first-child,
.prose > section:first-child > h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  scroll-margin-top: 16px;
}
.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose li + li {
  margin-top: 6px;
}
.prose strong {
  font-weight: 600;
}
.prose section {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.prose section:first-child {
  border-top: 0;
  padding-top: 0;
}
.ui {
  font-weight: 600;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}
code {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 1px 7px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 30px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 600;
  font-size: 15px;
  line-height: 30px;
  text-align: center;
}

.note {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #bfd3f6;
  background: var(--primary-soft);
}
.note--ok {
  border-color: #bbe5c8;
  background: var(--ok-soft);
}
.note--warn {
  border-color: #fed7aa;
  background: var(--warn-soft);
}
.note > :last-child {
  margin-bottom: 0;
}

figure {
  margin: 8px 0 24px;
}
figure img {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
figure.narrow img {
  max-width: 320px;
}
figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: #f8fafc;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: 0;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 10px;
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 600;
  list-style-position: inside;
}
.faq details > div {
  padding: 0 16px 4px;
}

.contacts {
  list-style: none;
  padding-left: 0 !important;
}
.contacts li {
  margin: 0 0 6px;
}

/* ---------- Документы ---------- */
.doc-toc {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.doc-toc summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 600;
}
.doc-toc ol {
  margin: 0;
  padding: 0 16px 12px 40px;
}
.doc-toc li + li {
  margin-top: 4px;
}
.doc h2 {
  font-size: 20px;
  margin-top: 32px;
}
.doc p {
  margin: 0 0 10px;
}
.doc .requisites {
  margin-top: 8px;
  padding: 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.doc .requisites p {
  margin: 0;
}

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--primary-hover);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

@media (max-width: 600px) {
  .site-header__inner,
  .hero__inner,
  .layout,
  .site-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-nav a {
    padding: 0 10px;
  }
  .prose h2 {
    font-size: 21px;
  }
  th,
  td {
    padding: 8px 10px;
  }
}

@media print {
  .site-header,
  .site-nav,
  .toc,
  .skip,
  .site-footer ul {
    display: none !important;
  }
  body,
  .hero {
    background: #fff;
    color: #000;
  }
  .hero h1 {
    color: #000;
  }
  .hero p {
    color: #333;
  }
  .card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  a {
    color: #000;
  }
}
