/* forma cozy/core/cozy-ds.css sha256:23b2eeda55b8007ba80499ee568cf288517496d73668445d9a1b2008bf1a3728 — не править здесь, правка идёт в GarroV/forma */
/*
  Дизайн-система Cozy — ядро.

  Извлечена из Cozy Talk (GarroV/cozy-talk, коммит d2d7554, src/styles.css):
  значения взяты из продукта, не придуманы. Характер: тёплая бумага вместо
  белого листа, шалфейно-зелёные поверхности, один терракотовый акцент,
  крупный засечный заголовок с курсивом и мелкий гротеск в тексте,
  скруглённые таблетки и «арки» вместо острых прямоугольников.

  Слои:
    0  бренд        — знак и слово cozytalk.; интерфейс на нём не строится
    1  токены        — цвета, шрифты, размеры, отступы, радиусы, тени, движение;
                       хексы только здесь
    2  компоненты    — только var(--…); без единого хекса
    3  слой продукта — cozy/cozy/domain.css: обложки встреч, оттенки аватаров

  Тёмной темы в продукте нет, поэтому её нет и здесь. Не придумываем:
  значения тёмной темы взять неоткуда.

  Шрифтов не подключается: гротеск системный, засечный — Georgia. Файлов шрифтов
  нет, сторонних запросов нет, лицензионных обязательств нет.
  Имя 'Cozy Sans' в стеке — задел продукта: такого шрифта нет, и браузер берёт
  следующий в списке. Появится свой шрифт — он встанет в стек без правок.
*/

/* ═══ СЛОЙ 0. БРЕНД ═══════════════════════════════════════════════════════ */

:root {
  /* Знак — кружок цвета чернил с чашкой; точка в слове — акцентная. */
  --brand-mark-bg: #303a31;
  --brand-mark-fg: #f8f5ee;
  --brand-period:  #ad482e;
}

/* ═══ СЛОЙ 1. ТОКЕНЫ ══════════════════════════════════════════════════════ */

