/*
  АвтоПост — сайт в «Дизайне 2.0» программы (принят 07.11.2026; правила — Документация\Дизайн 2.0 от 07.11.2026, цвета —
  Program\src\AvtoPost.App\Themes\Palette.Light.xaml / Palette.Dark.xaml). Как в программе: холст с лёгким градиентом,
  белые карточки без рамок и теней (радиус 18–20), плавающая полупрозрачная панель (у программы — меню, у сайта — шапка),
  кнопки-«таблетки» и одна цветная на экран, «таблетки»-переключатели вместо радиокнопок, поля без рамок, списки без
  сетки — тонкие линии между строками, мягкие плашки без рамок. Тени — только у плавающего (шапка, подсказка, окно чата,
  окно программы со снимком).
  Шрифт — Manrope (свой файл assets\fonts, лицензия OFL — assets\fonts\OFL.txt): одно начертание, без жирного — главное
  размером и цветом; мелкий текст светлой темы — SemiBold (600), как в программе: тёмные буквы на белом выглядят тоньше.
  Движение: наклон окна на первом экране, «таблетки» переезжают с лёгкой пружиной, кнопки чуть сжимаются при нажатии,
  цветная кнопка при наведении приподнимается тенью. При «уменьшить движение» в системе всё сразу.
*/

/* ---------- шрифт ---------- */
/* Файлы — подмножество Manrope из программы (Program\src\AvtoPost.App\Assets\Fonts): латиница, кириллица, знаки, ₽, №, стрелки.
   ?v= — чтобы сервер отдавал их «навсегда»; поменяли файл шрифта — поменяйте v здесь и в _layout.html (preload). */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-500.woff?v=1") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.woff?v=1") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- палитры (ключи программы в скобках) ---------- */
:root,
:root[data-theme="dark"] {
  --canvas-a: #0F1013;                    /* CanvasBrush */
  --canvas-b: #15171A;
  --card: #1B1D21;                        /* CardBrush */
  --fill: #24272C;                        /* FieldFillBrush */
  --fill-2: #2C3036;                      /* Fill2Brush */
  --hover: rgba(255, 255, 255, 0.05);
  --hair: rgba(255, 255, 255, 0.06);      /* DividerBrush: линии внутри карточек */
  --half: rgba(255, 255, 255, 0.035);     /* HalfHourBrush */
  --line: rgba(255, 255, 255, 0.16);      /* провода схем */
  --text: #F1F3F5;
  --muted: #9AA6B5;                       /* MutedTextBrush */
  --faint: #6E7A8A;                       /* FaintTextBrush */
  --accent: #6E9DB4;                      /* AccentBrush: метки и линии */
  --accent-fill: #7FAFC6;                 /* цветная кнопка */
  --accent-fill-hover: #93BFD4;
  --on-accent: #0E1B22;                   /* AccentButtonForeground */
  --accent-text: #8DB8CE;                 /* AccentTextBrush */
  --accent-soft: #233946;                 /* AccentSoftBrush: выбранное */
  --btn-shadow: rgba(0, 0, 0, 0.55);
  --seg-track: rgba(255, 255, 255, 0.06); /* SegmentTrackBrush */
  --seg-on: #34383F;                      /* SegmentOnBrush */
  --seg-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --glass: rgba(40, 43, 49, 0.58);        /* SidebarBrush */
  --glass-edge: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.35);
  --pop: #24272C;
  --pop-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 56px -12px rgba(0, 0, 0, 0.7);
  --win-edge: rgba(255, 255, 255, 0.09);
  --win-shadow: 0 48px 110px -40px rgba(0, 0, 0, 0.95), 0 14px 36px -18px rgba(0, 0, 0, 0.7);
  --glow: rgba(110, 157, 180, 0.2);
  --ok: #5BD08A;                          /* BadgeGreenForegroundBrush */
  --warn: #F5B66A;                        /* DebtBrush */
  --bad: #F47A6E;
  --chip-grey: rgba(255, 255, 255, 0.07);
  --rec-bg: rgba(110, 160, 230, 0.16);    /* RecordBrush */
  --rec-bar: #79A8E8;                     /* RecordBorderBrush */
  --rec-text: #A9C9F2;                    /* RecordTextBrush */
  --rec-o-bg: rgba(80, 190, 125, 0.15);   /* RecordOrderBrush */
  --rec-o-bar: #5BC487;
  --rec-o-text: #9EDDB7;
  --load-track: #2D3036;                  /* LoadTrackBrush */
  --now: #FF6369;                         /* NowLineBrush */
  --now-text: #2B0A0A;
  --overlap: #D97706;                     /* OverlapMarkBrush */
  --overlap-text: #1C1003;
  --co-bg: rgba(255, 255, 255, 0.97);     /* подписи выносок на снимке */
  --co-text: #0F172A;
  --co-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 12px 30px -6px rgba(0, 0, 0, 0.75);
  --chat-log: #15171A;
  --chat-bubble: #2C3036;
  --fw: 500;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --canvas-a: #E7EDF1;
  --canvas-b: #F1F3F5;
  --card: #FFFFFF;
  --fill: #F2F5F7;
  --fill-2: #E8EDF1;
  --hover: rgba(30, 50, 70, 0.06);
  --hair: rgba(15, 23, 42, 0.07);
  --half: rgba(15, 23, 42, 0.035);
  --line: rgba(15, 23, 42, 0.18);
  --text: #0F172A;
  --muted: #475569;
  --faint: #5E6C80;
  --accent: #6093AC;
  --accent-fill: #457C97;
  --accent-fill-hover: #3F7590;
  --on-accent: #FFFFFF;
  --accent-text: #3B6B84;
  --accent-soft: #E2EDF3;
  --btn-shadow: rgba(69, 124, 151, 0.55);
  --seg-track: rgba(30, 50, 70, 0.075);
  --seg-on: #FFFFFF;
  --seg-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 1px 1px rgba(15, 23, 42, 0.04);
  --glass: rgba(255, 255, 255, 0.64);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 1px 2px rgba(23, 42, 58, 0.05), 0 12px 40px rgba(23, 42, 58, 0.07);
  --pop: #FFFFFF;
  --pop-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 24px 56px -16px rgba(23, 42, 58, 0.3);
  --win-edge: rgba(15, 23, 42, 0.08);
  --win-shadow: 0 48px 110px -44px rgba(23, 42, 58, 0.5), 0 14px 36px -18px rgba(23, 42, 58, 0.22);
  --glow: rgba(96, 147, 172, 0.22);
  --ok: #177A3E;
  --warn: #B03A0B;
  --bad: #B91C1C;
  --chip-grey: #EEF1F4;
  --rec-bg: #E7F0FB;
  --rec-bar: #5B8FD6;
  --rec-text: #1D4F8C;
  --rec-o-bg: #E4F4EA;
  --rec-o-bar: #3E9F67;
  --rec-o-text: #1B6A3E;
  --load-track: #ECEEF1;
  --now: #E5484D;
  --now-text: #FFFFFF;
  --overlap: #F59E0B;
  --overlap-text: #451A03;
  --co-bg: rgba(27, 29, 33, 0.95);
  --co-text: #F1F3F5;
  --co-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 30px -8px rgba(15, 23, 42, 0.55);
  --chat-log: #F2F5F7;
  --chat-bubble: #FFFFFF;
  --fw: 600;
  color-scheme: light;
}

