/* Hallmark · screen: кабинет читателя и страницы службы заказов · system: zhurnal-mockups/sistema/tokens.css (тёмная) + макет «Пульт · только покупка номера» 13.11.2026
 * states: idle · loading · empty · error · success
 * pre-emit critique: P5 H4 E4 S5 R5 V4
 * ---------------------------------------------------------------------
 * Страницы службы заказов журнала «Основатели»: вход, регистрация, кабинет, «Оплачено», тестовая касса, админка.
 * Правила владельца, вшитые сюда:
 *   1. Поле ввода, галочка — без рамки, обводки и кольца фокуса. Видны только заливкой: покой → наведение → фокус.
 *   2. Никаких ореолов, свечений и радиальных пятен. Тень только своя, вниз, у обложки. Квадраты статусов — сплошные.
 *   3. Иконки — только Lucide (SVG в разметке, stroke=currentColor). Эмодзи нет.
 * Бумажную тему дизайн-системы сюда не переносим: служба только в тёмной. */

/* ---------------------------------------------------------------------
   0. ШРИФТЫ — со своего сервера (152-ФЗ: адрес читателя не уходит Google).
   Onest — @fontsource/onest 5.3.1, JetBrains Mono — google/fonts, оба SIL OFL 1.1 (лицензии рядом,
   shrifty/OFL-*.txt). JetBrains Mono: начертания 400 и 500, латиница, кириллица, ₽, №, стрелки.
   --------------------------------------------------------------------- */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url(shrifty/onest-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url(shrifty/onest-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url(shrifty/onest-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url(shrifty/onest-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url(shrifty/onest-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url(shrifty/onest-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url(shrifty/onest-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url(shrifty/onest-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url(shrifty/onest-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url(shrifty/onest-cyrillic-700.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url(shrifty/onest-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url(shrifty/onest-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; font-display: swap; src: url(shrifty/onest-cyrillic-800.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; font-display: swap; src: url(shrifty/onest-latin-ext-800.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; font-display: swap; src: url(shrifty/onest-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(shrifty/jetbrains-mono-400.woff) format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(shrifty/jetbrains-mono-500.woff) format("woff"); }

/* ---------------------------------------------------------------------
   1. ТОКЕНЫ
   --------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-titul: clamp(40px, 7.4vw, 112px);
  --fs-h1:    clamp(32px, 5.4vw, 76px);
  --fs-h2:    clamp(22px, 2.4vw, 30px);
  --fs-h3:    17px;
  --fs-tekst: 16px;
  --fs-melko: 14px;
  --fs-mono:  12.5px;
  --fs-metka: 12px;
  --lh-titul: .88;  --lh-h1: .92;  --lh-h2: 1;  --lh-tekst: 1.55;  --lh-melko: 1.5;
  --ls-titul: -.045em; --ls-h1: -.04em; --ls-h2: -.02em; --ls-kaps: .02em; --ls-metka: .06em;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --max: 1320px;
  --forma: 400px;
  --shapka: 64px;
  /* Скругления и тени — как у сайта журнала (static/predprosmotr.css): поля и кнопки 14, карты 24,
     обложка 3. Гриша 16.11.2026: «углы острые откуда взялись, там всё со сгибом». Админка — прямая (admin.css). */
  --radius: 14px;
  --radius-karta: 24px;
  --radius-plashka: 16px;
  --radius-melko: 8px;
  --radius-galka: 6px;
  --radius-oblozhka: 3px;
  --ease-zhurnala: cubic-bezier(.2,.8,.2,1);   /* --pr журнала */
  --ten-zhurnala: 0 50px 120px -30px rgba(0,0,0,.85), 0 18px 40px rgba(0,0,0,.45);

  --kn-s: 40px;  --kn-m: 48px;  --kn-l: 56px;
  --pole-h: 48px;
  --galka: 20px;

  --oblozhka-ratio: 567 / 751;
  --koreshok-w: 10px;
  --torec-w: 3px;
  --karta-tel: 208px;
  --priglushit: grayscale(.72) brightness(.78);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-s: 160ms;
  --dur-m: 320ms;

  --z-shapka: 20; --z-zerno: 60;

  /* фон и поверхности */
  --c-bg:     oklch(14.5% 0 0);
  --c-bg-2:   oklch(19.1% 0 0);
  --c-bg-3:   oklch(22.6% 0 0);
  --c-poverh: var(--c-bg-2);
  --c-shapka: oklch(14.5% 0 0 / .78);
  /* текст */
  --c-strong: oklch(100% 0 0);
  --c-text:   oklch(100% 0 0 / .92);
  --c-dim:    oklch(74.8% 0 0);
  --c-faint:  oklch(100% 0 0 / .40);   /* только плейсхолдер */
  /* линии и заливки */
  --c-line:   oklch(100% 0 0 / .12);
  --c-line-2: oklch(100% 0 0 / .22);
  --c-fill:   oklch(100% 0 0 / .06);
  --c-fill-2: oklch(100% 0 0 / .10);
  --c-fill-3: oklch(100% 0 0 / .15);
  --c-fill-4: oklch(100% 0 0 / .22);
  /* оранжевый */
  --c-or:        oklch(66.7% .202 37.2);
  --c-or-hover:  oklch(74.7% .157 36.9);
  --c-or-active: oklch(62% .2 37);
  --c-or-tekst:  oklch(74.7% .157 36.9);
  --c-na-or:     oklch(14.5% 0 0);
  --c-fokus:     oklch(66.7% .202 37.2);
  /* ошибка и опасное действие */
  --c-err:        oklch(72% .17 25);
  --c-err-solid:  oklch(64% .21 27);
  --c-err-fill:   oklch(60% .15 28 / .24);
  --c-err-fill-2: oklch(60% .15 28 / .40);
  /* тени — только у обложки, только вниз, без цвета */
  --ten-oblozhka:       0 50px 120px -30px rgba(0,0,0,.85), 0 18px 40px rgba(0,0,0,.45);
  --ten-oblozhka-hover: 0 64px 140px -30px rgba(0,0,0,.9), 0 22px 46px rgba(0,0,0,.5);
  --c-koreshok: oklch(0% 0 0 / .30);
  --c-torec:    repeating-linear-gradient(90deg, oklch(86% .01 85) 0 1px, oklch(70% .01 85) 1px 2px);
  --zerno-opacity: .07;

  /* иконки-маски (Lucide: check, loader-circle, circle-alert) */
  --ik-galka: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ik-zagruzka: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
  --ik-vnimanie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
  /* зерно — как на витрине */
  --zerno: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 640px) { :root { --shapka: 56px; } }
/* палец: всё нажимаемое не меньше 44 */
@media (pointer: coarse) { :root { --kn-s: 44px; --pole-h: 52px; --galka: 22px; } }


/* ---------------------------------------------------------------------
   2. ОСНОВА
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--shapka) + 12px); overflow-x: clip; background: var(--c-bg); }
body {
  background: var(--c-bg); color: var(--c-text);
  font: 400 var(--fs-tekst)/var(--lh-tekst) var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100dvh;
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* зерно поверх страницы: фактура вместо пятен света */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-zerno); pointer-events: none;
  opacity: var(--zerno-opacity); background-image: var(--zerno);
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--c-or); color: var(--c-na-or); }

/* фокус с клавиатуры — только у кнопок и ссылок */
:where(a, button, summary, [role="button"], [tabindex]):focus-visible { outline: 2px solid var(--c-fokus); outline-offset: 3px; }
/* у полей и галочек — никогда, ни в покое, ни в фокусе */
:where(input, textarea, select),
:where(input, textarea, select):focus,
:where(input, textarea, select):focus-visible { outline: none; border: 0; box-shadow: none; border-radius: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono  { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.cifry { font-variant-numeric: tabular-nums; }
.ik { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ramka { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }


/* ---------------------------------------------------------------------
   3. ТИПОГРАФИКА
   --------------------------------------------------------------------- */
.titul, .h1, .h2 { font-weight: 800; text-transform: uppercase; color: var(--c-strong); text-wrap: balance; hyphens: manual; overflow-wrap: anywhere; min-width: 0; }
.titul { font-size: var(--fs-titul); line-height: var(--lh-titul); letter-spacing: var(--ls-titul); }
.h1    { font-size: var(--fs-h1);    line-height: var(--lh-h1);    letter-spacing: var(--ls-h1); }
.h2    { font-size: var(--fs-h2);    line-height: var(--lh-h2);    letter-spacing: var(--ls-h2); }
.tekst { font-size: var(--fs-tekst); line-height: var(--lh-tekst); max-width: 64ch; color: var(--c-text); }
.melko { font-size: var(--fs-melko); line-height: var(--lh-melko); color: var(--c-dim); }
.dannye { font-family: var(--mono); font-size: var(--fs-mono); line-height: 1.4; color: var(--c-dim); }
.metka  { font-family: var(--mono); font-size: var(--fs-metka); line-height: 1.3; text-transform: uppercase; letter-spacing: var(--ls-metka); color: var(--c-or-tekst); }
.metka.tiho { color: var(--c-dim); font-size: var(--fs-metka); }
.ssylka { color: var(--c-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--c-line-2); transition: color var(--dur-s), text-decoration-color var(--dur-s); }
.ssylka:hover { color: var(--c-or-tekst); text-decoration-color: currentColor; }
button.ssylka { font: inherit; padding: 0; background: none; border: 0; cursor: pointer; }
.pochta-v-tekste { font-weight: 600; color: var(--c-strong); overflow-wrap: anywhere; }


/* ---------------------------------------------------------------------
   4. ПОЛОСА ТЕСТА, ШАПКА, ПОДВАЛ
   --------------------------------------------------------------------- */
.test { padding: 7px var(--gutter); background: var(--c-bg-3); font: 400 var(--fs-metka)/1.3 var(--mono); color: var(--c-or-tekst); text-align: center; }

.shapka {
  position: sticky; top: 0; z-index: var(--z-shapka); height: var(--shapka);
  background: var(--c-shapka); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
}
.shapka .ramka { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.shapka-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-strong); text-decoration: none; min-width: 0; }
.shapka-logo .logo { height: 17px; width: auto; flex: none; }
.shapka-logo i { font: 400 22px/1 var(--font); color: var(--c-or); transform: translateY(-1px); font-style: normal; }
.shapka-logo b { font-weight: 800; font-size: 15px; letter-spacing: var(--ls-kaps); text-transform: uppercase; white-space: nowrap; }
.shapka-akk { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.shapka-akk .dannye { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shapka-akk form { display: contents; }
@media (max-width: 640px) {
  .shapka-logo .logo { height: 14px; } .shapka-logo i { font-size: 18px; } .shapka-logo b { font-size: 13px; }
  .shapka-akk .dannye { display: none; }
}

.podval { border-top: 1px solid var(--c-line); padding-block: var(--s-6) var(--s-7); margin-top: var(--s-6); }
.podval .ramka { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); font: 400 var(--fs-mono)/1.5 var(--mono); color: var(--c-dim); }
.podval a { color: var(--c-dim); text-underline-offset: .22em; white-space: nowrap; }
.podval a:hover { color: var(--c-strong); }
.podval-cookie { flex-basis: 100%; }
@media (max-width: 640px) { .podval { padding-block: 28px 40px; } .podval .ramka { gap: 6px 16px; } }


/* ---------------------------------------------------------------------
   5. КНОПКИ · основная / вторичная / текстовая / опасная
   покой · наведение · нажатие · фокус · загрузка (aria-busy) · недоступна
   --------------------------------------------------------------------- */
.kn {
  --kn-h: var(--kn-m); --kn-px: 20px; --kn-fs: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--kn-h); min-width: var(--kn-h); padding: 0 var(--kn-px);
  font: 700 var(--kn-fs)/1 var(--font); text-transform: uppercase; letter-spacing: var(--ls-kaps);
  white-space: nowrap; text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer; flex-shrink: 0;
  user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), transform 80ms;
}
.kn .ik { width: 16px; height: 16px; }
.kn-s { --kn-h: var(--kn-s); --kn-px: 14px; --kn-fs: 13px; }
.kn-m { --kn-h: var(--kn-m); --kn-px: 20px; --kn-fs: 14px; }
.kn-l { --kn-h: var(--kn-l); --kn-px: 24px; --kn-fs: 15px; }
.kn-shir { width: 100%; }
@media (max-width: 480px) { .kn { --kn-px: 14px; } .kn-l { --kn-fs: 14px; } }

.kn-glav, .kn.glav { background: var(--c-or); color: var(--c-na-or); }
.kn-glav:hover, .kn.glav:hover { background: var(--c-or-hover); }
.kn-glav:active, .kn.glav:active { background: var(--c-or-active); }
.kn-vtor, .kn.vtor { background: var(--c-fill-2); color: var(--c-strong); }
.kn-vtor:hover, .kn.vtor:hover { background: var(--c-fill-3); }
.kn-vtor:active, .kn.vtor:active { background: var(--c-fill-4); }
.kn-tekst {
  --kn-px: 4px; background: none; color: var(--c-strong);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--c-line-2);
}
.kn-tekst:hover { color: var(--c-or-tekst); text-decoration-color: currentColor; }
.kn-opasn { background: var(--c-err-fill); color: var(--c-err); }
.kn-opasn:hover, .kn-opasn:active { background: var(--c-err-fill-2); }
.kn:active { transform: translateY(1px); }

/* загрузка: подпись остаётся, слева крутится loader-circle, ширина не прыгает */
.kn[aria-busy="true"] { cursor: progress; pointer-events: none; }
.kn[aria-busy="true"] > svg { display: none; }
.kn[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--ik-zagruzka) center / contain no-repeat; mask: var(--ik-zagruzka) center / contain no-repeat;
  animation: kn-krug .8s linear infinite;
}
@keyframes kn-krug { to { transform: rotate(360deg); } }
/* недоступна: тихая заливка и читаемый текст */
.kn:disabled, .kn[aria-disabled="true"] { background: var(--c-fill); color: var(--c-dim); cursor: not-allowed; transform: none; pointer-events: none; }

/* группа: кнопки в одну строку, делят ширину */
.kn-ryad { display: flex; gap: var(--s-2); flex-wrap: nowrap; }
.kn-ryad > .kn { flex: 1 1 0; min-width: 0; }
.kn-ryad > .kn-uzko { flex: 0 0 auto; }
@media (max-width: 480px) { .kn-ryad.stopka { flex-direction: column; } .kn-ryad.stopka > .kn { flex: 0 0 auto; } }


/* ---------------------------------------------------------------------
   6. ПОЛЕ ВВОДА — только заливка, 3 ступени
   --------------------------------------------------------------------- */
.pole { display: grid; gap: var(--s-2); min-width: 0; }
.pole > label, .pole > span {
  font: 400 var(--fs-metka)/1.3 var(--mono); text-transform: uppercase; letter-spacing: var(--ls-metka); color: var(--c-dim);
}
.pole-vvod { position: relative; }
.pole input, .pole textarea, .pole select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: var(--pole-h);
  padding: 12px 16px; font: 400 var(--fs-tekst)/1.4 var(--font); color: var(--c-strong);
  background: var(--c-fill); border: 0; border-radius: var(--radius); outline: none; box-shadow: none;
  caret-color: var(--c-or); transition: background-color var(--dur-s) var(--ease-out);
}
.pole textarea { min-height: 96px; resize: vertical; }
.pole input::placeholder, .pole textarea::placeholder { color: var(--c-faint); opacity: 1; }
.pole input:hover, .pole textarea:hover { background: var(--c-fill-2); }
.pole input:focus, .pole input:focus:hover, .pole textarea:focus, .pole textarea:focus:hover { background: var(--c-fill-3); }
.pole.oshibka input, .pole.oshibka textarea { background: var(--c-err-fill); }
.pole.oshibka input:focus, .pole.oshibka textarea:focus { background: var(--c-err-fill-2); }
.pole input[readonly] { background: var(--c-fill); color: var(--c-dim); cursor: default; }
.pole input:-webkit-autofill { -webkit-text-fill-color: var(--c-strong); caret-color: var(--c-or); transition: background-color 600000s 0s, color 600000s 0s; }
/* поле с глазом справа */
.pole-vvod:has(.pole-glaz:not([hidden])) input { padding-right: 52px; }
.pole-glaz {
  position: absolute; top: 0; right: 0; width: 48px; height: 100%;
  display: grid; place-items: center; color: var(--c-dim); transition: color var(--dur-s);
}
.pole-glaz .ik { width: 20px; height: 20px; stroke-width: 1.75; }
.pole-glaz .skryt, .pole-glaz[aria-pressed="true"] .pokazat { display: none; }
.pole-glaz[aria-pressed="true"] .skryt { display: block; }
.pole-glaz:hover { color: var(--c-strong); }
.pole-glaz:focus-visible { outline: none; color: var(--c-or-tekst); background: var(--c-fill-2); }
.pole-podskazka { font-size: var(--fs-melko); line-height: var(--lh-melko); color: var(--c-dim); }
.pole-podskazka + .pole-podskazka { margin-top: calc(var(--s-1) * -1); }

/* ошибка под полем: Onest 14 — её надо прочитать */
.pole-oshibka, .galka-oshibka {
  display: flex; gap: var(--s-2); align-items: flex-start;
  font-size: var(--fs-melko); line-height: var(--lh-melko); color: var(--c-err);
}
.pole-oshibka::before, .galka-oshibka::before {
  content: ""; width: 16px; height: 16px; margin-top: 2px; flex: none; background: currentColor;
  -webkit-mask: var(--ik-vnimanie) center / contain no-repeat; mask: var(--ik-vnimanie) center / contain no-repeat;
}
/* ошибка всей формы — одна на форму */
.oshibka-formy {
  display: flex; gap: var(--s-3); align-items: flex-start; padding: 12px 16px;
  background: var(--c-err-fill); color: var(--c-strong); font-size: var(--fs-melko); line-height: var(--lh-melko);
}
.oshibka-formy::before {
  content: ""; width: 18px; height: 18px; margin-top: 1px; flex: none; background: var(--c-err);
  -webkit-mask: var(--ik-vnimanie) center / contain no-repeat; mask: var(--ik-vnimanie) center / contain no-repeat;
}
.oshibka-formy span { display: grid; gap: 2px; min-width: 0; }
.oshibka-formy small { font-size: 13.5px; line-height: 1.45; color: var(--c-text); }
/* получилось: галка оранжевым текстом, без подложки того же цвета */
.soobshchenie.ok, .plashka-soobshcheniya.ok {
  display: flex; gap: var(--s-2); align-items: flex-start;
  font-size: var(--fs-melko); line-height: var(--lh-melko); color: var(--c-strong);
}
.soobshchenie.ok::before, .plashka-soobshcheniya.ok::before {
  content: ""; width: 16px; height: 16px; margin-top: 2px; flex: none; background: var(--c-or-tekst);
  -webkit-mask: var(--ik-galka) center / contain no-repeat; mask: var(--ik-galka) center / contain no-repeat;
}
.plashka-soobshcheniya.ok { padding: 12px 16px; background: var(--c-fill); font-size: var(--fs-tekst); }
.plashka-soobshcheniya.ok::before { margin-top: 4px; }

/* поле + кнопка в одну строку (промокод) */
.pole-s-knopkoy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); }
.pole-s-knopkoy .kn { height: var(--pole-h); --kn-px: 14px; }
/* узко (пульт-колонка 312 на компьютере, телефон уже 380): рядом с «Применить» поле уже своей подсказки
   «Введите код» (замер 13.11: 72 px под текст против 95) — кнопка встаёт под поле */
.promo { container-type: inline-size; }
@container (max-width: 299px) {
  .pole-s-knopkoy { grid-template-columns: minmax(0, 1fr); }
  .pole-s-knopkoy .kn { justify-self: start; }
}

.forma { display: grid; gap: var(--s-4); width: 100%; max-width: var(--forma); }
/* инлайн-форма внутри текста: «отправьте ещё раз» */
.v-stroku { display: inline; }


/* ---------------------------------------------------------------------
   7. ГАЛОЧКА — квадрат, заливка, без рамки
   --------------------------------------------------------------------- */
.galka { display: grid; grid-template-columns: var(--galka) minmax(0, 1fr); gap: var(--s-3); align-items: start; cursor: pointer; }
.galka input {
  appearance: none; -webkit-appearance: none; width: var(--galka); height: var(--galka); margin-top: 1px;
  display: grid; place-items: center; background: var(--c-fill-2);
  border: 0; border-radius: var(--radius-galka); outline: none; box-shadow: none; cursor: pointer;
  transition: background-color var(--dur-s) var(--ease-out);
}
.galka input::after {
  content: ""; width: 70%; height: 70%; background: var(--c-na-or); transform: scale(.4); opacity: 0;
  -webkit-mask: var(--ik-galka) center / contain no-repeat; mask: var(--ik-galka) center / contain no-repeat;
  transition: transform var(--dur-s) var(--ease-out), opacity var(--dur-s);
}
.galka:hover input, .galka input:focus-visible { background: var(--c-fill-3); }
/* Tab на галочке: заливка квадрата на тёмном почти не меняется — фокус показывает подпись */
.galka:has(input:focus-visible) .galka-tekst b { color: var(--c-or-tekst); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.galka input:checked { background: var(--c-or); }
.galka input:checked::after { transform: none; opacity: 1; }
.galka:hover input:checked, .galka input:checked:focus-visible { background: var(--c-or-hover); }
.galka.oshibka input:not(:checked) { background: var(--c-err-fill-2); }
.galka-tekst { display: grid; gap: 2px; min-width: 0; }
.galka-tekst b { font-weight: 500; font-size: 15px; line-height: 1.45; color: var(--c-strong); }
.galka-tekst small { font-size: 13.5px; line-height: 1.5; color: var(--c-dim); }
.galka-tekst a { color: var(--c-strong); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--c-line-2); }
.galka-tekst a:hover { color: var(--c-or-tekst); text-decoration-color: currentColor; }
.galka + .galka-oshibka { padding-left: calc(var(--galka) + var(--s-3)); margin-top: calc(var(--s-2) * -1); }


/* ---------------------------------------------------------------------
   8. КАРТОЧКА И СТРОКИ — без рамки и тени, поверхность заливкой
   --------------------------------------------------------------------- */
.kartochka { background: var(--c-poverh); padding: clamp(16px, 2.4vw, 24px); display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.kartochka-golova { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.stroki { display: grid; }
.stroki > .stroka {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 52px; padding-block: var(--s-3); border-top: 1px solid var(--c-line); min-width: 0;
}
.stroki > .stroka:first-child { border-top: 0; }
.stroki > .stroka > :first-child { min-width: 0; }
.stroka-nazv { flex: none; font-size: var(--fs-tekst); color: var(--c-strong); }
.stroka-znach { font-size: var(--fs-melko); color: var(--c-dim); text-align: right; min-width: 0; overflow-wrap: anywhere; }


/* ---------------------------------------------------------------------
   9. ОБЛОЖКА И КАРТОЧКА НОМЕРА — своя тень вниз и корешок, без свечения
   --------------------------------------------------------------------- */
.oblozhka {
  position: relative; aspect-ratio: var(--oblozhka-ratio); background: var(--c-bg-3);
  box-shadow: var(--ten-oblozhka); transition: transform var(--dur-m) var(--ease-out), box-shadow var(--dur-m) var(--ease-out);
}
.oblozhka img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.oblozhka::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--koreshok-w); z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--c-koreshok), transparent);
}
.oblozhka.s-torcom::after {
  content: ""; position: absolute; top: 3px; bottom: 3px; right: calc(var(--torec-w) * -1); width: var(--torec-w);
  background: var(--c-torec);
}
/* обложки нет (журнал не ответил, старая копия каталога) или она не загрузилась (kabinet.js:
   класс ne-zagruzilas, картинка спрятана): знак журнала на заливке. Знак всегда под картинкой. */
.oblozhka > .logo { position: absolute; left: 50%; top: 50%; z-index: 0; width: 64%; height: auto; color: var(--c-or); transform: translate(-50%, -50%); }
.oblozhka.pusto > .logo, .oblozhka.ne-zagruzilas > .logo { z-index: 1; }
.oblozhka.priglushena img { filter: var(--priglushit); transition: filter var(--dur-m) var(--ease-out); }
@media (hover: hover) {
  .nomer:hover .oblozhka { transform: translateY(-6px); box-shadow: var(--ten-oblozhka-hover); }
  .nomer:hover .oblozhka.priglushena img { filter: none; }
}

.nomer { display: grid; gap: var(--s-3); min-width: 0; align-content: start; }
.nomer-nazv { font-weight: 800; font-size: var(--fs-h3); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; color: var(--c-strong); }
.nomer-tema { font-size: var(--fs-melko); line-height: 1.4; color: var(--c-text); }
/* откуда номер: куплен · по подписке · промокод · открыт всем · нет в кабинете */
.otkuda { display: inline-flex; align-items: center; gap: var(--s-2); font: 400 var(--fs-metka)/1.3 var(--mono); text-transform: uppercase; letter-spacing: var(--ls-metka); }
.otkuda::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; }
.otkuda.kuplen, .otkuda.podpiska { color: var(--c-or-tekst); }
.otkuda.promokod { color: var(--c-strong); }
.otkuda.vsem { color: var(--c-text); }
.otkuda.net { color: var(--c-dim); }
.otkuda.net::before { background: var(--c-fill-4); }

.karta-nomera { display: flex; flex-direction: column; gap: 8px; background: var(--c-poverh); padding: 14px 14px 16px; min-width: 0; }
.karta-nomera .oblozhka { margin-bottom: 10px; }
.deystviya { margin-top: auto; padding-top: 8px; }
.deystviya .kn { --kn-px: 12px; }
@media (max-width: 480px) { .nomer .kn-vtor > svg { display: none; } }

/* «Листать» — вторичная кнопка на самой обложке */
.listat { position: absolute; left: 10px; bottom: 10px; z-index: 3; --kn-px: 12px; background: var(--c-bg); color: var(--c-strong); }
.listat:hover { color: var(--c-or-tekst); }
.listat:active { background: var(--c-bg-3); }


/* ---------------------------------------------------------------------
   10. СТАТУСЫ — пилюля с заливкой, сплошной квадрат 8×8, слово обязательно
   --------------------------------------------------------------------- */
.status {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 5px 10px 5px 8px;
  background: var(--c-fill); color: var(--c-strong); font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--c-dim); }
.status.gotovo::before   { background: var(--c-strong); }
.status.problema         { background: var(--c-err-fill); color: var(--c-err); }
.status.problema::before { background: var(--c-err-solid); }


/* ---------------------------------------------------------------------
   11. НАДЁЖНОСТЬ ПАРОЛЯ — 4 деления + слово; уровни 1 слабый … 4 надёжный
   --------------------------------------------------------------------- */
.nadezhnost { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 10ch; gap: var(--s-1); align-items: center; }
.nadezhnost i { height: 4px; background: var(--c-fill-3); transition: background-color var(--dur-s); }
.nadezhnost b { font: 400 var(--fs-metka)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--ls-metka); color: var(--c-dim); text-align: right; }
.nadezhnost[data-uroven="1"] i:nth-of-type(-n+1) { background: var(--c-err-solid); }
.nadezhnost[data-uroven="1"] b { color: var(--c-err); }
.nadezhnost[data-uroven="2"] i:nth-of-type(-n+2),
.nadezhnost[data-uroven="3"] i:nth-of-type(-n+3),
.nadezhnost[data-uroven="4"] i { background: var(--c-or); }
.nadezhnost[data-uroven="4"] b { color: var(--c-strong); }
.trebovaniya { list-style: none; display: grid; gap: 6px; font-size: var(--fs-melko); color: var(--c-dim); }
.trebovaniya li { display: flex; align-items: center; gap: var(--s-2); }
.trebovaniya li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--c-fill-4);
  -webkit-mask: linear-gradient(#000 0 0) center / 6px 6px no-repeat; mask: linear-gradient(#000 0 0) center / 6px 6px no-repeat; }
.trebovaniya li.ok { color: var(--c-text); }
.trebovaniya li.ok::before { background: var(--c-or-tekst);
  -webkit-mask: var(--ik-galka) center / contain no-repeat; mask: var(--ik-galka) center / contain no-repeat; }


/* ---------------------------------------------------------------------
   12. ЭКРАНЫ ВХОДА: веер обложек над карточкой (телефон), рядом с ней (компьютер)
   --------------------------------------------------------------------- */
.vhod { display: grid; justify-items: center; padding-block: clamp(24px, 6vw, 72px) var(--s-7); }
.vhod-kolonka { display: grid; gap: var(--s-4); width: 100%; max-width: 480px; min-width: 0; }
.vhod-karta { position: relative; z-index: 2; background: var(--c-poverh); padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; min-width: 0; }
.vhod-karta { --fs-titul: clamp(40px, 4vw, 52px); }
.vhod-zag { display: grid; gap: 10px; min-width: 0; }
.vhod-znak { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; background: var(--c-fill); color: var(--c-or-tekst); }
.vhod-znak .ik { width: 24px; height: 24px; stroke-width: 1.75; }
.vhod-karta .forma { gap: 18px; max-width: none; }
.vhod-karta > .tekst, .vhod-karta > .melko { max-width: none; }
.vhod-niz { text-align: center; font-size: var(--fs-melko); color: var(--c-dim); }
.vhod-niz .ssylka { font-weight: 600; }
.zabyl { display: flex; justify-content: flex-end; margin-top: -8px; }
.zabyl .kn-tekst { --kn-h: 36px; }
.s-formoy { line-height: 1.6; }
.podskaz-plashka {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start;
  padding: 14px 16px; background: var(--c-fill); font-size: var(--fs-melko); line-height: var(--lh-melko); color: var(--c-text);
}
.podskaz-plashka .ik { width: 20px; height: 20px; stroke-width: 1.75; color: var(--c-or-tekst); margin-top: 1px; }

/* веер растёт с колонкой: размеры в долях ширины, чтобы крайние обложки не уходили за край на 320 и 1024 */
.veer { position: relative; width: 100%; aspect-ratio: 343 / 188; margin-top: 8px; }
.veer .oblozhka { position: absolute; left: 50%; bottom: 0; width: 34.4%; margin-left: -17.2%; transform-origin: 50% 100%; }
.veer .l { transform: translateX(-63%) rotate(-12deg); }
.veer .p { transform: translateX(63%) rotate(12deg); }
.veer .c { z-index: 1; transform: translateY(-9%); }
.vhod.s-veerom { padding-top: var(--s-2); }
.vhod.s-veerom .vhod-karta { margin-top: -70px; }

@media (min-width: 900px) {
  .vhod.s-veerom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px); justify-content: center; align-items: center;
    column-gap: clamp(48px, 7vw, 112px); max-width: 1120px; margin-inline: auto; padding-block: 72px 96px;
  }
  .vhod.s-veerom .vhod-karta { margin-top: 0; }
  .veer { aspect-ratio: 550 / 420; margin-top: 0; }
  .veer .oblozhka { width: 41.5%; margin-left: -20.75%; }
  .veer .l { transform: translateX(-60.5%) rotate(-10deg); }
  .veer .p { transform: translateX(60.5%) rotate(10deg); }
  .veer .c { transform: translateY(-12%); }
}


