/* ДЕРЗАЙ — стиль «Ночная вершина» (2026-11-09).
   Этот файл подключается ПОСЛЕДНИМ (js/premium.js следит за этим) и ничего не
   знает о данных: только цвета, шрифты, отступы, скругления, тени и движение.
   Убрать стиль целиком = убрать ссылку на этот файл из index.html.

   Единые переменные:
     цвет      --bg --card --text --accent … (как раньше) + --gold* для достижений и ПРО
     шрифт     --font (Onest, текст) и --font-display (Unbounded, цифры и заголовки)
     размеры   --fs-*            отступы  --sp-1 … --sp-8
     скругления --r-sm … --r-xl  тени     --sheet-shadow --float-shadow --shadow
     движение  --ease --dur-1 … --dur-3 */

/* ---------- Шрифты лежат в приложении: открываются без сети и без Google ---------- */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-cyr.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: 100 900; font-display: swap;
  src: url("../fonts/onest-latext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-lat.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: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-lat.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; }

/* Картинки для сторис и отчёт в PDF (share.js, pro.css) просят шрифт «Geologica» по имени —
   отдаём им тот же Onest, чтобы без серверов Google они не съехали на системный шрифт */
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-lat.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; }

/* =====================================================================
   1. Переменные
   ===================================================================== */