:root {
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: 16px;
  --edge: 8px;
  --top-h: 56px;
  --r-card: 20px;
  --r-plate: 14px;
  --r-field: 12px;
  --r-win: 10px;
  --spring: cubic-bezier(0.3, 1.25, 0.5, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; --r-win: 12px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --edge: 10px; --top-h: 60px; --r-win: 14px; } }

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + var(--edge) + 20px);
  font-synthesis: none;          /* жирный и наклон не рисуются сами: у шрифта их нет — и не нужно */
  background: var(--canvas-b);
}

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

body {
  margin: 0;
  background: var(--canvas-b) linear-gradient(180deg, var(--canvas-a), var(--canvas-b) 880px) no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--fw);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern";
}

@media (min-width: 640px) { body { font-size: 17px; } }

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

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }

/* Заголовки — тем же начертанием, что и текст (Medium): выделены размером, а не жирностью */
h1, h2, h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.375rem, 1.35rem + 4.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.15s ease;
}
a:hover { text-decoration-color: currentColor; }

b, strong { font-weight: 600; }

code {
  font: 500 0.9em/1 var(--mono);
  background: var(--fill);
  border-radius: 6px;
  padding: 0.15em 0.4em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.more { margin-top: 16px; }

.skip {
  position: absolute;
  left: 8px;
  top: -56px;
  z-index: 500;
  background: var(--accent-fill);
  color: var(--on-accent);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- кнопки: «таблетки» ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font: var(--fw) 1rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-fill-hover); box-shadow: 0 8px 22px -8px var(--btn-shadow); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Белая «таблетка» — вторая кнопка рядом с цветной, на холсте */
.btn-quiet { background: var(--card); color: var(--text); }
.btn-quiet:hover { background: var(--card); box-shadow: 0 8px 22px -12px rgba(15, 23, 42, 0.35); }

.btn-sm { min-height: 38px; padding: 0 17px; font-size: 0.9375rem; }

/* Круглая кнопка без рамки («?» в программе): тема, меню, «закрыть» */
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- шапка: плавающая полупрозрачная панель, как меню программы ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--edge) var(--edge) 0;
}

.top-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter) - 2 * var(--edge));
  min-height: var(--top-h);
  margin-inline: auto;
  padding: 0 8px 0 calc(var(--gutter) - var(--edge));
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img { border-radius: 9px; width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-text small { font-size: 0.75rem; color: var(--accent-text); }

.nav { display: flex; align-items: center; gap: 2px; }
@media (min-width: 960px) {
  .top-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }
  .brand { margin-right: 0; justify-self: start; }
  .nav { justify-self: center; }
  .top-tools { justify-self: end; }
}
.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

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

.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

.menu-btn { display: none; }

@media (max-width: 959px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--glass-edge);
    border-radius: 20px;
    background: var(--pop);
    box-shadow: var(--pop-shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
  .top-row { gap: 10px; }
}

/* ---------- разделы страницы ---------- */
.section { position: relative; isolation: isolate; padding-block: clamp(64px, 9vw, 120px); }

/* Полоса другого тона: карточка во всю ширину; карточки на ней — серые, как поля на карточке в программе */
.section-alt { background: var(--card); }
.section-alt .card { background: var(--fill); }

.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.section-head p + p { margin-top: 12px; }
.section-head.qr-head { margin-bottom: 0; }

.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.hero-meta { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); max-width: 40rem; }

/* Список с галочками */
.ticks { padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.48em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* ---------- первый экран ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding-top: clamp(48px, 7vw, 96px); }

.hero-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin: 22px auto 0; max-width: 38rem; }

/* Строка про поиск: как поле поиска программы — белое на холсте, без рамки */
.hero-search {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 11px 20px 11px 16px;
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: left;
  max-width: 40rem;
}
.hero-search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
kbd {
  padding: 1px 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font: inherit;
  font-size: 0.95em;
  white-space: nowrap;
}

.hero-stage { margin-top: clamp(40px, 6vw, 72px); }

/* Окно программы в перспективе: site.js наклоняет его за курсором и выравнивает при прокрутке */
.tilt {
  --rx: 0deg;
  --ry: 0deg;
  --s: 1;
  position: relative;
  perspective: 1200px;
}
.tilt::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -4%;
  height: 60%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, var(--glow), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}
.tilt > .win {
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  transform-origin: 50% 0;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .tilt.is-ready > .win { transition: transform 0.25s ease-out; }
}

