/* Лендинг Dicamus: первый экран — «слова под светом» в темноте, дальше мятная палитра приложения.
   Светлая тема по умолчанию, тёмно-синяя — кнопкой (класс html.dark, общий ключ с приложением). */
:root {
  --bg: #EDF4EB; --surface: rgba(255, 255, 255, .74); --solid: #FFFFFF; --soft: #F6FAF5;
  --line: #E3ECE1; --line-strong: #CFDCCB; --text: #141A14; --muted: #5E6B5E;
  --accent: #2E7D3E; --accent-hover: #256B34; --accent-text: #FFFFFF; --accent-soft: #EEF7EC; --accent-mid: #4BA75A;
  --danger: #C0392B; --radius: 26px;
  --shadow: 0 1px 2px rgba(30, 60, 30, .04), 0 14px 40px rgba(30, 60, 30, .08);
  --x: 50vw; --y: 50vh; --r: 260px; --p: 0;
}
html.dark {
  --bg: #151B26; --surface: rgba(30, 38, 52, .94); --solid: #1E2634; --soft: #1A2230;
  --line: #2B3547; --line-strong: #3A4659; --text: #E9EDF4; --muted: #9AA5B7;
  --accent: #3F9E57; --accent-hover: #48AD61; --accent-soft: #1E3328; --danger: #F08A7E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 14px 40px rgba(0, 0, 0, .3);
}
/* цвет каждой специалистки — как в приложении */
.d-career    { --tint: #F8DDB0; --tone: #E3A23A; --role: #8A5508; }
.d-relations { --tint: #F5C9C0; --tone: #C94F3D; --role: #A63E2E; }
.d-assistant { --tint: #D9EED9; --tone: #4BA75A; --role: #2E7D3E; }
.d-emotions  { --tint: #E2DAF3; --tone: #8E7CC3; --role: #5B4A93; }
.d-health    { --tint: #D3E9F2; --tone: #4FA3C7; --role: #2D6E8A; }
.d-money     { --tint: #F3E6B8; --tone: #C9A227; --role: #7A6210; }
.d-meaning   { --tint: #D8E0F6; --tone: #5C7FD6; --role: #3A5BA8; }
.d-intimacy  { --tint: #F6D5E0; --tone: #C7537A; --role: #9A3358; }
html.dark .d-career    { --tint: #3D3324; --role: #F0BE6E; }
html.dark .d-relations { --tint: #402B2B; --role: #F29C8E; }
html.dark .d-assistant { --tint: #1F3A2B; --role: #86D394; }
html.dark .d-emotions  { --tint: #2E2A47; --role: #C3B6F0; }
html.dark .d-health    { --tint: #1F3746; --role: #8FCBE6; }
html.dark .d-money     { --tint: #3B3520; --role: #E6CD72; }
html.dark .d-meaning   { --tint: #243050; --role: #A9BEF2; }
html.dark .d-intimacy  { --tint: #42263A; --role: #F0A3C0; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 17px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
a { color: var(--accent); }
img { max-width: 100%; }

.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  border: 0; border-radius: 18px; padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-text); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn.big { padding: 16px 32px; font-size: 18px; box-shadow: 0 12px 28px rgba(46, 125, 62, .28); }
.btn small { font-weight: 500; font-size: 13px; opacity: .95; }  /* .85 — контраст 4,2 на зелёном, нужно ≥ 4,5 */
.btn.ghost { background: var(--solid); color: var(--text); border: 1px solid var(--line-strong); }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- первый экран ---------- */
.hero-scroll { height: 175vh; position: relative; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #E8EFE8; }
.layer { position: absolute; inset: 0; }
.h-dark { background: radial-gradient(120% 90% at 50% 40%, #222C25, #18201B); }
.h-light {
  background: radial-gradient(circle var(--r) at var(--x) var(--y),
    rgba(214, 234, 206, .96) 0%, rgba(205, 229, 196, .93) 16%, rgba(188, 220, 179, .85) 30%,
    rgba(160, 204, 151, .66) 44%, rgba(126, 182, 118, .44) 58%, rgba(94, 156, 90, .24) 72%,
    rgba(70, 130, 68, .09) 86%, rgba(55, 105, 55, 0) 100%);
}
.h-bloom { background: radial-gradient(circle calc(var(--r) * 2.2) at var(--x) var(--y),
  rgba(120, 190, 120, .16), rgba(120, 190, 120, .06) 45%, transparent 75%); }
.h-grain { opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.h-words { z-index: 2; }
/* на широких мониторах облако слов не растягиваем до краёв — держим вокруг карточки */
.h-words { left: 50%; right: auto; width: min(100%, 1560px); transform: translateX(-50%); }
.w { position: absolute; white-space: nowrap; font-weight: 700; letter-spacing: -.01em; line-height: 1;
     animation: float var(--d) ease-in-out var(--delay) infinite alternate; }
.w.L { font-size: clamp(30px, 4.4vw, 64px); font-weight: 800; }
.w.M { font-size: clamp(21px, 2.6vw, 38px); }
.w.S { font-size: clamp(16px, 1.7vw, 24px); font-weight: 600; }
.w .a, .w .b { display: block; transition: opacity .35s ease, transform .45s ease, filter .35s ease; }
.w .a { color: #8E9C92; opacity: calc(var(--o) * (1 - var(--t, 0))); filter: blur(calc(var(--t, 0) * 4px)); }
.w .b { position: absolute; top: 0; color: #2E7D3E; opacity: var(--t, 0); text-shadow: 0 1px 12px rgba(230, 245, 225, .5);
        transform: translateY(calc((1 - var(--t, 0)) * 8px)); filter: blur(calc((1 - var(--t, 0)) * 4px)); }
.w.r .b { right: 0; } .w:not(.r) .b { left: 0; }
@keyframes float { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(var(--dx), 8px, 0); } }

.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; max-width: 1180px; margin: 0 auto; padding: 18px 20px;
       display: flex; align-items: center; justify-content: space-between; transition: color .4s; }
.hero.lit .top { color: #141A14; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: inherit; text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-mid); display: grid; place-items: center; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.link-btn, .theme-btn { font: inherit; color: inherit; background: rgba(255, 255, 255, .06); border: 1px solid currentColor;
  cursor: pointer; transition: background .2s; }
.link-btn { font-weight: 600; font-size: 15px; padding: 8px 18px; border-radius: 999px; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.link-btn:hover, .theme-btn:hover { background: rgba(255, 255, 255, .16); }

.hero-card { position: absolute; z-index: 4; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); text-align: center; padding: 34px 32px 26px; border-radius: 30px; color: #141A14;
  background: rgba(255, 255, 255, .92);  /* без backdrop-filter: размытие под карточкой перерисовывалось в каждом кадре анимации */
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .5); }
html.dark .hero-card { background: rgba(30, 38, 52, .9); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.025em; margin: 16px 0 12px; font-weight: 800; }
h1 span, .final h2 span { color: var(--accent); }
.lead { margin: 0 auto 22px; color: #5E6B5E; font-size: 17px; line-height: 1.5; max-width: 450px; }
html.dark .lead { color: var(--muted); }
.faces { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; color: #5E6B5E; font-size: 14px; }
html.dark .faces { color: var(--muted); }
.faces span { display: flex; }
.hero-note { margin: 8px auto 0; max-width: 420px; color: #5E6B5E; font-size: 12.5px; line-height: 1.4; opacity: .85; }
html.dark .hero-note { color: var(--muted); }
.faces img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid #fff; margin-left: -9px; }
.faces img:first-child { margin-left: 0; }
.trust { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; line-height: 1.35;
  color: var(--accent); text-decoration: none; }
.trust svg { flex: none; }
.trust:hover { text-decoration: underline; }
.trust .t-short { display: none; }
@media (max-width: 700px) { .trust .t-long { display: none; } .trust .t-short { display: inline; } }
.ref-note { margin: -6px auto 18px; padding: 10px 14px; border-radius: 16px; background: var(--accent-soft);
  border: 1px solid var(--accent-mid); font-size: 14.5px; line-height: 1.45; text-align: left; }

.hint { position: absolute; z-index: 4; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 14px; font-weight: 600;
  color: #C9D6CB; transition: opacity .4s; }
.hint b { display: block; font-size: 20px; animation: bob 1.6s ease-in-out infinite; }
.hero.lit .hint { opacity: 0; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- блоки ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; }
.block { padding: 72px 0 24px; }
.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.block h2, .final h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 30px; max-width: 680px; font-size: 18px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* команда */
/* команда: на компьютере — сетка по три, последняя карточка, если осталась одна в ряду, — широкая и низкая;
   на телефоне — лента со свайпом и строкой выбора сверху */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-bar, .team-hint { display: none; }
.tp { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; cursor: pointer;
  font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line-strong); transition: background .2s, border-color .2s; }
.tp img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--tint); }
.tp span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.tp b { font-size: 15px; }
.tp small { font-size: 12px; font-weight: 600; color: var(--muted); }
.tp[aria-selected="true"] { background: var(--tint); border-color: var(--role); }
.tp[aria-selected="true"] small { color: var(--role); }
@media (max-width: 960px) and (min-width: 701px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .team-bar { display: block; margin: 0 -20px 12px; }
  .team-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 20px; }
  .team-pick::-webkit-scrollbar { display: none; }
  .team-arrows { display: none; }
  .team { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative;
    margin: 0 -20px; padding: 4px 20px 20px; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
  .team::-webkit-scrollbar { display: none; }
  .team { align-items: flex-start; }  /* каждая карточка своей высоты — без пустоты под коротким описанием */
  .team > .member { flex: 0 0 84%; scroll-snap-align: start; }
  .team .m-go { margin-top: 4px; }
  .team .photo { aspect-ratio: 16 / 11; }
  .team .photo img { object-position: 50% 20%; }
  .team .photo-name b { font-size: 24px; }
  .team .m-body { padding: 14px 16px 16px; gap: 10px; }
  .team .m-about { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
  .team .m-facts { padding: 10px 12px; gap: 4px; }
  .team .m-facts p { font-size: 13px; }
  .team-hint { display: block; margin: -8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
}
.member { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; text-align: left; font: inherit; color: inherit; }
.member:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(30, 60, 30, .14); }
.photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.member:hover .photo img { transform: scale(1.04); }
.photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(10, 16, 10, .55)); }
.ai-badge { position: absolute; z-index: 1; top: 14px; left: 14px; font-size: 12px; font-weight: 700; letter-spacing: .03em;
  background: rgba(255, 255, 255, .9); color: #141A14; padding: 5px 10px; border-radius: 999px; }
.photo-name { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: #fff; }
.photo-name b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.photo-name span { font-size: 14px; font-weight: 600; opacity: .92; }
.m-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.m-role { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 700; color: var(--role); }
.m-about { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.m-facts { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.m-facts p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.m-stats { font-weight: 700; color: var(--text) !important; }
.m-proof { display: flex; gap: 6px; align-items: flex-start; color: var(--role) !important; font-weight: 600; }
.m-proof svg { flex: none; margin-top: 1px; }
.m-go { margin-top: auto; align-self: flex-start; }
@media (min-width: 701px) {
  @supports (grid-template-rows: subgrid) {  /* роль, текст, цифры, теги и кнопка стоят на одной линии во всём ряду */
    .team > .member:not(.wide) { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .member:not(.wide) .m-body { display: contents; }
    .member:not(.wide) .m-body > * { margin-left: 20px; margin-right: 20px; }
    .member:not(.wide) .m-role { margin-top: 18px; }
    .member:not(.wide) .m-about { margin-top: 10px; }
    .member:not(.wide) .m-facts { margin-top: 14px; }
    .member:not(.wide) .m-go { margin: 20px; align-self: end; justify-self: start; }
  }
  /* одна в последнем ряду — на всю ширину, но низкая: фото слева, текст в две колонки справа */
  .team > .member.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(190px, 23%) 1fr; }
  .member.wide .photo { aspect-ratio: auto; height: 100%; min-height: 240px; }
  .member.wide .photo-name b { font-size: 24px; }
  .member.wide .m-body { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 24px;
    row-gap: 10px; padding: 18px 22px; align-content: start; }
  .member.wide .m-about { font-size: 14.5px; line-height: 1.45; }
  .member.wide .m-facts { padding: 10px 12px; gap: 4px; }
  .member.wide .m-role { grid-column: 1 / -1; font-size: 15px; }
  .member.wide .m-about { grid-column: 1; grid-row: 2 / 4; }
  .member.wide .m-facts { grid-column: 2; grid-row: 2 / 4; align-self: start; }
  .member.wide .m-go { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}
.soon-title { margin: 44px 0 14px; font-size: 18px; }
.soon-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.soon { padding: 16px; border-radius: 20px; border: 1.5px dashed var(--line-strong); display: flex; flex-direction: column; gap: 6px; }
.soon-av { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--tint), var(--tone)); opacity: .85;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.soon b { font-size: 17px; }
.soon p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.soon a { font-size: 13.5px; font-weight: 700; margin-top: auto; }

/* призыв начать */
.nudge-box { padding: 44px 32px; border-radius: 30px; text-align: center; border: 1px solid var(--accent-mid);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface)); box-shadow: var(--shadow); }
.nudge-box .sub { margin: 0 auto 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* как устроено + телефон */
.how { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--accent-soft); color: var(--accent); }
.steps h3 { margin: 4px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.phone { justify-self: center; width: 320px; height: 600px; border-radius: 44px; background: #0E120E; padding: 11px;
  box-shadow: 0 40px 80px rgba(20, 40, 20, .25); transform: rotate(2deg); }
.screen { width: 100%; height: 100%; border-radius: 34px; background: #F6FAF5; overflow: hidden; display: flex; flex-direction: column; }
.p-bar { display: flex; align-items: center; gap: 10px; padding: 18px 14px 12px; background: #fff; border-bottom: 1px solid #E3ECE1; color: #141A14; }
.p-bar img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; object-position: 50% 15%; }
.p-bar b { display: block; font-size: 15px; line-height: 1.2; }
.p-bar span { font-size: 12px; color: #8A5508; font-weight: 600; }
.p-bar em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #2E7D3E; background: #EEF7EC; padding: 3px 8px; border-radius: 999px; }
.p-chat { flex: 1; padding: 14px 11px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden; }
.pm { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.45; animation: rise .35s ease; }
.pm.me { align-self: flex-end; background: #2E7D3E; color: #fff; border-bottom-right-radius: 6px; }
.pm.her { align-self: flex-start; background: #fff; color: #141A14; border: 1px solid #E3ECE1; border-bottom-left-radius: 6px; }
.p-typing { align-self: flex-start; font-size: 12px; color: #8A5508; font-weight: 600; padding: 2px 6px; }
.p-typing i { display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; }
.p-typing i:nth-child(2) { animation-delay: .15s; } .p-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .2; } }
.p-step { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: #2E7D3E; background: #EEF7EC; border: 1px dashed #4BA75A;
  padding: 7px 11px; border-radius: 12px; animation: rise .35s ease; }
.p-input { margin: 0 10px 14px; background: #fff; border: 1px solid #CFDCCB; border-radius: 22px; padding: 10px 14px; font-size: 13px; color: #9AA59A; }

/* чем лучше обычного ИИ-чата */
.vs { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.vs-head, .vs-row { display: grid; grid-template-columns: 170px 1fr 1.35fr; }
.vs-head span { padding: 14px 20px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.vs-head span:last-child { color: var(--accent); background: var(--accent-soft); }
.vs-row { border-top: 1px solid var(--line); }
.vs-row > * { padding: 16px 20px; font-size: 15.5px; line-height: 1.5; }
.vs-row b { font-size: 16px; }
.vs-row span:nth-of-type(1) { color: var(--muted); }
.vs-row span:nth-of-type(2) { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); font-weight: 500; }
.vs-row span:nth-of-type(2)::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.flow-title { margin: 48px 0 16px; font-size: 22px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--accent-mid), var(--line-strong)); background-size: 200% 100%;
  animation: flowline 4s linear infinite; }
@keyframes flowline { to { background-position: -200% 0; } }
.flow li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.f-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px;
  background: var(--solid); color: var(--accent); border: 2px solid var(--accent-mid); box-shadow: 0 0 0 6px var(--bg); }
.flow li:last-child .f-ic { background: var(--accent); color: #fff; border-color: var(--accent); }
.flow b { font-size: 16.5px; margin-top: 4px; }
.flow p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tech { margin: 26px 0 0; font-size: 14px; color: var(--muted); padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-strong); }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--line-strong), var(--accent-mid), var(--line-strong)); animation: none; }
  .flow li { padding-left: 72px; min-height: 54px; }
  .f-ic { position: absolute; left: 0; top: 0; }
}
@media (max-width: 700px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > * { padding: 4px 16px; }
  .vs-row b { padding-top: 14px; }
  .vs-row span:nth-of-type(1)::before { content: "Обычный ИИ: "; font-weight: 700; }
  .vs-row span:nth-of-type(2) { margin: 6px 12px 14px; border-radius: 12px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .flow::before { animation: none; } }

/* на чём основано: авторы и исследования */
.h-mark { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--accent); }
.authors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.orgs-box { padding: 22px; border-radius: var(--radius); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.orgs-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.orgs-head .h-mark { width: 40px; height: 40px; border-radius: 12px; }
.orgs-head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.orgs-head b { font-size: 20px; font-weight: 800; color: var(--accent); }
.orgs li.more { padding: 0; border: 0; background: none; }
.orgs li.more a { display: block; padding: 7px 4px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.orgs li.more a:hover { text-decoration: underline; }
.orgs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.orgs li { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line-strong); font-size: 14.5px; }
.orgs li:nth-child(-n+4) { background: var(--accent-soft); border-color: var(--accent-mid); font-size: 15.5px; }
.orgs li span { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .orgs-box { padding: 18px; } .orgs { gap: 6px; } .orgs li, .orgs li:nth-child(-n+4) { padding: 5px 10px; font-size: 13.5px; } }
.author { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.author b { font-size: 16px; line-height: 1.3; }
.author small { font-size: 12.5px; font-weight: 700; color: var(--accent); line-height: 1.35; }
.author span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.author em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--accent); }
.authors-more { margin: 16px 0 0; font-weight: 700; }
.authors-more a { text-decoration: none; }
.authors-more a:hover { text-decoration: underline; }
.disclaimer { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.inside { margin-top: 26px; }
.inside summary { font-size: 16px; color: var(--accent); }
.inside .flow-title { margin-top: 22px; }
@media (max-width: 960px) { .authors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {  /* авторы на телефоне — лентой со свайпом */
  .authors { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px;
    margin: 0 -20px; padding: 2px 20px 6px; scroll-padding-inline: 20px; }
  .authors::-webkit-scrollbar { display: none; }
  .author { flex: 0 0 78%; scroll-snap-align: start; }
}

/* отзывы: лента карточек, листается сама и пальцем */
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.rv-head h2 { margin: 0; }
.rv-nav { display: flex; gap: 8px; }
.rv-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--solid); color: var(--text);
  font-size: 20px; cursor: pointer; transition: border-color .2s; }
.rv-arrow:hover { border-color: var(--accent); }
.rv-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rv-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(380px, 84vw); scroll-snap-align: start; margin: 0; padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.review.empty { border-style: dashed; box-shadow: none; }
.stars { color: #E3A23A; font-size: 18px; letter-spacing: 2px; }
.stars span { color: var(--line-strong); }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; flex: 1; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review figcaption b { font-size: 15.5px; }
.review figcaption span { font-size: 13.5px; color: var(--muted); }
.rv-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.rv-cta .btn { text-decoration: none; }
.rv-all { font-weight: 700; text-decoration: none; }
@media (max-width: 700px) { .rv-nav { display: none; } }

/* ---------- страница «Отзывы» ---------- */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.rv-grid .review { flex: none; }
.no-reviews { color: var(--muted); }
.rv-form-wrap { margin-top: 56px; padding: 28px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 720px; }
.rv-form-wrap h2 { margin: 0 0 6px; font-size: 28px; }
.rv-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.rv-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.rv-form textarea { min-height: 140px; resize: vertical; font: inherit; }
.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.star-input { display: flex; gap: 4px; }
.star-input button { font-size: 30px; line-height: 1; border: 0; background: none; cursor: pointer; color: var(--line-strong); padding: 2px; }
.star-input button.on { color: #E3A23A; }
.rv-status { padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
.rv-hint { font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 960px) { .rv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .rv-grid, .rv-row { grid-template-columns: 1fr; } .rv-form-wrap { padding: 20px; } }

/* дыхание */
.breath { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.breath-after { margin: 18px 0 0; color: var(--muted); }
.breath-circle { position: relative; justify-self: center; width: 300px; height: 300px; display: grid; place-items: center; }
.breath-circle .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.breath-circle .core { position: absolute; width: 46%; height: 46%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #CFE8C6, #4BA75A); box-shadow: 0 20px 60px rgba(75, 167, 90, .35);
  transform: scale(var(--s, 1)); transition: transform var(--dur, 1s) cubic-bezier(.45, 0, .55, 1); }
.breath-label { position: relative; font-weight: 700; font-size: 20px; color: #fff; text-shadow: 0 1px 8px rgba(20, 60, 20, .35); }

/* защита данных */
.sec-badges { list-style: none; margin: -10px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sec-badges li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-mid); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-grid > div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sec-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--accent); }
.sec-grid h3 { margin: 14px 0 6px; font-size: 18px; line-height: 1.25; }
.sec-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.sec-note { margin: 18px 0 0; max-width: 820px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 700px) {
  .sec-grid { grid-template-columns: 1fr; gap: 10px; }
  .sec-grid > div { padding: 16px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
  .sec-ic { width: 40px; height: 40px; grid-row: span 2; }
  .sec-grid h3 { margin: 2px 0 4px; font-size: 16.5px; }
  .sec-grid p { font-size: 14.5px; }
}

/* вопросы */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq details:first-of-type { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 17.5px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

.final { margin: 56px 0 20px; padding: 34px 24px 32px; text-align: center; border-radius: 34px; color: #E8EFE8;
  background: radial-gradient(80% 120% at 50% 0%, #2E5A37, #18201B); }
.final h2 span { color: #8BD69A; }
.final p { margin: 0 0 18px; color: #C9D6CB; }
.foot { padding: 36px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--text); text-decoration: none; }
.foot-brand .mark { width: 30px; height: 30px; }
.foot-brand p { margin: 10px 0 0; max-width: 300px; line-height: 1.5; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col b { margin-bottom: 2px; color: var(--text); }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-help { margin: 30px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); line-height: 1.5; }
.foot-legal { margin: 14px 0 0; font-size: 12.5px; }
@media (max-width: 700px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-brand { grid-column: 1 / -1; }
}

.sticky-cta { position: fixed; z-index: 8; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px rgba(20, 50, 20, .3); }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .team { grid-template-columns: 1fr 1fr; }
  .soon-row { grid-template-columns: repeat(3, 1fr); }
  .how, .breath { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .hero-card { top: 58%; padding: 24px 18px 20px; }
  .lead { font-size: 15px; margin-bottom: 18px; }
  .hint { bottom: 8px; font-size: 12px; }
  .hint b { font-size: 15px; }
  .top { padding: 14px 16px; }
  .link-btn { padding: 7px 14px; }
  main { padding: 0 16px 90px; }
  .block { padding-top: 56px; }
  .team { grid-template-columns: 1fr; }
  .soon-row { grid-template-columns: 1fr 1fr; }
  .nudge-box { padding: 30px 20px; }
  .phone { width: 290px; height: 540px; transform: none; }
  .breath-circle { width: 250px; height: 250px; }
}
/* большие мониторы: карточка и заголовок крупнее */
@media (min-width: 1700px) and (min-height: 820px) {
  .hero-card { width: 640px; padding: 40px 40px 30px; }
  .hero-card h1 { font-size: 60px; }
  .hero-card .lead { font-size: 18.5px; max-width: 500px; }
}
/* невысокие экраны (ноутбук, телефон боком): карточка компактнее, чтобы не наезжала на шапку */
@media (max-height: 720px) {
  .hero-card { top: 54%; padding: 20px 24px 18px; }
  .hero-card h1 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 8px; }
  .hero-card .lead { font-size: 15px; margin-bottom: 14px; }
  .hero-card .btn.big { padding: 12px 26px; font-size: 16px; }
  .faces { margin-top: 12px; }
}
@media (max-height: 560px) {
  .hero-card .lead, .faces, .hero-note, .hint { display: none; }
  .hero-card .eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .w, .hint b { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .breath-circle .core { transition: none; }
}

/* ---------- вход (окно) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(12, 18, 12, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.panel { position: relative; background: var(--bg); color: var(--text); border-radius: 24px; padding: 28px 24px 22px; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; }
.panel h2 { margin: 0 0 10px; font-size: 22px; }
.close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; width: 40px; height: 40px; }
.logins { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 14px 0 10px; min-height: 40px; }
.login-slot { min-height: 40px; }
.error { color: var(--danger); font-size: 15px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.email-login { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }
.field { width: 100%; font: inherit; color: var(--text); background: var(--solid); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; }
.field:focus { border-color: var(--accent); outline: none; }
.field.code { font-size: 22px; letter-spacing: .3em; text-align: center; }
.field.code::placeholder { letter-spacing: normal; font-size: 17px; }
.code-note { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.code-note b { color: var(--text); font-size: 20px; letter-spacing: .15em; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; padding: 4px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- страница «Библиотека» ---------- */
.lib-top { position: static; color: var(--text); }
.lib-top .link-btn, .lib-top .theme-btn { background: var(--solid); border-color: var(--line-strong); }
.lib-hero { padding: 40px 0 10px; max-width: 760px; }
.lib-hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0 14px; }
.lib-hero p { color: var(--muted); font-size: 18px; margin: 0 0 8px; }
.shelf { padding: 34px 0 6px; }
.shelf h2 { font-size: 26px; margin: 0 0 16px; letter-spacing: -.01em; }
.shelf h2 span { font-size: 15px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.books { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.book { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.book b { font-size: 17px; line-height: 1.3; }
.book .orig { font-size: 13px; color: var(--muted); font-style: italic; }
.book .by { font-size: 14.5px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.book .note { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .books { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .books { grid-template-columns: 1fr; } }

/* цифры «не обёртка»: сколько работы под ответом */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -8px 0 26px; }
.proof div { padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.proof b { display: block; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
/* одна в последнем ряду (AES-256) — на всю ширину, а не в углу */
@media (min-width: 901px) { .proof > div:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
@media (max-width: 900px) and (min-width: 701px) { .proof > div:last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {  /* на телефоне — одна колонка: цифра слева, пояснение справа */
  .proof { grid-template-columns: 1fr; gap: 8px; }
  .proof div { display: grid; grid-template-columns: 108px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; }
  .proof b { font-size: 26px; white-space: nowrap; }
  .proof span { margin-top: 0; font-size: 14px; }
}

/* Переключатель языка (app/i18n.py): English / Русский */
.lang-switch { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: inherit;
  text-decoration: none; border: 1px solid currentColor; background: rgba(255, 255, 255, .06); }
.lang-switch:hover { background: rgba(255, 255, 255, .16); }
.lib-top .lang-switch { background: var(--solid); border-color: var(--line-strong); }
@media (max-width: 420px) { .lang-switch { padding: 7px 10px; font-size: 13px; } }
