/* CalCash · общие модули блоков (каталог docs/design/BLOCKS.md). Подключены на всех страницах в _head.
   Блок = partial templates/_includes/_blk_*.html + его стили здесь. На другой странице — вставлять модуль один в один. */

/* заголовок секции блока (надзаголовок + h2 + подводка) — общий для модулей */
.hs-head { margin-bottom: var(--cc-space-5); }
@media (min-width: 1080px) { .hs-head { margin-bottom: var(--cc-space-7); } }

/* ---------- первый экран (образец владельца scripts/design/hero-ref.png) ----------
   Цвета — наши (2b), от образца только подача. Сцена — одна картинка по образцу (дуги, телефон на подставке под углом, static/landing/hero-scene.webp,
   1376×768). Чат лежит на экране телефона: блок 300×650 разворачивается на четырёхугольник экрана
   через matrix3d (углы замерены по картинке). Коробка сцены масштабируется под карточку в home.js
   (как background-size: cover с фокусом на телефоне). Шапка и текст — поверх сцены. */
.hero-card {
  position: relative; margin: 8px; overflow: hidden; border-radius: 24px;
  display: flex; flex-direction: column;
  background: #EEEEEA; color: var(--cc-color-text);
}
.hero-scene {
  position: relative; order: 3; height: 440px; overflow: hidden; margin-top: -24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 72px); mask-image: linear-gradient(to bottom, transparent, #000 72px);
}
.hero-scene-box {
  position: absolute; left: 0; top: 0; width: 1376px; height: 768px;
  transform-origin: 0 0; transform: translate(var(--sx, -560px), var(--sy, -170px)) scale(var(--k, .62));
}
.hero-scene-img { display: block; width: 100%; height: 100%; }
.scene-screen {
  position: absolute; left: 0; top: 0; width: 300px; height: 650px; overflow: hidden;
  display: flex; flex-direction: column; border-radius: 30px;
  background: var(--cc-color-bg); color: var(--cc-color-text); font: 400 13px/18px var(--cc-font-ui);
  transform-origin: 0 0;
  transform: matrix3d(0.40325859, -0.028420859, 0, -9.9572208e-05, -0.25249706, 0.52666261, 0, -0.00013417, 0, 0, 1, 0, 919, 188, 0, 1);
}
.scene-screen::after {  /* лёгкий свет слева сверху, как на корпусе */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 45%, rgba(60, 50, 35, .06));
}
.scene-notch { width: 96px; height: 26px; margin: 8px auto 0; flex: none; border-radius: 0 0 16px 16px; background: #111; }
.scene-screen .phone-head { border-bottom-color: rgba(27, 29, 27, .08); }
.scene-screen .phone-body { flex: 1; height: auto; }
.scene-screen .phone-foot { margin-bottom: 14px; }

.hero-card .hd { position: relative; top: 0; z-index: 2; order: 1; }

.hero { position: relative; z-index: 1; order: 2; padding: 24px 20px 0; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.hero-h1 { margin: 0; font: 500 44px/1.04 var(--cc-font-ui); letter-spacing: -0.035em; text-wrap: balance; }
.hero-sub { margin: 0; max-width: 34ch; font: 400 16px/1.5 var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
.hero-btn {
  margin-top: 8px; height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--cc-radius-pill); background: var(--cc-color-accent); color: var(--cc-color-text-on-accent);
  font: 500 16px/1 var(--cc-font-ui); text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}
.hero-btn .ic { width: 18px; height: 18px; transition: transform 200ms ease; }
.hero-btn:hover { background: var(--cc-color-accent-hover); }
.hero-btn:hover .ic { transform: translateX(3px); }
.hero-btn:active { transform: scale(.98); }
@media (min-width: 768px) {
  .hero-card { margin: 16px; border-radius: 32px; }
  .hero { padding: 40px 40px 0; }
  .hero-h1 { font-size: 64px; }
  .hero-sub { font-size: 18px; }
  .hero-scene { height: 560px; }
}
/* десктоп: карточка в пропорциях сцены, сцена — фон всей карточки, текст слева по центру */
@media (min-width: 1080px) {
  .hero-card { margin: 20px 24px 0; aspect-ratio: 1376 / 768; max-height: calc(100svh - 40px); min-height: 640px; }
  .hero-scene { position: absolute; inset: 0; height: auto; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-card .hd-bar { width: auto; max-width: none; margin-inline: 24px; }
  .hero { flex: 1; display: flex; align-items: center; padding: 0 4.2% 64px; }
  .hero-text { gap: 24px; max-width: 46%; }
  .hero-h1 { font-size: clamp(56px, 5.2vw, 84px); }
  .hero-sub { font-size: 19px; }
}

/* ---------- телефон с перепиской (как на прошлой главной) ----------
   Корпус и экран — поверхности из токенов, в тёмной теме корпус тёмный. Лёгкий 3D-наклон,
   на десктопе он следует за мышью (home.js пишет --ry/--rx). Без JS и при reduced-motion
   видна вся переписка сразу, без наклона. */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; perspective-origin: 50% 40%; }
.phone {
  width: min(100%, 330px); padding: 10px 10px 8px; display: flex; flex-direction: column;
  background: var(--cc-color-surface-sunken); border: 1px solid var(--cc-color-border-strong); border-radius: 46px;
  box-shadow: var(--cc-shadow-pop), 0 28px 60px -24px var(--cc-color-overlay);
  transform: rotateY(var(--ry, -5deg)) rotateX(var(--rx, 2deg));
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.phone-notch { width: 92px; height: 20px; margin: 2px auto 8px; flex: none; border-radius: var(--cc-radius-pill); background: var(--cc-color-surface-inverse); }
[data-theme="dark"] .phone-notch { background: var(--cc-color-bg); }
.phone-screen {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cc-color-bg); color: var(--cc-color-text);
  border: 1px solid var(--cc-color-border); border-radius: 36px;
  font: 400 13px/18px var(--cc-font-ui);
}
.phone-head {
  flex: none; padding: 12px 16px 10px; display: flex; align-items: center; gap: 10px;
  background: var(--cc-color-surface); border-bottom: 1px solid var(--cc-color-border);
}
.phone-ava {
  width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--cc-color-accent);
}
.phone-ava svg { width: 34px; height: 34px; }
.phone-who { flex: 1; display: flex; flex-direction: column; line-height: 17px; }
.phone-name { font-weight: 600; }
.phone-role { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--cc-color-text-secondary); }
.phone-role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cc-color-success); }
.phone-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.phone-body .msg-user { max-width: 86%; gap: 2px; }
.phone-body .msg-bot { max-width: 94%; gap: 4px; }
.phone-body .msg-time { font-size: 10px; line-height: 12px; }
.phone-body .bubble-user, .phone-body .bubble-bot { padding: 6px 10px; }
.phone-body .msg-sys { font-size: 11px; }
.phone-body .msg-btn { min-height: 28px; padding: 4px 8px; font-size: 12px; line-height: 16px; }
.phone-body .msg-play { width: 24px; height: 24px; }
.phone-body .msg-wave { width: 92px; height: 18px; }
.phone-body .msg-dur { font-size: 11px; }
.phone-foot {
  flex: none; padding: 8px 10px 12px; display: flex; align-items: center; gap: 8px;
  background: var(--cc-color-surface); border-top: 1px solid var(--cc-color-border);
}
.phone-input {
  flex: 1; min-width: 0; height: 32px; padding: 0 12px; display: flex; align-items: center;
  border: 1px solid var(--cc-color-border-strong); border-radius: var(--cc-radius-pill);
  font-size: 12px; color: var(--cc-color-text-muted); white-space: nowrap; overflow: hidden;
}
.phone-input.is-typing { color: var(--cc-color-text); }
.phone-caret { width: 1px; height: 14px; margin-left: 1px; flex: none; background: var(--cc-color-accent); animation: phone-blink 1s step-end infinite; }
.phone-send {
  width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cc-color-accent); color: var(--cc-color-text-on-accent);
}
.phone-send .ic { width: 16px; height: 16px; }
.phone-home { width: 108px; height: 5px; margin: 8px auto 0; flex: none; border-radius: var(--cc-radius-pill); background: var(--cc-color-text); opacity: .45; }