/* ---------- окно программы со снимком ---------- */
/* «Дизайн 2.0»: у окна нет отдельной полосы заголовка — кнопки окна стоят на холсте, они уже есть на снимке.
   Поэтому снимок целиком (1920×1020 у оригинала), только скругление и тень, как у окна Windows 11 над рабочим столом. */
.win {
  position: relative;
  border-radius: var(--r-win);
  box-shadow: 0 0 0 1px var(--win-edge), var(--win-shadow);
}

.win-screen {
  position: relative;
  aspect-ratio: 1920 / 1020;
  overflow: hidden;
  border-radius: inherit;
  background: var(--canvas-a);
}
.win-shot { position: relative; }
.win-shot img { width: 100%; }
.win-shot[data-zoom] { cursor: zoom-in; }

/* ---------- тур по разделам ---------- */
/* «Таблетка»-переключатель, как в программе: выбранное — белая плашка; site.js двигает её к новому пункту (--seg-x/-w) */
.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: var(--seg-track);
  width: fit-content;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs.has-glide::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--seg-w, 0);
  transform: translateX(var(--seg-x, 0));
  border-radius: 999px;
  background: var(--seg-on);
  box-shadow: var(--seg-shadow);
}
@media (prefers-reduced-motion: no-preference) {
  .tabs.is-ready::before { transition: transform 0.5s var(--spring), width 0.5s var(--spring); }
}
.tab {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: var(--fw) 0.9375rem/1.2 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.15s ease;
}
.tab:active { transform: scale(0.96); }
.tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tabs:not(.has-glide) .tab[aria-selected="true"] { background: var(--seg-on); box-shadow: var(--seg-shadow); }
.tab[aria-selected="true"] svg { color: var(--accent-text); }

.tour { display: grid; gap: 28px; }
.tour[hidden] { display: none; }
.tour-text h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); margin-bottom: 10px; }
.tour-text > p { color: var(--muted); max-width: 34rem; }

@media (min-width: 900px) {
  .tour-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: start; }
  .tour-text h3 { grid-column: 1; }
  .tour-text > p { grid-column: 1; }
  .tour-text .ticks { grid-column: 2; grid-row: 1 / span 3; padding-top: 6px; }
}
.tour-text .ticks { margin-top: 20px; }
@media (min-width: 900px) { .tour-text .ticks { margin-top: 0; } }

/*
  Выноски: номер в цветном кружке на нужном месте снимка и подпись-«таблетка». Снимки в теме сайта (тёмные — в тёмной,
  светлые — в светлой), поэтому подпись контрастная к снимку: белая на тёмном, графитовая на светлом.
*/
.co { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 0; height: 0; }
.co b {
  position: absolute;
  left: -13px;
  top: -13px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #457C97;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 0 3px #FFFFFF, 0 6px 18px rgba(0, 0, 0, 0.5);
}
.co span {
  position: absolute;
  top: -17px;
  display: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--co-bg);
  color: var(--co-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  box-shadow: var(--co-shadow);
}
.co[data-pos="right"] span { left: 22px; }
.co[data-pos="left"] span { right: 22px; }
.co[data-pos="top"] span { top: auto; bottom: 22px; left: -40px; }
.co[data-pos="bottom"] span { top: 22px; right: -12px; }
.co[data-pos="below"] span { top: 22px; left: -12px; }

/* Подписи выносок — на широком экране; на узком — номера на снимке и список под ним */
.co-list { padding-left: 1.4em; display: grid; gap: 6px; color: var(--muted); font-size: 0.9375rem; }
.co-list li::marker { color: var(--accent-text); }
@media (min-width: 1000px) {
  .co span { display: block; }
  .co-list {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .tour:not(.is-in) .co { opacity: 0; }
  .tour.is-in .win-shot img { animation: shot-in 0.5s ease both; }
  .tour.is-in .co { animation: co-in 0.55s var(--spring) both; }
  .tour.is-in .co:nth-of-type(1) { animation-delay: 0.25s; }
  .tour.is-in .co:nth-of-type(2) { animation-delay: 0.4s; }
  .tour.is-in .co:nth-of-type(3) { animation-delay: 0.55s; }
}
@keyframes shot-in { from { opacity: 0; transform: scale(1.01); } to { opacity: 1; transform: none; } }
@keyframes co-in { from { opacity: 0; transform: translateY(6px) scale(0.9); } to { opacity: 1; transform: none; } }

/* Телефон поверх окна во вкладке «Телефон приёмки» */
.win--with-phone { margin-bottom: 6%; }
.win-phone {
  position: absolute;
  right: 3%;
  bottom: -9%;
  width: 16%;
  border: 5px solid #0B0C0E;
  border-radius: 20px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* ---------- карточки: белые, без рамок и теней ---------- */
.card {
  position: relative;
  padding: clamp(22px, 2.2vw, 28px);
  border-radius: var(--r-card);
  background: var(--card);
}
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-lan, .bento-board { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "lan lan blind"
      "api norm docs"
      "board board board";
  }
  .bento-lan { grid-area: lan; }
  .bento-blind { grid-area: blind; }
  .bento-api { grid-area: api; }
  .bento-norm { grid-area: norm; }
  .bento-docs { grid-area: docs; }
  .bento-board { grid-area: board; }
}

/* Живые схемы: узлы — мягкие плашки без рамок, главный — голубой, по проводам бегут импульсы */
.scheme { width: 100%; margin-top: 24px; overflow: visible; font-family: var(--font); }
.bento-lan .scheme { max-width: 560px; margin-inline: auto; }
.scheme text { fill: var(--muted); font-size: 12px; font-weight: var(--fw); }
.bento-api .scheme text { font-size: 13px; }
.scheme .t-strong { fill: var(--text); }
.scheme .t-faint { fill: var(--faint); font-size: 11px; }
.scheme .t-warn { fill: var(--warn); font-size: 11px; }
.scheme .node rect { fill: var(--fill); stroke: none; }
.scheme .node--main rect { fill: var(--accent-soft); }
.scheme .node--main text { fill: var(--accent-text); }
.scheme .node--main .t-strong { fill: var(--text); }
.scheme .node--dim { opacity: 0.7; }
.scheme .wire { fill: none; stroke: var(--line); stroke-width: 1.5; }
.scheme .wire--dim { stroke-dasharray: 3 4; }
.scheme .pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 400;
  stroke-dashoffset: 14;
  filter: drop-shadow(0 0 4px var(--accent));
}
.scheme .cloud-off path { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 3 3; }
.scheme .cloud-off path + path { stroke-dasharray: none; stroke: var(--bad); }
@media (prefers-reduced-motion: no-preference) {
  .scheme .pulse { animation: pulse 2.6s linear infinite; }
  .scheme .pulse--2 { animation-delay: 0.9s; }
  .scheme .pulse--3 { animation-delay: 1.7s; }
  .scheme .pulse--back { animation-delay: 0.5s; stroke: var(--faint); filter: none; }
}
@media (prefers-reduced-motion: reduce) { .scheme .pulse { display: none; } }
@keyframes pulse { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -220; } }