:root {
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif,
          "Apple Color Emoji", "MG Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-display: "Unbounded", "Onest", -apple-system, "Segoe UI", system-ui, sans-serif;

  --fs-small: calc(13.5px * var(--scale));
  --fs-base: calc(15px * var(--scale));
  --fs-sub: calc(17px * var(--scale));
  --fs-title: calc(19px * var(--scale));
  --fs-head: calc(24px * var(--scale));
  --fs-huge: calc(38px * var(--scale));

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px;

  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px; --r-pill: 999px;

  --dur-1: .16s; --dur-2: .28s; --dur-3: .6s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (min-width: 1100px) { :root { --col: 940px; --side: 236px; --frame: 1300px; } }

/* ---------- Тёмная тема — главная ---------- */
:root[data-theme="dark"] {
  --bg: #090A11;
  --bg-soft: #0E1018;
  --card: #12141E;
  --card-hover: #191C29;
  --card-border: rgba(214, 216, 255, .12);
  --card-edge: rgba(214, 216, 255, .075);
  --line: rgba(214, 216, 255, .08);
  --raised: #232739;
  --track: #22253A;

  --text: #F3F2F8;
  --text-muted: #A9AAC0;
  --text-faint: #8D8EA6;

  --gold: #E9C37A;
  --gold-ink: #F0D49A;
  --gold-soft: #1D1910;
  --gold-line: rgba(233, 195, 122, .30);
  --on-gold: #1A1408;

  --sheet-shadow: 0 0 0 1px var(--card-edge), inset 0 1px 0 rgba(255, 255, 255, .045), 0 22px 44px -26px rgba(0, 0, 0, .9);
  --float-shadow: 0 0 0 1px var(--card-border), inset 0 1px 0 rgba(255, 255, 255, .06), 0 28px 60px -20px rgba(0, 0, 0, .9);
  --shadow: 0 0 0 1px var(--card-border), inset 0 1px 0 rgba(255, 255, 255, .06), 0 44px 100px -24px rgba(0, 0, 0, .95);
  --glass: rgba(9, 10, 17, .76);
  --glass-strong: rgba(25, 28, 41, .84);
  --scrim: rgba(3, 4, 9, .66);
  --ambient: .13;
}
/* Акцент меняем только у фиолетовой темы по умолчанию: остальные пять тем остаются своими */
:root[data-theme="dark"]:not([data-palette]) {
  --accent: #7C6CFF;
  --accent-hover: #8C7DFF;
  --accent-press: #6A59F0;
  --accent-dark: #4A3FB0;
  --accent-soft: #1C1A36;
  --accent-ink: #B9AFFF;
  --accent-grad-from: #6A59F0;
  --accent-grad-to: #A99CFF;
  --accent-shadow: rgba(124, 108, 255, .5);
  --hm0: #1C1E2B; --hm1: #2C2862; --hm2: #4B3FB8; --hm3: #7C6CFF; --hm4: #C6BDFF;
}

/* ---------- Светлая тема — та же система, дневной свет ---------- */
:root[data-theme="light"] {
  --bg: #F0F0F6;
  --bg-soft: #F6F6FA;
  --card: #FFFFFF;
  --card-hover: #F5F5FA;
  --card-border: rgba(24, 22, 60, .11);
  --card-edge: rgba(24, 22, 60, .07);
  --line: rgba(24, 22, 60, .08);
  --track: #E5E5EE;

  --text: #14142A;
  --text-muted: #56566E;
  --text-faint: #666780;

  --gold: #9A6A10;
  --gold-ink: #7E560A;
  --gold-soft: #FBF3E1;
  --gold-line: rgba(176, 122, 20, .32);
  --on-gold: #FFFFFF;

  --sheet-shadow: 0 0 0 1px var(--card-edge), 0 1px 2px rgba(24, 22, 60, .04), 0 18px 36px -22px rgba(40, 32, 110, .22);
  --float-shadow: 0 0 0 1px var(--card-edge), 0 2px 6px rgba(24, 22, 60, .05), 0 28px 54px -18px rgba(40, 32, 110, .28);
  --shadow: 0 0 0 1px var(--card-edge), 0 34px 90px -24px rgba(40, 32, 110, .38), 0 2px 8px rgba(24, 22, 60, .06);
  --glass: rgba(240, 240, 246, .8);
  --scrim: rgba(16, 15, 36, .42);
}

/* =====================================================================
   2. Основа: шрифт, фон, цифры
   ===================================================================== */
html, body { font-family: var(--font); letter-spacing: -.006em; }
html { font-feature-settings: "ss01", "cv11"; }

/* Фон: одно спокойное свечение сверху и едва заметная «даль» внизу */
html body::before {
  top: -44vh; height: 82vh; width: min(1300px, 170vw);
  background: radial-gradient(closest-side, var(--accent), transparent 72%);
  filter: blur(60px);
}

/* Крупные цифры и главные заголовки — дисплейным шрифтом */
html .today-day,
html .alt-level,
html .streak-num,
html .frost-num,
html .dream-big,
html .dream-title,
html .goal-percent,
html .chip-value,
html .today-count b,
html .panel-title,
html .an-title,
html .an-idx-num,
html .an-tile b,
html .cal-title,
html .ws-big,
html .modal-title {
  font-family: var(--font-display);
  font-feature-settings: normal;
}
html .today-day { font-size: calc(26px * var(--scale)); font-weight: 600; letter-spacing: -.02em; }
html .today-count b { font-size: calc(19px * var(--scale)); font-weight: 600; letter-spacing: -.02em; }
html .alt-level { font-size: calc(38px * var(--scale)); font-weight: 600; letter-spacing: -.03em; }
html .streak-num, html .frost-num { font-size: calc(25px * var(--scale)); font-weight: 600; letter-spacing: -.03em; }
html .chip-value { font-size: calc(18px * var(--scale)); font-weight: 600; letter-spacing: -.02em; }
html .panel-title { font-size: calc(17px * var(--scale)); font-weight: 600; letter-spacing: -.01em; }

html .section-title { font-weight: 650; letter-spacing: -.015em; }
html .muted { color: var(--text-muted); }

/* =====================================================================
   3. Карточки, кнопки, поля
   ===================================================================== */
/* Скругления и тени карточек идут из переменных (--r-lg, --sheet-shadow): отступы у разделов свои */

html .btn {
  font-weight: 650; letter-spacing: -.005em;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease, box-shadow var(--dur-2) ease,
              transform var(--dur-1) var(--ease-out), opacity var(--dur-2) ease;
}
html .btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -10px var(--accent-shadow);
}
html .btn-primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-hover) 86%, #fff), var(--accent-hover));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 14px 28px -10px var(--accent-shadow);
  transform: translateY(-1px);
}
html .btn-primary:active { transform: translateY(0) scale(.98); }
html .btn-ghost { box-shadow: inset 0 0 0 1px var(--card-border); }
html .btn-ghost:hover { background: var(--card-hover); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
html .btn-ai { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Поля ввода: спокойный «колодец», при фокусе — кольцо акцента */
html input[type="text"], html input[type="email"], html input[type="number"], html input[type="date"],
html input[type="time"], html input[type="search"], html input:not([type]), html textarea, html select {
  border-radius: var(--r-md);
  transition: box-shadow var(--dur-2) ease, background-color var(--dur-2) ease;
}
html input:focus-visible, html textarea:focus-visible, html select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Галочки — свои, а не системные */
html input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0; border-radius: 7px; cursor: pointer; vertical-align: -4px;
  background: var(--bg-soft); box-shadow: inset 0 0 0 1.5px var(--card-border);
  display: inline-grid; place-items: center;
  transition: background-color var(--dur-2) ease, box-shadow var(--dur-2) ease, transform var(--dur-1) var(--ease-out);
}
html input[type="checkbox"]::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent);
  transform: rotate(-45deg) scale(0); transition: transform var(--dur-2) var(--ease-spring);
}
html input[type="checkbox"]:checked { background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
html input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
html input[type="checkbox"]:active { transform: scale(.92); }

/* =====================================================================
   4. Шапка и боковое меню (компьютер)
   ===================================================================== */
@media (min-width: 1100px) {
  html .topbar { box-shadow: 0 1px 0 var(--line); }
  html .topbar .icon-btn:not(.add) { font-weight: 550; border-radius: var(--r-sm); }
  html .topbar .icon-btn.add {
    background: transparent; color: var(--text);
    box-shadow: inset 0 0 0 1px var(--card-border);
  }
  html .topbar .icon-btn.add:hover { background: var(--card-hover); }
  html .brand-sub { color: var(--text-faint); }

  html .tabstrip .tab { font-weight: 550; }
  html .tabstrip .tab.active { font-weight: 650; }
  html .tab-group { font-family: var(--font); font-weight: 650; color: var(--text-faint);
    font-size: calc(12px * var(--scale)); letter-spacing: .08em; text-transform: uppercase; }
}
html .avatar-btn.signed-out {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -12px var(--accent-shadow);
}

/* =====================================================================
   5. Обзор
   ===================================================================== */
/* «Неделя началась»: не сплошная фиолетовая плита, а тёмный лист с акцентным светом слева */
html .cv-sunday {
  position: relative; overflow: hidden; color: var(--text);
  background:
    radial-gradient(60% 160% at 0% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
    var(--card);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}
html .cv-sunday-t { font-weight: 700; }
html .cv-sunday-s { color: var(--text-muted); opacity: 1; }
html .cv-sunday .cv-sunday-go {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -10px var(--accent-shadow);
}
html .cv-sunday .cv-sunday-skip { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--card-border); }

/* Высотомер: стрик — золотом (это достижение), высота — акцентом */
html .streak-num { color: var(--gold-ink); }
html .alt-height { font-weight: 700; }
html .alt-ach { color: var(--gold-ink); }
html .ov-soon.deadline-warn { box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--gold-line); }