/* ---------------------------------------------------------------------
   13. КАБИНЕТ · ПУЛЬТ: слева кто и сколько, справа полка и разделы
   --------------------------------------------------------------------- */
.pult { display: grid; grid-template-columns: 312px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 40px 72px; }
.pult-soobshchenie { grid-column: 2; grid-row: 1; }
.pult-soobshchenie + .profil { grid-column: 1; grid-row: 1 / span 2; }
.pult-soobshchenie ~ .glavnoe { grid-column: 2; grid-row: 2; }

.profil { position: sticky; top: calc(var(--shapka) + 24px); background: var(--c-poverh); padding: 24px; display: grid; gap: 20px; min-width: 0; }
.profil-verh { display: grid; gap: 20px; min-width: 0; }
.profil-kto { display: grid; gap: 6px; min-width: 0; }
.profil-pochta { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--c-strong); overflow-wrap: anywhere; }
.profil-razdel { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.profil-verh .schetchik { padding-top: 20px; border-top: 1px solid var(--c-line); }

/* счётчик «2 номера в кабинете»: огромная цифра против двух строк капса */
.schetchik { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.schetchik > b { font-weight: 800; font-size: 72px; line-height: .8; letter-spacing: -.05em; color: var(--c-strong); font-variant-numeric: tabular-nums; padding-bottom: 2px; }
.schetchik-tekst { display: grid; gap: 6px; min-width: 0; }
.schetchik-slovo { font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: var(--ls-kaps); text-transform: uppercase; color: var(--c-strong); }

/* «Сменить пароль», «Мои данные» — строки списка с иконкой и стрелкой */
.profil-ssylki { gap: 0; padding-top: 8px; }
.punkt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; gap: var(--s-3); align-items: center;
  min-height: 48px; color: var(--c-strong); text-decoration: none; font-size: var(--fs-tekst); font-weight: 500;
  border-top: 1px solid var(--c-line); transition: color var(--dur-s) var(--ease-out);
}
.punkt:first-child { border-top: 0; }
.punkt .ik { width: 20px; height: 20px; stroke-width: 1.75; color: var(--c-dim); transition: color var(--dur-s) var(--ease-out); }
.punkt .ik.strelka { width: 16px; height: 16px; stroke-width: 2; transition: transform var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out); }
@media (hover: hover) {
  .punkt:hover, .punkt:hover .ik { color: var(--c-or-tekst); }
  .punkt:hover .ik.strelka { transform: translateX(3px); }
}