/* Поля: без рамок, серые на карточке, при вводе — голубая рамка (как в программе) */
.blind-field input,
.calc-field input[type="number"],
.chat-form textarea,
.chat-form input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: var(--r-field);
  background: var(--fill);
  color: var(--text);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.blind-field input:focus,
.calc-field input[type="number"]:focus,
.chat-form textarea:focus,
.chat-form input[type="email"]:focus {
  outline: none;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
::placeholder { color: var(--faint); opacity: 1; }

/* Пересчёт вслепую */
.blind { display: grid; gap: 12px; margin-top: 20px; }
.blind-row { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-size: 0.9375rem; }
.blind-row span { color: var(--faint); font-size: 0.8125rem; }
.blind-row b { font-weight: var(--fw); }
.blind-hidden { color: var(--faint); }
.blind-field { display: grid; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.blind-field input, .calc-field input[type="number"] {
  min-height: 44px;
  padding: 0 14px;
  font: var(--fw) 1.0625rem/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.blind .btn { justify-self: start; }
.blind-result { min-height: 3em; font-size: 0.9375rem; }
.blind-result[data-state="ok"] { color: var(--ok); }
.blind-result[data-state="diff"] { color: var(--warn); }
.blind-result[data-state="ask"] { color: var(--muted); }

/* Нормо-часы */
.calc { display: grid; gap: 14px; margin-top: 20px; }
.calc-works { padding: 0; list-style: none; display: grid; font-size: 0.9375rem; }
.calc-works li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.calc-works li + li { border-top: 1px solid var(--hair); }
.calc-works li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-field { display: grid; gap: 6px; font-size: 0.875rem; color: var(--muted); }

/* Ползунок скидки: дорожка с голубой частью до бегунка (--p ставит site.js), бегунок — как у тумблера программы */
.calc-field input[type="range"] {
  --p: 0%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.calc-field input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent-fill) var(--p), var(--fill-2) var(--p));
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}
.calc-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.calc-field input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--fill-2); }
.calc-field input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent-fill); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}
.calc-field input[type="range"]:focus-visible { outline: none; }
.calc-field input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent), 0 1px 4px rgba(0, 0, 0, 0.28); }

/* «Механику»: два варианта — «таблетка»-переключатель вместо радиокнопок; выбранное переезжает */
.calc-scheme { border: 0; padding: 0; min-width: 0; font-size: 0.875rem; color: var(--muted); }
.calc-scheme legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; }
.seg {
  clear: both;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: var(--seg-track);
}
.seg::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--seg-on);
  box-shadow: var(--seg-shadow);
}
.seg:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
@media (prefers-reduced-motion: no-preference) {
  .seg::before { transition: transform 0.5s var(--spring); }
}
.seg label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}
.seg label:has(input:checked) { color: var(--text); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-out div { padding: 12px 14px; border-radius: var(--r-plate); background: var(--fill); }
.calc-out dt { font-size: 0.8125rem; color: var(--muted); }
.calc-out dd { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.3; }

/* Документы в Bento */
.docs-list { display: grid; margin-top: 4px; }
.docs-list > div { padding: 12px 0; }
.docs-list > div + div { border-top: 1px solid var(--hair); }
.docs-list dd { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- доска «Запись»: как раздел «Запись» программы ---------- */
.board {
  --h: 58px;
  --start: 9;
  --hours: 6;
  --gutter-w: 54px;
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.35;
}
@media (min-width: 900px) { .board { --h: 64px; } }

.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding-bottom: 14px;
}
.board-title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.board-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.board-date b { font-size: 14px; font-weight: var(--fw); }
.board-date small { color: var(--muted); font-size: 12.5px; }

.board-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.board-inner { min-width: 720px; }

.board-heads, .board-body {
  display: grid;
  grid-template-columns: var(--gutter-w) repeat(4, minmax(0, 1fr));
}

.board-heads > span:first-child { position: sticky; left: 0; z-index: 2; background: var(--card); }
.post-head { display: flex; justify-content: space-between; gap: 8px; padding: 0 10px 12px; position: relative; font-size: 13px; }
.post-head b { font-weight: var(--fw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-head span { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Загрузка поста — тонкая полоска под названием */
.post-head::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--load), var(--load-track) var(--load));
}

.board-window {
  position: relative;
  height: calc(var(--hours) * var(--h));
  overflow: hidden;
  overflow: clip; /* clip, not a scroll box: the hours column stays sticky inside .board-scroll */
  border-top: 1px solid var(--hair);
}

.board-body {
  position: relative;
  height: calc(11 * var(--h));
  transform: translateY(calc((9 - var(--start)) * var(--h)));
}

/* The column of hours stays in place when the board is scrolled sideways on a phone */
.board-hours { position: sticky; left: 0; z-index: 2; background: var(--card); }
.board-hours span {
  position: absolute;
  left: 4px;
  top: calc((var(--t) - 9) * var(--h) + 5px);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Часы — тонкие линии, полчаса — ещё бледнее; посты разделены тонкой чертой */
.post {
  position: relative;
  border-left: 1px solid var(--hair);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--h) - 1px), var(--hair) calc(var(--h) - 1px), var(--hair) var(--h)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--h) / 2 - 1px), var(--half) calc(var(--h) / 2 - 1px), var(--half) calc(var(--h) / 2));
}

