/* Хриса — свой сайт (задача 2429): вид «Тёплое золото», день и ночь.

   ОТКУДА ЧИСЛА. Первый экран — код артбордов Teplo и TeploNoch с холста Г1
   (приложение Г2 к постановке): отступы, размеры, радиусы и тени перенесены
   без округления. Цвета, шрифты, радиусы и тени — ТОЛЬКО переменными набора
   `/assets/teplo-zoloto/tokeny.css` (--tz-*): здесь ни одного своего цвета,
   иначе девять адресов (#105) не наденут этот вид правкой одного токена.

   ДВЕ ПОПРАВКИ К ХОЛСТУ, ОБЕ ПО ПОСТАНОВКЕ:
   · кнопка меню 48×48 вместо 44×44 (п.9 «доступность главнее макета»);
     поля шапки ужаты на 2+2 px, поэтому всё ниже шапки стоит там же, где
     на холсте;
   · в шапке — знак Б целиком высотой 30 px вместо круга 26 px, аватар
     Хрисы — золотой круг с «Х» (поправки Лёхи 24.09 к п.7).

   КРУПНЫЙ ТЕКСТ. Все кегли — в rem от 16 px; «Крупный текст» поднимает
   корень до 20 px (html[data-kmf="moi"]) — тем же ключом, что кнопка
   размера шрифта у чата alexxx.ai. Высоты кнопок — min-height, растут с
   текстом; вёрстка не ломается (П8, кадр 390).

   ДВИЖЕНИЕ ОДНО: когда Хриса слушает, золотой круг «дышит», а крылья знака
   чуть раскрываются. «Уменьшить движение» в телефоне — не движется ничего. */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-kmf="moi"] { font-size: 125%; }
body {
  margin: 0;
  background: var(--tz-fon);
  color: var(--tz-tekst);
  font-family: var(--tz-shrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-align: left;
}
/* ПРАВИЛА ЧТЕНИЯ (лента #129, задача 2467, п.4): основной текст 17–18 px,
   ниже 16 px нет ничего, кроме букв логотипа «от A.L.E.X.» (часть знака);
   межстрочный 1,5–1,6; строка до ~65 знаков; текст по левому краю. Цвета —
   токены набора (тёмно-коричневый по тёплому светлому днём, кремовый по
   тёплому тёмному ночью), контраст от 4,5:1 — меряет протокол круга. */
.h-stranica p, .h-stranica li, .h-karta p, .h-karta li { max-width: 60ch; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--tz-zoloto); outline-offset: 3px; }
.h-skryto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.h-propusk {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 12px 20px; min-height: 48px; border-radius: var(--tz-r-knopka);
  background: var(--tz-pole); color: var(--tz-tekst); text-decoration: none;
  border: 1px solid var(--tz-ramka);
}
.h-propusk:focus { top: 12px; }

/* ---------- каркас: колонна телефона, на столе — по центру ---------- */
.h-list {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.h-siyanie {
  position: absolute; top: -170px; right: -150px; width: 440px; height: 440px;
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--tz-siyanie) 0%, transparent 68%);
}

/* ---------- шапка ---------- */
.h-shapka {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px 24px;
}
.h-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--tz-tekst);
  min-height: 48px; border-radius: 12px;
}
.tz-znak { display: block; flex-shrink: 0; overflow: visible; }
.h-logo-slova { display: flex; flex-direction: column; gap: 2px; }
.h-imya {
  font-family: var(--tz-shrift-zag); font-size: 1.5rem; font-weight: 600;
  line-height: 1; color: var(--tz-tekst);
}
.h-ot { font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--tz-seryy); line-height: 1.2; }
.h-menyu-knopka {
  /* подпись в шапке в две строки (задача 2639) — круг кнопки не сжимается */
  flex-shrink: 0;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--tz-knopka-menyu);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.h-menyu-knopka svg path { stroke: var(--tz-tekst); }