/* полка */
.glavnoe { min-width: 0; }
.polka-golova { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: 28px; }
.polka-zag { min-width: 0; }
.polka-golova .h1 { margin-block: 10px 14px; }
.polka-obeshchanie {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start;
  max-width: 300px; padding-bottom: 4px; font-size: var(--fs-melko); line-height: var(--lh-melko); color: var(--c-dim);
}
.polka-obeshchanie .ik { width: 20px; height: 20px; stroke-width: 1.75; color: var(--c-or-tekst); margin-top: 1px; }
.listayte { display: none; }
/* колонки — по ширине карточки: на 1280 их четыре по 202 px (как в макете), уже — три, потом две.
   Подписи «Читать» + «PDF» и «Купить PDF · цена» в карточке не уже 200 px помещаются целиком. */
.setka-nomerov { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
/* сообщение «№ … на полке» над лентой — только там, где пульт не виден рядом (≤ 900, см. ниже) */
.polka-soobshchenie.ok { display: none; }
.lenta-schet { display: none; }
.polka-pusto { display: grid; gap: var(--s-4); justify-items: start; padding: clamp(24px, 4vw, 48px); background: var(--c-poverh); }
.polka-pusto p { font-size: var(--fs-tekst); color: var(--c-text); max-width: 48ch; }

/* разделы под полкой */
.razdely { display: grid; gap: 16px; margin-top: 48px; }
.dva { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pusto-stroka { font-size: var(--fs-melko); color: var(--c-dim); }

/* покупки — таблица на компьютере, строки-карточки на телефоне */
.tablica { width: 100%; border-collapse: collapse; }
.tablica th { text-align: left; font: 400 var(--fs-metka)/1.3 var(--mono); text-transform: uppercase; letter-spacing: var(--ls-metka); color: var(--c-dim); padding: 0 var(--s-4) 10px 0; }
.tablica td { padding: 14px var(--s-4) 14px 0; border-top: 1px solid var(--c-line); vertical-align: middle; font-size: var(--fs-melko); }
.tablica th:last-child, .tablica td:last-child { padding-right: 0; }
.vpravo, .tablica .vpravo { text-align: right; }
.tablica td.data { font: 400 var(--fs-mono)/1.4 var(--mono); color: var(--c-dim); white-space: nowrap; }
.tablica td b { display: block; font-weight: 600; font-size: var(--fs-tekst); line-height: 1.35; color: var(--c-strong); }
.tablica td small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--c-dim); }
.tablica .uzko { width: 1%; white-space: nowrap; }
.summa { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-strong); white-space: nowrap; }
.tablica td.summa { font-size: var(--fs-tekst); }
.pokupki-spisok { display: none; }
.pokupka { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding-block: 14px; border-top: 1px solid var(--c-line); }
.pokupka:first-child { border-top: 0; padding-top: 4px; }
.pokupka b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--c-strong); }
.pokupka .dannye { display: block; margin-top: 2px; }
.pokupka-prav { display: grid; justify-items: end; gap: 6px; }
.pokupka-prav .melko { line-height: 1.2; }