/* Запись — мягкая заливка с цветной полосой слева (как в Календаре Apple); зелёная — по ней открыт наряд */
.rec {
  --bg: var(--rec-bg);
  --bar: var(--rec-bar);
  --tone: var(--rec-text);
  position: absolute;
  left: 5px;
  right: 5px;
  top: calc((var(--from) - 9) * var(--h) + 2px);
  height: calc((var(--to) - var(--from)) * var(--h) - 4px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 8px 5px 11px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: inset 3px 0 0 var(--bar);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: default;
  transition: opacity 0.3s ease, box-shadow 0.15s ease;
}
.rec > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec b { color: var(--tone); font-weight: var(--fw); }
.rec .rec-who { color: var(--muted); }
.rec .rec-order { color: var(--tone); }
.rec:hover, .rec:focus-visible { outline: none; box-shadow: inset 3px 0 0 var(--bar), inset 0 0 0 1.5px var(--bar); }
.rec--order { --bg: var(--rec-o-bg); --bar: var(--rec-o-bar); --tone: var(--rec-o-text); }
.rec--left { right: calc(50% + 2px); }
.rec--right { left: calc(50% + 2px); }
/* Прошедшее — бледнее (site.js отмечает записи, которые уже закончились) */
.rec.is-past { opacity: 0.5; }
.rec.is-past:hover, .rec.is-past:focus-visible { opacity: 0.85; }
.rec-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--overlap);
  color: var(--overlap-text);
  font-weight: 600;
  font-size: 11px;
}
.rec--left .rec-first, .rec--right .rec-first { padding-right: 16px; }

/* «Сейчас» — красная линия с точкой и временем в колонке часов */
.now {
  position: absolute;
  left: var(--gutter-w);
  right: 0;
  top: calc((var(--now-at) - 9) * var(--h) - 1px);
  height: 2px;
  background: var(--now);
  z-index: 3;
  pointer-events: none;
}
.now::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--now);
}
.now span {
  position: absolute;
  left: calc(-1 * var(--gutter-w) + 2px);
  top: -10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--now);
  color: var(--now-text);
  font-weight: 600;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.now[hidden] { display: none; }

.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 14px;
  color: var(--muted);
}
.lg::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 12px;
  margin-right: 7px;
  vertical-align: -1px;
  border-radius: 4px;
  background: var(--rec-bg);
  box-shadow: inset 3px 0 0 var(--rec-bar);
}
.lg-order::before { background: var(--rec-o-bg); box-shadow: inset 3px 0 0 var(--rec-o-bar); }
.lg-overlap::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--overlap); box-shadow: none; color: var(--overlap-text); font-size: 10px; font-weight: 600; }
.lg-now::before { height: 2px; width: 14px; vertical-align: 4px; border-radius: 1px; background: var(--now); box-shadow: none; }

/* Подсказка у записи (как в программе при наведении): плавающая карточка */
.tip {
  position: fixed;
  z-index: 150;
  width: min(320px, calc(100vw - 24px));
  padding: 13px 15px;
  border-radius: 16px;
  background: var(--pop);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--pop-shadow);
  pointer-events: none;
}
.tip b { font-weight: 600; }
.tip p + p, .tip p + ul, .tip ul + p { margin-top: 6px; }
.tip ul { padding: 0; list-style: none; }
.tip li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.tip li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.tip .wait { color: var(--warn) !important; }
.tip .sum { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hair); }
.tip-src { display: none; }

/* ---------- лицензия ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-for { color: var(--accent-text); margin-bottom: 20px; }
.plan-price { display: grid; gap: 8px; margin-bottom: 22px; }
.plan-price div { padding: 12px 16px; border-radius: var(--r-plate); background: var(--fill); }
.plan-price dt { color: var(--muted); font-size: 0.875rem; }
.plan-price b { display: block; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-price small { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.plan-accent {
  margin: -8px 0 22px;
  padding: 12px 16px;
  border-radius: var(--r-plate);
  background: var(--accent-soft);
  color: var(--text);
}
/* «Как получить ключ» — пояснение, а не предложение: полупрозрачная карточка */
.plan-how { background: color-mix(in srgb, var(--card) 45%, transparent); }
.mini-steps { padding: 0; list-style: none; counter-reset: ms; display: grid; gap: 14px; margin-top: 16px; }
.mini-steps li { counter-increment: ms; position: relative; padding-left: 38px; color: var(--muted); font-size: 0.9375rem; }
.mini-steps li::before {
  content: counter(ms);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Пояснение — мягкая голубая плашка без рамки */
.note {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--accent-soft);
  max-width: 56rem;
}
.note p + p { margin-top: 8px; }

/* ---------- дополнения ---------- */
.packs { margin-bottom: 16px; }
.addons { display: grid; gap: 16px; }
@media (min-width: 900px) { .addons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Пакет — мягкая плашка, как статус в программе */
.addon-state {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-bottom: 14px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
}
.addon--soon { background: color-mix(in srgb, var(--card) 45%, transparent); }
.addon--soon .addon-state { background: var(--chip-grey); color: var(--muted); }

/* ---------- полоса «Скачать» ---------- */
.get { display: flex; flex-direction: column; align-items: center; text-align: center; }
.get p { color: var(--muted); max-width: 40rem; margin-top: 16px; }
.get .actions { justify-content: center; margin-top: 28px; }

/* ---------- страницы: общий заголовок ---------- */
.page-head { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.page-head .lead { margin-top: 20px; }

/* ---------- снимки и окошки на страницах ---------- */
.shot { position: relative; }
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-win);
  background: var(--canvas-a);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--win-edge), var(--win-shadow);
}
.shot-btn img { width: 100%; }
.shot figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