:root {
  /* Поверхности. Бумага → карточка → шапка/модалка: каждый шаг чуть светлее. */
  --canvas:    #f8f5ee;
  --surface:   #fcfaf5;
  --surface-2: #faf8f1;
  --field:     #fffcf5;
  --field-2:   #f8f8ef;

  /* Шалфей — рабочий цвет «уюта»: фоны панелей, навигации, баннеров. */
  --sage-nav:      #eef0e6;
  --sage-soft:     #e9eddf;
  --sage-tint:     #edf0e5;
  --sage-hover:    #e4e8d9;
  --sage-active:   #dce3d0;
  --sage-selected: #e5ecd8;
  --sage:          #dfe5d7;

  /* Тёплые нейтрали: заметки, плашки, баннер демо. */
  --stone:   #f0eee5;
  --cream:   #f3eddf;
  --cream-2: #fff9ed;
  --sand:    #e9dbc1;
  --sand-2:  #eee3d7;

  /* Чернила: зелёно-графитовый основной и четыре ступени приглушения. */
  --ink:   #303a31;
  --ink-2: #5e675a;
  --ink-3: #7b816f;
  --ink-4: #939784;
  --ink-5: #a4aa96;
  --ink-label: #667258;
  --ink-field: #4d5a42;
  --ink-tan:   #8d7359;

  /* Шалфейные чернила и значки. */
  --sage-ink:  #71865b;
  --sage-mark: #8a9a70;
  --sage-dot:  #6e8258;
  --sage-edge: #d4dbc7;

  /* Линии: от самой заметной к едва видимой. */
  --line:       #dcded3;
  --line-card:  #e0e2d6;
  --line-soft:  #e8e8de;
  --line-field: #d7ddca;
  --line-hover: #c6cbbd;
  --line-sage:  #bdcba7;

  /* Акцент — терракота. Один на экран: главная кнопка, ссылка, курсив. */
  --accent:      #ad482e;
  --accent-dark: #8c3824;
  --accent-on:   #fff8ee;
  --accent-ink:  #953e28;

  /* Опасность и ошибка — та же терракота, смягчённая до глины. */
  --clay-soft:  #f3e4dc;
  --clay-soft-2:#ebd6ca;
  --clay-panel: #f5e9df;
  --clay-line:  #e4c6b8;
  --clay-ink:   #9c674d;
  --clay-mark:  #ac795e;

  /* Тёмный лес: закрывающий блок, всплывающее сообщение. */
  --forest:        #303a31;
  --forest-toast:  #34462f;
  --on-forest:     #f5f0e5;
  --on-forest-2:   #c2c8b8;
  --on-forest-mark:#c3d7ab;
  --scrim:         #27322570;

  /* Вторичные подписи и пометки. */
  --note-ink:   #918b72;
  --demo-ink:   #555e4d;
  --demo-badge: #e7deca;
  --selection:  #e8cfb7;
  --sun:        #e1bd79;
  --hill:       #aeb393;
  --hill-2:     #c4c7a6;
  --glass:      #ffffff38;
  --glass-2:    #ffffff70;
  --glass-3:    #ffffff80;

  /* Оттенки обложек и аватаров: у каждого фон и «чернила» (цвет значка). */
  --tint-fog:      #d9dcd7;
  --tint-fog-ink:  #697566;
  --tint-moss:     #d8dfc3;
  --tint-moss-ink: #687953;
  --tint-sea:      #d8e3df;
  --tint-sea-ink:  #58756d;
  --tint-clay:     #e9d7c7;
  --tint-clay-ink: #9d7053;
  --tint-latte:    #eadfc5;
  --tint-latte-ink:#9c7a47;
  --tint-lilac:    #dedae7;
  --tint-lilac-ink:#7b718f;
  --tint-linen:    #e4ddc9;
  /* Обложка по умолчанию; тему переопределяет слой продукта. */
  --cover-bg:  var(--tint-linen);
  --cover-ink: var(--ink-3);
  --tint-rose:     #e8d6df;
  --tint-peach:    #eed9ca;
  --tint-straw:    #e8ddb6;
  --tint-mist:     #d7e3e6;

  /* Шрифты: гротеск системный, засечный — Georgia (см. шапку файла). */
  --font-sans: 'Cozy Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Кегль текста. Продукт мелкий (8–13px): плотность держит гротеск, а
     крупность — только засечные заголовки. Ниже 11px — подписи и пометки. */
  --text-3xs: 8px;
  --text-2xs: 9px;
  --text-xs:  10px;
  --text-sm:  11px;
  --text-md:  12px;
  --text-lg:  13px;

  /* Кегль засечных заголовков. */
  --title-xs: 19px;
  --title-sm: 23px;
  --title-md: 25px;
  --title-lg: 27px;
  --title-xl: 29px;
  --title-2xl: 34px;
  --title-3xl: 39px;
  --title-4xl: 42px;
  --title-hero: clamp(48px, 5.2vw, 73px);

  /* Межстрочный и трекинг. Тело дышит (1.65–1.8), заголовки плотные. */
  --leading-body:  1.65;
  --leading-loose: 1.8;
  --leading-title: 1.2;
  --tracking-eyebrow: 0.13em;
  --tracking-caps:    0.08em;
  --tracking-title:   -0.5px;
  --tracking-display: -1px;
  --tracking-hero:    -3px;

  /* Отступы: ступени, реально встречающиеся в продукте. */
  --space-1: 5px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 25px;
  --space-7: 30px;
  --space-8: 43px;
  --space-9: 55px;
  --space-10: 85px;

  /* Радиусы. Острого угла нет: 3–7px у блоков, таблетка у кнопок. */
  --radius-xs:   3px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-card: 7px;
  --radius-lg:   12px;
  --radius-pill: 100px;
  --radius-round: 50%;
  /* «Арка» — подпись стиля: верх полукруглый, низ почти прямой. */
  --radius-arch:       50px 50px 5px 5px;
  --radius-arch-small: 22px 22px 3px 3px;

  /* Тени еле заметные: поднимают, а не отрывают. */
  --shadow-soft:  0 12px 34px #303a3109;
  --shadow-card:  0 9px 22px #303a3106;
  --shadow-modal: 0 30px 90px #303a3128;
  --shadow-toast: 0 9px 32px #29342624;
  --shadow-ring:  0 0 0 4px #dfe5d7;

  /* Движение. 0.18с на всё; подъём на 1–4px, а не масштаб. */
  --motion: 0.18s;
  --lift-1: translateY(-1px);
  --lift-2: translateY(-2px);
  --lift-4: translateY(-4px);

  /* Каркас. */
  --nav-w:      220px;
  --header-h:   77px;
  --content-w:  1400px;
  --landing-w:  1170px;
  --gutter:     43px;
  --focus-ring: 3px solid #ad482e;
}

/* ═══ СЛОЙ 2. КОМПОНЕНТЫ ══════════════════════════════════════════════════ */

/* — База ————————————————————————————————————————————————————————————————— */