/* ---------- первый экран (артборд Teplo / TeploNoch) ---------- */
/* На холсте межстрочный интервал не задан — «normal»; подписи первого
   экрана и подвала держат его же, иначе строки выше на 3–4 px (сверка П1). */
body.h-glavnaya-str { line-height: normal; }
.h-glavnaya {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 24px 0 24px;
}
.h-privet { display: flex; align-items: center; gap: 14px; }
/* Кольца — content-box, как на холсте (там box-sizing не задан): 88 + рамка
   = 90 px снаружи. С border-box всё ниже поднималось на 2 px (сверка П1). */
.h-kolco-1, .h-kolco-2 { box-sizing: content-box; }
.h-kolco-1 {
  flex-shrink: 0; width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--tz-kolco-1);
  display: flex; align-items: center; justify-content: center;
}
.h-kolco-2 {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--tz-kolco-2);
  display: flex; align-items: center; justify-content: center;
}
.h-avatar {
  display: block; width: 56px; height: 56px; border-radius: 50%;
  box-shadow: var(--tz-ten-sfery);
}
.h-privet p { margin: 0; font-size: 1.125rem; line-height: 1.5; color: var(--tz-seryy); }
.h-glavnaya h1 {
  margin: 0 0 6px 0;
  font-family: var(--tz-shrift-zag); font-size: 2.625rem; line-height: 1.1;
  font-weight: 600; letter-spacing: -0.01em; color: var(--tz-tekst);
}
.h-forma { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.h-pole {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 12px 12px 20px;
  background: var(--tz-pole); border: 1px solid var(--tz-ramka);
  border-radius: var(--tz-r-pole); box-shadow: var(--tz-ten-polya);
}
.h-pole:focus-within { border-color: var(--tz-zoloto); }
.h-pole label { font-size: 1rem; color: var(--tz-seryy); }
.h-pole-ryad { display: flex; align-items: center; gap: 10px; }
.h-pole input {
  flex-grow: 1; min-width: 0; min-height: 48px; border: 0; outline: none;
  background: transparent; font-family: var(--tz-shrift); font-size: 1.125rem;
  color: var(--tz-tekst); padding: 8px 0;
}
.h-pole input::placeholder { color: var(--tz-seryy); opacity: 1; }
.h-mikro {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 30%, var(--tz-sfera-1) 0%, var(--tz-sfera-2) 58%, var(--tz-sfera-3) 100%);
  box-shadow: var(--tz-ten-mikro);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.h-mikro svg rect, .h-mikro svg path { stroke: var(--tz-na-zolote); }
.h-sprosit {
  min-height: 58px; border: 0; border-radius: var(--tz-r-knopka);
  background: var(--tz-zoloto); color: var(--tz-na-zolote);
  font-family: var(--tz-shrift); font-size: 1.125rem; font-weight: 600;
  box-shadow: var(--tz-ten-knopki); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; padding: 0 24px; line-height: 1.2;
}
/* Заглушка «скоро» (задача 2488, п.4; лента #171): вход и кабинет Хрисы —
   волна 2. Не ссылка и не кнопка: без золота и тени, рамка пунктиром, курсор
   обычный; цвета — токены набора. */
.h-skoro { color: var(--tz-seryy); font-weight: 400; margin-left: 0.4em; white-space: nowrap; }
.h-skoro-knopka, .vhod-v-kabinet.h-skoro-knopka {
  min-height: 58px; margin: 0; padding: 0 24px; border-radius: var(--tz-r-knopka);
  display: flex; align-items: center; justify-content: center;
  background: var(--tz-pole); color: var(--tz-seryy); border: 1px dashed var(--tz-ramka);
  box-shadow: none; filter: none; cursor: default;
  font-family: var(--tz-shrift); font-size: 1.125rem; font-weight: 600; line-height: 1.2;
}
.vhod-v-kabinet.h-skoro-knopka { display: inline-flex; min-height: 48px; font-size: 1rem; }
/* Чат сайта знает вошедшего в кабинет (задача 2487, круг 2, п.4): задачи
   человека под приветствием и галочка «сохранить разговор» под полем. Цвета —
   токены набора, своих нет. */
.h-kabinet-v-chate { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: var(--tz-tekst); }
.h-kabinet-v-chate p { margin: 6px 0; }
.h-kabinet-v-chate ul { margin: 4px 0 0 0; padding-left: 1.2em; color: var(--tz-seryy); }
.h-kabinet-v-chate a { color: var(--tz-tekst); text-decoration: underline; }
.h-sohranit { margin: 10px 0 0 0; font-size: 1rem; line-height: 1.5; color: var(--tz-tekst); }
.h-sohranit label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.h-sohranit input { width: 22px; height: 22px; accent-color: var(--tz-zoloto); }
.h-sohranit-sost { display: block; color: var(--tz-seryy); font-size: 0.9375rem; }
.h-blizhe { margin: 10px 0 -6px 0; font-size: 1.0625rem; line-height: 1.5; color: var(--tz-seryy); }
.h-temy {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.h-tema {
  width: 100%; min-height: 3.75rem; padding: 12px 16px; text-align: left;
  border: 1px solid var(--tz-ramka); border-radius: var(--tz-r-plitka);
  background: var(--tz-pole); box-shadow: var(--tz-ten-plitki);
  font-family: var(--tz-shrift); font-size: 1rem; line-height: 1.25;
  color: var(--tz-tekst); cursor: pointer; text-decoration: none;
  display: flex; align-items: center;
}
.h-tema[aria-disabled="true"] { cursor: default; border-style: dashed; }

/* ---------- подвал (п.5: на каждой странице) ---------- */
.h-podval {
  position: relative; z-index: 1; margin-top: auto;
  padding: 20px 24px 28px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.h-podval-glavnoe { font-size: 1rem; color: var(--tz-seryy); line-height: normal; }
.h-podval-rekvizity { font-size: 1rem; color: var(--tz-seryy); line-height: normal; }
/* «Кто стоит за Хрисой» в подвале (задача 2639): ссылка видна подчёркиванием,
   площадка нажатия по высоте не меньше 24 px (WCAG 2.5.8). */
.h-podval a {
  display: inline-block; padding: 4px 0;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- внутренние страницы ---------- */
.h-stranica {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 24px 8px 24px;
}
.h-stranica h1 {
  margin: 0;
  font-family: var(--tz-shrift-zag); font-size: 2.125rem; line-height: 1.15;
  font-weight: 600; letter-spacing: -0.01em;
}
.h-stranica h2 {
  margin: 8px 0 0 0;
  font-family: var(--tz-shrift-zag); font-size: 1.375rem; line-height: 1.25; font-weight: 500;
}
.h-stranica p { margin: 0; font-size: 1.125rem; line-height: 1.55; }
.h-tiho { color: var(--tz-seryy); }
.h-karta {
  padding: 16px 20px; background: var(--tz-pole);
  border: 1px solid var(--tz-ramka); border-radius: var(--tz-r-pole);
  box-shadow: var(--tz-ten-polya);
  display: flex; flex-direction: column; gap: 8px;
}
.h-karta h2 { margin: 0; }
.h-karta p, .h-karta li { font-size: 1.0625rem; line-height: 1.55; }
.h-shagi { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.h-shagi li { display: flex; gap: 14px; align-items: flex-start; }
.h-shag-nomer {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--tz-kolco-2);
  font-family: var(--tz-shrift-zag); font-weight: 600; font-size: 1.0625rem;
}
.h-shag-slova strong { display: block; font-size: 1.125rem; font-weight: 600; }
.h-shag-slova span { display: block; color: var(--tz-seryy); font-size: 1.0625rem; line-height: 1.5; }
.h-liniya { height: 1px; border: 0; margin: 4px 0; background: var(--tz-kolco-2); }

/* метка «[текст Г1]» — место под принятый текст; видна глазом и диктором */
.h-metka {
  margin: 0; padding: 12px 16px; border-radius: var(--tz-r-plitka);
  border: 1.5px dashed var(--tz-seryy); color: var(--tz-seryy);
  font-size: 1.0625rem; line-height: 1.5;
}
.h-metka b { font-weight: 600; color: var(--tz-tekst); }

/* кодекс — дословно, одной страницей с телефона */
.h-kodeks { display: flex; flex-direction: column; gap: 10px; }
.h-kodeks p { font-size: 1.0625rem; }
.h-kodeks .h-kodeks-glavnoe {
  font-family: var(--tz-shrift-zag); font-size: 1.5rem; font-weight: 600; line-height: 1.2;
}
.h-kodeks ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.h-kodeks li { font-size: 1.0625rem; line-height: 1.55; }
.h-eshche { border-top: 1px solid var(--tz-kolco-2); padding-top: 4px; }
.h-eshche summary {
  min-height: 48px; display: flex; align-items: center; cursor: pointer;
  font-weight: 600; font-size: 1.0625rem; list-style: none;
}
.h-eshche summary::-webkit-details-marker { display: none; }
.h-eshche summary::after { content: ""; margin-left: 10px; width: 8px; height: 8px;
  border-right: 2px solid var(--tz-zoloto); border-bottom: 2px solid var(--tz-zoloto);
  transform: rotate(45deg) translateY(-3px); }
.h-eshche[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.h-eshche > div { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.h-rekvizity { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.h-rekvizity dt { color: var(--tz-seryy); font-size: 1.0625rem; }
.h-rekvizity dd { margin: 0; font-size: 1.0625rem; }

/* ---------- меню (артборд TeploMenu) ---------- */
.h-menyu[hidden] { display: none; }
.h-menyu { position: fixed; inset: 0; z-index: 40; }
.h-menyu-ten { position: absolute; inset: 0; background: var(--tz-zatemnenie); }
.h-menyu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 390px);
  background: var(--tz-fon); color: var(--tz-tekst);
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: var(--tz-ten-polya);
  padding: 16px 16px 24px 24px;
}
.h-menyu-verh { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.h-zakryt {
  min-height: 48px; min-width: 48px; padding: 0 18px; border-radius: var(--tz-r-knopka);
  border: 1px solid var(--tz-ramka); background: var(--tz-pole); color: var(--tz-tekst);
  font-size: 1rem; font-weight: 500; cursor: pointer;
}
.h-menyu nav ul { list-style: none; margin: 8px 0 0 0; padding: 0; }
.h-menyu nav a {
  display: flex; align-items: center; min-height: 56px; padding: 6px 4px 6px 14px;
  font-size: 1.125rem; text-decoration: none; color: var(--tz-tekst);
  border-bottom: 1px solid var(--tz-ramka); border-left: 3px solid transparent;
}
.h-menyu nav a[aria-current="page"] { border-left-color: var(--tz-zoloto); font-weight: 600; }
.h-nastroyki { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.h-nastroyka-imya { font-size: 1rem; color: var(--tz-seryy); margin: 0 0 6px 0; }
.h-tema-vybor {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  border-radius: var(--tz-r-knopka); border: 1px solid var(--tz-ramka); background: var(--tz-pole);
}
.h-tema-vybor button {
  min-height: 48px; border: 0; border-radius: var(--tz-r-knopka); background: transparent;
  color: var(--tz-tekst); font-size: 1rem; cursor: pointer;
}
.h-tema-vybor button[aria-checked="true"] { background: var(--tz-zoloto); color: var(--tz-na-zolote); font-weight: 600; }
/* Шрифт (Б1-067): три кнопки столбцом — «Лёгкий для чтения» в треть
   ширины не влезает; каждое слово написано своим шрифтом. */
.h-shrift-vybor {
  display: grid; grid-template-columns: 1fr; gap: 4px; padding: 4px;
  border-radius: var(--tz-r-plitka); border: 1px solid var(--tz-ramka); background: var(--tz-pole);
}
.h-shrift-vybor button {
  min-height: 48px; border: 0; border-radius: calc(var(--tz-r-plitka) - 4px); background: transparent;
  color: var(--tz-tekst); font-size: 1.0625rem; text-align: left; padding: 0 14px; cursor: pointer;
}
.h-shrift-vybor [data-shrift-knopka="obychnyy"] { font-family: 'Golos Text', system-ui, sans-serif; }
.h-shrift-vybor [data-shrift-knopka="strogiy"] { font-family: 'PT Serif', Georgia, serif; }
.h-shrift-vybor [data-shrift-knopka="legkiy"] { font-family: 'OpenDyslexic', 'Golos Text', sans-serif; }
.h-shrift-vybor button[aria-checked="true"] { background: var(--tz-zoloto); color: var(--tz-na-zolote); font-weight: 600; }

/* тексты Г1 (задача 2467): короткие абзацы, начало строки — жирным */
.h-tekst { display: flex; flex-direction: column; gap: 12px; }
.h-tekst b, .h-karta b { font-weight: 600; }
.h-dialog p { padding-left: 0.2em; }
.h-dialog p:nth-child(even) { color: var(--tz-tekst); padding-left: 1.2em; border-left: 2px solid var(--tz-kolco-2); }
.h-dokumenty { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.h-dokumenty a {
  display: flex; align-items: center; min-height: 56px; padding: 12px 20px;
  background: var(--tz-pole); border: 1px solid var(--tz-ramka); border-radius: var(--tz-r-pole);
  font-size: 1.0625rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.h-karta a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }
.h-pereklyuchatel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 4px 4px 4px 14px;
  border-radius: var(--tz-r-plitka); border: 1px solid var(--tz-ramka); background: var(--tz-pole);
  color: var(--tz-tekst); font-size: 1.0625rem; text-align: left; cursor: pointer;
}
.h-dorozhka {
  position: relative; flex-shrink: 0; width: 52px; height: 32px; border-radius: 16px;
  background: var(--tz-ramka); border: 1px solid var(--tz-seryy);
}
.h-dorozhka::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--tz-seryy); transition: transform .15s;
}
.h-pereklyuchatel[aria-checked="true"] .h-dorozhka { background: var(--tz-zoloto); border-color: var(--tz-zoloto); }
.h-pereklyuchatel[aria-checked="true"] .h-dorozhka::after { transform: translateX(20px); background: var(--tz-na-zolote); }
html.h-menyu-otkryto { overflow: hidden; }

/* ---------- одно живое движение ---------- */
.tz-krylo { transform-box: view-box; transform-origin: 126px 69px; transition: transform .6s ease; }
.tz-krylo { transform: rotate(0deg); }
html.h-slushaet .tz-krylo { transform: rotate(-9deg); }
@keyframes h-dyhanie {
  0%, 100% { transform: scale(1); box-shadow: var(--tz-ten-sfery); }
  50% { transform: scale(1.06); box-shadow: 0 0 30px var(--tz-kolco-2); }
}
@keyframes h-kolco {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .7; }
}
html.h-slushaet .h-avatar { animation: h-dyhanie 2.4s ease-in-out infinite; }
html.h-slushaet .h-kolco-1 { animation: h-kolco 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html.h-slushaet .h-avatar, html.h-slushaet .h-kolco-1 { animation: none; }
  .tz-krylo, html.h-slushaet .tz-krylo { transition: none; transform: none; }
  .h-dorozhka::after { transition: none; }
}

/* ---------- стол ---------- */
@media (min-width: 761px) {
  .h-list { width: min(100%, 560px); }
  /* сияние — от угла экрана, а не колонны: иначе край колонны режет его
     прямой линией (кадр 1280 первого прогона) */
  .h-siyanie { position: fixed; }
}