/* Окошко «Кто звонит» — как в правом нижнем углу экрана ПК, в виде программы */
.callcard {
  width: min(100%, 390px);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--pop-shadow);
  font-size: 14px;
  line-height: 1.45;
}
.section-alt .callcard { background: var(--card); }
.callcard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.callcard-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.callcard-head span { margin-left: auto; font-variant-numeric: tabular-nums; }
.callcard-main { padding: 10px 18px 16px; display: grid; gap: 10px; }
.callcard-name { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; }
.callcard-row { display: grid; gap: 1px; padding-top: 10px; border-top: 1px solid var(--hair); }
.callcard-row small { color: var(--muted); font-size: 12px; }
.callcard-row .debt { color: var(--warn); }
.callcard-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 18px; }
.callcard-btns span { padding: 6px 13px; border-radius: 999px; background: var(--fill); font-size: 13px; }
.callcard-btns span:first-child { background: var(--accent-fill); color: var(--on-accent); }

/* Экран телефона приёмки */
.phone {
  width: min(100%, 270px);
  padding: 9px;
  border: 0;
  border-radius: 36px;
  background: #0B0C0E;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}
.phone img { border-radius: 28px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; }
button.phone { cursor: zoom-in; }

.phone-hero { display: grid; gap: 40px; align-items: center; }
.phone-pair { display: flex; gap: 20px; justify-content: center; }
.phone-pair .phone { width: min(46%, 250px); }
.phone-pair .phone:last-child { margin-top: 48px; }
@media (min-width: 900px) { .phone-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }

.split { display: grid; gap: 32px; align-items: center; }
.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--muted); }
.split-text p + p { margin-top: 12px; }
.split-text p b { color: var(--text); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .split--flip .split-text { order: 2; }
}

.phone-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
.phone-row .phone { flex: none; width: 210px; scroll-snap-align: start; }
@media (min-width: 900px) { .phone-row { overflow: visible; justify-content: flex-end; } .phone-row .phone { width: calc((100% - 32px) / 3); } }

.howto { display: grid; gap: 48px; }
@media (min-width: 900px) { .howto { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }

/* Сгруппированные списки — белая карточка, тонкие линии между строками (как списки в программе) */
.needs-title { margin-bottom: 16px; }
.needs, .advice { padding: 4px 22px; list-style: none; border-radius: var(--r-card); background: var(--card); }
.needs li, .advice li { padding-block: 14px; color: var(--muted); }
.needs li + li, .advice li + li { border-top: 1px solid var(--hair); }
.needs b { color: var(--text); }
.advice b { display: block; margin-bottom: 4px; color: var(--text); }
.advice p { color: var(--muted); }

/* ---------- шаги (установка, подключение телефона) ---------- */
.steps { padding: 0; list-style: none; counter-reset: st; display: grid; gap: 0; }
.steps li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 16px;
  padding-block: 20px;
  border-top: 1px solid var(--hair);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(st);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.9375rem;
}
.steps h3 { font-size: 1.0625rem; letter-spacing: 0; }
.steps p { color: var(--muted); }
.steps-more { margin-top: 20px; }

/* ---------- скачать ---------- */
.dl { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .dl { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }

.dl-file { display: flex; align-items: center; gap: 16px; }
.dl-file img { border-radius: 13px; }
.dl-file b { display: block; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.dl-file span { color: var(--muted); font-size: 0.9375rem; }
.dl-card .btn { width: 100%; margin-top: 24px; min-height: 48px; }
.dl-facts { margin-top: 24px; }
.dl-title { font-size: 1.5rem; margin-bottom: 24px; }

.sha { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); }
.sha-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--muted); }
.sha code {
  display: block;
  margin-top: 8px;
  padding: 11px 13px;
  border-radius: var(--r-field);
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-all;
  background: var(--fill);
}
.link-btn {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-text);
  font: var(--fw) 0.875rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.link-btn:hover { background: var(--hover); }

.notes { max-width: 48rem; }
.notes h2 { margin-bottom: 24px; }
.notes ul { padding-left: 1.2em; display: grid; gap: 10px; }
.notes li { color: var(--muted); }
.notes li b, .notes p b { color: var(--text); }
.notes li::marker { color: var(--accent); }
.notes p { color: var(--muted); margin: 22px 0 8px; }
.notes h2 + p { margin-top: 0; }