/* =====================================================================
   6. Карточка цели
   ===================================================================== */
html .dream-title { font-size: calc(23px * var(--scale)); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
html .dream-big { font-size: calc(38px * var(--scale)); font-weight: 600; letter-spacing: -.04em; }
html .dream-chip { font-weight: 600; letter-spacing: .01em; }
html .dream-bar { height: 8px; background: var(--track); }

/* Цель без фото: вместо пустого пятна с буквой — невысокая шапка с контурной буквой */
@media (min-width: 641px) {
  html .dream-pic.empty {
    min-height: 0; margin: 0; padding: 34px 6px 0 0; background: none; overflow: visible;
    -webkit-mask-image: none; mask-image: none; place-items: center end; align-self: center;
  }
  html .dream-pic.empty::after { display: none; }
  html .dream-head:has(> .dream-pic.empty) { grid-template-columns: minmax(0, 1fr) 150px; margin-bottom: 6px; }
  html .dream-letter-ph {
    font-family: var(--font-display); font-size: calc(84px * var(--scale)); font-weight: 700; letter-spacing: -.04em; line-height: .9;
    color: transparent;
    background: linear-gradient(180deg, color-mix(in srgb, var(--dream-c) 85%, var(--text)), color-mix(in srgb, var(--dream-c) 20%, transparent));
    -webkit-background-clip: text; background-clip: text; opacity: .7;
  }
  html .goal.goal-dream {
    background:
      radial-gradient(60% 320px at 100% 0%, color-mix(in srgb, var(--dream-c) 30%, transparent), transparent 70%),
      var(--card);
  }
}

/* Кнопки под целью: одно главное действие, остальное — тихо, «Удалить» не кричит */
html .goal-actions { gap: 4px 6px; padding-top: 14px; }
html .goal-actions .btn { min-height: 36px; padding: 8px 14px; }
html .goal-actions .btn-ghost {
  box-shadow: none; color: var(--text-muted); padding-left: 10px; padding-right: 10px; font-weight: 600;
}
html .goal-actions .btn-ghost:hover { color: var(--text); background: var(--card-hover); box-shadow: none; }
html .goal-actions .btn-ghost-danger { color: var(--text-faint); font-weight: 550; }
html .goal-actions .btn-ghost-danger:hover { color: var(--danger); background: var(--danger-soft); }
html main > .row-between .btn-ghost-danger { color: var(--text-faint); font-weight: 550; }
html main > .row-between .btn-ghost-danger:hover { color: var(--danger); background: var(--danger-soft); }

/* Счётчики над списком целей */
html .chip { border-radius: var(--r-md); }

/* =====================================================================
   7. Движение: прогресс растёт плавно
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html .dream-bar > i, html .exp-strip-bar > i, html .progress > i, html .bar > i, html .an-bar > i {
    transition: width 1.1s var(--ease-out);
  }
}

/* =====================================================================
   8. Момент «Вершина взята» — окно выполненной цели
   ===================================================================== */
html .modal.pm-summit {
  position: relative; overflow: hidden auto; text-align: center;
  background:
    radial-gradient(90% 300px at 50% 0%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%),
    radial-gradient(70% 260px at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--card);
  box-shadow: 0 0 0 1px var(--gold-line), 0 0 0 7px color-mix(in srgb, var(--gold) 9%, transparent), var(--shadow);
}
html .pm-summit .modal-title {
  font-family: var(--font); font-size: calc(12px * var(--scale)); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 4px; padding-right: 0;
}
html .pm-summit .goal-title {
  display: block; font-family: var(--font-display); font-size: calc(23px * var(--scale)); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; margin: 4px 0 12px !important;
}
html .pm-summit .chip-amount {
  font-family: var(--font-display); font-weight: 600; font-size: calc(14px * var(--scale));
  color: var(--on-gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 80%, #fff), var(--gold));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--gold) 70%, transparent); padding: 7px 16px; border-radius: var(--r-pill);
}
html .pm-summit .level-num { font-family: var(--font-display); }
html .pm-summit .modal-actions { margin-top: 24px; }
html .pm-sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2000; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  html .pm-summit { animation: pm-summit-in .7s var(--ease-out); }
  html .pm-summit .goal-title { animation: pm-up .6s var(--ease-out) .25s both; }
  html .pm-summit .chip-amount { animation: pm-pop .6s var(--ease-spring) .5s both; }
  html .pm-summit .modal-actions { animation: pm-up .5s var(--ease-out) .7s both; }
  @keyframes pm-summit-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }
  @keyframes pm-up { from { opacity: 0; transform: translateY(10px); } }
  @keyframes pm-pop { from { opacity: 0; transform: scale(.6); } }
}