:root {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
button, a {
  transition: background-color var(--motion), color var(--motion),
    border-color var(--motion), transform var(--motion);
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
p { line-height: var(--leading-body); }
svg { flex-shrink: 0; }
::selection { background: var(--selection); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* Засечный заголовок — голос бренда. Класс для случаев вне h1–h3. */
.serif { font-family: var(--font-serif); }
.serif em { color: var(--accent); }

/* — Подписи ———————————————————————————————————————————————————————————— */

.eyebrow, .small-caps {
  font-size: var(--text-xs);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow { margin-bottom: var(--space-4); }
.quiet-note {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: var(--text-md); line-height: var(--leading-body); color: var(--ink-2);
}
.label-dot {
  width: 6px; height: 6px; border-radius: var(--radius-round);
  background: var(--sage-dot); display: inline-block; flex-shrink: 0;
}

/* — Кнопки ————————————————————————————————————————————————————————————— */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 15px; min-height: 45px; padding: var(--space-3) 23px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  font-size: var(--text-md); font-weight: 600; line-height: 1.35; white-space: normal;
}
.button:hover:not(:disabled) { background: var(--sage-hover); border-color: var(--line-hover); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.button--primary:hover:not(:disabled) {
  background: var(--accent-dark); border-color: var(--accent-dark); transform: var(--lift-1);
}
.button--cream { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.button--cream:hover:not(:disabled) { background: var(--cream-2); border-color: var(--cream-2); }
.button--danger { background: var(--clay-soft); border-color: var(--clay-line); color: var(--accent-ink); }
.button--danger:hover:not(:disabled) { background: var(--clay-soft-2); border-color: var(--clay-line); }
.button--small { min-height: 39px; padding: 10px 19px; font-size: var(--text-sm); }
.button--full { width: 100%; }

/* Ссылка-кнопка: при наведении стрелка отъезжает на 4px — «приглашение». */
.text-button {
  display: inline-flex; align-items: center; gap: 9px; padding: var(--space-1) 0;
  border: 0; background: none; color: var(--accent);
  font-size: var(--text-md); font-weight: 600; text-align: left;
}
.text-button:hover { color: var(--accent-dark); gap: 13px; }
.text-button--muted { color: var(--ink-2); }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 35px; min-height: 35px; padding: 7px;
  border: 0; border-radius: var(--radius-round); background: var(--stone);
}

/* — Бренд ———————————————————————————————————————————————————————————————— */

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 25px; letter-spacing: -1.2px; line-height: 1; font-weight: 600;
}
.brand__second { font-weight: 400; }
.brand__period { color: var(--brand-period); }
.brand__mark {
  width: 34px; height: 34px; border-radius: var(--radius-round);
  display: grid; place-items: center;
  background: var(--brand-mark-bg); color: var(--brand-mark-fg);
}
.brand--compact { font-size: var(--title-sm); }

.language-switch {
  display: inline-flex; align-items: center; gap: var(--space-1);
  color: var(--ink-5); font-size: var(--text-xs);
}
.language-switch button {
  background: none; border: 0; padding: var(--space-2) 2px;
  color: var(--ink-2); font-size: var(--text-xs);
}
.language-switch button[aria-pressed='true'] { color: var(--ink); font-weight: 700; }

/* — Карточка и поверхность ———————————————————————————————————————————— */

.card {
  display: flex; flex-direction: column; position: relative;
  padding: 22px 22px 13px;
  border: 1px solid var(--line-card); border-radius: var(--radius-card);
  background: var(--surface);
  transition: box-shadow var(--motion), transform var(--motion);
}
.card:hover { box-shadow: var(--shadow-card); transform: var(--lift-2); }
.card--media { padding: 0; overflow: hidden; }
.card__body { padding: 22px var(--space-6) 18px; }
.card--static:hover { box-shadow: none; transform: none; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card__title {
  font-family: var(--font-serif); font-size: var(--title-sm); line-height: var(--leading-title);
  letter-spacing: var(--tracking-title); margin: 0; overflow-wrap: anywhere;
}
.card__meta { font-size: var(--text-2xs); color: var(--ink-4); margin: 7px 0 14px; }
.card__text {
  font-size: var(--text-xs); color: var(--ink-3); line-height: var(--leading-loose);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 36px; margin: 0 0 16px;
}
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft);
}
.card__hint { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-3xs); color: var(--ink-4); }

/* Панель — та же карточка без движения, под формы и блоки настроек. */
.surface {
  padding: 27px; border: 1px solid var(--line-card);
  border-radius: var(--radius-card); background: var(--surface);
}
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.grid-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }

/* — Метки: уровень, интерес, статус ————————————————————————————————————— */

.badge {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
  padding: 4px 7px; border: 1px solid var(--sage-edge); border-radius: var(--radius-sm);
  background: var(--sage-tint); color: var(--sage-ink);
  font-size: var(--text-2xs); font-weight: 500;
}
.tags { display: flex; gap: var(--space-1); flex-wrap: wrap; margin: 0 0 20px; }
.tag {
  padding: 4px 7px; border: 1px solid var(--line-soft); border-radius: var(--radius-xs);
  background: var(--stone); color: var(--ink-4);
  font-size: var(--text-3xs); line-height: 1.2;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 10px; border-radius: 30px;
  background: var(--sage-soft); color: var(--sage-ink); font-size: var(--text-2xs);
}
.status-pill--clay { background: var(--clay-soft); color: var(--accent-ink); }
.count {
  padding: 4px 7px; border-radius: var(--radius-round);
  background: var(--sage-soft); color: var(--ink-3);
  font: var(--text-xs) var(--font-sans); letter-spacing: 0;
}
.demo-badge {
  flex-shrink: 0; padding: 2px 5px; border-radius: var(--radius-xs);
  background: var(--demo-badge); font-size: var(--text-3xs); font-weight: 700;
  letter-spacing: var(--tracking-caps);
}

/* — Аватар ————————————————————————————————————————————————————————————— */

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-round);
  background: var(--sage); color: var(--ink-3);
  font-family: var(--font-serif); font-size: 20px; letter-spacing: -0.7px;
}
.avatar--small { width: 25px; height: 25px; font-size: var(--text-md); letter-spacing: 0; }
.avatar--large { width: 97px; height: 112px; border-radius: 53px 53px 8px 8px; font-size: 43px; }

/* — Поля ——————————————————————————————————————————————————————————————— */