.specs { display: grid; gap: 16px; }
.specs h3 { font-size: 1.125rem; margin-bottom: 8px; }
@media (min-width: 760px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- страницы под запросы (бланк заказ-наряда, шиномонтаж, учёт): файлы и листы-образцы ---------- */
.file-card { display: flex; flex-direction: column; }
.file-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.blank-list { margin-top: 16px; }
.blank-list li b, .split-text .ticks b { color: var(--text); }
.split-text .ticks { margin-top: 16px; }
.split-text .ticks + p { margin-top: 16px; }
/* Лист A4 — белый в обеих темах, не во всю колонку */
.shot-doc .shot-btn { max-width: 440px; margin-inline: auto; background: #fff; }
.shot-doc figcaption { text-align: center; }
.sample-pair { display: grid; gap: 32px; }
@media (min-width: 760px) { .sample-pair { grid-template-columns: 1fr 1fr; } }
.article-body { max-width: 46rem; }
.article-body h2 { margin-top: 56px; margin-bottom: 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--muted); }
.article-body p + p, .article-body p + .ticks, .article-body .ticks + p { margin-top: 12px; }
.article-body p b { color: var(--text); }
.article-body .shot { margin-top: 28px; }
.article-more { margin-top: 14px; font-size: 0.9375rem; }

/* ---------- контакты ---------- */
.contacts { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .contacts { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contacts h2 { font-size: 1.5rem; margin-bottom: 18px; }

/* Строки контактов собирает build.ps1 (почта, Telegram, МАКС): одна карточка, линии между строками */
.contact-list { display: grid; padding: 4px 18px; border-radius: var(--r-card); background: var(--card); }
.contact-item { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
.contact-item:not([hidden]) ~ .contact-item { border-top: 1px solid var(--hair); }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.contact-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-details { display: flex; flex-direction: column; min-width: 0; }
.contact-type { font-size: 0.875rem; color: var(--muted); }
.contact-val { overflow-wrap: anywhere; }
.contact-val a { text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }

.advice { margin-bottom: 0; }

/* ---------- вопросы ---------- */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 56px; align-items: start; } }

.faq-toc { display: none; }
@media (min-width: 960px) {
  .faq-toc { display: grid; gap: 2px; position: sticky; top: calc(var(--top-h) + var(--edge) + 24px); }
  .faq-toc a { padding: 8px 13px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: background-color 0.15s ease, color 0.15s ease; }
  .faq-toc a:hover { color: var(--text); background: var(--hover); }
}

.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 16px; }

/* Вопросы группы — одна белая карточка, линии между вопросами */
.qa { padding: 0 24px; background: var(--card); }
.faq-group h2 + .qa { border-radius: var(--r-card) var(--r-card) 0 0; padding-top: 4px; }
.faq-group .qa:last-child { border-radius: 0 0 var(--r-card) var(--r-card); padding-bottom: 4px; }
.faq-group h2 + .qa:last-child { border-radius: var(--r-card); }
.qa + .qa summary { border-top: 1px solid var(--hair); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  border-radius: 1px;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--spring);
}
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa summary:hover { color: var(--accent-text); }
.qa-body { padding-bottom: 20px; color: var(--muted); max-width: 44rem; }
.qa-body p + p { margin-top: 10px; }
.qa-body ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }
.qa-body ul + p { margin-top: 10px; }
.qa-body b { color: var(--text); }

/* ---------- 404 ---------- */
.lost { display: grid; gap: 40px; align-items: center; padding-block: clamp(48px, 8vw, 104px); }
@media (min-width: 860px) { .lost { grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; } }
.lost .lead { margin-top: 16px; }
.lost .actions { margin-top: 28px; }
.lost-post { border-radius: var(--r-card); background: var(--card); padding: 16px 6px 0; font-size: 13px; }
.lost-post .post-head { --load: 0%; }
.lost-grid {
  --h: 60px;
  height: 300px;
  display: grid;
  place-items: center;
  color: var(--faint);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--h) - 1px), var(--hair) calc(var(--h) - 1px), var(--hair) var(--h)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--h) / 2 - 1px), var(--half) calc(var(--h) / 2 - 1px), var(--half) calc(var(--h) / 2));
}

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--hair); font-size: 0.9375rem; }
.foot-row { display: grid; gap: 32px; padding-block: 48px 32px; }
.foot-about { max-width: 30rem; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.0625rem; margin-bottom: 12px; }
.foot-brand b { font-weight: 500; }
.foot-brand img { border-radius: 7px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; align-content: start; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }
.foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 32px; border-top: 1px solid var(--hair); color: var(--faint); font-size: 0.875rem; }
@media (min-width: 760px) { .foot-row { grid-template-columns: 1fr auto; } .foot-nav { grid-template-columns: repeat(2, auto); } }

/* ---------- просмотр снимка ---------- */
.viewer {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--pop);
  color: var(--text);
  overflow: auto;
  box-shadow: var(--pop-shadow);
}
.viewer::backdrop { background: rgba(8, 9, 11, 0.7); backdrop-filter: blur(8px); }
.viewer-img { width: 100%; }
.viewer-img.is-phone { width: auto; max-height: calc(100vh - 120px); margin-inline: auto; }
.viewer-caption { padding: 12px 56px 14px 18px; color: var(--muted); font-size: 0.9375rem; }
.viewer-caption:empty { display: none; }
.viewer-close { position: sticky; float: right; top: 10px; margin: 10px 10px -50px 0; z-index: 2; background: var(--glass); color: var(--text); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* Правовые страницы: политика, оферта, согласие, сторонние компоненты */
/* Текст — по левому краю, как заголовок страницы над ним; строки не длиннее 46rem */
.doc > * { max-width: 46rem; }
.doc-meta { color: var(--muted); font-size: 0.9375rem; }
.doc h2 { font-size: 1.375rem; margin-top: 44px; margin-bottom: 12px; letter-spacing: -0.015em; }
.doc h3 { font-size: 1.0625rem; margin-top: 24px; margin-bottom: 8px; letter-spacing: 0; }
.doc p, .doc li { line-height: 1.65; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 10px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc-note { margin-top: 20px; padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); }
.doc-scroll { overflow-x: auto; margin-top: 12px; padding: 4px 18px; border-radius: 18px; background: var(--card); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; }
.doc-table td { border-top: 1px solid var(--hair); }
.doc-table th { color: var(--faint); font-size: 0.8125rem; font-weight: var(--fw); }
/* Длинные имена библиотек (System.Security.Cryptography…) переносятся, а не забирают всю ширину */
.doc-table th:first-child { width: 30%; }
.doc-table td:first-child { overflow-wrap: anywhere; }
.todo { color: var(--warn); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: var(--muted); }
/* «Настройки cookie» — кнопка, выглядит как соседние ссылки; показывает её consent.js */
.foot-consent { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline 1px color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; cursor: pointer; }
.foot-consent:hover { text-decoration-color: currentColor; }
[data-consent-open][hidden] { display: none !important; }

/* ---------- чат поддержки: кнопка и окно внизу справа (_layout.html, site.js) ---------- */
/* Сам блок кликов не ловит — только кнопка и окно: на телефоне он растянут во всю ширину над страницей */
.chat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 350;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.chat[hidden], .chat [hidden] { display: none !important; }
.chat > * { pointer-events: auto; }
/* Кнопка — плавающая полупрозрачная «таблетка», как шапка: видна на любом фоне, не спорит с цветной «Скачать» */
.chat-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  font: var(--fw) 0.9375rem/1 var(--font);
  cursor: pointer;
  box-shadow: var(--glass-shadow), 0 8px 24px -10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.chat-fab:hover { box-shadow: var(--glass-shadow), 0 12px 30px -10px rgba(0, 0, 0, 0.45); }
.chat-fab:active { transform: scale(0.96); }
.chat-fab svg { width: 21px; height: 21px; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-dot { position: absolute; top: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%; background: var(--now); border: 2px solid var(--canvas-b); }
.chat-panel {
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - var(--top-h) - var(--edge) - 92px));   /* шапка сайта остаётся видна */
  border-radius: 22px;
  background: var(--pop);
  box-shadow: var(--pop-shadow);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .chat-panel { animation: chat-in 0.35s var(--spring); transform-origin: 100% 100%; }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 12px 18px; border-bottom: 1px solid var(--hair); }