/* пароль — два поля в ряд; на телефоне раздел свёрнут, открывается из «Кабинет и данные» */
.parol > summary { list-style: none; cursor: default; }
.parol > summary::-webkit-details-marker { display: none; }
.parol .strelka-vniz { display: none; }
.parol .forma { max-width: none; gap: 20px; }
.dva-polya { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.parol .nadezhnost { margin-top: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)) 9ch; }
.parol-niz { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

/* кабинет и данные: удаление — последним пунктом, красным текстом без красной заливки */
.dannye-blok { gap: 12px; }
.dannye-blok .stroka .kn-tekst { --kn-h: 32px; }
.stroki > .stroka.udalit { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding-block: 14px 4px; }
.udalit p { font-size: 15px; line-height: 1.5; color: var(--c-text); max-width: 46ch; }
.kn.kn-udalit {
  --kn-px: 0px; background: none; color: var(--c-err); justify-content: flex-start;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--c-line-2);
}
.kn.kn-udalit:hover { text-decoration-color: currentColor; }
.tolko-tel { display: none !important; }

/* средняя ширина: пульт уже, номера по три */
@media (max-width: 1100px) {
  /* пульт той же ширины 312: уже — плейсхолдер промокода не помещается рядом с «Применить» */
  .pult { gap: 24px; }
  .dva { grid-template-columns: minmax(0, 1fr); }
}
/* планшет: пульт сверху одной полосой */
@media (max-width: 900px) {
  .pult { grid-template-columns: minmax(0, 1fr); padding-block: 24px 48px; }
  .pult-soobshchenie, .pult-soobshchenie + .profil, .pult-soobshchenie ~ .glavnoe { grid-column: auto; grid-row: auto; }
  .profil { position: static; padding: 16px; gap: 16px; }
  .profil-verh { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); }
  .profil-verh .schetchik { padding-top: 0; border-top: 0; gap: 10px; }
  .profil .promo { padding-top: 16px; }
  .profil-ssylki { display: none; }
  /* якорь #nomera уводит к полке, пульт с сообщением остаётся выше — повторяем его над лентой */
  .polka-soobshchenie.ok { display: flex; margin-bottom: 16px; }
}
/* телефон: полка лентой вбок со счётчиком, покупки строками */
@media (max-width: 640px) {
  .pult { gap: 0; padding-block: 16px 0; }
  .pult-soobshchenie { margin-bottom: 16px; }
  .profil-pochta { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .schetchik > b { font-size: 52px; }
  .schetchik-slovo { font-size: 12.5px; }
  .schetchik-chasti { display: none; }

  .polka-golova { align-items: flex-end; gap: var(--s-3); margin: 0; padding: 28px 0 16px; }
  .polka-golova .metka, .polka-golova .dannye:not(.listayte), .polka-obeshchanie { display: none; }
  .polka-golova .h1 { margin: 0; }
  .listayte { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 3px; white-space: nowrap; }
  .listayte .ik { width: 14px; height: 14px; }
  .setka-nomerov {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--karta-tel); gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none;
  }
  .setka-nomerov::-webkit-scrollbar { display: none; }
  .setka-nomerov > * { scroll-snap-align: start; }
  .setka-nomerov .kn { --kn-h: var(--kn-s); --kn-fs: 13px; }
  .lenta-schet { display: flex; align-items: center; gap: 6px; }
  .lenta-schet i { width: 8px; height: 8px; background: var(--c-fill-4); transition: background-color var(--dur-s) var(--ease-out); }
  .lenta-schet i.tut { background: var(--c-or); }
  .lenta-schet .dannye { margin-left: 6px; }

  .razdely { gap: 12px; margin-top: 28px; }
  .tablica { display: none; }
  .pokupki-spisok { display: grid; }
  .kartochka { padding: 16px; }
  .dva-polya { grid-template-columns: minmax(0, 1fr); }
  .parol > summary { cursor: pointer; }
  .parol .strelka-vniz { display: block; width: 20px; height: 20px; color: var(--c-dim); align-self: center; transition: transform var(--dur-s) var(--ease-out); }
  .parol[open] .strelka-vniz { transform: rotate(180deg); }
  .parol:not([open]) { gap: 0; }
  .tolko-tel { display: flex !important; }
  .dannye-blok .stroka { min-height: 48px; }
}