.form { display: flex; flex-direction: column; gap: 23px; }
.field {
  display: flex; flex-direction: column; gap: 9px;
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-label);
}
.field > small { font-size: var(--text-xs); line-height: 1.7; font-weight: 400; color: var(--ink-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; min-width: 0; }
.field-row > .field { min-width: 0; }

input:not([type='checkbox']), select, textarea {
  width: 100%; max-width: 100%; min-height: 42px; padding: 10px var(--space-3);
  border: 1px solid var(--line-field); border-radius: var(--radius-sm);
  background: var(--field); color: var(--ink-field); font-size: var(--text-md);
}
input::placeholder, textarea::placeholder { color: var(--ink-5); opacity: 1; }
textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
input:disabled, select:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }

/* Чип-выбор («интересы»): выбранный — шалфейный, без галочки-ломки. */
.choice {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: var(--space-2) 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--stone); font-size: var(--text-xs); font-weight: 400; color: var(--ink);
}
.choice--checked { background: var(--sage-selected); border-color: var(--line-sage); }
.choice input { width: 12px; height: 12px; min-height: 0; margin: 0; padding: 0; accent-color: var(--sage-dot); }
.choices { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.toggle {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: var(--text-sm); font-weight: 400; color: var(--ink-2); line-height: 1.5;
}
.toggle input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--sage-dot); }

/* Строка фильтров: подпись над полем, поле ниже обычного. */
.filter-bar { display: flex; gap: 14px; align-items: flex-end; padding-bottom: 22px; }
.filter-bar > .field { flex: 1; min-width: 0; font-size: var(--text-2xs); font-weight: 500; color: var(--ink-3); gap: 7px; }
.filter-bar select, .filter-bar input {
  height: 39px; min-height: 0; padding: 0 10px; background: var(--surface);
  font-size: var(--text-xs); color: var(--ink-field); border-color: var(--line-field);
}
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--ink-5); }
.search input { padding-left: 33px; }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.slot {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 43px; padding: 13px 10px;
  border: 1px solid var(--line-field); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink-3); font-size: var(--text-xs);
}
.slot:hover:not(:disabled), .slot--selected { background: var(--sage-selected); border-color: var(--sage-mark); color: var(--ink-label); }

/* — Обложка (картинка встречи) ————————————————————————————————————————— */

/* Цвет и чернила обложки — --cover-bg / --cover-ink; тему задаёт слой продукта. */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: var(--cover-bg); color: var(--cover-ink);
}
.cover__sun {
  position: absolute; z-index: -1; right: 30px; top: 22px; width: 65px; height: 65px;
  border-radius: var(--radius-round); background: var(--sun); opacity: 0.9;
}
.cover__orbit {
  position: absolute; z-index: -1; left: -35px; bottom: -22px; width: 200px; height: 150px;
  border: 1px solid var(--glass-2); border-radius: var(--radius-round); transform: rotate(-28deg);
}
.cover__icon {
  display: flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  border-radius: var(--radius-round); background: var(--glass); transform: rotate(-9deg);
}
.cover__icon svg { width: 43px; height: 43px; stroke-width: 1.1; }
.cover__dot {
  position: absolute; left: 38px; bottom: 26px; width: 11px; height: 11px;
  border-radius: var(--radius-round); background: var(--glass-3);
}

/* — Баннер и сцена ———————————————————————————————————————————————————— */

.banner {
  position: relative; display: flex; overflow: hidden; min-height: 211px;
  padding: var(--space-7) 34px; border-radius: var(--radius-card); background: var(--sage-soft);
}
.banner__copy { position: relative; z-index: 2; max-width: 570px; }
.banner .eyebrow { font-size: var(--text-3xs); margin-bottom: var(--space-3); color: var(--sage-ink); }
.banner h2 {
  font-family: var(--font-serif); font-size: 32px; line-height: 1.16;
  letter-spacing: -0.8px; margin-bottom: 11px;
}
.banner p:not(.eyebrow) { font-size: var(--text-sm); color: var(--ink-2); max-width: 355px; margin-bottom: var(--space-5); }
.banner__actions { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.banner__art { position: absolute; right: 6%; top: 10px; width: 230px; height: 220px; }
.banner__orbit { position: absolute; inset: 20px 0; border: 1px solid var(--line-sage); border-radius: var(--radius-round); transform: rotate(-20deg); }
.arch-avatar {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 83px; height: 97px; border: 5px solid var(--canvas); border-radius: 43px 43px 4px 4px;
  font-family: var(--font-serif); font-size: 41px; color: var(--ink-3); box-shadow: var(--shadow-card);
}
.arch-avatar--one { left: 5px; top: 37px; background: var(--sand); transform: rotate(-11deg); }
.arch-avatar--two { right: 2px; bottom: 14px; background: var(--sage); transform: rotate(10deg); }

/* Сцена «окно с солнцем» — иллюстрация лендинга, собранная из форм. */
.scene { position: relative; isolation: isolate; height: 450px; }
.scene__window {
  position: absolute; top: 22px; left: 126px; width: 247px; height: 291px; overflow: hidden;
  border: 9px solid var(--sand-2); border-radius: 130px 130px 4px 4px;
  background: var(--sand); box-shadow: 0 0 0 1px var(--line);
}
.scene__sun {
  position: absolute; top: 38px; right: 34px; width: 68px; height: 68px;
  border-radius: var(--radius-round); background: var(--sun);
}
.scene__hill {
  position: absolute; left: -75px; bottom: -34px; width: 260px; height: 170px;
  border-radius: 55% 70% 0 0; background: var(--hill); transform: rotate(-15deg);
}
.scene__hill--two { left: 65px; bottom: -36px; background: var(--hill-2); transform: rotate(15deg); }
.scene__chip {
  position: absolute; z-index: 5; top: 4px; right: 34px; display: flex; align-items: center; gap: 7px;
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line-card); border-radius: 40px;
  background: var(--stone); font-size: var(--text-2xs); font-weight: 500; transform: rotate(4deg);
}
.handwritten {
  font-family: var(--font-serif); font-style: italic; font-size: var(--text-lg);
  max-width: 130px; line-height: 1.5; color: var(--ink-3); transform: rotate(-5deg);
}

