/* Светлый стиль в духе Apple, чёрно-белая гамма: много воздуха, крупная типографика, мягкие плитки.
   Цвета заданы переменными. Акцентов почти нет: чёрные кнопки, один приглушённый стальной оттенок. */
:root {
  color-scheme: light;
  --bg: #ffffff; --alt: #f5f5f7; --surface: #ffffff;
  --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --line-soft: #e8e8ed;
  --accent: #1d1d1f; --accent-hover: #3a3a3c; --accent-ink: #ffffff;
  --accent-soft: #efeff2; --accent-line: #c7c7cc;
  --tint: #4f6d8f;
  --hero-bg: #14171c; --hero-ink: #f5f5f7; --hero-muted: #aab2bf; --hero-line: rgba(255, 255, 255, .14); --hero-steel: #9db3d0;
  --ring: rgba(29, 29, 31, .38); --ring-soft: rgba(29, 29, 31, .12);
  --ok: #2c6a45; --ok-bg: #e9f2ec; --mid: #70530f; --mid-bg: #f5efe0; --bad: #8a3a34; --bad-bg: #f4e8e7;
  --warn-bg: #f5efe0; --warn-ink: #70530f; --warn-line: #e6d9b5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 18px rgba(0, 0, 0, .05);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, .10);
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.47 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.gray { background: var(--alt); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.07; letter-spacing: -0.032em; }
h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.38; color: var(--muted); font-weight: 400; max-width: 720px; letter-spacing: -0.012em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 20; }