/* живая переписка: home.js добавляет сообщения по очереди */
.phone-body > .is-in { animation: phone-msg-in 300ms ease-out both; }
.phone-typing { align-self: flex-start; padding: 9px 12px; display: inline-flex; gap: 4px; border-radius: 14px 14px 14px 4px; background: var(--cc-color-surface); border: 1px solid var(--cc-color-border); }
.phone-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--cc-color-text-tertiary); animation: phone-dot 1200ms ease-in-out infinite; }
.phone-typing span:nth-child(2) { animation-delay: 150ms; }
.phone-typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes phone-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes phone-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes phone-blink { 50% { opacity: 0; } }

/* живой режим: экран фиксированной высоты, переписка прокручивается вниз; без JS — полная высота */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .phone-body { height: 420px; }
}
.phone-wrap.is-live .phone-body { height: 420px; }
@media (min-width: 1080px) {
  .phone { width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone { transform: none; transition: none; }
}
.msg-sys { align-self: center; padding: 2px 10px; border-radius: var(--cc-radius-pill); background: var(--cc-color-surface-sunken); font-size: 12px; color: var(--cc-color-text-secondary); }
.msg { display: flex; flex-direction: column; min-width: 0; }
.msg-user { align-self: flex-end; max-width: 82%; align-items: flex-end; gap: 4px; }
.msg-bot { align-self: flex-start; max-width: 90%; gap: 6px; }
.msg-time { font-size: 11px; line-height: 14px; color: var(--cc-color-text-secondary); }
.bubble-user { padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--cc-color-accent-soft); overflow-wrap: anywhere; }
.bubble-bot {
  padding: 8px 12px; border-radius: 14px 14px 14px 4px;
  background: var(--cc-color-surface); border: 1px solid var(--cc-color-border);
  white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty;
}
.msg-photo {
  width: 180px; height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 14px 14px 4px 14px; background: var(--cc-color-surface-sunken); border: 1px solid var(--cc-color-border);
  font-size: 12px; color: var(--cc-color-text-secondary);
}
.msg-photo .ic { width: 24px; height: 24px; }
.msg-voice { display: flex; align-items: center; gap: 8px; }
.msg-play { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cc-color-accent); color: var(--cc-color-text-on-accent); }
.msg-play svg { width: 12px; height: 12px; fill: currentColor; }
.msg-wave { width: 110px; height: 20px; fill: var(--cc-color-accent); }
.msg-dur { font-size: 12px; color: var(--cc-color-text-secondary); }
.msg-btns { display: flex; flex-direction: column; gap: 4px; }
.msg-btn-row { display: flex; flex-wrap: wrap; gap: 4px; }
.msg-btn-row > .msg-btn:nth-child(3) { flex-basis: 100%; color: var(--cc-color-accent); }
.msg-btn {
  flex: 1; min-height: 34px; padding: 6px 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--cc-color-border-strong); border-radius: var(--cc-radius-sm); background: var(--cc-color-surface);
  font: 500 13px/18px var(--cc-font-ui); text-align: center; color: var(--cc-color-text);
}

/* ---------- что умеет: бенто из пяти карточек (образец владельца scripts/design/features-ref.png) ----------
   Светлые карточки, сверху заголовок и 2 строки, ниже кусочек интерфейса, который уходит за край карточки,
   чёрные объёмные плитки-значки (static/landing/tiles/*.webp, сгенерированы по образцу). Раскладка
   кусочков — абсолютная, в пикселях от левого верхнего угла карточки: карточки фиксированной высоты. */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bc {
  position: relative; overflow: hidden; min-height: 390px;
  border-radius: 22px; background: var(--cc-color-surface-sunken);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 2px rgba(30, 32, 30, .04);
}
.bc-text { position: relative; z-index: 3; padding: 26px 26px 0; }
.bc-text.is-center { text-align: center; }
.bc-title { margin: 0; font: 500 20px/26px var(--cc-font-ui); letter-spacing: -.015em; color: var(--cc-color-text); text-wrap: balance; }
.bc-desc { margin: 8px 0 0; max-width: 36ch; font: 400 14px/20px var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
.is-center .bc-desc { margin-inline: auto; }
.bc-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; font: 400 13px/18px var(--cc-font-ui); color: var(--cc-color-text); }
.bc-art > * { position: absolute; }

/* общие кусочки интерфейса */
.ui-win {
  padding: 34px 16px 16px; border-radius: 14px; background: var(--cc-color-surface);
  box-shadow: 0 22px 44px -22px rgba(30, 32, 30, .3), 0 0 0 1px rgba(30, 32, 30, .05);
}
.ui-dots { position: absolute; top: 13px; left: 14px; display: flex; gap: 5px; }
.ui-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cc-color-border-strong); }
.ui-pop {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--cc-color-surface);
  box-shadow: 0 16px 32px -12px rgba(30, 32, 30, .32), 0 0 0 1px rgba(30, 32, 30, .06);
}
.ui-pop b, .app-row b { display: block; font-weight: 600; font-size: 13px; line-height: 18px; }
.ui-pop small, .app-row small { display: block; font-size: 11.5px; line-height: 16px; color: var(--cc-color-text-secondary); }
.ui-ico {
  width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--cc-color-surface-inverse); color: var(--cc-color-text-on-inverse);
}
.ui-ico .ic { width: 16px; height: 16px; }
.ui-ico.is-line { border-radius: 50%; background: none; border: 1.5px solid var(--cc-color-text); color: var(--cc-color-text); }
.ui-ico.is-line .ic { width: 14px; height: 14px; }
.ui-cursor { position: absolute; width: 26px; height: 26px; fill: #1E1F1E; stroke: #FFF; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-grid { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; }
.ui-chip {
  height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; border: 1px solid var(--cc-color-border); background: var(--cc-color-surface);
  font: 500 12px/1 var(--cc-font-ui); color: var(--cc-color-text); white-space: nowrap;
}
.ui-chip .ic { width: 13px; height: 13px; color: var(--cc-color-text-tertiary); }
.ui-chip.is-done { color: var(--cc-color-text-muted); text-decoration: line-through; }
.ui-bar { height: 6px; border-radius: 3px; overflow: hidden; background: var(--cc-color-surface-sunken); }
.ui-bar span { display: block; width: 72%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cc-color-text), rgba(42, 44, 42, .15)); }
.ui-btn {
  height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--cc-color-surface-inverse); color: var(--cc-color-text-on-inverse); font: 500 14px/1 var(--cc-font-ui);
}
.ui-ghost {
  height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--cc-color-surface); opacity: .55; color: var(--cc-color-text-muted); font-size: 13px;
  box-shadow: 0 0 0 1px rgba(30, 32, 30, .04);
}
.ui-x {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--cc-color-surface); box-shadow: 0 8px 18px -8px rgba(30, 32, 30, .3);
}
.ui-x .ic { width: 16px; height: 16px; }
.ui-tag {
  height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px;
  border: 1px solid var(--cc-color-border); font: 500 12px/1 var(--cc-font-ui);
}
.ui-tag .ic { width: 14px; height: 14px; color: var(--cc-color-accent); }
.ui-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-weight: 600; font-size: 13px; }
.ui-sub small { font-weight: 400; font-size: 11px; color: var(--cc-color-text-muted); }
.ui-toggle { position: relative; width: 34px; height: 20px; flex: none; border-radius: 10px; background: var(--cc-color-surface-inverse); }
.ui-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #FFF; }
.ui-pill {
  height: 46px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-radius: 12px;
  background: var(--cc-color-surface); font: 500 15px/1 var(--cc-font-ui); white-space: nowrap;
  box-shadow: 0 16px 32px -12px rgba(30, 32, 30, .3), 0 0 0 1px rgba(30, 32, 30, .06);
}
.ui-pill .ic { width: 18px; height: 18px; }
.tile { height: auto; }