/* =====================================================================
   9. Кнопка «ПРО» в шапке и значки ПРО — золотом
   ===================================================================== */
html #btn-pro { display: none; }
@media (min-width: 1100px) {
  html .topbar #btn-pro.icon-btn {
    display: inline-flex; gap: 6px; padding: 0 12px; margin-right: 6px; height: 34px;
    color: var(--gold-ink); background: var(--gold-soft); font-weight: 700; letter-spacing: .04em;
    box-shadow: inset 0 0 0 1px var(--gold-line); border-radius: var(--r-pill);
  }
  html .topbar #btn-pro.icon-btn:hover { background: color-mix(in srgb, var(--gold) 20%, var(--card)); color: var(--gold-ink); }
}
html .an-badge { color: var(--gold-ink); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); letter-spacing: .06em; }
html #tabstrip .tab-pro::after { color: var(--gold-ink); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* =====================================================================
   10. Страница «ДЕРЗАЙ ПРО» (js/pro-page.js)
   ===================================================================== */
html.pp-open, html.pp-open body { overflow: hidden; }
.pp-host {
  position: fixed; inset: 0; z-index: 1200; overflow-y: auto; overscroll-behavior: contain;
  background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: pp-fade .25s ease;
}
.pp-host.pp-out { opacity: 0; transition: opacity .2s ease; }
.pp {
  position: relative; max-width: 1040px; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(60% 420px at 78% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(70% 520px at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg);
  box-shadow: 0 0 0 1px var(--gold-line), var(--shadow);
  padding: clamp(22px, 4vw, 48px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px);
  animation: pp-in .5s var(--ease-out);
}
@keyframes pp-fade { from { opacity: 0; } }
@keyframes pp-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pp-close {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--text-muted); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--card-border);
  transition: color .2s ease, transform .16s var(--ease-out);
}
.pp-close:hover { color: var(--text); }
.pp-close:active { transform: scale(.92); }