/* верхняя панель */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-weight: 600; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a { color: #424245; padding: 8px 12px; border-radius: 980px; font-size: 14px; text-decoration: none; }
.nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: rgba(0, 0, 0, .06); }
.nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--accent-hover); }
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .wrap { gap: 4px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 24px; border-radius: 980px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em; cursor: pointer; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--accent-line); }
.btn.secondary:hover { background: var(--accent-soft); border-color: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 400; }
.btn.ghost:hover { background: var(--alt); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: #ececf0; border-color: #ececf0; }
.btn.small { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.center .btn-row { justify-content: center; }
.eyebrow { display: block; font-size: 15px; font-weight: 600; color: var(--tint); margin-bottom: 12px; letter-spacing: -0.005em; }

/* hero: тёмный блок по центру: заголовок, маленькая анимация, цитата, кнопки; внизу три шага */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); padding: clamp(32px, 5.5vw, 72px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.07; letter-spacing: -0.04em; color: #fff; text-wrap: balance; }
.hero-hook { margin: 6px auto 0; max-width: 600px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; color: #eef1f6; text-wrap: balance; }
.hero-hook::before { content: ""; display: block; width: 44px; height: 3px; margin: 0 auto 16px; border-radius: 2px; background: var(--hero-steel); }
.hero-hook a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--hero-steel); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-hook a:hover { text-decoration-color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-cta .btn { min-height: 54px; padding: 14px 30px; font-size: 18px; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn.on-dark:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hero a:focus-visible, body.home .site-header a:focus-visible { outline-color: #fff; }

/* анимация «человек и ИИ-помощник»: зацикленное видео без звука, растворяется в фоне hero */
.hero-art { margin: 14px auto 12px; width: clamp(190px, 22vw, 240px); }
.ha-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; mix-blend-mode: lighten; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 62%, transparent 100%); }

/* формулы под ромбом (раздел метода) */
.hero-formulas { margin-top: 18px; }
.hf { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--hero-line); }
.hf-main { font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: #fff; white-space: nowrap; text-decoration: none; }
.hf-text { font-size: 14px; line-height: 1.4; color: var(--hero-muted); }
.rh-fill { fill: rgba(255, 255, 255, .035); }
.rh-line { fill: none; stroke: #dfe5ee; stroke-width: 2.5; stroke-linejoin: round; }
.rh-axis { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.5; stroke-dasharray: 3 8; }
.rh-halo { fill: none; stroke: rgba(157, 179, 208, .34); stroke-width: 1.5; }
.rh-dot { fill: #f5f5f7; }
.rh-letter { fill: var(--hero-bg); font: 700 26px/1 var(--font); text-anchor: middle; }
.rh-cap { fill: var(--hero-muted); font: 400 21px/1 var(--font); }
.rh-cap.mid { text-anchor: middle; }
/* ромб рисуется, когда раздел появляется на экране (motion.js ставит armed, потом in) */
@media (prefers-reduced-motion: no-preference) {
  .rhomb-dark.armed .rh-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .rhomb-dark.armed .rh-fill, .rhomb-dark.armed .rh-axis, .rhomb-dark.armed .rh-cap, .rhomb-dark.armed .rh-dot-g { opacity: 0; }
  .rhomb-dark .rh-dot-g { transform-box: fill-box; transform-origin: center; }
  .rhomb-dark.in .rh-line { animation: rh-draw 1.5s cubic-bezier(.4, 0, .2, 1) .15s both; }
  .rhomb-dark.in .rh-fill, .rhomb-dark.in .rh-axis { animation: rh-fade .7s ease 1.2s both; }
  .rhomb-dark.in .rh-dot-g { animation: rh-pop .55s cubic-bezier(.2, .8, .2, 1) both; }
  .rhomb-dark.in .rh-cap { animation: rh-fade .6s ease both; }
  .rhomb-dark.in .n-m .rh-dot-g { animation-delay: .1s; } .rhomb-dark.in .n-m .rh-cap { animation-delay: .35s; }
  .rhomb-dark.in .n-i .rh-dot-g, .rhomb-dark.in .n-k .rh-dot-g { animation-delay: .65s; } .rhomb-dark.in .n-i .rh-cap, .rhomb-dark.in .n-k .rh-cap { animation-delay: .9s; }
  .rhomb-dark.in .n-v .rh-dot-g { animation-delay: 1.15s; } .rhomb-dark.in .n-v .rh-cap { animation-delay: 1.4s; }
}
@keyframes rh-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes rh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rh-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

.hero-index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); margin: clamp(24px, 4vw, 48px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hero-line); }
.hero-index li { min-width: 0; }
.hero-index li + li { border-left: 1px solid var(--hero-line); }
.hero-index a { display: block; height: 100%; padding: 22px 22px 26px; color: #fff; text-decoration: none; }
.hero-index li:first-child a { padding-left: 0; }
.hero-index b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.hero-index b::after { content: "›"; display: inline-block; margin-left: 8px; color: var(--hero-steel); transition: transform .2s ease; }
.hero-index a:hover b::after { transform: translateX(4px); }
.hero-index span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--hero-muted); }
.hero-steps i { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border: 1px solid rgba(157, 179, 208, .55); border-radius: 50%; font-style: normal; font-size: 14px; font-weight: 600; color: var(--hero-steel); }
.hero-index .hero-author a { display: flex; align-items: center; gap: 14px; }
.hero-index .hero-author b::after { content: none; }
.hero-index .hero-author img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #2a2f38; border: 1px solid rgba(255, 255, 255, .22); }
.hero-index .hero-author a:hover b { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }

@media (max-width: 820px) {
  .hero-index { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .hero-index li + li { border-left: 0; border-top: 1px solid var(--hero-line); }
  .hero-index a, .hero-index li:first-child a { padding: 15px 0; }
  .hero-steps i { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .hero-cta .btn { width: 100%; padding-left: 18px; padding-right: 18px; font-size: 17px; }
}

/* главная: верхняя панель в цвет hero */
body.home .site-header { background: rgba(20, 23, 28, .86); border-bottom-color: rgba(255, 255, 255, .08); }
body.home .brand { color: #fff; }
body.home .nav a { color: #c3cad5; }
body.home .nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
body.home .nav a.nav-cta { background: #fff; color: var(--hero-bg); }
body.home .nav a.nav-cta:hover { background: #e6e9ee; }

/* Gen ID: фирменная часть обучения, тёмный блок с видео */
.genid { background: var(--hero-bg); color: var(--hero-ink); padding: clamp(56px, 8vw, 104px) 0; }
.genid a:focus-visible { outline-color: #fff; }
.genid h2 { margin: 0 0 16px; max-width: 800px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.07; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.genid .lead { margin: 0; max-width: 700px; color: var(--hero-muted); }
.gid-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(28px, 4vw, 48px); }
.gid-video { margin: 0; }
.gid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--hero-line); }
.gid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.gid-video figcaption { margin-top: 10px; font-size: 14px; color: var(--hero-muted); }
.gid-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0; border: 0; background: rgba(8, 10, 14, .32); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background .2s ease; }
.gid-play[hidden] { display: none; }
.gid-play:hover { background: rgba(8, 10, 14, .18); }
.gid-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.gid-disc { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--hero-bg); transition: transform .2s ease; }
.gid-play:hover .gid-disc { transform: scale(1.06); }
.gid-disc svg { width: 32px; height: 32px; margin-left: 4px; fill: currentColor; }
.gid-steps { list-style: none; counter-reset: gid; margin: 0; padding: 0; display: grid; gap: 22px; }
.gid-steps li { counter-increment: gid; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
.gid-steps li::before { content: counter(gid); grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(157, 179, 208, .55); color: var(--hero-steel); display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.gid-steps b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: #fff; }
.gid-steps span { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--hero-muted); }
.genid h2 span { display: block; margin-top: 10px; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: var(--hero-steel); }
.gid-versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.gv-col { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--hero-line); }
.gv-col.on { border-color: rgba(157, 179, 208, .6); background: rgba(157, 179, 208, .07); }
.gv-tag { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--hero-muted); }
.gv-col.on .gv-tag { color: var(--hero-steel); }
.gv-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.gv-col li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.35; color: var(--hero-muted); }
.gv-col li::before { content: "×"; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--hero-muted); }
.gv-col.on li { color: #fff; }
.gv-col.on li::before { content: "✓"; color: var(--hero-steel); }
.gid-note { display: grid; gap: 6px; margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--hero-line); }
.gid-note b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: #fff; }
.gid-note span { max-width: 640px; font-size: 15px; line-height: 1.45; color: var(--hero-muted); }
.gid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(32px, 4vw, 48px); }
.btn .key { flex: none; width: 14px; height: 32px; background: currentColor; -webkit-mask: url(img/genid-key.png?v=2) center / contain no-repeat; mask: url(img/genid-key.png?v=2) center / contain no-repeat; }
.gid-cta .btn { min-height: 54px; padding: 14px 30px; font-size: 18px; }
.gid-cta p { margin: 0; max-width: 460px; font-size: 15px; line-height: 1.45; color: var(--hero-muted); }
/* Gen ID: мини-логотип с ключом и весы в сравнении */
.gid-mark { margin: 0 0 22px; }
.gid-badge { position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; color: var(--hero-steel); }
.gid-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(157, 179, 208, .08); stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.gid-badge .key { position: relative; width: 15px; height: 34px; background: #fff; -webkit-mask: url(img/genid-key.png?v=2) center / contain no-repeat; mask: url(img/genid-key.png?v=2) center / contain no-repeat; }
.gid-scale { display: block; width: 100%; max-width: 340px; margin: 0 auto 20px; }
.gid-scale svg { display: block; width: 100%; height: auto; overflow: visible; }
.sc-post { stroke: rgba(157, 179, 208, .5); stroke-width: 3; stroke-linecap: round; }
.sc-base { fill: rgba(157, 179, 208, .32); }
.sc-beam { stroke: var(--hero-steel); stroke-width: 3.5; stroke-linecap: round; }
.sc-pivot { fill: var(--hero-bg); stroke: var(--hero-steel); stroke-width: 2.2; }
.sc-str { stroke: rgba(157, 179, 208, .55); stroke-width: 1.3; }
.sc-pan { fill: rgba(157, 179, 208, .16); stroke: var(--hero-steel); stroke-width: 2; stroke-linejoin: round; }
.gid-scale text { font-family: inherit; font-weight: 700; text-anchor: middle; }
.sc-heart { transform-box: fill-box; transform-origin: 50% 85%; animation: sc-beat 1.9s ease-in-out infinite; }
@keyframes sc-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.09); } 24% { transform: scale(1); } 38% { transform: scale(1.06); } 52% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sc-heart { animation: none; } }
@media (max-width: 900px) {
  .gid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .gid-versus { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gid-cta .btn { width: 100%; }
  .gid-frame { border-radius: 14px; }
}

/* секции */
section.block { padding: clamp(48px, 8vw, 88px) 0; background: var(--bg); }
section.block.alt { background: var(--alt); }
section.block > .wrap > h2 { margin-bottom: 28px; }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 8px; }