/* — Каркас приложения ————————————————————————————————————————————————— */

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; min-width: 0;
  display: flex; flex-direction: column; padding: 35px 23px 22px;
  background: var(--sage-nav); border-right: 1px solid var(--line);
}
.sidebar__brand { margin-left: 7px; }
.sidebar__tagline {
  font-family: var(--font-serif); font-size: var(--text-md); font-style: italic;
  color: var(--ink-4); margin: 19px 7px 34px; line-height: 1.7; max-width: 135px;
}
.nav { display: flex; flex-direction: column; gap: 7px; }
.nav__item {
  position: relative; display: flex; align-items: center; gap: 11px;
  min-height: 45px; padding: 13px; border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--ink-3); font-size: var(--text-sm); text-align: left;
}
.nav__item:hover { background: var(--sage-hover); color: var(--ink); }
.nav__item--active { background: var(--sage-active); color: var(--ink); font-weight: 600; }
.nav__item--active svg { color: var(--sage-ink); }
.nav__dot {
  position: absolute; right: 13px; width: 5px; height: 5px;
  border-radius: var(--radius-round); background: var(--sage-dot);
}
.nav__label-short { display: none; }
.sidebar__bottom { margin-top: auto; padding-top: 40px; }
.sidebar__note { margin: 0 7px 35px; padding-top: 22px; border-top: 1px solid var(--line); }
.sidebar__note p { font-family: var(--font-serif); font-size: var(--title-xs); line-height: 1.4; margin-bottom: var(--space-2); }
.sidebar__note small { font-size: var(--text-xs); color: var(--ink-2); }
.sidebar__link {
  display: flex; align-items: center; gap: var(--space-2); width: 100%;
  padding: 10px 7px; border: 0; background: none; color: var(--ink-3);
  font-size: var(--text-xs); text-align: left;
}
.sidebar__link:hover, .sidebar__link--active { color: var(--accent); }

.app-body { min-width: 0; display: flex; flex-direction: column; }
.app-header {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); padding: 0 var(--gutter);
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
}
.app-header__label {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-serif); font-size: var(--text-md); font-style: italic; color: var(--ink-3);
}
.app-header__right { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.profile-pill {
  display: flex; align-items: center; gap: 9px; padding: 0;
  border: 0; background: none; font-size: var(--text-xs);
}
.profile-pill__avatar {
  display: grid; place-items: center; width: 31px; height: 31px; border-radius: var(--radius-round);
  background: var(--sand); color: var(--ink-tan); font-family: var(--font-serif); font-size: 15px;
}
.mobile-brand { display: none; }
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px var(--space-5); border-bottom: 1px solid var(--line-soft);
  background: var(--cream); color: var(--demo-ink); font-size: var(--text-md); line-height: 1.5;
}
.demo-banner .icon-button { min-width: 32px; min-height: 32px; padding: 0; background: none; color: var(--demo-ink); }
.app-content { flex: 1; width: 100%; max-width: var(--content-w); margin: 0 auto; padding: var(--gutter) var(--gutter) var(--space-9); }

.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); margin-bottom: var(--space-7); }
.page-heading .eyebrow { font-size: var(--text-2xs); letter-spacing: 0.1em; margin-bottom: 13px; }
.page-heading h1 {
  font-family: var(--font-serif); font-size: var(--title-3xl); line-height: 1.18;
  letter-spacing: -1.1px; margin-bottom: 13px; max-width: 770px;
}
.page-intro { font-size: var(--text-md); color: var(--ink-2); max-width: 650px; margin: 0; line-height: 1.75; }

.list-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin: 32px 0 18px; }
.list-title {
  display: flex; gap: 11px; align-items: center; margin: 0;
  font-family: var(--font-serif); font-size: var(--title-md); letter-spacing: -0.4px;
}
.list-heading p { font-size: var(--text-2xs); color: var(--ink-4); margin: 0; }

.app-footer {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  margin: 0 var(--gutter); padding: 19px 0 var(--space-5);
  border-top: 1px solid var(--line-soft); font-size: var(--text-sm); color: var(--ink-4);
}
.app-footer button { padding: var(--space-1) 0; border: 0; background: transparent; font-size: var(--text-xs); color: var(--ink-2); }
.app-footer button:hover { color: var(--accent); }