.pp-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: center; }
.pp-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.pp-badge {
  font-family: var(--font-display); font-size: calc(11px * var(--scale)); font-weight: 600; letter-spacing: .14em;
  color: var(--on-gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 78%, #fff), var(--gold));
  padding: 6px 12px; border-radius: 8px; box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--gold) 80%, transparent);
}
.pp-h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.12;
  font-size: clamp(26px, 3.7vw, 42px); text-wrap: balance;
}
.pp-lead { margin: 0; color: var(--text-muted); font-size: calc(17px * var(--scale)); line-height: 1.5; max-width: 46ch; }
.pp-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 6px; }
.pp-note { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.45; max-width: 36ch; }
.pp-btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: calc(15px * var(--scale)); white-space: nowrap;
  min-height: 50px; padding: 13px 26px; border-radius: var(--r-pill); color: var(--on-gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 72%, #fff), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 34px -14px color-mix(in srgb, var(--gold) 85%, transparent);
  transition: transform .16s var(--ease-out), box-shadow .28s ease, filter .28s ease;
}
.pp-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pp-btn:active { transform: scale(.98); }
.pp-btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.pp-hero-art { position: relative; min-height: 240px; display: grid; place-items: end center; }
.pp-peak {
  position: absolute; left: 50%; bottom: 0; width: min(300px, 100%); aspect-ratio: 1.25; transform: translateX(-50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, var(--text)) 0%, color-mix(in srgb, var(--accent) 60%, transparent) 40%, transparent 100%);
  clip-path: polygon(50% 8%, 100% 100%, 0 100%); opacity: .38;
}
.pp-mascot { position: relative; width: 220px; height: 220px; max-width: 100%; }
.pp-mascot img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); animation: pp-float 5s ease-in-out infinite alternate; }
@keyframes pp-float { to { transform: translateY(-8px); } }

.pp-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pp-pillar {
  background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sheet-shadow);
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.pp-pillar-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-ink);
  background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line);
}
.pp-pillar h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: calc(17px * var(--scale)); font-weight: 600; letter-spacing: -.015em; }
.pp-pillar p { margin: 0; color: var(--text-muted); font-size: calc(14px * var(--scale)); line-height: 1.5; }
.pp-pillar ul { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.pp-pillar li { position: relative; padding-left: 24px; font-size: calc(14px * var(--scale)); font-weight: 550; }
.pp-pillar li::before {
  content: ""; position: absolute; left: 2px; top: .32em; width: 11px; height: 6px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

.pp-h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: calc(19px * var(--scale)); font-weight: 600; letter-spacing: -.02em; }
.pp-table { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sheet-shadow); overflow: hidden; }
.pp-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.pp-tr > span { padding: 13px 18px; font-size: calc(14px * var(--scale)); min-width: 0; color: var(--text-muted); }
.pp-tr + .pp-tr > span { border-top: 1px solid var(--line); }
.pp-tr .pp-td-name { color: var(--text); font-weight: 600; }
.pp-th > span { font-size: calc(12px * var(--scale)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.pp-tr .pp-col-pro { color: var(--gold-ink); font-weight: 650; background: color-mix(in srgb, var(--gold) 7%, transparent); }
.pp-th .pp-col-pro { color: var(--gold-ink); }
.pp-tr .pp-no { color: var(--text-faint); }

.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.pp-item { display: flex; gap: 14px; padding: 12px 0; min-width: 0; border-top: 1px solid var(--line); }
.pp-item-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent-soft); }
.pp-item b { display: block; font-size: calc(15px * var(--scale)); font-weight: 650; margin-bottom: 2px; }
.pp-item span { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.45; }

.pp-plan-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pp-plan { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sheet-shadow); }
.pp-plan-best { box-shadow: inset 0 0 0 1.5px var(--gold), var(--sheet-shadow); background: linear-gradient(160deg, var(--gold-soft), var(--card) 60%); }
.pp-plan-tag { position: absolute; top: 18px; right: 18px; font-size: calc(12px * var(--scale)); font-weight: 700; color: var(--on-gold); background: var(--gold); padding: 4px 10px; border-radius: var(--r-pill); }
.pp-plan-name { font-weight: 650; color: var(--text-muted); }
.pp-plan-price b { display: block; font-family: var(--font-display); font-size: calc(30px * var(--scale)); font-weight: 600; letter-spacing: -.03em; margin: 6px 0 4px; }
.pp-plan-price span { color: var(--text-muted); font-size: var(--fs-small); }