/* 1. еда */
.food-win { left: 44px; top: 158px; width: 380px; height: 250px; }
.food-photo {
  width: 96px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 10px; background: var(--cc-color-surface-sunken); color: var(--cc-color-text-muted); font-size: 11px;
}
.food-photo .ic { width: 20px; height: 20px; }
.food-busy { margin: 14px 0 8px; font-size: 12px; color: var(--cc-color-text-secondary); }
.food-left { margin: 14px 0 6px; font-size: 11px; color: var(--cc-color-text-muted); }
.food-pop { left: 156px; top: 172px; padding-right: 22px; white-space: nowrap; }
.food-pop .ui-cursor { right: -12px; bottom: -18px; }
.food-tile { left: 8px; top: 296px; width: 72px; }

/* 2. всё в одном чате: центр со знаком и орбита */
.hub-digits {
  left: 0; right: 0; top: 118px; bottom: 0; display: flex; justify-content: center; gap: 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.hub-digits span {
  writing-mode: vertical-lr; text-orientation: upright; letter-spacing: 5px;
  font: 500 11px/1 var(--cc-font-number); color: var(--cc-color-text-muted); opacity: .6;
}
.hub-ring, .hub-core { left: 50%; top: 254px; border-radius: 50%; transform: translate(-50%, -50%); }
.hub-ring { width: 158px; height: 158px; border: 1px solid var(--cc-color-border-strong); }
.hub-ring i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cc-color-surface); border: 1px solid var(--cc-color-text-tertiary); }
.hub-ring i:nth-child(1) { left: 50%; top: -4px; margin-left: -4px; }
.hub-ring i:nth-child(2) { right: -4px; top: 50%; margin-top: -4px; }
.hub-ring i:nth-child(3) { left: 50%; bottom: -4px; margin-left: -4px; }
.hub-ring i:nth-child(4) { left: -4px; top: 50%; margin-top: -4px; }
.hub-core {
  width: 112px; height: 112px; display: flex; align-items: center; justify-content: center;
  background: var(--cc-color-surface); color: var(--cc-color-accent);
  box-shadow: 0 24px 44px -16px rgba(30, 32, 30, .35), inset 0 0 0 10px var(--cc-color-surface), inset 0 0 0 11px var(--cc-color-border);
}
.hub-core svg { width: 54px; height: 54px; }
.hub-dot {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--cc-color-surface); box-shadow: 0 10px 22px -10px rgba(30, 32, 30, .35);
}
.hub-dot .ic { width: 19px; height: 19px; }
.hd1 { left: 13%; top: 158px; }
.hd2 { right: 12%; top: 206px; }
.hd3 { left: 20%; top: 322px; }
.hd4 { right: 22%; top: 318px; }

/* 3. деньги */
.mx1 { left: 36px; top: 148px; }
.mg1 { left: 64px; right: 40px; top: 160px; }
.money-main { left: 32px; right: 22px; top: 214px; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
.money-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.money-sum { font: 600 20px/1 var(--cc-font-number); white-space: nowrap; }
.money-sum small { margin-left: 4px; font: 400 11px/1 var(--cc-font-ui); color: var(--cc-color-text-muted); }
.money-main .ui-cursor { right: 38px; bottom: -14px; }
.mg2 { left: 48px; right: 44px; top: 340px; }
.mx2 { right: 24px; top: 330px; width: 28px; height: 28px; }

/* 4. напоминания */
.rem-win { left: 44px; top: 176px; width: 330px; height: 250px; }
.rem-pop { left: 250px; top: 128px; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; }
.rem-pop .ui-grid { grid-template-columns: max-content; }
.rem-t1 { left: 4px; top: 214px; width: 72px; }
.rem-t2 { left: 178px; top: 188px; width: 108px; }
.rem-t3 { left: 330px; top: 318px; width: 76px; }

/* 5. мини-приложение */
.app-ring { left: 34%; top: 70px; width: 620px; height: 620px; border-radius: 50%; border: 1px solid var(--cc-color-border); }
.app-win { left: 70px; right: -40px; top: 196px; height: 260px; }
.app-h { margin-bottom: 12px; font: 600 20px/26px var(--cc-font-ui); letter-spacing: -.01em; }
.app-row {
  display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--cc-color-border); background: var(--cc-color-surface);
}
.app-row:first-of-type { box-shadow: 0 14px 30px -14px rgba(30, 32, 30, .3); }
.app-row b { font-size: 15px; }
.app-pill { right: 18px; top: 150px; }
.app-cur { left: 58%; top: 316px; width: 30px; height: 30px; }
.app-tile { left: 16px; top: 318px; width: 86px; }