/* — Строка записи (список) ———————————————————————————————————————————— */

.rows { margin-top: var(--space-7); }
.row { display: flex; align-items: center; gap: var(--space-5); padding: 24px 0; border-top: 1px solid var(--line); }
.row__icon {
  display: grid; place-items: center; flex-shrink: 0; width: 55px; height: 66px;
  border-radius: 28px 28px 4px 4px; background: var(--sage-soft); color: var(--sage-mark);
}
.row__main { min-width: 0; flex: 1; }
.row__main .small-caps { font-size: var(--text-3xs); margin-bottom: 6px; }
.row__title { font-family: var(--font-serif); font-size: var(--title-sm); line-height: 1.3; margin-bottom: 6px; }
.row__text { font-size: var(--text-xs); color: var(--ink-3); margin-bottom: 6px; }
.row--cancelled { opacity: 0.65; }
.row--cancelled .row__icon { background: var(--stone); color: var(--ink-5); }

/* — Лендинг ———————————————————————————————————————————————————————————— */

.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  max-width: 1280px; margin: auto; padding: 29px var(--space-9);
}
.site-header__nav {
  display: flex; gap: 29px; margin-left: auto; margin-right: 40px;
  font-size: var(--text-sm); color: var(--ink-2);
}
.site-header__nav a:hover { color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-6); }

.hero {
  display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 40px;
  max-width: 1280px; min-height: 660px; margin: auto; padding: 72px var(--space-9) 90px;
}
.hero__copy { position: relative; z-index: 2; }
.hero__copy .eyebrow { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-2xs); margin-bottom: 28px; }
.hero__title {
  font-family: var(--font-serif); font-size: var(--title-hero); line-height: 1.08;
  letter-spacing: var(--tracking-hero); margin-bottom: 26px;
}
.hero__title > span { font-style: italic; color: var(--accent); }
.hero__body { font-size: var(--text-lg); max-width: 365px; color: var(--ink-3); margin-bottom: var(--space-7); line-height: var(--leading-loose); }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__actions .button { padding: 15px var(--space-6); min-height: 49px; }

.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-9);
  max-width: var(--landing-w); margin: 0 auto; padding: 37px 15px 36px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.values > div { position: relative; padding-left: 50px; }
.values__icon { position: absolute; left: 0; top: 5px; color: var(--sage-mark); }
.values h2 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 11px; }
.values p { font-size: var(--text-sm); line-height: var(--leading-loose); color: var(--ink-2); margin-bottom: 0; max-width: 250px; }

.section-space { max-width: var(--landing-w); margin: 0 auto; padding: var(--space-10) 15px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-9); margin-bottom: 33px; }
.section-heading h2 {
  font-family: var(--font-serif); font-size: var(--title-3xl);
  letter-spacing: var(--tracking-display); max-width: 480px; margin-bottom: 0;
}
.section-heading > p { font-size: var(--text-sm); color: var(--ink-2); max-width: 270px; margin-bottom: 2px; }

.feature {
  display: grid; grid-template-columns: 0.9fr 1.15fr; min-height: 217px; overflow: hidden;
  padding: 0; border: 1px solid var(--line-card); border-radius: var(--radius-card);
  background: var(--surface-2); text-align: left;
}
.feature:hover { transform: var(--lift-4); box-shadow: var(--shadow-soft); }
.feature .cover { height: 100%; min-height: 217px; }
.feature__text { position: relative; padding: 26px 24px; }
.feature__text .small-caps { font-size: var(--text-3xs); letter-spacing: var(--tracking-caps); }
.feature__text h3 { font-family: var(--font-serif); font-size: var(--title-md); line-height: var(--leading-title); margin: 13px 0 12px; }
.feature__text p { font-size: var(--text-xs); color: var(--ink-2); max-width: 185px; line-height: var(--leading-loose); margin: 0 0 18px; }

.feature__arrow { position: absolute; right: 18px; bottom: 14px; color: var(--sage-mark); }

/* Раздел «заголовок слева, список справа». */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 105px;
  padding-top: 80px; padding-bottom: 75px; border-top: 1px solid var(--line);
}
.split__title {
  font-family: var(--font-serif); font-size: var(--title-3xl); line-height: 1.25;
  letter-spacing: var(--tracking-display); max-width: 450px;
}
.split__title em { display: block; margin-top: 14px; font-size: 30px; color: var(--accent); }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 22px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }
.steps li > span { font-size: var(--text-sm); color: var(--accent); padding-top: var(--space-1); }
.steps h3 { font-family: var(--font-serif); font-size: var(--title-sm); margin-bottom: 9px; }
.steps p { font-size: var(--text-sm); color: var(--ink-2); margin-bottom: 0; max-width: 300px; }

