/* Облако 360 — стили сайта. Один файл, без фреймворков: скорость загрузки —
   фактор ранжирования, а каждая лишняя библиотека — килобайты и задержка.

   Стиль «склад и этикетка»: светлая бумага, графитовый текст, фирменный
   синий и жёлтый маркер, как на складской этикетке. Узкий Oswald — шрифт
   слова «Облако» в логотипе, моноширинный JetBrains Mono — его «360»; им же
   набраны цифры: цены, сроки, коды. Без свечений, градиентов и 3D. */

@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrainsmono-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrainsmono-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: italic; src: url("/assets/fonts/jetbrainsmono-italic-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f2f4f7;          /* второй фон: чередование секций */
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --line: #e1e5ec;
  --line-2: #c5ccd8;
  --text: #15171c;          /* графит */
  --muted: #5a6272;
  --brand: #2563ff;         /* синий из логотипа */
  --brand-hover: #1a4fe0;
  --brand-ink: #1846c9;     /* синий для текста ссылок: контраст на белом */
  --brand-soft: #e9efff;
  --mark: #ffd60a;          /* жёлтый маркер, как стикер на коробке */
  --ink: #15171c;           /* тёмные полосы: призыв, подвал */
  --ink-2: #23262e;
  --ink-muted: #a3aab8;
  --ok: #13834a;
  --danger: #c62828;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--brand) var(--brand-soft);
  }

  @supports not (scrollbar-width: thin) {
    html::-webkit-scrollbar { width: 10px; }
    html::-webkit-scrollbar-track { background: var(--brand-soft); }
    html::-webkit-scrollbar-thumb {
      background: var(--brand);
      border: 2px solid var(--brand-soft);
      border-radius: 999px;
    }
    html::-webkit-scrollbar-thumb:hover { background: var(--brand-hover); }
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, .h3 { line-height: 1.15; margin: 0 0 .55em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 550; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; }
h3, .h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.mt { margin-top: 2.5rem; }

/* ---------- Логотип: «360» в синем квадрате, «Облако» узким шрифтом ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; background: var(--brand); color: #fff; font: italic 600 13px/1 var(--mono); letter-spacing: -.02em; }
.logo-word { font: 500 1.5rem/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.logo-word b { margin-left: .18em; color: var(--brand); font: italic 600 .9em/1 var(--mono); letter-spacing: -.02em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 26px;
  background: var(--brand); color: #fff; border: 1.5px solid var(--brand); border-radius: var(--radius);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .94rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Полоса предпросмотра статьи из админки. */
.preview-bar { position: sticky; top: 0; z-index: 51; padding: 8px 16px; background: var(--mark); color: var(--text); text-align: center; font: 600 .85rem/1.4 var(--mono); }
.preview-bar + .header { top: 37px; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.nav { flex: 1; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font-size: .96rem; font-weight: 500; border-bottom: 2px solid transparent; }
.nav > ul > li > a { padding-inline: 9px; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { color: var(--brand-ink); background: var(--brand-soft); }
.nav > ul > li > a[aria-current] { border-bottom-color: var(--mark); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: .6; transition: transform .18s ease; }
.has-sub:hover > a::after, .has-sub:focus-within > a::after { transform: translateY(0) rotate(225deg); }
.sub {
  position: absolute; left: -20px; top: 100%; display: grid;
  grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 8px 24px;
  width: max-content; max-width: 92vw; padding: 18px 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 16px 40px -20px rgba(21, 23, 28, .35);
  /* Короткая задержка закрытия при выходе курсора из меню. */
  opacity: 0; visibility: hidden;
  transition: opacity .12s ease .16s, visibility 0s linear .28s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible;
  transition: opacity .12s ease, visibility 0s;
}
.sub ul { list-style: none; padding: 0; margin: 0; }
.sub a { padding: 7px 10px; font-size: .93rem; font-weight: 400; color: var(--text); border: 0; }
.sub a:hover { color: var(--brand-ink); background: var(--bg-2); }
.sub-title { font: 600 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px 10px; }
.header-cta { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.header-cta .btn { white-space: nowrap; }
.header-phone { color: var(--text); text-decoration: none; font: 600 .98rem var(--mono); white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); position: relative; transition: transform .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px 20px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: #fff; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0 0 16px; }
.mobile-nav ul ul { padding-left: 14px; margin: 0; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 500; }
.mobile-nav ul ul a { color: var(--muted); padding: 7px 0; font-weight: 400; }

/* ---------- Поиск ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-toggle { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .15s, color .15s; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--brand-ink); border-color: var(--brand); }
.search-toggle .icon { width: 20px; height: 20px; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 16px 0 18px; background: #fff; border-bottom: 1.5px solid var(--text); box-shadow: 0 24px 40px -28px rgba(21, 23, 28, .45); }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px; background: #fff; color: var(--text);
  border: 1.5px solid var(--text); border-radius: var(--radius); font: 400 1.05rem var(--font);
}
.search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-form .btn { height: 50px; gap: 8px; }
.search-form .btn .icon { width: 18px; height: 18px; }
.search-form-lg { margin-top: 22px; }
.search-suggest { margin-top: 10px; max-height: min(60vh, 520px); overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
.search-suggest a { display: block; padding: 12px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover, .search-suggest a[aria-selected="true"] { background: var(--bg-2); }
.search-suggest b { display: block; font-weight: 600; }
.search-suggest small { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.search-suggest .search-kind { margin-right: 8px; }
.search-suggest .search-all { color: var(--brand-ink); font-weight: 600; }
.search-suggest .search-empty { padding: 14px 16px; margin: 0; color: var(--muted); }
.search-kind { display: inline-block; padding: 2px 7px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 2px; font: 600 .68rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; vertical-align: 2px; }
mark { background: var(--mark); color: inherit; padding: 0 1px; border-radius: 2px; }
.search-count { margin: 16px 0 0; color: var(--muted); }
.search-section { padding-top: 32px; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.search-results li { padding: 18px 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .15s; }
.search-results li:hover { border-color: var(--brand); }
.search-title { display: block; margin-top: 8px; font: 600 1.15rem/1.35 var(--font); color: var(--text); text-decoration: none; }
.search-title:hover { color: var(--brand-ink); text-decoration: underline; }
.search-results p { margin: 6px 0 4px; color: var(--muted); }
.search-url { font: .8rem var(--mono); color: var(--ok); overflow-wrap: anywhere; }
.search-hint { margin: 0 0 10px; color: var(--muted); }
@media (max-width: 640px) {
  .search-toggle { width: 40px; height: 40px; }
  .search-form .btn span { display: none; }
  .search-form .btn { width: 50px; padding: 0; justify-content: center; }
  .search-results li { padding: 14px 16px; }
}

/* ---------- Крошки ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 18px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero-small { padding: 40px 0 36px; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-img .hero-grid, .hero-visual .hero-grid { grid-template-columns: 1.1fr .9fr; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media img { width: 100%; border-radius: var(--radius); }
.hero-landing { padding: 54px 0 62px; background: #f5f8ff; }
.hero-landing h1 { max-width: 17ch; margin-bottom: 16px; font-size: clamp(2.5rem, 4.3vw, 4.35rem); }
.hero-landing .badge {
  display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 14px; padding: 0;
  background: transparent; color: var(--brand-ink); font: 600 .86rem/1.4 var(--font);
  letter-spacing: normal; text-transform: none;
}
.hero-landing .badge::before { content: ""; width: 8px; height: 8px; background: var(--mark); border-radius: 50%; }
.hero-landing .hero-lead { max-width: 48ch; margin-bottom: 0; }
.hero-landing .hero-media img { max-height: 360px; object-fit: cover; }
.hero-landing .hero-actions { margin-top: 22px; align-items: center; }
.hero-landing .btn-ghost { border-color: transparent; color: var(--brand-ink); }
.hero-landing .btn-ghost:hover { background: var(--brand-soft); color: var(--brand-ink); }
.hero-assurance { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.hero-assurance .icon { color: var(--ok); }
/* Бейдж — жёлтый стикер с моноширинной надписью. */
.badge { display: inline-block; padding: 5px 10px; margin-bottom: 20px; background: var(--mark); color: var(--text); border-radius: 2px; font: 600 .78rem/1.3 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--brand); margin-top: 3px; }

/* Этикетка на первом экране главной: образец кода маркировки с подписями. */
.label-demo { position: relative; justify-self: center; width: 100%; max-width: 460px; margin: 0; }
.label-sheet {
  position: relative; display: grid; grid-template-columns: 44% 1fr; gap: 18px; align-items: center;
  padding: 22px; background: #fff; border: 1.5px solid var(--text); border-radius: 4px;
  box-shadow: 0 3px 8px rgba(21, 23, 28, .06), 0 14px 32px rgba(21, 23, 28, .12);
}
.label-code { color: var(--text); }
.label-code svg { display: block; width: 100%; height: auto; }
.label-lines { display: grid; gap: 6px; font: 500 .8rem/1.35 var(--mono); color: var(--text); min-width: 0; }
.label-lines span { display: block; overflow-wrap: anywhere; }
.label-lines .label-name { font: 600 1.05rem/1.2 var(--font); margin-bottom: 4px; }
.label-lines .label-k { color: var(--muted); }
.label-stamp { position: absolute; right: -10px; top: -14px; padding: 4px 9px; background: var(--brand); color: #fff; font: 600 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; border-radius: 2px; transform: rotate(3deg); }
.label-part > summary {
  list-style: none; cursor: pointer; border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.label-part > summary::-webkit-details-marker { display: none; }
.label-part[open] > summary, .label-part > summary:focus-visible {
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.label-tip {
  position: absolute; z-index: 2; inset: calc(100% + 10px) 0 auto;
  margin: 0; padding: 10px 14px; border: 1px solid var(--line-2);
  border-left: 3px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: 0 6px 18px rgba(21, 23, 28, .12);
  color: var(--text); font: 400 .86rem/1.45 var(--font);
}
@media (hover: hover) and (pointer: fine) {
  .label-part:hover > summary { transform: scale(1.035); box-shadow: 0 0 0 3px var(--brand-soft); }
  .label-part:not([open]):hover::details-content { content-visibility: visible; }
  .label-part:hover > .label-tip { z-index: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .label-part > summary { transition: none; }
}
.label-note { margin: 22px 0 0; font-size: .87rem; color: var(--muted); }
.label-demo .label-order { margin-top: 12px; }
.label-hint { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 760px; margin-bottom: 36px; }
.task-section { padding: 38px 0 50px; border-bottom: 1px solid var(--line); }
.task-section h2 { margin-bottom: 20px; }
.task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.task-list li { border-top: 1px solid var(--line); }
.task-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 85px; padding: 12px 8px; color: var(--text); text-decoration: none;
}
.task-link:hover { background: var(--brand-soft); color: var(--brand-ink); }
.task-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink); }
.task-copy { display: grid; gap: 2px; line-height: 1.4; }
.task-copy span { color: var(--muted); font-size: .9rem; }
.task-link > .icon { color: var(--brand-ink); }
.task-calendar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  margin-top: 18px; padding: 16px; border: 1px solid #bacafa; border-left: 4px solid var(--brand);
  border-radius: var(--radius); background: var(--brand-soft); color: var(--text); text-decoration: none;
}
.task-calendar:hover { background: #dfe8ff; color: var(--text); }
.task-calendar-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #fff; color: var(--brand-ink); border-radius: var(--radius); }
.task-calendar-copy { display: grid; gap: 2px; }
.task-calendar-copy strong { font-size: 1.1rem; }
.task-calendar-copy span { color: var(--muted); font-size: .9rem; }
.task-calendar-action { display: flex; align-items: center; gap: 8px; color: var(--brand-ink); font-weight: 650; }

/* Календарь маркировки */
.calendar-intro { padding: 28px 0 26px; background: #f0f5ff; border-bottom: 1px solid var(--line); }
.calendar-intro h1 { margin-bottom: 12px; font-size: clamp(2rem, 3.5vw, 3.1rem); }
.calendar-intro p { max-width: 66ch; margin: 0; }
.calendar-intro .calendar-source { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.marking-calendar { background: #f7f9fd; }
.container.calendar-content { padding-top: 26px; padding-bottom: 42px; }
.calendar-filters {
  display: grid; grid-template-columns: minmax(6rem, .55fr) minmax(0, 1.65fr) minmax(0, 1.45fr) auto; align-items: end; gap: 12px;
  padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.calendar-filter, .calendar-search { display: grid; min-width: 0; gap: 5px; font-weight: 600; font-size: .88rem; }
.calendar-search-wrap { position: relative; grid-column: 1 / -1; min-width: 0; }
.calendar-search-field { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--muted); }
.calendar-search-field:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.calendar-search-input { position: relative; flex: 1; min-width: 0; font: 500 .95rem var(--font); }
.calendar-search-field input { position: relative; width: 100%; min-width: 0; min-height: 46px; padding: 0; border: 0; outline: 0; font: inherit; background: transparent; color: var(--text); }
.calendar-completion { position: absolute; inset: 0 20px 0 0; display: flex; align-items: center; overflow: hidden; white-space: pre; color: #66758b; pointer-events: none; }
.calendar-completion[hidden] { display: none; }
.calendar-completion > span:first-child { color: transparent; }
.calendar-filters select, .calendar-select summary {
  width: 100%; min-height: 50px; padding: 0 10px; border: 1px solid var(--line-2);
  border-radius: var(--radius); color: var(--text); background: #fff; font: inherit;
}
.calendar-select { position: relative; min-width: 0; }
.calendar-select summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; line-height: 1.25; }
.calendar-select summary::-webkit-details-marker { display: none; }
.calendar-select summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 3px 0 0; border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.calendar-select[open] summary { border-color: var(--brand); background: #f7f9ff; }
.calendar-select[open] summary::after { transform: rotate(225deg); }
.calendar-select-panel {
  position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; width: 100%; min-width: min(13rem, 100%);
  padding: 7px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px #182e6026;
}
.calendar-select-panel input { width: 100%; margin-bottom: 6px; padding: 8px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; }
.calendar-select-options { max-height: min(15rem, 35vh); overflow-y: auto; overscroll-behavior: contain; }
.calendar-select-options button { display: block; width: 100%; padding: 8px; text-align: left; border: 0; border-radius: 5px; background: #fff; color: var(--text); font: 500 .86rem/1.25 var(--font); cursor: pointer; }
.calendar-select-options button[hidden] { display: none; }
.calendar-select-options button:hover, .calendar-select-options button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.calendar-select-options p { margin: 5px 8px; color: var(--muted); }
.calendar-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: baseline; margin-top: 32px; }
.calendar-summary h2 { margin: 0; }
.calendar-summary h2 span { padding: 3px 8px; background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--radius); font: 700 .9rem var(--font); vertical-align: middle; }
.calendar-note { margin: 8px 0 18px; color: var(--muted); font-size: .9rem; }
.calendar-catalog { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); align-items: start; gap: 20px; }
.calendar-categories {
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 2;
  display: grid; max-height: calc(100dvh - var(--header-h) - 24px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.calendar-categories a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 54px; padding: 9px 10px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; font-size: .86rem; font-weight: 650; }
.calendar-categories a + a { border-top: 1px solid var(--line); }
.calendar-categories a:hover { background: var(--brand-soft); }
.calendar-categories a[aria-current] { border-left-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.calendar-categories a:focus-visible { outline-offset: -3px; }
.calendar-category-count { color: var(--muted); font-size: .75rem; }
.calendar-category-title { margin: 0 0 12px; font: 720 1.22rem/1.25 var(--font); }
.calendar-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.calendar-group-card {
  display: grid; grid-template-rows: auto auto 1fr auto; align-items: start; gap: 10px;
  height: 100%; min-width: 0; padding: 17px; background: #fff; border: 1px solid var(--line-2);
  border-top: 3px solid var(--brand); border-radius: 11px; color: var(--text); text-decoration: none;
}
.calendar-group-card:hover { border-color: var(--brand); background: #f9fbff; color: var(--text); }
.calendar-group-card-active { border-top-color: #20765d; }
.calendar-group-card-past { border-top-color: #8595af; }
.calendar-group-card h3 { margin: 0; font: 720 1.12rem/1.25 var(--font); overflow-wrap: anywhere; }
.calendar-card-count { justify-self: start; padding: 3px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-ink); font-size: .78rem; font-weight: 650; }
.calendar-card-milestone { display: grid; align-content: start; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; line-height: 1.45; }
.calendar-card-milestone strong { color: var(--text); font-size: .92rem; }
.calendar-card-label { color: var(--brand-ink); font-weight: 650; }
.calendar-group-card-active .calendar-card-label { color: #166a52; }
.calendar-group-card-past .calendar-card-label { color: var(--muted); }
.calendar-card-detail { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.calendar-card-action { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-ink); font-size: .9rem; font-weight: 650; }
.calendar-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.calendar-jumps a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; color: var(--brand-ink); font-size: .88rem; text-decoration: none; }
.calendar-jumps a:hover { background: var(--brand-soft); }
.calendar-jumps span { color: var(--muted); font-variant-numeric: tabular-nums; }
.calendar-track { --track: var(--brand-ink); --track-soft: var(--brand-soft); margin-top: 30px; }
.calendar-track-active { --track: #166a52; --track-soft: #e2f3eb; }
.calendar-track-past { --track: #586577; --track-soft: #edf0f5; }
.calendar-track-title { margin: 0 0 14px; font: 720 clamp(1.2rem, 2vw, 1.6rem)/1.2 var(--font); }
.calendar-events { position: relative; display: grid; gap: 10px; margin: 0; padding: 0 0 0 23px; list-style: none; }
.calendar-events::before { content: ""; position: absolute; top: 15px; bottom: 15px; left: 5px; width: 2px; background: var(--line-2); }
.calendar-events li {
  position: relative; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 18px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.calendar-events li::before {
  content: ""; position: absolute; left: -24px; top: 20px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--track); border: 2px solid #f7f9fd;
}
.calendar-events li:target { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.calendar-date { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; color: var(--muted); font-size: .86rem; }
.calendar-date span { display: block; padding: 4px 7px; border-radius: 5px; background: var(--track-soft); color: var(--track); }
.calendar-date time { font-weight: 700; }
.calendar-event h4 { margin: 3px 0 9px; font: 680 1.12rem/1.35 var(--font); }
.calendar-group { margin: 0; color: var(--brand-ink); font-size: .86rem; font-weight: 650; }
.calendar-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.calendar-kind { display: inline-block; padding: 3px 7px; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text); font-size: .8rem; }
.calendar-pilot { background: #fff2b5; }
.calendar-event a { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; }
.calendar-event a .icon { width: 13px; height: 13px; }
.calendar-empty { padding: 18px; background: var(--bg-2); }

.section-services-compact .grid { gap: 0 32px; }
.section-services-compact .card-link {
  min-height: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 8px; box-shadow: none;
}
.section-services-compact .card-link:hover { transform: none; background: var(--brand-soft); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.section-alt .card { border-color: var(--line-2); }
.card h3 { margin-bottom: .45em; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-icon { display: block; width: 30px; height: 30px; margin-bottom: 16px; color: var(--brand); }
.card-icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.card-img { margin: -26px -26px 20px; border-bottom: 1px solid var(--line); background: #fff; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-img img { width: 100%; height: 170px; object-fit: contain; padding: 14px; }
/* Карточка-ссылка: при наведении чуть увеличивается и мягко приподнимается. */
.card-link { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-link:hover { transform: scale(1.03); border-color: var(--line-2); box-shadow: 0 14px 32px -14px rgba(21, 23, 28, .28); color: inherit; }
.card-link:hover h3 { color: var(--brand-ink); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--brand-ink); font-weight: 600; font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.steps p { color: var(--muted); margin: 0; }
.step-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 3px; background: var(--text); color: #fff; font: 600 .95rem var(--mono); }

.plans { align-items: stretch; }
.plan { gap: 0; }
.plan .ticks { margin: 18px 0 24px; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan-popular { border: 2px solid var(--brand); }
.plan-tag { position: absolute; top: -12px; right: 18px; padding: 3px 10px; background: var(--mark); color: var(--text); border-radius: 2px; font: 600 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.plan-note { font-size: .92rem; }
.price { font: 600 1.75rem/1.2 var(--mono); letter-spacing: -.02em; color: var(--text) !important; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.price span { font: 400 .92rem var(--font); letter-spacing: 0; color: var(--muted); }
.footnote { color: var(--muted); font-size: .92rem; margin-top: 20px; }

.product .product-img { display: grid; place-items: center; height: 170px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.product .product-img img { max-height: 150px; width: auto; object-fit: contain; }
.specs { flex: 1; padding-left: 1.1em; color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.product .price { margin-bottom: 16px; }
.product .btn { margin-top: auto; }

/* Таблицы цен — как прайс-лист: линейки, цифры моноширинным. */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-2); font: 600 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom-color: var(--line-2); }
tbody th { font-weight: 500; }
tbody td { font-variant-numeric: tabular-nums; }
.price-table tbody td:not(:first-child) { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-of-type { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; position: relative; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.07rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--mono); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--muted); }
.faq-a p, .faq-a li { color: #3b414d; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split-rev .split-media { order: -1; }
.split-media img { border-radius: var(--radius); }

/* Призыв к действию — тёмная полоса, единственная на экране. */
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; background: var(--ink); color: #fff; border-radius: var(--radius); border-left: 8px solid var(--mark); }
.cta-title { font: 600 1.7rem/1.15 var(--display); margin-bottom: .3em; color: #fff; }
.cta-box p:last-child { margin-bottom: 0; color: var(--ink-muted); }
.cta-box .btn-ghost { border-color: #fff; color: #fff; }
.cta-box .btn-ghost:hover { background: #fff; color: var(--text); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: .95rem; }
.chip:hover { border-color: var(--text); color: var(--text); }

/* Логотипы партнёров — серыми, цвет при наведении: не спорят с фирменным синим. */
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; overflow: hidden; }
.partners li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 16px; color: var(--muted); font-size: .88rem; border-right: 1px solid var(--line); }
.partners li:last-child { border-right: 0; }
#partners, #team { text-align: center; }
#partners .section-intro { margin-inline: auto; }
.team-card { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 480px; margin-inline: auto; }
.team-avatar { flex: none; border-radius: 50%; object-fit: cover; }
.partner-logo { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners li:hover .partner-logo { filter: none; opacity: 1; }

.review { border-left: 4px solid var(--mark); }
.review blockquote { margin: 0 0 16px; color: var(--text); font-size: 1.05rem; }
.review blockquote p { color: var(--text); }
.review figcaption { color: var(--muted); font-size: .92rem; }
.reviews-more { margin-top: 20px; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .icon { color: var(--brand); }
.contact-list a { color: var(--text); }
.req { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .req { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .req dt:not(:first-child) { margin-top: 8px; }
}
.req-id { font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }
.doc-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.doc-list li { display: flex; gap: 12px; align-items: center; }
.doc-list .icon { color: var(--brand); }

/* ---------- Заявка ---------- */
.section-lead { background: var(--bg-2); border-top: 1px solid var(--line); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lead-side p { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.lead-form { padding: 30px; background: #fff; border: 1.5px solid var(--text); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--brand); }
.lead-title { font: 600 1.5rem/1.2 var(--display); margin-bottom: .3em; }
.lead-text { color: var(--muted); }
.lead-fields { display: grid; gap: 6px; margin-bottom: 14px; }
.lead-fields label { font-size: .86rem; font-weight: 500; color: var(--text); margin-top: 8px; }
.lead-fields input, .lead-fields textarea {
  width: 100%; padding: 13px 14px; background: #fff; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; resize: vertical;
}
.lead-code-order { display: grid; gap: 6px; min-width: 0; margin: 10px 0 0; padding: 8px 14px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.lead-code-order[hidden] { display: none; }
.lead-code-order legend { padding: 0 5px; font-weight: 600; }
.lead-fields input::placeholder, .lead-fields textarea::placeholder { color: #9aa1ae; }
.lead-fields input:focus, .lead-fields textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lead-fields input[aria-invalid="true"] { border-color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.lead-status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; }
.lead-status.ok { color: var(--ok); }
.lead-status.err { color: var(--danger); }
.lead-form.sent .lead-fields, .lead-form.sent .consent, .lead-form.sent button { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Статьи ---------- */
.article-card time { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 8px; }
.article-head { padding-top: 32px; }
.article-meta { color: var(--muted); font-size: .92rem; }
.article-cover img { border-radius: var(--radius); margin-top: 20px; }
.article-body { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 48px; padding-top: 32px; padding-bottom: 48px; justify-content: center; }
.article-body > * { min-width: 0; }
.article-body .prose:only-child { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; font-size: .92rem; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.toc-title { font: 600 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
/* Полоса слева — шкала статьи; текущий раздел (site.js ставит .active) подсвечен на ней. */
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 4px 0 4px 14px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); font-weight: 600; border-left-color: var(--brand); }
.toc-3 a { padding-left: 28px; font-size: .95em; }
.prose { font-size: 1.07rem; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.55rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: #2c313b; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; background: var(--bg-2); border-left: 4px solid var(--mark); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: 0; }
.prose code { padding: 2px 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; font: .88em var(--mono); }
.prose .table-wrap { margin: 1.4em 0; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

/* ---------- Подвал ---------- */
.footer {
  padding: 48px 0 32px; border-top: 1px solid var(--line);
  background: var(--ink); color: var(--surface); font-size: .93rem;
}
.footer .logo, .footer .logo:hover { color: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; align-items: start; gap: 28px; }
.footer-grid > * { min-width: 0; }
.footer p { color: var(--ink-muted); }
.footer p.footer-title { color: var(--surface); font-weight: 650; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--surface); text-decoration: none; }
.footer a:hover { color: #a9c2ff; text-decoration: underline; }
.footer-req { font-size: .82rem; line-height: 1.6; margin-top: 18px; font-variant-numeric: tabular-nums; }
.footer-contact-card {
  padding: 16px; border: 1px solid #414754;
  border-top: 3px solid var(--brand); border-radius: var(--radius); background: var(--ink-2);
}
.footer-contacts { overflow-wrap: anywhere; }
.footer-contacts a[data-kind="phone"] { color: #a9c2ff; font-size: 1.12rem; font-weight: 650; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; color: #a9c2ff; background: #303b52; border-radius: var(--radius); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #414754; }
.footer-bottom p { margin: 0; font-size: .85rem; }

/* ---------- Нижняя панель на телефоне и cookie ---------- */
.mobile-bar { display: none; }
.cookie {
  position: fixed; z-index: 60; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  width: min(390px, calc(100% - 40px)); max-height: min(70dvh, 360px);
  background: var(--surface); border: 1px solid var(--line-2);
  border-top: 3px solid var(--brand); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(21, 23, 28, .14);
  font-size: .9rem; line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 14px; }
.cookie-body h2 { font-size: 1.4rem; margin-bottom: 6px; }
.cookie-icon { display: inline-block; width: 36px; height: 36px; margin-inline-end: 8px; vertical-align: middle; }
.cookie p { margin: 0; color: var(--muted); }
@media (forced-colors: none) {
  .cookie-body, .cd-body {
    scrollbar-width: thin;
    scrollbar-color: var(--brand) var(--brand-soft);
  }
}
.cookie-more, .link-btn { padding: 0; border: 0; background: none; color: var(--brand-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-more:hover, .link-btn:hover { color: var(--brand); }
.footer .link-btn { color: var(--surface); text-decoration: none; }
.footer .link-btn:hover { color: #a9c2ff; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.cookie-actions .cookie-btn { flex: 1 1 auto; }
.cookie-btn {
  flex: none; height: 38px; padding: 0 16px; border: 1.5px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font: 600 .86rem/1 var(--font); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.cookie-btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.cookie-btn-ghost { background: #fff; border-color: var(--text); color: var(--text); }
.cookie-btn-ghost:hover { background: var(--text); border-color: var(--text); color: #fff; }

/* Окно настроек cookie (<dialog>). */
.cookie-dialog { width: min(680px, calc(100vw - 24px)); max-height: min(86vh, 860px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(21, 23, 28, .24); color: var(--text); background: #fff; }
.cookie-dialog::backdrop { background: rgba(21, 23, 28, .55); }
.cookie-dialog[open] { display: flex; animation: cd-in .18s ease; }
@keyframes cd-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cd-form { display: flex; flex-direction: column; width: 100%; max-height: inherit; margin: 0; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cd-head h2 { margin: 0; font-size: 1.6rem; }
.cd-close { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font: 400 1.5rem/1 var(--font); color: var(--text); cursor: pointer; }
.cd-close:hover { border-color: var(--text); }
.cd-body { overflow-y: auto; overflow-x: hidden; padding: 18px 22px 6px; display: grid; gap: 14px; }
.cd-body > * { min-width: 0; }
.cd-intro { margin: 0; color: var(--muted); font-size: .94rem; }
.cd-group { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.cd-group p { margin: 6px 0 12px; color: var(--muted); font-size: .92rem; }
.cd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd-row h3 { margin: 0; font-size: 1.05rem; }
.cd-row label { cursor: pointer; }
.cd-always { font: 600 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; color: var(--muted); white-space: nowrap; }
.cd-switch { position: relative; flex: none; width: 46px; height: 26px; }
.cd-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cd-switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--line-2); transition: background .15s; }
.cd-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.cd-switch input:checked + span { background: var(--brand); }
.cd-switch input:checked + span::after { transform: translateX(20px); }
.cd-switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cd-table { width: 100%; table-layout: fixed; font-size: .84rem; border: 1px solid var(--line); }
.cd-table th:nth-child(1) { width: 30%; }
.cd-table th:nth-child(3) { width: 24%; }
.cd-table td { overflow-wrap: anywhere; }
.cd-table th, .cd-table td { padding: 7px 10px; }
.cd-table thead th { font-size: .66rem; }
.cd-table td:first-child { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.cd-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 640px) {
  .cd-head, .cd-body, .cd-foot { padding-left: 16px; padding-right: 16px; }
  .cd-head h2 { font-size: 1.3rem; }
  .cd-table td:first-child { white-space: normal; }
  .cd-table th, .cd-table td { padding: 6px 7px; }
  .cd-group { padding: 12px; }
  .cd-foot .cookie-btn { flex: 1 1 auto; }
}

/* Список ссылок (секция links): товарные группы и т. п. */
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.link-grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.link-grid a:hover { transform: scale(1.03); border-color: var(--brand); box-shadow: 0 10px 24px -12px rgba(21, 23, 28, .25); color: var(--brand-ink); }
.link-grid .icon { color: var(--brand); width: 1.1em; height: 1.1em; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-body { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 18px 20px; background: var(--bg-2); border-radius: var(--radius); }
  .partners li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 860px) {
  .hero-img .hero-grid, .hero-visual .hero-grid, .split, .lead-grid { grid-template-columns: 1fr; }
  /* На телефоне первый экран — заголовок и кнопка, картинка ниже и ниже ростом. */
  .hero-media img { max-height: 260px; object-fit: cover; }
  .label-demo { justify-self: start; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero-landing .hero-grid { gap: 32px; }
  .task-section { padding: 32px 0 42px; }
  .calendar-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-catalog { grid-template-columns: 1fr; gap: 14px; }
  .calendar-categories { display: flex; max-height: none; overflow-x: auto; }
  .calendar-categories a { flex: 0 0 170px; border-left: 0; border-bottom: 3px solid transparent; }
  .calendar-categories a + a { border-top: 0; border-left: 1px solid var(--line); }
  .calendar-categories a[aria-current] { border-bottom-color: var(--brand); }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .container { padding: 0 16px; }
  .header-row { gap: 8px; }
  .header-phone { display: none; }
  .burger { margin-left: 0; }
  .logo-mark { width: 34px; height: 34px; font-size: 12px; }
  .logo-word { font-size: 1.32rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 48px; }
  .hero-actions .btn { width: 100%; }
  .hero-landing { padding: 24px 0 32px; }
  .hero-landing h1 { max-width: none; font: 750 clamp(1.8rem, 7vw, 2.4rem)/1.13 var(--font); letter-spacing: -.035em; }
  .hero-landing .hero-lead { font-size: 1rem; line-height: 1.5; }
  .hero-landing .hero-actions { margin-top: 16px; gap: 4px; }
  .hero-landing .hero-actions .btn-ghost { min-height: 42px; }
  .hero-landing .hero-grid { gap: 26px; }
  .hero-landing .hero-media img { max-height: 180px; }
  .task-list { grid-template-columns: 1fr; }
  .task-link { min-height: 72px; }
  .task-calendar { grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; }
  .task-calendar-action { grid-column: 2; }
  .calendar-intro { padding: 24px 0; }
  .calendar-intro h1 { font: 750 clamp(1.65rem, 7vw, 2.1rem)/1.15 var(--font); letter-spacing: -.025em; }
  .container.calendar-content { padding-top: 16px; padding-bottom: 30px; }
  .calendar-filters { grid-template-columns: 1fr; gap: 10px; }
  .calendar-group-grid { grid-template-columns: 1fr; }
  .calendar-events { padding-left: 18px; }
  .calendar-events li { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .calendar-events li::before { left: -19px; top: 16px; }
  .calendar-date { flex-direction: row; flex-wrap: wrap; }
  .card, .lead-form { padding: 20px; }
  .card-img { margin: -20px -20px 18px; }
  .lead-form { box-shadow: 5px 5px 0 var(--brand); }
  .label-sheet { padding: 16px; gap: 14px; }
  .label-stamp { right: 10px; }
  .label-demo { padding-right: 6px; }
  .cta-box { padding: 24px; }
  .footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-contact-card { grid-column: 1 / -1; }
  th, td { padding: 11px 12px; }
  .mobile-bar {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border-top: 1.5px solid var(--text); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--text); text-decoration: none; font-size: .72rem; font-weight: 500; }
  .mobile-bar .icon { color: var(--brand); }
  .mobile-bar a[href="#zayavka"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
  .cookie {
    right: 12px; bottom: calc(60px + env(safe-area-inset-bottom));
    width: min(390px, calc(100% - 24px));
    max-height: min(65dvh, calc(100dvh - 72px - env(safe-area-inset-bottom)));
  }
  .cookie .cookie-btn { padding: 0 10px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .header, .footer, .mobile-bar, .cookie, .section-lead { display: none !important; }
  body { background: #fff; color: #000; }
}

.price-scroll-hint { display: none; }
@media (max-width: 480px) {
  .price-scroll-hint { display: block; font-size: .85rem; color: var(--muted); }
  .cookie-long { display: none; }
  .cookie-body { padding: 10px 12px 8px; }
  .cookie-actions { padding: 8px 12px; }
}