.pp-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  padding: 24px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--gold-soft), var(--card) 70%);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.pp-foot-t { font-family: var(--font-display); font-size: calc(18px * var(--scale)); font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.pp-foot .pp-note { max-width: 52ch; }

@media (max-width: 820px) {
  .pp-hero { grid-template-columns: minmax(0, 1fr); }
  .pp-hero-art { order: -1; min-height: 170px; }
  .pp-mascot { width: 160px; height: 160px; }
  .pp-peak { width: 220px; }
  .pp-pillars, .pp-grid, .pp-plan-row { grid-template-columns: minmax(0, 1fr); }
  .pp-tr { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .pp-tr > span { padding: 12px 10px; font-size: calc(13px * var(--scale)); }
  .pp-btn { width: 100%; white-space: normal; }
  .pp-cta-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pp, .pp-host, .pp-mascot img { animation: none; }
}

/* =====================================================================
   Окно таймера «Беру в работу» — вариант «Кольцо» (2026-11-12)
   Время идёт по кольцу вокруг Снежка, крупные цифры, одна главная кнопка
   и круглые значки «Отдохнуть» и «Завершить». Разметку собирает app.js
   (updateFocusBar), кольцо двигает каждую секунду там же.
   ===================================================================== */
html .focus-bar { width: min(460px, calc(100vw - 24px)); border-radius: 26px; padding: 16px 16px 14px; display: grid; gap: 12px;
  background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 0 0 1px var(--card-border), 0 26px 50px -22px rgba(10, 8, 40, .55); }
html .focus-bar.rest { box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 35%, transparent), 0 26px 50px -22px rgba(10, 8, 40, .55); }
html .focus-main { display: flex; align-items: center; gap: 14px; padding: 0; min-width: 0; }
.focus-ring { position: relative; width: 104px; height: 104px; flex: none; }
.focus-ring-svg, .focus-ring-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.focus-ring-svg svg { transform: rotate(-90deg); }
.focus-ring-trk { stroke: var(--track); }
.focus-ring-val { stroke: var(--accent); transition: stroke-dashoffset 1s linear; }
.focus-bar.rest .focus-ring-val { stroke: var(--success); }
.focus-bar.paused .focus-ring-val { stroke: var(--gold); }
.focus-disc { position: absolute; inset: 10px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--accent) 22%, var(--card)), color-mix(in srgb, var(--accent) 8%, var(--card))); }
html .focus-disc .dz-focus { width: 100%; height: 100%; margin: 0; background: none; border-radius: 0; }
html .focus-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
html .focus-phase { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
html .focus-phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
html .focus-bar.rest .focus-phase { color: var(--success); }
html .focus-bar.paused .focus-phase { color: var(--gold); }
html .focus-title { font-weight: 700; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html .focus-bar .focus-clock { font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; margin-top: 2px; }
html .focus-bar.paused .focus-clock { opacity: .5; }
html .focus-total { margin: 0; font-size: 12px; color: var(--text-faint); }
html .focus-hint { padding: 0 2px; font-size: 13px; line-height: 1.35; color: var(--text-muted); }
html .focus-actions { display: flex; align-items: center; gap: 8px; padding: 0; flex-wrap: nowrap; }
html .focus-actions .focus-go { flex: 1; min-width: 0; border-radius: 999px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
html .focus-bar.rest:not(.paused) .focus-go { background: var(--success); box-shadow: 0 8px 18px -8px var(--success); }
html body.has-focus #main { padding-bottom: 260px; }
.focus-round { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--track); color: var(--text); transition: transform var(--dur-1) var(--ease-out), background var(--dur-1); }
.focus-round:hover { background: color-mix(in srgb, var(--accent) 16%, var(--track)); }
.focus-round:active { transform: scale(.94); }
.focus-round:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.focus-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.focus-ic svg { width: 100%; height: 100%; display: block; }
@media (max-width: 420px) {
  .focus-ring { width: 92px; height: 92px; }
  html .focus-bar .focus-clock { font-size: 34px; }
}