/* ---------------------------------------------------------------------
   14. СТАРЫЕ СТРАНИЦЫ СЛУЖБЫ: «Оплачено», тестовая касса, админка
   Разметка у них прежняя (.karta, .admin, .kn.glav, голые h1/p/table) — выглядят как раньше.
   --------------------------------------------------------------------- */
.karta, .admin, main > section:not([class]) { width: 100%; max-width: 900px; margin-inline: auto; padding-block: clamp(24px, 5vw, 56px) 80px; }
.karta > * { max-width: 560px; }
:where(.karta, .admin) h1 { font-weight: 800; font-size: clamp(32px, 5vw, 56px); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; color: var(--c-strong); margin: 10px 0 16px; overflow-wrap: anywhere; }
:where(.karta, .admin) h2 { font-weight: 800; font-size: clamp(20px, 2.6vw, 28px); text-transform: uppercase; letter-spacing: -.01em; color: var(--c-strong); margin: 8px 0 14px; }
:where(.karta, .admin) p { line-height: 1.6; margin: 0 0 12px; }
:where(.karta, .admin) .forma { max-width: 460px; gap: 14px; }
.tiho { color: var(--c-dim); font-size: 14px; }
.kn.glav, .kn.vtor { --kn-h: 54px; --kn-px: 24px; --kn-fs: 15px; }
.kn.malaya { --kn-h: 38px; --kn-px: 14px; --kn-fs: 12.5px; }
.dey { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chipy { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip { display: inline-block; padding: 9px 14px; background: var(--c-fill-2); text-decoration: none; font-size: 14px; color: var(--c-strong); }
.chip:hover { background: var(--c-or); color: var(--c-na-or); }
form.stroka { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; }
form.stroka input { width: auto; min-width: 160px; padding: 9px 12px; font: 14px var(--font); color: var(--c-strong); background: var(--c-fill); border: 0; outline: none; box-shadow: none; border-radius: 0; }
form.stroka input:hover { background: var(--c-fill-2); }
form.stroka input:focus { background: var(--c-fill-3); }
.spisok { padding-left: 18px; line-height: 1.7; }
.vkladki { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 18px; }
.vkl { padding: 10px 16px; background: var(--c-fill); text-decoration: none; font-weight: 600; font-size: 13.5px; text-transform: uppercase; color: var(--c-dim); }
.vkl.akt { background: var(--c-strong); color: var(--c-bg); }
:where(.karta, .admin) .ssylka { color: var(--c-dim); }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th { text-align: left; font: 11.5px var(--mono); text-transform: uppercase; color: var(--c-dim); padding: 8px 10px; border-bottom: 1px solid var(--c-line); }
.admin td { padding: 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
@media (max-width: 700px) { .admin table { display: block; overflow-x: auto; } }


/* ---------------------------------------------------------------------
   15. МЕНЬШЕ ДВИЖЕНИЯ
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .kn[aria-busy="true"]::before { animation: kn-krug 1.6s linear infinite !important; }
  .nomer:hover .oblozhka { transform: none; }
}


/* ---------------------------------------------------------------------
   СКРУГЛЕНИЯ, ТЕНИ И ПОЯВЛЕНИЕ ВХОДА — как у сайта журнала (Гриша 16.11.2026)
   Радиусы — токены выше; админка обнуляет их у себя (admin.css, .adminka).
   --------------------------------------------------------------------- */
.kartochka, .vhod-karta, .profil, .polka-pusto { border-radius: var(--radius-karta); }
.karta-nomera, .podskaz-plashka, .plashka-soobshcheniya.ok { border-radius: var(--radius-plashka); }
.vhod-znak { border-radius: var(--radius); }
.status { border-radius: var(--radius-melko); }
.status::before { border-radius: 2px; }
.oblozhka, .oblozhka img, .oblozhka::before { border-radius: var(--radius-oblozhka); }
/* тень карты — мягче журнальной (Гриша 16.11.2026: «поменьше тень») */
body:not(.adminka) .vhod-karta { box-shadow: 0 20px 48px -18px rgba(0,0,0,.55), 0 6px 16px rgba(0,0,0,.22); }
/* подсказка последней строкой внутри карты, через тонкую линию (вариант A) */
.podskazka-v-karte { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start;
  padding-top: 20px; border-top: 1px solid var(--c-line); font-size: var(--fs-melko); line-height: var(--lh-melko); color: var(--c-text); }
.podskazka-v-karte .ik { width: 20px; height: 20px; stroke-width: 1.75; color: var(--c-or-tekst); margin-top: 1px; }

/* Появление входа: обложки выходят стопкой и раскрываются веером (анимация идёт к их месту в веере),
   следом поднимается карта, поля — по очереди. Около секунды, только при загрузке. */
@keyframes veer-raskryt { from { opacity: 0; transform: translateY(16%) scale(.94); } }
@keyframes vhod-vsplyt { from { opacity: 0; transform: translateY(18px); } }
@keyframes vhod-proyavit { from { opacity: 0; } }
body:not(.adminka) .veer .oblozhka { animation: veer-raskryt 1000ms var(--ease-zhurnala) both; }
body:not(.adminka) .veer .l { animation-delay: 120ms; }
body:not(.adminka) .veer .p { animation-delay: 200ms; }
body:not(.adminka) .vhod-karta { animation: vhod-vsplyt 700ms var(--ease-zhurnala) 280ms both; }
body:not(.adminka) .vhod-karta .forma > * { animation: vhod-vsplyt 600ms var(--ease-zhurnala) 380ms both; }
body:not(.adminka) .vhod-karta .forma > :nth-child(2) { animation-delay: 430ms; }
body:not(.adminka) .vhod-karta .forma > :nth-child(3) { animation-delay: 480ms; }
body:not(.adminka) .vhod-karta .forma > :nth-child(4) { animation-delay: 530ms; }
body:not(.adminka) .vhod-karta .forma > :nth-child(n+5) { animation-delay: 580ms; }
body:not(.adminka) .vhod-karta > .podskazka-v-karte { animation: vhod-vsplyt 600ms var(--ease-zhurnala) 640ms both; }
@media (prefers-reduced-motion: reduce) {
  body:not(.adminka) .veer .oblozhka, body:not(.adminka) .vhod-karta, body:not(.adminka) .vhod-karta .forma > *,
  body:not(.adminka) .vhod-karta > .podskazka-v-karte { animation-name: vhod-proyavit; animation-duration: 200ms; }
}


/* ---------------------------------------------------------------------
   ФОН КАК НА ГЛАВНОЙ ЖУРНАЛА (Гриша 16.11.2026)
   Холст рисует static/fon.js журнала: живой градиент из цветов свежей обложки, края затемнены (.tem),
   зерно — body::after. Карточки полупрозрачные, чтобы цвет просвечивал. Админки это не касается.
   --------------------------------------------------------------------- */
.fon { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; background: var(--c-bg); pointer-events: none; }
.tem { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 72% 72% at 50% 45%, transparent 30%, rgba(6,8,11,.72) 100%); }
body > .test, body > main, body > .podval { position: relative; z-index: 1; }
body:has(> .fon) { --c-poverh: oklch(17% 0 0 / .74); --c-shapka: oklch(12% 0 0 / .5); }


/* ---------------------------------------------------------------------
   ПЛОТНЫЕ УВЕДОМЛЕНИЯ И КОД ИЗ ПИСЬМА (Гриша 16.11.2026: «не вот эта бледина»)
   Ошибка — сплошная красная плашка, «отправили» — графитовая; значок в цветном квадрате, текст белый.
   --------------------------------------------------------------------- */
.uvedomlenie { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: var(--radius-plashka); color: var(--c-strong); }
.uvedomlenie > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; }
.uvedomlenie > i .ik { width: 22px; height: 22px; stroke-width: 2; }
.uvedomlenie > div > b { display: block; font-weight: 600; font-size: 17px; line-height: 1.35; }
.uvedomlenie span { display: block; margin-top: 3px; font-size: var(--fs-melko); line-height: var(--lh-melko); color: oklch(100% 0 0 / .88); }
.uvedomlenie span:empty { display: none; }
.uvedomlenie a { color: var(--c-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.uvedomlenie span .pochta-v-tekste { display: inline; font: inherit; font-weight: 600; color: var(--c-strong); overflow-wrap: anywhere; }
.uvedomlenie.oshibka { background: oklch(34% .11 27); }
.uvedomlenie.oshibka > i { background: oklch(62% .2 27); color: var(--c-strong); }
.uvedomlenie.ok { background: oklch(27% 0 0); }
.uvedomlenie.ok > i { background: var(--c-or); color: var(--c-na-or); }
/* остальные ошибки форм — тоже плотные */
body:not(.adminka) .oshibka-formy { background: oklch(34% .11 27); border-radius: var(--radius-plashka); color: var(--c-strong); padding: 14px 18px; }
body:not(.adminka) .oshibka-formy::before { background: oklch(80% .1 27); }

.kod-vvod { width: 100%; height: 76px; padding: 0 0 0 .45em; border: 0; outline: none; box-shadow: none; border-radius: var(--radius);
  background: var(--c-fill); color: var(--c-strong); font: 600 36px/1 var(--mono); letter-spacing: .45em; text-align: center;
  transition: background-color var(--dur-s) var(--ease-out); }
.kod-vvod::placeholder { color: var(--c-faint); }
.kod-vvod:hover { background: var(--c-fill-2); }
.kod-vvod:focus { background: var(--c-fill-3); }
.pole.oshibka .kod-vvod { background: var(--c-err-fill); }
.kod-niz { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-melko); }
.kod-niz form { display: contents; }
.kod-niz .ssylka { font-weight: 600; }