.closing {
  position: relative; padding: 75px var(--space-6); text-align: center;
  background: var(--forest); color: var(--on-forest);
}
.closing h2 {
  max-width: 550px; margin: 0 auto 18px; font-family: var(--font-serif);
  font-size: var(--title-4xl); line-height: var(--leading-title); letter-spacing: var(--tracking-display);
}
.closing p { font-size: var(--text-sm); color: var(--on-forest-2); margin-bottom: 27px; }
.closing .button--cream { color: var(--ink); }

.site-footer {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--space-7);
  max-width: var(--landing-w); margin: auto; padding: 43px 15px 22px;
}
.site-footer p { font-size: var(--text-xs); color: var(--ink-2); margin-top: var(--space-3); }
.site-footer__note { flex-basis: 100%; margin: 6px 0 0; padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--text-2xs); }

/* — Сообщения: загрузка, ошибка, заметка, пусто —————————————————————————— */

.state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 180px; padding: var(--space-7); text-align: center; gap: var(--space-3); color: var(--sage-mark);
}
.state p { font-family: var(--font-serif); font-size: 20px; margin-bottom: 0; }
.spin { animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  display: flex; align-items: flex-start; gap: 13px; margin: 18px 0; padding: 17px 19px;
  border: 1px solid var(--clay-line); border-radius: var(--radius-md);
  background: var(--clay-panel); color: var(--clay-ink); font-size: var(--text-sm);
}
.alert > svg { margin-top: 1px; color: var(--clay-mark); }
.alert strong { font-size: var(--text-md); font-weight: 500; }
.alert p { margin: 7px 0 0; font-size: var(--text-sm); overflow-wrap: anywhere; }
.alert .text-button { margin-top: 10px; font-size: var(--text-xs); }

.notice {
  display: flex; align-items: flex-start; gap: 9px; margin: 23px 0; padding: 13px 16px;
  border-radius: 5px; background: var(--stone); color: var(--note-ink);
  font-size: var(--text-xs); line-height: 1.7;
}
.notice svg { margin-top: 1px; color: var(--ink-5); }

.empty { text-align: center; padding: 55px var(--space-5) 60px; }
.empty__art {
  display: inline-flex; justify-content: center; align-items: center;
  width: 82px; height: 95px; margin-bottom: 24px;
  border-radius: var(--radius-arch); background: var(--sage-soft); color: var(--sage-mark);
}
.empty h3 { font-family: var(--font-serif); font-size: var(--title-xl); line-height: 1.25; letter-spacing: var(--tracking-title); }
.empty p { max-width: 380px; margin: 0 auto 23px; font-size: var(--text-sm); color: var(--ink-3); }

/* — Модалка и сообщение ————————————————————————————————————————————————— */

.modal {
  width: calc(100% - 36px); max-width: 490px; max-height: calc(100dvh - 50px); overflow: auto;
  padding: 27px; border: 1px solid var(--line-card); border-radius: var(--radius-lg);
  background: var(--surface-2); box-shadow: var(--shadow-modal); color: var(--ink);
}
.modal::backdrop { background: var(--scrim); backdrop-filter: blur(5px); }
.modal--wide { max-width: 610px; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-5); margin-bottom: 24px; }
.modal__title { font-family: var(--font-serif); font-size: var(--title-xl); letter-spacing: -0.7px; line-height: var(--leading-title); margin: 0; }
.modal__text { font-size: var(--text-md); line-height: var(--leading-loose); color: var(--ink-2); }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100% - 34px));
  padding: var(--space-4) 22px; border-radius: var(--radius-md);
  background: var(--forest-toast); color: var(--on-forest); box-shadow: var(--shadow-toast);
  font-size: var(--text-sm); line-height: 1.6;
}
.toast svg { color: var(--on-forest-mark); }
.toast--inline { position: static; transform: none; width: max-content; }

/* — Чат ———————————————————————————————————————————————————————————————— */

.chat { display: flex; flex-direction: column; border: 1px solid var(--line-card); border-radius: var(--radius-card); background: var(--surface); }
.chat__messages { display: flex; flex-direction: column; gap: 19px; padding: var(--space-5); min-height: 250px; overflow: auto; flex: 1; }
.bubble { max-width: 88%; align-self: flex-start; }
.bubble > span { display: block; font-size: var(--text-3xs); color: var(--ink-5); margin-bottom: 6px; }
.bubble > p {
  margin: 0; padding: var(--space-3) 15px; border-radius: 10px 10px 10px 0;
  background: var(--sage-tint); color: var(--ink-3);
  font-size: var(--text-sm); line-height: var(--leading-loose); overflow-wrap: anywhere;
}
.bubble--own { align-self: flex-end; }
.bubble--own > span { text-align: right; }
.bubble--own > p { background: var(--sand-2); color: var(--ink-tan); border-radius: 10px 10px 0 10px; }
.chat__empty { margin: auto; max-width: 180px; text-align: center; font-family: var(--font-serif); font-size: 21px; font-style: italic; color: var(--ink-5); }
.chat__form { display: flex; flex-direction: column; gap: var(--space-3); padding: 17px; border-top: 1px solid var(--line-soft); }
.chat__form textarea { min-height: 68px; padding: var(--space-3); background: var(--field-2); border-color: var(--line-card); font-size: var(--text-sm); }
.chat__form .button { align-self: flex-end; min-height: 37px; padding: 9px 17px; font-size: var(--text-2xs); }