.chat-head b { display: block; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.chat-head small { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.chat-log {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--chat-log);
}
.chat-note { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; text-align: center; padding: 2px 6px; }
.chat-note--hello { text-align: left; font-size: 0.875rem; padding: 0; }
.chat-msg { display: flex; flex-direction: column; max-width: 86%; }
.chat-msg p { padding: 9px 13px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Как окно «Поддержка» программы: вы — справа на голубом, разработчик — слева на карточке */
.chat-msg--you { align-self: flex-end; align-items: flex-end; }
.chat-msg--you p { background: var(--accent-soft); color: var(--text); border-bottom-right-radius: 6px; }
.chat-msg--support { align-self: flex-start; }
.chat-msg--support p { background: var(--chat-bubble); border-bottom-left-radius: 6px; }
.chat-meta { margin-top: 3px; padding-inline: 6px; color: var(--faint); font-size: 0.75rem; }
.chat-form { position: relative; display: grid; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--hair); }
.chat-form textarea, .chat-form input[type="email"] {
  padding: 10px 13px;
  font: var(--fw) 0.9375rem/1.4 var(--font);
}
.chat-form textarea { resize: none; min-height: 68px; max-height: 160px; }
.chat-extra { display: grid; gap: 10px; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.chat-mail { display: grid; gap: 5px; }
.chat-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--text); cursor: pointer; }
.chat-consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent-fill); }
.chat-send { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-send .btn { flex: none; }
.chat-send .btn:disabled { opacity: 0.6; cursor: progress; }
.chat-status { min-height: 1.2em; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.chat-alt { color: var(--muted); font-size: 0.8125rem; }
.chat-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) {
  .chat { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .chat-fab-text { display: none; }
  .chat-panel { width: 100%; max-height: calc(100dvh - var(--top-h) - var(--edge) - 84px); }
}
@media print { .chat { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- ИИ-помощник, два приложения и компактные пакеты дополнений ---------- */
.ai-compact {
  background: var(--card);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}
.section-alt .ai-compact { background: var(--fill); }
.ai-compact h2 { font-size: clamp(1.65rem, 1.25rem + 1.4vw, 2.25rem); }
.ai-compact-lead { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.ai-compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ai-mini {
  background: var(--fill);
  border-radius: var(--r-plate);
  padding: 15px 17px;
}
.section-alt .ai-mini { background: var(--card); }
.ai-mini b { display: block; font-size: 0.9625rem; margin-bottom: 4px; color: var(--text); }
.ai-mini span { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }

.apps-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.app-tile {
  background: var(--card);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.6vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 186px;
  gap: 20px;
  align-items: center;
}
.app-state {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  margin-bottom: 10px;
}
.app-tile h3 { font-size: 1.4rem; margin-bottom: 8px; }
.app-tile > div > p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 14px; }
.app-beta-note {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.4;
}
.app-tile .app-beta-note { margin-bottom: 0; font-size: 0.78rem; color: var(--faint); }
.app-phone {
  width: 186px;
  padding: 6px;
  border-radius: 24px;
  background: #0F1013;
  box-shadow: var(--pop-shadow);
}
.app-phone img { border-radius: 19px; width: 100%; }
.staff-mock {
  border-radius: 19px;
  background: #15171A;
  color: #F1F3F5;
  padding: 13px 11px;
  font-size: 10.5px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 380px;
}
.sm-card { background: #1E2127; border-radius: 11px; padding: 9px 10px; }
.sm-card strong { display: block; font-size: 18px; margin-top: 2px; font-weight: 500; }
.sm-card small { color: #9AA6B5; font-size: 9.5px; }
.sm-pill { display: inline-block; padding: 2px 6px; border-radius: 6px; font-size: 9px; background: rgba(91, 208, 138, 0.16); color: #5BD08A; }

.packs-title { margin-top: 34px; font-size: 1.35rem; }
.packs-sub { margin-top: 6px; color: var(--muted); font-size: 0.9625rem; }
.packs-compact {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pack-tile {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 24px;
}
.pack-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.pack-head h3 { font-size: 1.3rem; }
.pack-price { font-size: 0.875rem; color: var(--muted); }
.pack-price b { font-size: 1.2rem; color: var(--text); margin-right: 4px; }
.pack-defs { display: grid; gap: 10px; font-size: 0.92rem; color: var(--muted); line-height: 1.48; }
.pack-defs b { color: var(--text); }

@media (max-width: 1060px) {
  .apps-row { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .ai-compact, .packs-compact { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .ai-compact-list { grid-template-columns: 1fr; }
  .app-tile { grid-template-columns: 1fr; }
  .app-phone { margin-inline: auto; }
}