@media (max-width: 767px) {
  .food-pop { left: 128px; }
  .rem-pop { left: auto; right: -18px; }
  .rem-t2 { left: 150px; }
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-app { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .bc-food, .bc-hub, .bc-money { grid-column: span 4; }
  .bc-remind { grid-column: span 5; min-height: 420px; }
  .bc-app { grid-column: span 7; min-height: 420px; }
  .bc-title { font-size: 22px; line-height: 28px; }
}

/* ---------- день из жизни: раскрывающиеся карточки (подача — образец владельца scripts/design/day-ref-cards.png) ----------
   Шесть моментов дня. Закрытые — узкие полоски с фото и значком (десктоп: вертикальные в ряд; телефон:
   горизонтальные полосы). Открытая — фото + панель «как это выглядит»: что за момент, объяснение и переписка
   настоящим экраном мини-приложения (владелец: показать, как это работает; переписку с ботом не вставлять). Нажатие по полоске открывает (home.js),
   без JS открыт первый. */
.day-cards { display: flex; flex-direction: column; gap: 10px; }
.dc {
  position: relative; flex: 0 0 64px; min-width: 0; overflow: hidden;
  border-radius: 32px; background: var(--cc-color-surface);
  box-shadow: 0 0 0 1px var(--cc-color-border);
  transition: flex-basis 500ms cubic-bezier(.3, .7, .2, 1);
}
.dc-media { position: absolute; inset: 0; overflow: hidden; color: #FFF; }
.dc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.dc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 22, 20, .6), rgba(20, 22, 20, .08) 55%, rgba(20, 22, 20, .12));
}
.dc-foot { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; }
.dc-ico {
  width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cc-color-surface); color: var(--cc-color-accent);
}
.dc-ico .ic { width: 20px; height: 20px; }
.dc-title { font: 600 17px/22px var(--cc-font-ui); letter-spacing: -.01em; white-space: nowrap; }
.dc-hit { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.dc-hit:focus-visible { outline: 3px solid var(--cc-color-focus); outline-offset: 3px; }
.dc:not(.is-open):hover .dc-img { transform: scale(1.04); }
.dc-panel { display: none; }

/* открытая карточка (без JS — первая) */
.dc.is-open, .day-cards:not(.is-ready) .dc:first-child { flex-basis: auto; border-radius: 28px; }
.dc.is-open .dc-hit, .day-cards:not(.is-ready) .dc:first-child .dc-hit { display: none; }
.dc.is-open .dc-media, .day-cards:not(.is-ready) .dc:first-child .dc-media { position: relative; height: 220px; }
.dc.is-open .dc-text, .day-cards:not(.is-ready) .dc:first-child .dc-text { display: none; }
.dc.is-open .dc-panel, .day-cards:not(.is-ready) .dc:first-child .dc-panel {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 24px; min-width: 0;
  animation: dc-in 400ms ease both;
}
@keyframes dc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dc-tag { font: 500 14px/18px var(--cc-font-ui); color: var(--cc-color-accent); }
.dc-h { margin: 0; font: 600 22px/28px var(--cc-font-ui); letter-spacing: -.015em; text-wrap: balance; }
.dc-desc { margin: 0; font: 400 15px/22px var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
/* настоящий экран мини-приложения (кусок 390×360, снят с тестового пользователя) */
.dc-shot {
  margin-top: 8px; min-height: 0; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--cc-color-border); background: var(--cc-color-bg);
  box-shadow: 0 18px 40px -24px rgba(30, 32, 30, .35);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.dc-shot img { display: block; width: 100%; height: auto; }

@media (min-width: 768px) {
  .day-cards { flex-direction: row; align-items: center; height: 560px; gap: 14px; }
  .dc { flex: 0 0 64px; height: 94%; }
  .dc-text { display: none; }
  .dc.is-open, .day-cards:not(.is-ready) .dc:first-child {
    flex: 1 1 0; height: 100%; border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
  .dc.is-open .dc-media, .day-cards:not(.is-ready) .dc:first-child .dc-media { height: auto; }
  .dc.is-open .dc-panel, .day-cards:not(.is-ready) .dc:first-child .dc-panel { padding: 28px 28px 0; overflow: hidden; }
  .dc-shot { flex: 1; max-width: 380px; }
  .dc.is-open .dc-foot { left: 20px; bottom: 20px; }
}
@media (min-width: 1080px) {
  .dc { flex-basis: 72px; border-radius: 36px; }
  .dc:not(.is-open) .dc-foot { left: 16px; }
  .dc-h { font-size: 26px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc, .dc-img { transition: none; }
  .dc-panel { animation: none !important; }
}

/* ---------- как это работает: три шага (образец владельца scripts/design/how-ref.png) ----------
   Белая панель с колонками: огромный тонкий номер, пунктир, заголовок, текст, кнопка с рамкой.
   Второй шаг выделен: фото (static/landing/day/voice.webp) под зелёной заливкой, белый текст,
   колонка выше панели и выходит за её низ. */
.how {
  margin: 0; padding: 28px 22px; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
  border-radius: 28px; background: var(--cc-color-surface);
  box-shadow: 0 40px 80px -48px rgba(30, 32, 30, .35), 0 0 0 1px var(--cc-color-border);
}
.how-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.how-num { font: 300 72px/1 var(--cc-font-ui); letter-spacing: -.04em; color: var(--cc-color-text); }
.how-dots { width: 0; height: 40px; margin: 18px 0 22px 6px; border-left: 2px dotted var(--cc-color-border-strong); }
.how-title { margin: 0; font: 600 24px/30px var(--cc-font-ui); letter-spacing: -.015em; text-wrap: balance; }
.how-desc { margin: 12px 0 24px; max-width: 34ch; font: 400 15px/22px var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
.how-btn {
  margin-top: auto; height: 40px; padding: 0 18px; display: inline-flex; align-items: center;
  border: 1px solid var(--cc-color-accent); border-radius: 4px; color: var(--cc-color-accent);
  font: 500 14px/1 var(--cc-font-ui); text-decoration: none; transition: background 150ms ease, color 150ms ease;
}
.how-btn:hover { background: var(--cc-color-accent); color: var(--cc-color-text-on-accent); }
.how-step.is-hl {
  margin-inline: -8px; padding: 32px 30px 36px; overflow: hidden; border-radius: 6px; color: #FFF;
  box-shadow: 0 30px 60px -28px rgba(20, 50, 34, .55);
}
.how-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.how-step.is-hl::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36, 92, 62, .7), rgba(28, 72, 48, .86));
}
.how-step.is-hl { isolation: isolate; }
.is-hl .how-num { font-weight: 700; color: #FFF; }
.is-hl .how-dots { border-left-color: rgba(255, 255, 255, .85); }
.is-hl .how-desc { color: rgba(255, 255, 255, .88); }
.is-hl .how-btn { border: 2px solid #FFF; color: #FFF; font-weight: 600; }
.is-hl .how-btn:hover { background: #FFF; color: var(--cc-color-accent); }
@media (min-width: 900px) {
  #how { padding-bottom: 72px; }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 72px 56px; }
  .how-num { font-size: 96px; }
  .how-dots { height: 56px; margin: 22px 0 30px 8px; }
  .how-title { font-size: 26px; line-height: 32px; }
  .how-step.is-hl { margin: -40px -20px -130px; padding: 72px 36px 56px; }
}

/* ---------- бесплатно (образец владельца scripts/design/free-ref.png) ----------
   Тёмная сцена: огромное слово за тремя стеклянными карточками (низ слова размывается под стеклом
   через backdrop-filter), в карточках «0 ₽», список с галочками в кружках, кнопка-таблетка
   (у средней — белая), под карточками переключатель. Цвета — наши, тёмный как в тёмной теме. */
.free-stage {
  position: relative; overflow: hidden; padding: 48px 16px 40px; border-radius: 28px;
  background:
    radial-gradient(60% 50% at 20% 85%, rgba(58, 132, 104, .28), transparent 70%),
    radial-gradient(45% 40% at 85% 70%, rgba(109, 184, 139, .16), transparent 70%),
    #121312;
  color: #F3F3F0; text-align: center;
}
.free-word {
  position: relative; z-index: 0; margin: 0 0 -.2em;
  font: 600 clamp(60px, 14.5vw, 200px)/1 var(--cc-font-ui); letter-spacing: -.045em; white-space: nowrap;
  background: linear-gradient(180deg, #FFF 35%, rgba(255, 255, 255, .25) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.free-cards { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: left; }
.fp {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 18px; border-radius: 24px;
  background: rgba(24, 26, 24, .38);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.fp::before {  /* цветные блики по краям стекла, как в образце */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(90px 26px at 14% 0, rgba(109, 184, 139, .45), transparent 70%),
    radial-gradient(70px 22px at 88% 1%, rgba(190, 210, 255, .28), transparent 70%),
    radial-gradient(80px 30px at 80% 100%, rgba(109, 184, 139, .22), transparent 70%);
}
.fp-price { display: flex; align-items: baseline; gap: 6px; }
.fp-price .num { font: 600 52px/1 var(--cc-font-ui); letter-spacing: -.03em; }
.fp-price small { font: 400 16px/1 var(--cc-font-ui); color: rgba(243, 243, 240, .6); }
.fp-name { margin-top: 10px; font: 400 15px/20px var(--cc-font-ui); color: rgba(243, 243, 240, .8); }
.fp-rule { height: 1px; margin: 28px 0 26px; border: 0; background: rgba(255, 255, 255, .18); }
.fp-list { margin: 0 0 32px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font: 400 14px/20px var(--cc-font-ui); color: rgba(243, 243, 240, .9); }
.fp-list li { display: flex; align-items: center; gap: 14px; }
.fp-check { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.fp-check .ic { width: 14px; height: 14px; }
.fp-btn {
  margin-top: auto; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: #0B0C0B; color: #F3F3F0;
  font: 500 14px/1 var(--cc-font-ui); text-decoration: none; transition: background 150ms ease;
}
.fp-btn:hover { background: #1E201E; }
.is-hl .fp-btn { background: #FFF; border-color: #FFF; color: #121312; }
.is-hl .fp-btn:hover { background: var(--cc-color-accent-soft); }
.free-toggle { margin-top: 36px; display: inline-flex; align-items: center; gap: 16px; font: 400 18px/1 var(--cc-font-ui); color: rgba(243, 243, 240, .75); }
.fp-switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #FFF; }
.fp-switch::after { content: ""; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: #121312; box-shadow: inset 0 0 0 6px #121312, inset 0 0 0 9px #FFF; }
.free-note { margin: 14px auto 0; max-width: 46ch; font: 400 13px/18px var(--cc-font-ui); color: rgba(243, 243, 240, .5); }
@media (min-width: 900px) {
  .free-stage { padding: 72px 56px 56px; border-radius: 36px; }
  .free-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .fp { min-height: 520px; padding: 40px 30px 22px; }
}

/* ---------- калькуляторы и блог (образец владельца scripts/design/calcs-ref.png, по просьбе — тёмный) ----------
   Тёмная сцена, как у «Бесплатно». Карточки: зелёная объёмная плитка со значком (static/landing/calc-tiles,
   сгенерированы в стиле плиток «что умеет»; владелец: контурные значки — «всратые»),
   кружок со стрелкой, крупный заголовок, строка-две текста, кнопка-таблетка во всю ширину. */
.tools-stage {
  display: flex; flex-direction: column; gap: 48px; padding: 40px 16px; border-radius: 28px;
  background: radial-gradient(50% 40% at 90% 10%, rgba(58, 132, 104, .2), transparent 70%), #121312; color: #F3F3F0;
}
.tools-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.tools-stage .h2 { color: #F3F3F0; }
.tools-all { flex: none; display: inline-flex; align-items: center; gap: 6px; color: rgba(243, 243, 240, .75); font: 500 15px/20px var(--cc-font-ui); text-decoration: none; }
.tools-all:hover { color: #FFF; }
.tools-all .ic { width: 16px; height: 16px; }
.tc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tc {
  --c: #6DB88B;
  display: flex; flex-direction: column; min-width: 0; padding: 20px; border-radius: 22px;
  background: #1B1D1B; border: 1px solid rgba(255, 255, 255, .07); color: inherit; text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}
.tc:hover { background: #222522; transform: translateY(-2px); }
.tc:nth-child(6n+2) { --c: #6F91A6; }
.tc:nth-child(6n+3) { --c: #BB9E5E; }
.tc:nth-child(6n+4) { --c: #AB8468; }
.tc:nth-child(6n+5) { --c: #909F68; }
.tc:nth-child(6n+6) { --c: #8FC7A5; }
.tc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tc-tile { width: 68px; height: 68px; margin: -8px 0 -8px -6px; }
.tc-go { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.tc-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease; }
.tc:hover .tc-go svg { transform: translate(1px, -1px); }
.tc-tag { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font: 600 12px/1 var(--cc-font-ui); }
.tc-title { font: 500 21px/27px var(--cc-font-ui); letter-spacing: -.015em; text-wrap: balance; }
.tc-desc { margin-top: 8px; font: 400 14px/20px var(--cc-font-ui); color: rgba(243, 243, 240, .6); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-date { margin-top: 10px; font-size: 12px; color: rgba(243, 243, 240, .45); }
.tc-btn {
  margin-top: auto; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: rgba(255, 255, 255, .08); font: 500 14px/1 var(--cc-font-ui); transition: background 200ms ease;
}
.tc > :nth-last-child(2) { margin-bottom: 22px; }
.tc:hover .tc-btn { background: rgba(255, 255, 255, .14); }
@media (min-width: 768px) {
  .tools-stage { padding: 64px 48px; border-radius: 36px; gap: 64px; }
  .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1080px) {
  .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .tc { padding: 24px; }
}

/* ---------- частые вопросы (образец владельца scripts/design/faq-ref.png) ----------
   Светлая панель (белый → серый; тёмную зернистую подложку владелец убрал), ярлык-таблетка,
   крупный заголовок, вопросы — скруглённые полосы с номером в квадратике и чёрным кружком «+»;
   открытый — белая карточка с переливающейся рамкой (наши зелёные) и крестиком. Открыт один (details name). */
.hq-panel {
  position: relative; padding: 40px 14px 32px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, #FDFDFB 0%, #E9E9E5 60%, #C9CAC5 100%); color: var(--cc-color-text);
}
.hq-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 999px;
  background: rgba(42, 44, 42, .07); font: 600 11px/1 var(--cc-font-ui); letter-spacing: .06em; text-transform: uppercase;
}
.hq-tag .num { font-weight: 400; color: var(--cc-color-text-tertiary); }
.hq-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cc-color-text); }
.hq-h { margin: 18px 0 36px; font: 500 clamp(36px, 6vw, 68px)/1.05 var(--cc-font-ui); letter-spacing: -.035em; }
.hq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; text-align: left; counter-reset: hq; }
.hq-item { border-radius: 24px; background: rgba(255, 255, 255, .45); counter-increment: hq; transition: background 200ms ease; }
.hq-item > summary {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 14px 12px 16px;
  list-style: none; cursor: pointer; font: 500 16px/22px var(--cc-font-ui);
}
.hq-item > summary::-webkit-details-marker { display: none; }
.hq-item > summary:focus-visible { outline: 2px solid var(--cc-color-focus); outline-offset: 2px; border-radius: 24px; }
.hq-n {
  width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background: #FFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-size: 12px; color: var(--cc-color-text-secondary);
}
.hq-n::before { content: counter(hq); }
.hq-q { flex: 1; min-width: 0; }
.hq-btn {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A4D4A, #121312 70%); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6);
  transition: transform 250ms ease, background 250ms ease;
}
.hq-btn::before, .hq-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: #FFF; }
.hq-btn::after { transform: rotate(90deg); }
.hq-a { padding: 0 20px 22px 56px; }
.hq-a p { margin: 0; max-width: 60ch; font: 400 15px/23px var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
.hq-item[open] {
  background: linear-gradient(#FFF, #FFF) padding-box,
    linear-gradient(120deg, #6DB88B, #D6E9DC 30%, #A9C7E3 55%, #CFE6D7 75%, #3A8468) border-box;
  border: 1.5px solid transparent; box-shadow: 0 18px 40px -24px rgba(30, 60, 44, .45);
}
.hq-item[open] .hq-btn {
  transform: rotate(45deg); background: #FFF;
  box-shadow: 0 0 0 1.5px #CFE6D7, 0 0 0 3px rgba(109, 184, 139, .35);
}
.hq-item[open] .hq-btn::before, .hq-item[open] .hq-btn::after { background: var(--cc-color-text); }
.hq-more { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 400 15px/20px var(--cc-font-ui); color: var(--cc-color-text-secondary); }
.hq-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--cc-color-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hq-arrow { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(42, 44, 42, .12); }
.hq-arrow .ic { width: 12px; height: 12px; }
.hq-more .hq-sec { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--cc-color-text-secondary); }
@media (min-width: 768px) {
  .hq-panel { padding: 64px 48px 48px; border-radius: 48px; }
  .hq-item > summary { padding: 14px 16px 14px 20px; }
  .hq-a { padding: 0 90px 26px 60px; }
}

/* ---------- «Как это работает»: волна с тремя шагами (образец bot-how-ref.png, 30.09) ----------
   На компьютере — линия-волна SVG во всю ширину, шестиугольники стоят в её точках (проценты = координаты
   viewBox 1200×420), тексты над/под точками, за ними крупные бледные цифры. Ниже 1080 — вертикальный список. */
.bw-h2, .bv-h2 { margin: 0 0 40px; text-align: center; font: 600 clamp(28px, 3vw, 40px)/1.1 var(--cc-font-heading); color: var(--cc-color-text); }
.bw-dot { color: var(--cc-color-accent); }
.bw { position: relative; display: flex; flex-direction: column; gap: 72px; }
/* Телефон: значки шагов идут змейкой — 1 слева, 2 справа, 3 слева. Между шагами волна-переход
   (.bw-link в зазоре 72px), внутри шага — прямая от значка вниз по его стороне. */
.bw-step::before { content: ""; position: absolute; left: 26.5px; top: 56px; bottom: 0; width: 3px; background: var(--cc-color-accent); opacity: .85; }
.bw-step:last-child::before, .bw-step:last-child .bw-link { display: none; }
.bw-link { position: absolute; left: 28px; bottom: -72px; width: calc(100% - 56px); height: 72px; overflow: visible; }
.bw-link path { fill: none; stroke: var(--cc-color-accent); stroke-width: 3; opacity: .85; vector-effect: non-scaling-stroke; }
@media (max-width: 1079px) {
  .bw-step.bw-step-2 { grid-template-columns: minmax(0, 1fr) 56px; }
  .bw-step.bw-step-2 .bw-node { grid-column: 2; grid-row: 1; }
  .bw-step.bw-step-2 .bw-text { grid-column: 1; grid-row: 1; }
  .bw-step.bw-step-2 .bw-num { right: auto; left: 0; }
  .bw-step.bw-step-2::before { left: auto; right: 26.5px; }
  .bw-step.bw-step-2 .bw-link { transform: scaleX(-1); }
}
.bw-wave { display: none; }
.bw-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.bw-node { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center;
  filter: drop-shadow(0 6px 14px rgba(47, 107, 74, .22)); }
.bw-node::before { content: ""; position: absolute; inset: 0; background: var(--cc-color-surface);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.bw-node::after { content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 107, 74, .18), transparent); }
.bw-node svg { position: relative; width: 22px; height: 22px; color: var(--cc-color-accent); }
.bw-text { position: relative; isolation: isolate; padding-top: 4px; }
.bw-num { position: absolute; z-index: -1; right: 0; top: -18px; font: 600 110px/1 var(--cc-font-heading);
  color: var(--cc-color-text); opacity: .08; pointer-events: none; }
.bw-title { margin: 0 0 8px; font: 600 20px/1.25 var(--cc-font-ui); color: var(--cc-color-text); }
.bw-desc { margin: 0; font: 400 15px/23px var(--cc-font-ui); color: var(--cc-color-text-secondary); }
@media (min-width: 1080px) {
  .bw { display: block; aspect-ratio: 1200 / 420; }
  .bw-step::before, .bw-link { display: none; }
  .bw-wave { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .bw-line, .bw-glow { fill: none; stroke: url(#bw-g); stroke-width: 4.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .bw-glow { stroke-width: 22; opacity: .14; filter: blur(8px); }
  .bw-line-2 { stroke-width: 2; opacity: .4; }
  .bw-step { position: static; display: block; }
  .bw-node { position: absolute; width: 84px; height: 84px; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 22px rgba(47, 107, 74, .28)); }
  .bw-node::after { inset: -34px; background: radial-gradient(closest-side, rgba(47, 107, 74, .26), transparent); }
  .bw-node svg { width: 30px; height: 30px; }
  .bw-text { position: absolute; width: 27%; padding: 0; }
  .bw-num { right: 4%; top: -78px; font-size: 190px; opacity: .1; }
  .bw-step-1 .bw-node { left: 20%; top: 78.6%; }
  .bw-step-1 .bw-text { left: 3%; top: 20%; }
  .bw-step.bw-step-2 .bw-node { left: 51.67%; top: 30.95%; }
  .bw-step.bw-step-2 .bw-text { left: 41%; top: 68%; }
  .bw-step-3 .bw-node { left: 81.67%; top: 64.3%; }
  .bw-step-3 .bw-text { left: 72%; top: 14%; }
  .bw-title { font-size: 24px; margin-bottom: 10px; }
  .bw-desc { font-size: 16px; line-height: 25px; color: var(--cc-color-text); opacity: .72; }
}

/* ---------- «Почему лучше приложений»: две карточки со вкладками (образец bot-why-ref.png, 30.09) ----------
   Белый список лежит поверх цветной вкладки, вкладка выглядывает сбоку: у CalCash справа (зелёная),
   у приложений слева (приглушённая красная). На телефоне вкладка — полоска над карточкой. */
.bv-h2 { position: relative; padding-bottom: 20px; }
.bv-h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 1px;
  transform: translateX(-50%); background: var(--cc-color-border-strong); }
.bv { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.bv-card { position: relative; display: flex; flex-direction: column; }
.bv-list { position: relative; z-index: 1; margin: 0; list-style: none; padding: 26px 22px; display: flex; flex-direction: column; gap: 16px;
  border-radius: 22px; background: var(--cc-color-surface); box-shadow: 0 18px 40px rgba(19, 20, 19, .08), 0 2px 6px rgba(19, 20, 19, .04); }
.bv-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start;
  font: 400 15px/22px var(--cc-font-ui); color: var(--cc-color-text-secondary); }
.bv-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: -2px; }
.bv-mark svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bv-us .bv-mark { background: linear-gradient(160deg, #3A8468, #2F6B4A); box-shadow: 0 4px 10px rgba(47, 107, 74, .3); }
.bv-them .bv-mark { background: linear-gradient(160deg, #C4767A, #A6444A); box-shadow: 0 4px 10px rgba(166, 68, 74, .28); }
.bv-tab { order: -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 18px -14px; padding: 10px 18px 24px;
  border-radius: 16px 16px 0 0; color: #fff; font: 600 15px/1 var(--cc-font-ui); }
.bv-tab svg { width: 18px; height: 18px; flex: none; }
.bv-us .bv-tab { background: linear-gradient(180deg, #3A8468, #2F6B4A); }
.bv-them .bv-tab { background: linear-gradient(180deg, #C4767A, #A6444A); }
.bv-them .bv-tab { flex-direction: row-reverse; }
.bv-note { max-width: 720px; margin: 36px auto 0; text-align: center; font: 400 14px/22px var(--cc-font-ui); color: var(--cc-color-text-tertiary); }
.bv-note a { color: inherit; }
@media (min-width: 900px) {
  .bv { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 140px; }
  .bv-card { display: block; }
  .bv-list { height: 100%; box-sizing: border-box; }
  .bv-list { padding: 34px 30px; gap: 18px; }
  .bv-tab { position: absolute; top: 13%; bottom: 13%; width: 90px; margin: 0; padding: 22px 0; flex-direction: column;
    border-radius: 0 16px 16px 0; }
  .bv-tab span { writing-mode: vertical-rl; }
  .bv-us .bv-tab { right: -46px; padding-left: 44px; }
  .bv-them .bv-tab { left: -46px; padding-right: 44px; border-radius: 16px 0 0 16px; flex-direction: column; }
  .bv-them .bv-tab span { transform: rotate(180deg); }
}

/* ---------- «О нас»: тёмная сцена верха (образец about-hero-ref.png, 30.09) ----------
   Одна тёмная карточка на два модуля: about_hero (крошки, коллаж из трёх фото сайта поверх огромного слова,
   знак «+», h2 миссии, линия, крупное утверждение, два абзаца со сдвигом) и path (процесс линией). */
.ah-sec { padding-top: 8px; }
.ah-stage {
  position: relative; overflow: hidden; padding: 24px 16px 56px; border-radius: 28px; color: #F3F3F0;
  background:
    radial-gradient(50% 30% at 50% 24%, rgba(58, 132, 104, .2), transparent 70%),
    radial-gradient(40% 30% at 88% 88%, rgba(47, 107, 74, .16), transparent 70%),
    #121312;
}
.ah { text-align: center; }
.ah-crumbs { display: flex; justify-content: center; }
.ah-crumbs .crumbs { color: rgba(243, 243, 240, .55); }
.ah-crumbs .crumbs a:hover { color: #FFF; }
.ah-collage { --ph: clamp(190px, 30vw, 420px); position: relative; margin-top: calc(var(--ph) * .62 + 8px); }
.ah-ph { position: absolute; z-index: 0; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.ah-ph-1 { left: 15%; top: calc(var(--ph) * -.6); width: calc(var(--ph) * .34); height: calc(var(--ph) * .34); filter: grayscale(1) contrast(1.05); object-position: 60% 50%; }
.ah-ph-2 { z-index: 2; left: 50%; top: calc(var(--ph) * -.62); width: calc(var(--ph) * .74); height: var(--ph); transform: translateX(-44%); object-position: 28% 50%; }
.ah-ph-3 { right: 11%; top: calc(var(--ph) * -.02); width: calc(var(--ph) * .27); height: calc(var(--ph) * .4); object-position: 70% 50%; }
.ah-h1 { position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column; align-items: center; }
.ah-word { display: block; font: 600 clamp(64px, calc(var(--wvw, 24) * 1vw), var(--wmax, 330px))/.9 var(--cc-font-heading); letter-spacing: -.035em; color: #FFF; white-space: nowrap; }
.ah-sub { display: block; margin-top: 22px; max-width: 40ch; font: 400 15px/22px var(--cc-font-ui); color: rgba(243, 243, 240, .62); }
.ah-mark { width: 22px; height: 22px; margin: 52px auto 0; color: #98BFA8; }
.ah-mark svg { width: 100%; height: 100%; }
.ah-why { margin: 10px 0 0; font: 500 15px/22px var(--cc-font-ui); color: rgba(243, 243, 240, .72); }
.ah-line { width: 1px; height: 56px; margin: 18px auto 24px; background: rgba(243, 243, 240, .35); }
.ah-statement { margin: 0 auto; max-width: 30ch; font: 500 clamp(24px, 3.2vw, 42px)/1.15 var(--cc-font-ui); letter-spacing: -.02em; color: #FFF; text-wrap: balance; }
.ah-paras { margin: 36px auto 0; max-width: 560px; text-align: left; }
.ah-paras p { margin: 0; max-width: 44ch; font: 400 15px/23px var(--cc-font-ui); color: rgba(243, 243, 240, .7); text-wrap: pretty; }
.ah-paras p + p { margin-top: 14px; }
@media (max-width: 599px) {  /* телефон: слово ниже фото, фото перекрывают его меньше */
  .ah-collage { --ph: clamp(150px, 42vw, 420px); margin-top: calc(var(--ph) * .8 + 8px); }
  .ah-ph-1 { top: calc(var(--ph) * -.78); }
  .ah-ph-2 { top: calc(var(--ph) * -.82); }
  .ah-ph-3 { top: calc(var(--ph) * -.3); }
}
@media (min-width: 900px) {
  .ah-stage { padding: 32px 48px 56px; border-radius: 36px; }
  .ah-sub { margin-top: 28px; font-size: 16px; }
  .ah-paras { margin: 44px 0 0 50%; max-width: 46%; }
  .ah-paras p { max-width: 40ch; }
  .ah-paras p + p { margin-left: 64px; }
}

/* ---------- «Как это работает» извилистой линией (модуль path, образец about-hero-ref.png, низ) ----------
   Компьютер: SVG-линия в коробке 1200×900, точки, номера и тексты стоят в её узлах (проценты коробки);
   заголовок раздела — подпись у первой точки. Телефон: вертикальная линия с точками и текстами. */
.ap { position: relative; margin-top: 72px; color: #6DB88B; }
.ap-line { display: none; }
.ap-h2 { margin: 0 0 28px; display: flex; align-items: center; gap: 12px; font: 500 18px/24px var(--cc-font-ui); color: #98BFA8; }
.ap-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(109, 184, 139, .18); }
.ap-step { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 0 16px; padding-bottom: 36px; }
.ap-step::before { content: ""; position: absolute; left: 4.5px; top: 14px; bottom: -4px; width: 1px; background: currentColor; opacity: .5; }
.ap-step:last-child::before { display: none; }
.ap-step .ap-dot { margin-top: 7px; }
.ap-num { grid-column: 2; font: 500 14px/20px var(--cc-font-number); color: #98BFA8; }
.ap-text { grid-column: 2; }
.ap-title { margin: 4px 0 6px; font: 600 20px/26px var(--cc-font-ui); color: #FFF; }
.ap-desc { margin: 0; max-width: 52ch; font: 400 15px/23px var(--cc-font-ui); color: rgba(243, 243, 240, .68); text-wrap: pretty; }
@media (min-width: 1000px) {
  .ap { aspect-ratio: 1200 / 900; margin-top: 96px; }
  .ap-line { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .ap-line path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .85; }
  .ap-h2 { position: absolute; left: 53.3%; top: 2.7%; margin: 0; transform: translateY(-50%); }
  .ap-h2 .ap-dot { position: static; transform: none; margin: 0; }
  .ap-step { position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; }
  .ap-step::before { display: none; }
  .ap-step .ap-dot, .ap-num, .ap-text { position: absolute; margin: 0; pointer-events: auto; }
  .ap-step .ap-dot { transform: translate(-50%, -50%); }
  .ap-num { font-size: 18px; line-height: 1; }
  .ap-text { width: 26%; }
  .ap-title { display: flex; align-items: center; gap: 10px; font-size: 22px; }
  .ap-title::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #6DB88B; }
  .ap-desc { font-size: 14.5px; line-height: 22px; }
  .ap-step-0 .ap-dot { left: 50%; top: 27.8%; }
  .ap-step-0 .ap-num { left: 47.5%; top: 27.8%; transform: translate(-100%, -50%); }
  .ap-step-0 .ap-text { left: 12%; top: 20%; }
  .ap-step-1 .ap-dot { left: 33.3%; top: 44.4%; }
  .ap-step-1 .ap-num { left: 31.5%; top: 42%; transform: translate(-100%, -100%); }
  .ap-step-1 .ap-text { left: 45%; top: 43%; }
  .ap-step-2 .ap-dot { left: 46.7%; top: 65.6%; }
  .ap-step-2 .ap-num { left: 44.5%; top: 67.5%; transform: translate(-100%, 0); }
  .ap-step-2 .ap-text { left: 66%; top: 58%; }
  .ap-step-3 .ap-dot { left: 75.4%; top: 91.1%; }
  .ap-step-3 .ap-num { left: 77.6%; top: 91.1%; transform: translateY(-50%); }
  .ap-step-3 .ap-text { left: 30%; top: 78%; }
}

/* ---------- «Наши принципы» (модуль values, образец about-values-ref.png, 30.09) ----------
   Огромный заголовок прописными нашим зелёным, поверх него наклонённые таблетки в нашей палитре
   (на телефоне — ряд над заголовком), ниже пояснения принципов карточками. */
.av { text-align: center; }
.av-head { position: relative; margin-top: 18px; }
.av-h { margin: 0 auto; max-width: 22ch; font: 600 clamp(38px, 6.4vw, 88px)/.96 var(--cc-font-ui); letter-spacing: -.035em; text-transform: uppercase; color: var(--cc-color-accent); text-wrap: balance; }
.av-pills { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.av-pill { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font: 500 16px/1 var(--cc-font-ui); white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(30, 32, 30, .4); }
.av-pill-0 { background: var(--cc-color-accent); color: #FFF; transform: rotate(-6deg); }
.av-pill-1 { background: #2A2C2A; color: #F3F3F0; transform: rotate(4deg); }
.av-pill-2 { background: #E1ECE5; color: #2A2C2A; transform: rotate(-3deg); }
.av-pill-3 { background: #98BFA8; color: #1E2A22; transform: rotate(6deg); }
.av-grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; text-align: left; }
.av-item { padding: 22px; border-radius: 20px; background: var(--cc-color-surface); box-shadow: 0 0 0 1px var(--cc-color-border); }
.av-title { margin: 0 0 8px; font: 600 18px/24px var(--cc-font-ui); color: var(--cc-color-text); }
.av-desc { margin: 0; font: 400 15px/22px var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
@media (min-width: 700px) { .av-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .av-head { margin-top: 24px; }
  .av-pills { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
  .av-pill { position: absolute; height: 46px; padding: 0 20px; font-size: 19px; }
  .av-pill-0 { left: 5%; top: 6%; transform: rotate(-9deg); }
  .av-pill-1 { right: 7%; top: 3%; transform: rotate(7deg); }
  .av-pill-2 { left: 33%; top: 45%; transform: rotate(-5deg); }
  .av-pill-3 { right: 15%; top: 57%; transform: rotate(8deg); }
}
@media (min-width: 1080px) { .av-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 64px; } .av-item { padding: 26px 24px; } }

/* ---------- «Кто за продуктом» (модуль team, образец about-team-ref.png, 30.09) ----------
   Слева колонка фото разной высоты (предметы и экран продукта, людей не выдумываем), справа заголовок прописными,
   абзацы, контакты и строка крупных цифр. */
.at { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.at-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.at-col { display: flex; flex-direction: column; gap: 14px; }
.at-col-2 { padding-top: 22%; }
.at-ph { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 48px -30px rgba(30, 32, 30, .45); }
.at-ph-desk { aspect-ratio: 3 / 4; }
.at-ph-app { aspect-ratio: 4 / 3; object-position: 50% 0; border: 1px solid var(--cc-color-border); background: var(--cc-color-bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.at-ph-support { aspect-ratio: 4 / 5; object-position: 68% 50%; }
.at-h { margin: 0 0 20px; font: 600 clamp(32px, 3.4vw, 46px)/1.02 var(--cc-font-ui); letter-spacing: -.03em; text-transform: uppercase; color: var(--cc-color-text); }
.at-p { margin: 0 0 14px; max-width: 52ch; font: 400 16px/26px var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
.at-contacts { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 500 15px/20px var(--cc-font-ui); }
.at-contacts span { color: var(--cc-color-text-tertiary); font-weight: 400; }
.at-contacts a { color: var(--cc-color-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cc-color-accent); }
.at-contacts a:hover { color: var(--cc-color-accent); }
.at-nums { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.at-num dt { margin: 0; font: 600 44px/1 var(--cc-font-number); letter-spacing: -.02em; color: var(--cc-color-text); }
.at-num dt small { margin-left: 4px; font: 500 20px/1 var(--cc-font-number); color: var(--cc-color-text-tertiary); }
.at-num dd { margin: 8px 0 0; font: 400 13px/18px var(--cc-font-ui); color: var(--cc-color-text-secondary); text-wrap: pretty; }
@media (min-width: 900px) {
  .at { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
  .at-photos, .at-col { gap: 20px; }
  .at-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
}