/* — Узкий экран: боковая панель становится нижней навигацией ———————————— */

@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 0; background: none; border: 0; }
  .sidebar__brand, .sidebar__tagline, .sidebar__bottom { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    padding: var(--space-2) 7px max(8px, env(safe-area-inset-bottom));
    background: var(--sage-nav); border-top: 1px solid var(--line); backdrop-filter: blur(14px);
  }
  .nav__item {
    flex-direction: column; justify-content: flex-start; gap: var(--space-1);
    min-width: 0; min-height: 46px; padding: var(--space-1) 3px;
    border-radius: var(--radius-sm); font-size: var(--text-3xs); line-height: 1.3; text-align: center;
  }
  .nav__item svg { width: 19px; height: 19px; }
  .nav__item--active { background: var(--sage-selected); }
  .nav__dot { display: none; }
  .nav__label-full { display: none; }
  .nav__label-short { display: inline; font-size: var(--text-sm); }
  .app-header { height: 69px; padding: 0 21px; gap: 15px; }
  .app-header__label { display: none; }
  .mobile-brand { display: block; }
  .mobile-brand .brand { font-size: 24px; }
  .app-content { padding: 29px 21px 36px; }
  .app-footer { margin: 0 21px; flex-direction: column; align-items: flex-start; }
  .demo-banner { padding: var(--space-2) 14px; justify-content: flex-start; text-align: left; }
  .page-heading { margin-bottom: var(--space-6); gap: var(--space-4); }
  .page-heading h1 { font-size: var(--title-2xl); letter-spacing: -0.8px; max-width: 450px; }
  .page-heading:has(> .button) { flex-direction: column; gap: var(--space-5); }
  .filter-bar { flex-wrap: wrap; gap: var(--space-3); padding-bottom: var(--space-5); }
  .filter-bar > .field { flex-basis: calc(50% - 7px); }
  .filter-bar select, .filter-bar input { height: 43px; font-size: var(--text-sm); }
  .grid-cards, .grid-cards--two { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .card { padding: 22px; }
  .card__title { font-size: var(--title-lg); }
  .card__text { font-size: var(--text-lg); line-height: var(--leading-body); min-height: 43px; }
  .card__meta { font-size: var(--text-md); }
  .tag, .badge { font-size: var(--text-md); }
  .banner { padding: 26px 22px 200px; flex-direction: column; }
  .banner h2 { font-size: 29px; }
  .banner__art { right: 50%; margin-right: -115px; top: auto; bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; align-items: flex-start; gap: var(--space-4); }
  .row__main { flex-basis: calc(100% - 71px); }
  .row > .status-pill, .row > .text-button { margin-left: 71px; }
  .toast { bottom: 89px; width: max-content; max-width: calc(100% - 30px); }

  .site-header { padding: 20px 21px; }
  .site-header__nav { display: none; }
  .site-header { flex-wrap: wrap; }
  .site-header__actions { flex-wrap: wrap; width: 100%; justify-content: space-between; gap: var(--space-3); }
  .site-header__actions .button { flex: 1; font-size: var(--text-2xs); }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); min-height: 0; padding: 38px var(--space-6) 53px; }
  .hero__title { font-size: 57px; letter-spacing: -2.5px; }
  .hero__body { font-size: var(--text-md); }
  .scene { height: 380px; transform: scale(0.87); transform-origin: top center; margin-left: -25px; }
  .values { grid-template-columns: 1fr; gap: var(--space-7); }
  .section-space { padding: 55px var(--space-5); }
  .section-heading { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .section-heading h2 { font-size: var(--title-2xl); }
  .split { grid-template-columns: 1fr; gap: var(--space-7); padding-top: var(--space-9); padding-bottom: var(--space-9); }
  .feature { grid-template-columns: 0.8fr 1.2fr; min-height: 195px; }
  .feature .cover { min-height: 195px; }
  .closing h2 { font-size: var(--title-2xl); }
  .site-footer { padding: var(--space-8) var(--space-5) 22px; }
}

@media (max-width: 430px) {
  .app-content { padding: 26px 17px 35px; }
  .app-header { padding: 0 17px; }
  .app-footer { margin: 0 17px; }
  .page-heading h1 { font-size: 31px; letter-spacing: -0.7px; }
  .card { padding: 17px 14px 13px; }
  .hero { padding: 34px 21px 48px; }
  .hero__title { font-size: 50px; letter-spacing: -2px; }
  .hero__actions { gap: 15px; }
  .hero__actions .button { font-size: var(--text-xs); padding: 13px 19px; }
  .hero__actions .handwritten { flex-basis: 100%; max-width: none; font-size: var(--text-sm); }
  .feature__text { padding: 24px 18px 30px; }
  .feature__text .small-caps { font-size: 7px; }
}

@media (min-width: 1500px) {
  .app-shell { grid-template-columns: 245px minmax(0, 1fr); }
  .sidebar { padding: 40px 29px; }
  .app-content { padding: 47px var(--space-9) 65px; }
  .app-header { padding: 0 var(--space-9); }
  .page-heading h1 { font-size: 44px; }
}

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