/* плитки (bento) */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); }
.tile { background: var(--surface); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 8px; color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile .num { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile h3 { font-size: 24px; letter-spacing: -0.025em; margin: 2px 0 2px; }
.tile p { color: var(--muted); margin: 0; font-size: 16px; }
.tile .meta { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--muted); }
.tile .go { font-weight: 500; margin-top: 2px; }
.tile .go::after { content: " ›"; }
.tile.dark { background: #1d1d1f; color: #f5f5f7; grid-column: span 2; grid-row: span 2; padding: 36px; }
.tile.dark .num { color: #a1a1a6; }
.tile.dark h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; margin-top: 8px; }
.tile.dark p { color: #c7c7cc; font-size: 18px; max-width: 420px; }
.tile.dark .meta { color: #a1a1a6; }
.tile.dark .btn { align-self: flex-start; margin-top: 18px; }
.tile.wide { grid-column: span 2; }
.tile.full { grid-column: 1 / -1; min-height: 0; }
.tile .ico { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--hero-bg); }
.tile .ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile.has-ico .num { padding-right: 66px; }
.tile.has-ico h3 { padding-right: 64px; }
/* сердце в плитке «Памятки»: белый контур, внутри красная пульсация (как было) */
.ico-heart svg { width: 32px; height: 32px; overflow: visible; }
.ico-heart .hb-glow { stroke: none; }
.ico-heart .hb-line { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-heart .hb-red { fill: #ff4d6a; stroke: none; }
.ico-heart .hb-in, .ico-heart .hb-out, .ico-heart .hb-glow { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ico-heart .hb-in { animation: hb-beat 1.5s ease-in-out infinite; }
  .ico-heart .hb-out { animation: hb-beat-soft 1.5s ease-in-out infinite; }
  .ico-heart .hb-glow { animation: hb-glow 1.5s ease-in-out infinite; }
}
/* сердце сайта на весах и у человека в hero: один символ #brand-heart в index.html */
:root { --heart: #e5324f; }
.ha-heart .hb-glow { stroke: none; }
.ha-heart .hb-in, .ha-heart .hb-glow { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ha-heart .hb-in { animation: hb-beat 1.5s ease-in-out infinite; }
  .ha-heart .hb-glow { animation: hb-glow 1.5s ease-in-out infinite; }
}
.hero-art { position: relative; }
.rh-tip { max-width: 700px; margin: clamp(24px, 4vw, 40px) auto 0; text-align: center; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.rh-tip b { font-weight: 700; color: var(--heart); }
.ha-heart { position: absolute; left: 88%; top: 59%; width: 20px; height: 20px; margin: -10px 0 0 -10px; pointer-events: none; }
.ha-heart svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes hb-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.32); } 28% { transform: scale(1); } 42% { transform: scale(1.2); } 70% { transform: scale(1); } }
@keyframes hb-beat-soft { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.07); } 28% { transform: scale(1); } 42% { transform: scale(1.04); } 70% { transform: scale(1); } }
@keyframes hb-glow { 0%, 100% { opacity: .35; transform: scale(.8); } 14% { opacity: 1; transform: scale(1.1); } 28% { opacity: .5; transform: scale(.9); } 42% { opacity: .85; transform: scale(1.02); } 70% { opacity: .35; transform: scale(.8); } }
.tile.gen { background: var(--hero-bg); color: #f5f5f7; }
.tile.gen .num { color: var(--hero-steel); }
.tile.gen p { color: var(--hero-muted); }
.tile.gen .go { color: #fff; }
.tile.soon { box-shadow: none; background: rgba(255, 255, 255, .6); color: var(--muted); }
.tile .tag { align-self: flex-start; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; } .tile.dark { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.dark, .tile.wide { grid-column: auto; } .tile.dark { padding: 28px; } }

/* карточки (остальные страницы) */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid.two { grid-template-columns: minmax(0, 1fr); } }
.card.has-yr { position: relative; }
.card.has-yr .num { padding-right: 84px; }
.card .yr { position: absolute; top: 22px; right: 22px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 980px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.card .big-formula { margin: 4px 0 0; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.card p.formula-line { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.backers { margin-top: auto; padding-top: 18px; }
.backers-t { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.backers-row { --lh: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft); list-style: none; }
.backers-row li { display: flex; align-items: center; min-width: 0; }
.backers-row img { display: block; width: auto; height: var(--lh); max-width: 100%; }
.backers-row img.wide { height: calc(var(--lh) * .625); }
.backers-row img.tall { height: calc(var(--lh) * 1.3); }
@media (max-width: 560px) { .backers-row { --lh: 28px; gap: 10px; } }
.card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  color: inherit; text-align: left; font: inherit; letter-spacing: -0.01em; transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; }
a.card:hover, button.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card h3 { margin: 4px 0; font-size: 24px; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 0; }
.card .num { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card .meta { font-size: 14px; color: var(--muted); margin-top: auto; padding-top: 12px; }
.card .go { font-weight: 500; margin-top: 4px; }
.card.soon { opacity: .6; box-shadow: none; background: rgba(255, 255, 255, .6); }
.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 980px; background: var(--accent-soft); color: #424245; font-weight: 600; }
.tag.warn { background: var(--mid-bg); color: var(--mid); }

/* баннер для предпринимателей */
.banner { background: var(--alt); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center; }
.banner h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 10px; }
.banner .big { font-size: clamp(40px, 7vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; color: var(--ink); margin: 6px 0 14px; }
@media (max-width: 760px) { .banner { grid-template-columns: 1fr; } }

/* ромб */
.rhomb-wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 640px); justify-content: center; align-items: center; }
@media (max-width: 800px) { .rhomb-wrap { grid-template-columns: 1fr; } }
.rhomb-wrap svg { width: 100%; max-width: 440px; height: auto; margin: 0 auto; display: block; }
.rhomb-dark { margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--hero-bg); color: var(--hero-ink); }
.rhomb-wrap .rhomb-dark svg { max-width: none; margin: 0; }
.rhomb-dark .hero-formulas { margin-top: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { background: var(--alt); border-radius: 18px; padding: 16px 20px; }
section.block.alt .steps li { background: #fff; }

/* о Сергее: спокойно, без давления */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }
.photo { border-radius: 32px; overflow: hidden; background: #e8e8ed; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; filter: grayscale(1) contrast(1.03); }
.photo .ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 72px; font-weight: 700; color: #a1a1a6; }
.photo.no-img .ph { display: flex; }
.about h2 { font-size: clamp(26px, 3.6vw, 36px); }
.about p { color: #424245; font-size: 18px; max-width: 520px; }
.about .quote { max-width: 520px; margin: 18px 0 20px; padding: 2px 0 2px 18px; border-left: 3px solid var(--line); font-size: 18px; line-height: 1.45; font-style: normal; color: var(--ink); }
.about .links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 16px; }

/* научиться и заявка */
.learn-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.learn-grid .card h3 { font-size: 26px; }
.edu-perks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.edu-perks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.edu-perks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: #4f6d8f; }
.edu-perks li.no { color: var(--muted); }
.edu-perks li.no::before { content: "–"; color: var(--muted); }
.edu-perks.main { margin-top: 14px; }
.edu-perks.main li { font-size: 17px; font-weight: 600; }
.edu-perks.rows { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); gap: 9px; }
.edu-perks.rows li { font-size: 15.5px; }
.edu-perks.rows li b { font-weight: 600; }
.edu-perks.rows li.no b { color: var(--muted); }
.edu-go { display: inline-block; align-self: flex-start; margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.edu-go:hover, .edu-go:focus-visible { border-color: var(--ink); }
.apply { margin-top: 28px; background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 28px; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
@media (max-width: 860px) { .apply { grid-template-columns: 1fr; } }
.apply h3 { font-size: 28px; }
.gid-brief { margin: 18px 0; padding: 18px 20px; background: var(--accent-soft); border-radius: 20px; font-size: 15px; line-height: 1.5; color: #424245; }
.gid-brief[hidden] { display: none; }
.gid-brief h4 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.gid-brief p { margin: 0 0 8px; }
.gid-brief p:last-child { margin-bottom: 0; }
.gid-brief a { color: var(--ink); }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input[type="text"], .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--alt); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; min-height: 46px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { background: #fff; border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--ring-soft); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: #424245; }
.form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }

footer.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); padding: 32px 0 56px; color: var(--muted); font-size: 13px; line-height: 1.5; }
footer.site-footer a { color: var(--muted); }
footer .foot-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }

/* библиотека и общие элементы */
.notice { background: var(--mid-bg); color: var(--mid); border-radius: 16px; padding: 14px 18px; margin: 20px 0; font-size: 15px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0 12px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 980px; background: #e8e8ed; }
.tabs button { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 8px 18px; border-radius: 980px; cursor: pointer; min-height: 38px; }
.tabs button[aria-selected="true"] { background: #fff; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.search { flex: 1 1 220px; min-height: 44px; border-radius: 980px; border: 0; background: #e8e8ed; color: var(--ink); padding: 8px 20px; font: inherit; }
.search::placeholder { color: #86868b; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 24px; }
.chip { border: 0; background: #e8e8ed; color: var(--ink); border-radius: 980px; padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }
.chip:hover { background: #dcdce1; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 500; }
.empty { color: var(--muted); padding: 24px 0; }
body.gray .card { background: #fff; }

dialog { border: 0; border-radius: 28px; padding: 0; background: #fff; color: var(--ink); width: min(1040px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 24px 12px; position: sticky; top: 0; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); z-index: 1; border-bottom: 1px solid var(--line-soft); }
.dlg-head h2 { font-size: clamp(22px, 3vw, 30px); }
.dlg-body { padding: 20px 24px 28px; display: grid; gap: 28px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 800px) { .dlg-body { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--alt); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; min-height: 46px; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--ring-soft); }
.field textarea { min-height: 100px; resize: vertical; }
textarea.preview { width: 100%; min-height: 380px; font: 14px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--alt); color: var(--ink); border: 0; border-radius: 18px; padding: 16px; resize: vertical; }
.review { background: var(--mid-bg); color: var(--mid); border-radius: 16px; padding: 14px 18px; margin: 16px 24px 0; font-size: 15px; }
.checks { margin: 8px 0 0; padding-left: 20px; color: #424245; }
.checks li { margin: 6px 0; }
.status { min-height: 24px; font-size: 14px; color: var(--muted); }
.saved-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.close-x { border: 0; background: #e8e8ed; color: #424245; border-radius: 50%; width: 36px; height: 36px; font-size: 16px; cursor: pointer; flex: none; }
.close-x:hover { background: #dcdce1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }

/* баннер cookie (показывается только если подключена аналитика) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; z-index: 40; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 22px; padding: 18px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); display: grid; gap: 12px; }
.cookie p { margin: 0; font-size: 14px; color: #424245; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media print { .cookie { display: none; } }
/* формула «Состояние × Знание²» */
.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 40px 0 16px; }
.f-part { background: var(--alt); border-radius: 22px; padding: 16px 24px; text-align: center; min-width: 170px; }
.f-part b { display: block; font-size: clamp(20px, 3vw, 26px); letter-spacing: -0.025em; }
.f-part span { font-size: 14px; color: var(--muted); }
.f-part.strong { background: #1d1d1f; color: #f5f5f7; }
.f-part.strong span { color: #a1a1a6; }
.f-op { font-size: 30px; color: var(--muted); }
@media (max-width: 560px) { .f-part { min-width: 100%; } .f-op { display: none; } }

/* кнопки в карточках и «письма» */
.hf-btn { justify-self: start; margin-top: 12px; }
.backers-btn { margin-top: 16px; align-self: flex-start; }
.letters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.letters[hidden] { display: none; }
.letter { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.letter:hover, .letter:focus-visible { border-color: var(--ink); background: #fbfbfd; box-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 0 0 3px rgba(79, 109, 143, .18); transform: translateY(-2px); }
.letter:active { transform: translateY(0) scale(.99); }
.letter-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hero-bg); transition: background .18s ease, transform .18s ease; }
.letter:hover .letter-ico, .letter:focus-visible .letter-ico { background: var(--tint); transform: rotate(-6deg) scale(1.06); }
.letter-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.letter-t { display: grid; gap: 1px; min-width: 0; line-height: 1.25; }
.letter-t b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.letter-t i { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .letters { flex-direction: column; } .letter { width: 100%; } }

/* всплывающее окно */
html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(10, 12, 16, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.modal.on .modal-back { opacity: 1; }
.modal-box { position: relative; display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); background: #fff; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s ease, transform .2s ease; }
.modal.on .modal-box { opacity: 1; transform: none; }
.modal-body { overflow: auto; padding: 30px 28px 26px; -webkit-overflow-scrolling: touch; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ececf0; color: var(--ink); cursor: pointer; transition: background .15s ease; }
.modal-x:hover { background: #dcdce1; }
.modal-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal-title { margin: 0 44px 12px 0; font-size: clamp(20px, 3.2vw, 26px); line-height: 1.2; }
.modal-lead { margin: 0 0 14px; color: var(--muted); }
.modal-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.modal-steps li { padding: 14px 18px; border-radius: 16px; background: var(--alt); }
.doc { margin: 8px 0 14px; }
.doc img { display: block; width: 100%; height: auto; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.doc-open { font-size: 15px; }
.doc-note { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .modal { padding: 8px; } .modal-body { padding: 24px 18px 20px; } .modal-box { border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .modal-back, .modal-box, .letter, .letter-ico { transition: none; } .letter:hover, .letter:focus-visible, .letter:hover .letter-ico { transform: none; } }