/* =====================================================================
   Личный сайт - общие стили. Дизайн-система "Terminal":
   холодная тёмная база, один зелёный акцент без свечений, Manrope
   в заголовках и тексте, JetBrains Mono только в цифрах/подписях,
   острые углы, hairline-разделители.
   ===================================================================== */

:root {
  /* палитра Terminal */
  --bg: #0d0f13;
  --panel: #14171d;
  --panel-2: #191d24;
  --border: #262b33;
  --text: #e7e9ec;
  --text-dim: #8b94a1;
  --accent: #3fb950;
  --accent-soft: rgba(63, 185, 80, 0.12);
  --on-accent: #08120b;
  --teal: #5c9494;
  --copper: #c1653a;
  --danger: #c1653a;

  --radius: 4px;
  --maxw: 1180px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* legacy-алиас: в "Terminal" серифа нет, заголовки идут тем же Manrope */
  --serif: var(--sans);

  /* алиасы для более старого кода / admin.html */
  --ink: var(--text);
  --line: var(--border);
  --muted: var(--text-dim);
  --dim: var(--text-dim);
  --bg-soft: var(--panel);
  --accent-2: var(--teal);
  --card: var(--panel);
  --green: var(--accent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--text-dim); }
.small { font-size: 13px; }

/* ---------------- typography ---------------- */

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 16px; }

/* Eyebrow: сдержанная подпись. В "Terminal" используется редко (не над
   каждой секцией) - как строка платформ/тегов, не как декоративный ярлык. */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.eyebrow.mono { color: var(--text-dim); }
.eyebrow.mono b { color: var(--accent); font-weight: 500; }

.lead-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 46ch;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo b { color: var(--accent); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 32px; width: auto; }
@media (max-width: 767px) { .logo img { height: 26px; } }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-dim); font-size: 13.5px; }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 6px 9px;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle button.active { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.burger { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

@media (max-width: 1100px) {
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    padding: 8px 40px 16px;
    display: none;
    z-index: 50;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .lang-toggle { margin-top: 12px; align-self: flex-start; }
  .burger { display: block; }
}
@media (max-width: 640px) { .nav { padding: 8px 20px 16px; } }

/* ---------------- sections ---------------- */

main { display: block; }

.section { padding-top: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; }
.hero { padding-top: 60px; padding-bottom: 72px; }
.hero h1 { max-width: 22ch; }
.hero .lead-text { margin-bottom: 28px; }

/* два блока в шапке: слева — сайты, справа — трейдинг */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.hero-col { position: relative; display: flex; flex-direction: column; }
.hero-col + .hero-col::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: var(--border);
}
.hero-col h1,
.hero-col h2 { font-size: clamp(22px, 2.7vw, 30px); line-height: 1.22; margin: 0 0 14px; max-width: 20ch; }
.hero-col .lead-text { font-size: 15px; line-height: 1.65; margin-bottom: 20px; max-width: 42ch; }
.hero-col .btn-row { margin-bottom: 30px; }
.hero-col .btn-row .btn { padding: 11px 18px; font-size: 13.5px; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 34px; }
  .hero-col + .hero-col::before { left: 0; right: 0; top: -17px; bottom: auto; width: auto; height: 1px; }
}

/* section header: заголовок и пояснение стопкой, слева. Без split-раскладки. */
.section-head {
  margin-bottom: 32px;
}
.section-head h2 { margin: 0; }
.section-head p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 56ch;
  text-align: left;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #4cc65d; }
.btn-ghost { background: transparent; border-color: var(--text-dim); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- stats: единый блок под каждой колонкой шапки ---------------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 28px;
}
.hero-col .stats { margin-top: auto; }
.stat { flex: 0 1 auto; }
.stat .v { font-family: var(--mono); font-size: 19px; font-weight: 500; color: var(--accent); }
.stat .l { margin-top: 4px; font-size: 12px; color: var(--text-dim); line-height: 1.45; max-width: 20ch; }
@media (max-width: 640px) {
  .stats { gap: 14px 24px; }
}

/* ---------------- cards ---------------- */

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--accent); background: var(--panel-2); }
.card h3 { font-family: var(--serif); font-weight: 500; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; margin-bottom: 0; }
.card .price {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}
.card .price .eta { color: var(--text-dim); }
a.card:hover { text-decoration: none; }
a.card h3 { color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 7px;
}

.result-line {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal);
  margin-top: 12px;
}

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; justify-content: center; }
.pager-btn {
  font-family: var(--mono);
  font-size: 13px;
  min-width: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.pager-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; cursor: default; }
.pager-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------------- steps ---------------- */

.steps { border-top: 1px solid var(--border); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}
.steps li:before {
  content: counter(step) ".";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
@media (max-width: 620px) { .steps li { grid-template-columns: 36px 1fr; gap: 16px; } }

.check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.check-list li {
  padding: 12px 0 12px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.check-list li:before { content: "\2192"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* ---------------- book ---------------- */

.book-hero { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.book-cover {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  font-family: var(--mono);
  color: var(--text-dim);
}
.book-cover span { padding: 20px; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 680px) { .book-hero { grid-template-columns: 1fr; } .book-cover { max-width: 220px; } }

/* ---------------- forms ---------------- */

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
  max-width: 560px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.review-add { margin-top: 22px; }
.field .lbl { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-dim); }
.stars { display: inline-flex; gap: 6px; }
.stars button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--border); font-family: inherit;
  transition: color .12s;
}
.stars button:hover, .stars button.on { color: var(--accent); }
.stars-static { color: var(--accent); letter-spacing: 3px; font-size: 13px; margin-bottom: 8px; }
.form-status { font-size: 14px; margin-top: 12px; min-height: 20px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--copper); }

/* ---------------- blog ---------------- */

.post-card { display: flex; flex-direction: column; }
.post-card .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--text-dim); }
.post-card h3 { font-family: var(--serif); font-weight: 500; margin: 8px 0; }
.post-card p { flex: 1; color: var(--text-dim); font-size: 14px; }

.article { max-width: 680px; }
.article .date { font-family: var(--mono); color: var(--text-dim); font-size: 12.5px; }
.article h1 { margin: 10px 0 28px; }
.article h2 { margin-top: 38px; }
.article h3 { margin-top: 28px; }
.article p { color: var(--text); }
.article ul, .article ol { color: var(--text); padding-left: 22px; }
.article li { margin: 6px 0; }
.article code {
  font-family: var(--mono);
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: var(--radius);
  font-size: 0.9em;
}
.article pre {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}
.article pre code { background: none; padding: 0; }
.article blockquote {
  border-left: 2px solid var(--accent);
  margin: 20px 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-style: italic;
}
.article hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.article-body p.hashtags {
  margin-top: 30px; color: var(--text-dim);
  font-family: var(--mono); font-size: 13px; word-spacing: 2px;
}

/* ---------------- поделиться ---------------- */

.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--border);
}
.share-lbl {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); margin-right: 4px;
}
.share .sbtn {
  font-family: var(--mono); font-size: 12px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); color: var(--text); cursor: pointer;
  transition: border-color .12s, color .12s;
}
.share .sbtn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-social { display: inline-flex; align-items: center; gap: 12px; }
.foot-social a.soc { display: inline-flex; }
.foot-social a.soc svg { display: block; }
.office-line { margin: 12px 0 0; color: var(--text-dim); font-size: 14px; }
.office-line a { color: var(--text); border-bottom: 1px solid var(--border); }
.office-line a:hover { border-color: var(--text); }

/* строка «анонсы статей» на странице блога */
.blog-follow { margin-top: 10px; font-size: 14px; color: var(--text-dim); }
.blog-follow a { color: var(--accent); }
.blog-follow a:hover { text-decoration: underline; }

/* покупка книги + страница оплаты */
.buy-box {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  max-width: 380px;
}
.buy-email { display: block; margin-bottom: 12px; }
.buy-email span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 5px; }
.buy-email input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.buy-email input:focus { outline: none; border-color: var(--accent); }
.buy-box .btn { width: 100%; justify-content: center; }
.buy-box #buyStatus:empty, .buy-box #bookBuyNote:empty { display: none; }
.buy-box #buyStatus { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pay-box {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  max-width: 460px;
}
.pay-box .btn-row { margin-top: 16px; }

/* карточки магазина */
.shop-card { display: flex; flex-direction: column; }
.shop-card .badge { align-self: flex-start; margin-bottom: 10px; }
.shop-card h3 { margin: 0 0 8px; }
.shop-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; flex: 1; }
.shop-buy { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.shop-price { font-family: var(--mono); font-size: 20px; color: var(--accent); }
.shop-buy .btn { padding: 10px 18px; font-size: 13.5px; }
.shop-stat:empty { display: none; }
.shop-stat { margin-top: 8px; }

/* ---------------- reveal ---------------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- misc ---------------- */

.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ---------------- плавающие кнопки: наверх / на главную ---------------- */
.scroll-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}
.st-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.2s ease;
}
.st-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
/* «наверх» появляется только после прокрутки */
.scroll-tools .st-top { opacity: 0; pointer-events: none; transform: translateY(6px); }
.scroll-tools.scrolled .st-top { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 640px) {
  .scroll-tools { right: 12px; bottom: 12px; }
  .st-btn { width: 38px; height: 38px; }
}
body.has-cookie-bar .scroll-tools { bottom: 92px; }

/* ---------------- баннер согласия на куки (GDPR) ---------------- */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cookie-bar p { margin: 0; font-size: 13.5px; color: var(--text-dim); max-width: 62ch; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 640px) {
  .cookie-bar { padding: 14px 16px; }
  body.has-cookie-bar .scroll-tools { bottom: 128px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------------- about: фото + текст ---------------- */
.about-grid.has-photo {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: start;
}
.about-grid.has-photo .lead-text { max-width: 58ch; }
.about-text .lead-text + .lead-text { margin-top: 14px; }
.about-text .lead-text:last-child { margin-bottom: 0; }
.about-photo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
}
.about-photo img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 680px) {
  .about-grid.has-photo { grid-template-columns: 120px 1fr; gap: 18px; }
}

.journal-promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.journal-promo img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2);
}
.journal-promo .jp-text .eyebrow { margin-bottom: 10px; }
.journal-promo .jp-text h2 { margin-top: 0; }
.journal-promo .jp-text .btn-row { margin-top: 18px; }
.journal-promo .jp-text .small { margin-top: 12px; }
@media (max-width: 780px) {
  .journal-promo { grid-template-columns: 1fr; gap: 20px; }
  .journal-promo img { order: -1; }
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--text-dim);
}
.badge.accent { color: var(--accent); border-color: var(--accent); }

.quote {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
}
.quote p { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--text); margin: 0; }
.quote .who { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 10px; }
.quote .who a { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.quote .who a:hover { color: var(--accent); }

/* ---------------- portfolio: карточки-работы + схемы ---------------- */

.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-card .card-body { padding: 22px; }
.card-chart {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 6px;
}
.card-chart svg.pd { width: 100%; height: auto; display: block; }

.work-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 20px 22px 12px;
  margin: 4px 0 28px;
}
.work-chart svg.pd { width: 100%; height: auto; display: block; max-height: 320px; }

/* элементы SVG-схем (палитра sweep) */
svg.pd text { font-family: var(--mono); }
.pd-price { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-price.warn { stroke: var(--copper); }
.pd-price.flow { stroke-width: 1.6; }
.pd-ma { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0.5; }
.pd-zone, .pd-ob { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1; }
.pd-guide { fill: none; stroke: var(--text-dim); stroke-width: 1; opacity: 0.3; stroke-dasharray: 2 4; }
.pd-proj { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.65; stroke-dasharray: 4 4; }
.pd-poc { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.pd-pivot, .pd-pt, .pd-gdot { fill: var(--accent); }
.pd-gdot { fill: var(--text-dim); }
.pd-dot { fill: var(--accent); }
.pd-dot.sweep { fill: var(--copper); }
.pd-bar.buy { fill: var(--teal); }
.pd-bar.sell { fill: var(--copper); }
.pd-node { fill: var(--bg); stroke: var(--text-dim); stroke-width: 1; stroke-opacity: 0.4; }
.pd-step { fill: var(--accent); opacity: 0.7; }
.pd-lbl { font-size: 10px; fill: var(--text-dim); }
.pd-lbl.hi { fill: var(--accent); }
.pd-lbl.buy-t { fill: var(--teal); }
.pd-lbl.sell-t { fill: var(--copper); }

/* ---------------- схема имбаланса (блог) ---------------- */
.blog-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 20px 22px 14px;
  margin: 8px 0 28px;
}
.blog-chart svg.pd { width: 100%; height: auto; display: block; max-height: 340px; }
.ib-wick.c1, .ib-wick.c3 { stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.ib-wick.c2 { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.ib-body.c1, .ib-body.c3 { fill: var(--teal); }
.ib-body.c2 { fill: var(--accent); }
.ib-fvg { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; }
.ib-guide { fill: none; stroke: var(--text-dim); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.45; }
.ib-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-dot { fill: var(--copper); }
.ib-lbl { font-size: 11px; fill: var(--text-dim); }
.ib-lbl.hi { fill: var(--accent); }
.ib-lbl.n { text-anchor: middle; }
.ob-wick.down, .ob-body.down { color: var(--copper); }
.ob-wick.impulse, .ob-body.impulse { color: var(--accent); }
.ob-wick.cont, .ob-body.cont { color: var(--teal); }
.ob-wick { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ob-body { fill: currentColor; }
.bt-pa { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bt-pb { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bt-dd { fill: none; stroke: var(--copper); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.bt-brk { fill: none; stroke: var(--copper); stroke-width: 1.2; stroke-dasharray: 3 3; }
.ib-lbl.bt-dd-lbl { fill: var(--copper); }
.dd-loss { fill: var(--copper); }
.dd-gain { fill: var(--accent); }
.dd-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.pz-prem { fill: var(--copper); fill-opacity: 0.14; }
.pz-disc { fill: var(--accent); fill-opacity: 0.12; }
.pz-tprem { fill: var(--copper); }
.pz-tdisc { fill: var(--accent); }
.pz-dota { fill: var(--accent); }
.pz-dotb { fill: var(--copper); }
.dv-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.dv-c { fill: var(--panel-2); stroke: var(--accent); stroke-width: 2; }
.dv-c.dv-last { fill: var(--accent); }
.ib-lbl.dv-num { fill: var(--accent); font-size: 13px; }
.ib-lbl.dv-num.dv-last { fill: var(--bg); }
.ib-lbl.dv-t { fill: var(--text); }
.ld-b { fill: var(--panel-2); stroke: var(--accent); stroke-width: 1.5; }
.ib-lbl.ld-num { fill: var(--accent); font-size: 13px; }
.ib-lbl.ld-t { fill: var(--text); text-anchor: start; }
.ib-lbl.ld-ot { fill: var(--bg); font-size: 14px; }
.ft-b { fill: var(--panel-2); stroke: var(--border); stroke-width: 1.2; }
.ft-dot { fill: var(--accent); }
.ib-lbl.ft-t { fill: var(--text); font-size: 11.5px; }
.blog-chart.shots { padding: 0; background: #0d0f13; aspect-ratio: 1200 / 630; overflow: hidden; position: relative; }
.shots-stage { position: absolute; left: 0; top: 0; width: 1200px; height: 630px; transform-origin: 0 0; }
.shots-card { position: absolute; left: 0; top: 0; width: 520px; border-radius: 8px; border: 1px solid #2a3038; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); will-change: transform, opacity; }
.shots-card img { display: block; width: 100%; height: auto; border-radius: 7px; max-width: none; }
.shots-badge { position: absolute; right: 24px; bottom: 18px; z-index: 99; padding: 6px 14px; background: #0d0f13; border: 1px solid #2a3038; border-radius: 4px; font: 26px var(--mono); color: #3fb950; }
.shots-cap { padding: 8px 16px; background: #161a20; color: #e7e9ec; font: 500 21px var(--mono); border-radius: 7px 7px 0 0; border-bottom: 1px solid #2a3038; white-space: nowrap; }
.shots-card:has(.shots-cap) img { border-radius: 0 0 7px 7px; }

/* =====================================================================
   Палитра "Neon Terminal": тёмно-синяя база, зелёный главный акцент,
   бирюзовый и жёлтый как вторичные, карточки в стиле окна терминала
   (три цветные точки), свечение только на наведение и в акцентах.
   ===================================================================== */
:root {
  --bg: #070b14;
  --panel: #0b1322;
  --panel-2: #101a2f;
  --border: #1c2c48;
  --text: #e8edf5;
  --text-dim: #8fa0b8;
  --accent: #3ddc76;
  --accent-soft: rgba(61, 220, 118, 0.14);
  --on-accent: #04130a;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;
}

body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(61, 220, 118, 0.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

.site-header { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--accent), var(--cyan) 55%, var(--amber)) 1; }
.eyebrow { color: var(--cyan); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--cyan)); color: var(--on-accent); border-color: transparent; transition: box-shadow 0.25s ease, transform 0.2s ease; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.5), 0 8px 28px rgba(34, 211, 238, 0.24); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

/* карточка как окно терминала */
.card {
  --c: var(--accent);
  position: relative;
  padding-top: 58px;
  background-color: var(--panel);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card, .card:hover {
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 33px, transparent 33px),
    linear-gradient(to bottom, transparent 33px, var(--border) 33px, var(--border) 34px, transparent 34px);
}
.card:hover { background-color: var(--panel-2); border-color: color-mix(in srgb, var(--c) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 14px 38px color-mix(in srgb, var(--c) 14%, transparent); transform: translateY(-2px); }
.card:nth-child(3n+2) { --c: var(--cyan); }
.card:nth-child(3n+3) { --c: var(--amber); }
.work-card { padding-top: 34px; }

/* три точки окна: красная, жёлтая, зелёная, по очереди вспыхивают */
.card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow:
    18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green),
    0 0 0 0 rgba(255, 95, 87, 0), 18px 0 0 0 rgba(254, 188, 46, 0), 36px 0 0 0 rgba(40, 200, 64, 0);
  z-index: 2;
}
/* бегущий огонёк по верхней кромке, цвет карточки */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent) no-repeat,
    var(--c);
  background-size: 35% 100%, 100% 100%;
  background-position: -40% 0, 0 0;
  z-index: 2;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .card::before { animation: dotsGlow 7s ease-in-out infinite; }
  .card:nth-child(2n)::before { animation-delay: -2.3s; }
  .card:nth-child(3n)::before { animation-delay: -4.6s; }
  .card::after { animation: edgeSweep 5s linear infinite; }
  .card:nth-child(2n)::after { animation-delay: -1.7s; }
  .card:nth-child(3n)::after { animation-delay: -3.4s; }
  .card:hover::before { animation-duration: 2.4s; }
  .card:hover::after { animation-duration: 1.8s; }
}
@keyframes dotsGlow {
  0%, 44%, 100% { box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green), 0 0 0 0 rgba(255, 95, 87, 0), 18px 0 0 0 rgba(254, 188, 46, 0), 36px 0 0 0 rgba(40, 200, 64, 0); }
  10% { box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green), 0 0 12px 3px rgba(255, 95, 87, 0.9), 18px 0 0 0 rgba(254, 188, 46, 0), 36px 0 0 0 rgba(40, 200, 64, 0); }
  22% { box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green), 0 0 0 0 rgba(255, 95, 87, 0), 18px 0 12px 3px rgba(254, 188, 46, 0.9), 36px 0 0 0 rgba(40, 200, 64, 0); }
  34% { box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green), 0 0 0 0 rgba(255, 95, 87, 0), 18px 0 0 0 rgba(254, 188, 46, 0), 36px 0 12px 3px rgba(40, 200, 64, 0.9); }
}
@keyframes edgeSweep {
  from { background-position: -40% 0, 0 0; }
  to { background-position: 140% 0, 0 0; }
}

.price { color: var(--amber); }
.card .price { color: var(--amber); }
.card .price .eta { color: var(--cyan); }
.badge, .tag { border-color: rgba(34, 211, 238, 0.45); color: var(--cyan); }
.badge:nth-child(3n+1), .tag:nth-child(3n+1) { border-color: rgba(61, 220, 118, 0.5); color: var(--accent); }
.badge:nth-child(3n+3), .tag:nth-child(3n+3) { border-color: rgba(251, 191, 36, 0.5); color: var(--amber); }
.badge.accent { color: var(--accent); border-color: var(--accent); }

/* Логотип: переливающееся свечение и бегущий блик по буквам */
.site-header .logo { position: relative; }
.site-header .logo img { filter: drop-shadow(0 0 6px rgba(61, 220, 118, 0.35)); }
.site-header .logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.95) 50%, transparent 65%) no-repeat;
  background-size: 50% 100%;
  background-position: -60% 0;
  -webkit-mask: url(/assets/img/logo-header.svg) center / contain no-repeat;
  mask: url(/assets/img/logo-header.svg) center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .site-header .logo img { animation: logoGlow 6s ease-in-out infinite; }
  .site-header .logo::after { animation: logoSweep 4.5s ease-in-out infinite; }
  .site-header .logo:hover img { animation-duration: 2s; }
  .site-header .logo:hover::after { animation-duration: 1.6s; }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(61, 220, 118, 0.55)); }
  33% { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.65)); }
  66% { filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.55)); }
}
@keyframes logoSweep {
  0%, 15% { background-position: -60% 0; }
  65%, 100% { background-position: 160% 0; }
}

/* SMT-схема */
.sm-da { fill: var(--text-dim); }
.sm-mid { opacity: 0.25; }

/* Схема онлайн-записи */
.bk-box { fill: none; stroke: var(--text-dim); stroke-width: 1.2; }
.bk-busy { fill: var(--text-dim); fill-opacity: 0.28; }
.bk-free { fill: none; stroke: var(--accent); stroke-width: 1; }
.bk-sel { fill: var(--accent); }
.bk-field { fill: none; stroke: var(--text-dim); stroke-width: 1; }
.bk-btn { fill: var(--accent); }
.ib-lbl.bk-btnt { fill: var(--bg); font-size: 12px; }
.bk-bot { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.bk-eye { fill: var(--accent); }
.bk-bellp { fill: var(--amber, #fbbf24); stroke: none; }
.bk-ring { fill: none; stroke: var(--amber, #fbbf24); stroke-width: 2; stroke-linecap: round; }
.bk-bub { fill: none; stroke: var(--amber, #fbbf24); stroke-width: 1.2; }

/* карточки «Примеры работ»: скриншоты вместо схемы */
.card-chart.card-shots { padding: 0; background: #0d0f13; }
.card-shots .blog-chart.shots { border: 0; border-radius: 0; margin: 0; }

/* PO3-схема */
.po-box { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1; }
.po-open { opacity: 0.6; }

/* схема evlang */
.ev-chip { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1; }
.ev-box { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1; }
.ev-idx { fill: var(--accent); fill-opacity: 0.25; }

/* =====================================================================
   REDESIGN 2026-11: dark one-page style (navy + a single green accent),
   floating pill header, side section menu on the home page, bento tiles.
   This block comes last and overrides "Neon Terminal" above.
   Rollback: restore styles.css from mysite_backup_redesign_20261104.
   ===================================================================== */
:root {
  --bg: #070d17;
  --panel: #0f1a2c;
  --panel-2: #132238;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9eff8;
  --text-dim: #9aa8bd;
  --accent: #34d17a;
  --accent-soft: rgba(52, 209, 122, 0.12);
  --on-accent: #04120a;
  --cyan: #34d17a;
  --amber: #34d17a;
  --radius: 14px;
  --r-card: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1180px;
}
body {
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 8% 6%, rgba(34, 84, 170, 0.32), transparent 70%),
    radial-gradient(50vw 45vh at 100% 100%, rgba(52, 209, 122, 0.18), transparent 70%);
}
main, .site-footer { position: relative; z-index: 1; }
main { padding-top: 96px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.06; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
a { color: var(--accent); }
.lead-text { color: var(--text-dim); font-size: 18px; max-width: 60ch; }
.eyebrow { color: var(--accent); letter-spacing: 0.06em; text-transform: none; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* sections: no hard lines */
.section { border-bottom: 0; padding-top: 56px; padding-bottom: 56px; }
.section h2 { margin-bottom: 20px; }

/* header: floating pills */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border: 0;
  border-image: none;
  pointer-events: none;
}
.site-header .container {
  max-width: none;
  min-height: 0;
  padding: 16px 24px;
  align-items: flex-start;
}
.site-header .logo,
.site-header .nav,
.site-header .burger { pointer-events: auto; }
.logo {
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(11, 20, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav {
  gap: 2px;
  height: 48px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 20, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav a {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.25s, color 0.25s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.lang-toggle { border: 0; border-radius: 999px; margin-left: 6px; background: rgba(255, 255, 255, 0.05); }
.lang-toggle button { padding: 0 12px; height: 38px; font-size: 12px; font-weight: 600; }
.lang-toggle button.active { border-radius: 999px; }
.burger {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(11, 20, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
}
@media (max-width: 1100px) {
  .site-header .container { justify-content: space-between; }
  .nav {
    position: absolute;
    top: 72px; left: 16px; right: 16px;
    height: auto;
    padding: 10px;
    border-radius: var(--r-card);
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 20, 36, 0.96);
  }
  .nav a { height: 44px; justify-content: start; padding: 0 14px; border-bottom: 0; }
  .nav .lang-toggle { margin: 8px 0 0; align-self: flex-start; }
}

/* animated name logo: KOVALEV, plays once per visit, then stays */
.logo .e-logo { position: relative; display: inline-grid; place-items: center; font-size: 25px; line-height: 1; padding: 0.08em 0.5em 0.08em 0.35em; }
.logo .e-glow { position: absolute; inset: -40% -6%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(52, 209, 122, 0.5) 0%, rgba(19, 158, 154, 0.16) 45%, rgba(19, 158, 154, 0) 70%); opacity: 0; pointer-events: none; }
.logo .e-word { position: relative; display: flex; font: 700 1em/1 "Antonio", "Oswald", sans-serif; letter-spacing: 0.015em; color: var(--text); text-transform: uppercase; }
.logo .e-word span { display: inline-block; opacity: 0; }
.logo .e-mono { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -56%) rotate(-4deg); font: 400 1.9em/1 "Great Vibes", cursive; color: rgba(233, 239, 248, 0.92); text-shadow: 0 0 0.25em rgba(52, 209, 122, 0.55); clip-path: inset(-40% 100% -40% -60%); opacity: 0; pointer-events: none; padding: 0 0.35em; }
.logo .e-logo.go .e-word span { animation: e-in 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 0.08s + 0.15s); }
.logo .e-logo.go .e-glow { animation: e-glow 3.6s ease-in-out forwards; }
.logo .e-logo.go .e-mono { animation: e-write 1.5s cubic-bezier(0.45, 0, 0.2, 1) 1.1s forwards; }
.logo .e-logo.static .e-word span { opacity: 1; }
.logo .e-logo.static .e-mono { opacity: 1; clip-path: none; }
.logo .e-logo.static .e-glow { opacity: 0.45; }
@keyframes e-in { from { opacity: 0; transform: translateY(0.28em) scaleY(1.3); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes e-write { 0% { opacity: 1; clip-path: inset(-40% 100% -40% -60%); } 100% { opacity: 1; clip-path: inset(-40% -60% -40% -60%); } }
@keyframes e-glow { 0%, 12% { opacity: 0; transform: scale(0.7); } 40% { opacity: 0.9; transform: scale(1.05); } 100% { opacity: 0.5; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .logo .e-logo.go * { animation: none !important; }
  .logo .e-word span { opacity: 1; }
  .logo .e-mono { opacity: 1; clip-path: none; }
  .logo .e-glow { opacity: 0.45; }
}

/* buttons */
.btn { border-radius: 999px; padding: 14px 26px; font-size: 15px; font-weight: 700; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-primary, .btn-primary:hover { background: var(--accent); background-image: none; color: var(--on-accent); box-shadow: none; }
.btn-primary:hover { background: #4be08c; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.16); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* cards: no terminal dots or running lights */
.card, .card:hover { background-image: none; }
.card::before, .card::after { content: none; animation: none; }
.card {
  padding: 28px;
  border-radius: var(--r-card);
  background-color: var(--panel);
  border: 1px solid var(--border);
}
.card:hover { background-color: var(--panel-2); border-color: rgba(255, 255, 255, 0.18); box-shadow: none; transform: translateY(-3px); }
.work-card { padding: 0; }
.card h3 { font-weight: 800; letter-spacing: -0.01em; }
.price, .card .price { color: var(--accent); }
.card .price .eta { color: var(--text-dim); }
.badge, .tag { border-radius: 999px; border-color: rgba(255, 255, 255, 0.16); color: #c7d2e3; text-transform: none; letter-spacing: 0; font-size: 12px; }
.quote { border-radius: var(--r-card); padding: 28px; background: var(--panel); }
.quote p { font-family: var(--sans); font-style: normal; font-size: 17px; font-weight: 500; line-height: 1.5; }
.form-card { border-radius: 24px; background: var(--panel); border: 1px solid var(--border); padding: 32px; }
.field input, .field select, .field textarea { border-radius: 12px; background: #08111f; border: 1px solid rgba(255, 255, 255, 0.16); padding: 14px 16px; font-size: 16px; }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; margin-top: 24px; }

/* home */
.hero { padding-top: 40px; padding-bottom: 56px; }
.hero-split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-col + .hero-col::before { content: none; }
.hero-col h1 { font-size: clamp(38px, 5.2vw, 68px); max-width: 14ch; margin-bottom: 20px; }
.hero-col .lead-text { font-size: 19px; max-width: 46ch; margin-bottom: 30px; }
.hero-col .btn-row { margin-bottom: 0; }
.hero-col .btn-row .btn { padding: 14px 26px; font-size: 15px; }
.hero-shots { position: relative; aspect-ratio: 5 / 4; perspective: 1400px; }
.hero-shots figure { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12); transition: transform 0.6s var(--ease); }
.hero-shots figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-shots .s1 { width: 78%; aspect-ratio: 16 / 10; right: 0; top: 0; transform: rotateY(-8deg) rotateX(3deg); }
.hero-shots .s2 { width: 66%; aspect-ratio: 16 / 10; left: 0; top: 30%; transform: rotateY(6deg) rotateX(3deg); }
.hero-shots .s3 { width: 60%; aspect-ratio: 16 / 10; right: 6%; bottom: 0; transform: rotateY(-5deg) rotateX(2deg); }
.hero-shots:hover .s1 { transform: rotateY(-3deg) translateY(-6px); }
.hero-shots:hover .s2 { transform: rotateY(2deg) translateY(4px); }
.hero-shots:hover .s3 { transform: rotateY(-2deg) translateY(-4px); }

.stats-strip { padding-top: 8px; padding-bottom: 8px; }
.stats-strip .stats { margin: 0; border-block: 1px solid var(--border); padding: 0; gap: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-strip .stat { padding: 28px 24px 28px 0; }
.stats-strip .stat + .stat { padding-left: 28px; border-left: 1px solid var(--border); }
.stat .v { font: 800 clamp(32px, 3.8vw, 50px)/1 var(--sans); letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 8px; font-size: 15px; color: var(--text-dim); max-width: 26ch; }

/* services bento (order: web, bots, trading, book) */
#services { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 16px; }
#services .card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 28px; }
#services .card h3 { font-size: 22px; }
#services .card p { font-size: 15px; }
#services .card[href*="websites"] { order: -2; grid-column: 1 / 3; grid-row: span 2; min-height: 480px; }
#services .card[href*="websites"]::before { width: 100%; height: 100%; border-radius: 0; box-shadow: none; animation: none; left: 0; top: 0; content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 30% 20%, rgba(52, 209, 122, 0.22), transparent 70%), url("/assets/img/web-card.svg") center 32px / min(88%, 520px) auto no-repeat; opacity: 1; z-index: 0; transition: transform 0.8s var(--ease); }
#services .card[href*="websites"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 13, 23, 0.92) 76%, rgba(7, 13, 23, 0.97)); z-index: 0; animation: none; height: auto; }
#services .card[href*="websites"]:hover::before { transform: scale(1.04); }
#services .card[href*="development"] { order: -1; grid-column: 3 / 5; background: linear-gradient(135deg, rgba(52, 209, 122, 0.16), rgba(15, 26, 44, 0.92) 60%); }
#services .card[href*="book"] { padding: 0; background: #05080f; }
#services .card[href*="book"]::before { width: 100%; height: 100%; border-radius: 0; box-shadow: none; animation: none; left: 0; top: 0; content: ""; position: absolute; inset: 0; background: url("/assets/img/book-cover-ru.jpg") center top / 100% auto no-repeat, #05080f; opacity: 1; z-index: 0; }
#services .card[href*="book"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, #05080f 64%); z-index: 0; animation: none; height: auto; }
#services .card[href*="book"] h3, #services .card[href*="book"] p { position: relative; z-index: 1; padding: 0 24px; }
#services .card[href*="book"] p { padding-bottom: 24px; margin-top: 8px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#services .card[href*="book"], #services .card[href*="trading"] { min-height: 300px; }
html[lang="en"] #services .card[href*="book"]::before { background-image: url("/assets/img/book-cover-en.jpg"); }
html[lang="bg"] #services .card[href*="book"]::before { background-image: url("/assets/img/book-cover-bg.jpg"); }
#services .card > * { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-shots { aspect-ratio: 4 / 3; }
  .stats-strip .stats { grid-template-columns: 1fr; }
  .stats-strip .stat + .stat { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  #services { grid-template-columns: 1fr 1fr; }
  #services .card[href*="websites"], #services .card[href*="development"] { grid-column: 1 / 3; grid-row: auto; min-height: 320px; }
}
/* phones: one column so the book card keeps its cover readable and text never overlaps the title art */
@media (max-width: 560px) {
  #services { grid-template-columns: 1fr; }
  #services .card, #services .card[href*="websites"], #services .card[href*="development"] { grid-column: 1; min-height: 240px; }
  #services .card[href*="websites"] { min-height: 340px; }
  #services .card[href*="websites"]::before { background-position: 0 0, center 18px; background-size: 100% 100%, min(86%, 360px) auto; }
  #services .card[href*="book"] { min-height: 420px; }
  #services .card[href*="book"]::after { background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 15, 0.96) 78%); }
}

/* trading band */
.band-box { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; padding: 48px; border-radius: 28px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--border); }
.band-box h2 { max-width: 16ch; }
.band-box .stats { display: grid; margin: 0; border: 0; padding: 0; gap: 0; align-content: center; }
.band-box .stat { padding: 18px 0; border-top: 1px solid var(--border); }
.band-box .stat:first-child { border-top: 0; }
@media (max-width: 860px) { .band-box { grid-template-columns: 1fr; padding: 28px; } }

/* about and reviews */
.about-grid.has-photo { grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: center; }
.about-photo { border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
@media (max-width: 860px) { .about-grid.has-photo { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }
#testimonials { grid-template-columns: 1.25fr 1fr; }
#testimonials .quote:first-child { grid-row: span 2; background: linear-gradient(160deg, rgba(52, 209, 122, 0.1), var(--panel) 55%); }
#testimonials .quote:first-child p { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 860px) { #testimonials { grid-template-columns: 1fr; } #testimonials .quote:first-child { grid-row: auto; } }

/* floating section menu (home only) */
.side { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--r-card); background: rgba(11, 20, 36, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.side a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 14px; border-radius: 14px; font: 600 12.5px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.side a:hover { color: var(--text); text-decoration: none; }
.side a.on { background: var(--accent-soft); color: var(--accent); }
@media (min-width: 1280px) { body[data-page="home"] main > .container, body[data-page="home"] .hero { padding-left: 150px; } }
@media (max-width: 1279px) { .side { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .card, .hero-shots figure { transition: none; }
}

/* hero showcase: one flat browser frame, real screenshots cross-fade */
.showcase { position: relative; }
.showcase .frame { border-radius: 20px; overflow: hidden; background: #0b1424; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.showcase .bar { display: flex; align-items: center; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.showcase .url { padding: 5px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font: 500 13px var(--mono); color: var(--text-dim); }
.showcase .viewport { position: relative; aspect-ratio: 16 / 10; background: #0b1424; }
.showcase .viewport img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.9s var(--ease); }
.showcase .viewport img.on { opacity: 1; }
.sc-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 0 6px; }
.sc-name { font: 600 14px var(--sans); color: var(--text-dim); }
.sc-dots { display: flex; gap: 4px; }
.sc-dots button { position: relative; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; }
.sc-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transition: background 0.25s, transform 0.25s; }
.sc-dots button.on::after { background: var(--accent); transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) { .showcase .viewport img { transition: none; } }

/* remove the old logo shimmer overlay (mask of logo-header.svg) */
.site-header .logo::after { content: none; display: none; animation: none; -webkit-mask: none; mask: none; }
.site-header .logo img { animation: none; filter: none; }

/* hero shots v2: four real page tops at different angles */
.hero-shots { position: relative; aspect-ratio: 1 / 1; perspective: 1600px; }
.hero-shots figure { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12); transition: transform 0.6s var(--ease); }
.hero-shots figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-shots .s1 { width: 70%; aspect-ratio: 16 / 10; right: 0; top: 2%; transform: rotateY(-12deg) rotateX(4deg) rotateZ(2deg); z-index: 1; }
.hero-shots .s2 { width: 64%; aspect-ratio: 16 / 10; left: 0; top: 24%; transform: rotateY(10deg) rotateX(3deg) rotateZ(-3deg); z-index: 2; }
.hero-shots .s3 { width: 62%; aspect-ratio: 16 / 10; right: 2%; bottom: 14%; transform: rotateY(-8deg) rotateX(2deg) rotateZ(2deg); z-index: 3; }
.hero-shots .s4 { width: 58%; aspect-ratio: 16 / 10; left: 6%; bottom: 0; transform: rotateY(8deg) rotateX(2deg) rotateZ(-2deg); z-index: 4; }
.hero-shots:hover .s1 { transform: rotateY(-6deg) rotateZ(1deg) translateY(-8px); }
.hero-shots:hover .s2 { transform: rotateY(5deg) rotateZ(-1.5deg) translateY(-4px); }
.hero-shots:hover .s3 { transform: rotateY(-4deg) rotateZ(1deg) translateY(6px); }
.hero-shots:hover .s4 { transform: rotateY(4deg) rotateZ(-1deg) translateY(8px); }
@media (max-width: 860px) { .hero-shots { aspect-ratio: 5 / 4; } }
@media (prefers-reduced-motion: reduce) { .hero-shots figure { transition: none; } }

/* hero shots fly in from beyond the screen edges, then settle (plays once) */
.hero { overflow-x: clip; }
@keyframes hs-in { from { translate: var(--fx) var(--fy); rotate: var(--fr); opacity: 0; } 12% { opacity: 1; } to { translate: 0 0; rotate: 0deg; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-shots figure { animation: hs-in 1.4s var(--ease) both; animation-delay: calc(var(--d) * 0.16s + 0.25s); }
  .hero-shots .s1 { --fx: 75vw; --fy: -70vh; --fr: 28deg; --d: 0; }
  .hero-shots .s2 { --fx: -90vw; --fy: 10vh; --fr: -35deg; --d: 1; }
  .hero-shots .s3 { --fx: 85vw; --fy: 18vh; --fr: 24deg; --d: 2; }
  .hero-shots .s4 { --fx: -80vw; --fy: 24vh; --fr: -26deg; --d: 3; }
}

/* hero shots: wrappers carry the scroll-out animation, figures carry the fly-in */
.hero-shots .fly { position: absolute; inset: 0; pointer-events: none; }
.hero-shots .fly figure { pointer-events: auto; }
@keyframes hs-out { from { translate: 0 0; rotate: 0deg; opacity: 1; } to { translate: var(--fx) var(--fy); rotate: var(--fr); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-shots .f1 { --fx: 75vw; --fy: -70vh; --fr: 28deg; --d: 0; }
  .hero-shots .f2 { --fx: -90vw; --fy: 10vh; --fr: -35deg; --d: 1; }
  .hero-shots .f3 { --fx: 85vw; --fy: 18vh; --fr: 24deg; --d: 2; }
  .hero-shots .f4 { --fx: -80vw; --fy: 24vh; --fr: -26deg; --d: 3; }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-shots .fly { animation: hs-out linear both; animation-timeline: scroll(root block); animation-range: 0 62vh; }
    /* stacked layout (phones): shots sit below the text, so tie the fly-out to their own exit from the viewport, not to scroll 0 */
    @media (max-width: 860px) {
      .hero-shots .fly { animation-timeline: view(block); animation-range: exit 0% exit 90%; }
    }
  }
}

/* contact page: large animated logo in the free right column, shimmering */
.contact-logo { display: none; }
@media (min-width: 1180px) {
  .contact-logo { display: block; position: fixed; right: 4vw; top: 50%; transform: translateY(-50%); width: min(24vw, 380px); pointer-events: none; z-index: 0; }
  .contact-logo svg { width: 100%; height: auto; overflow: visible; }
}
.cl-word { font: 700 150px "Antonio", "Oswald", sans-serif; letter-spacing: 3px; }
.cl-k { font: 400 230px "Great Vibes", cursive; }
.cl-trade { font: 600 26px "Manrope", sans-serif; letter-spacing: 22px; }
.cl-glow { transform-box: fill-box; transform-origin: center; }
.cl-sweep { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .cl-base .cl-word { animation: cl-in 1.2s var(--ease) 0.2s both; }
  .cl-base .cl-k { animation: cl-wipe 1.6s cubic-bezier(0.45, 0, 0.2, 1) 1.2s both; }
  .cl-base .cl-trade { animation: cl-fade 1.2s ease 2s both; }
  .cl-glow { animation: cl-glow 7s ease-in-out infinite; }
  .cl-sweep { animation: cl-sweep 5.5s ease-in-out 2.8s infinite; }
}
@keyframes cl-in { from { opacity: 0; transform: translateY(24px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cl-wipe { from { opacity: 0; clip-path: inset(-20% 100% -20% -20%); } to { opacity: 1; clip-path: inset(-20% -20% -20% -20%); } }
@keyframes cl-glow { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes cl-sweep { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(880px); } }

/* =====================================================================
   Scroll-pinned story stage on /development: while the section is pinned,
   scroll progress switches the scene (tab, typed brief, result panel, backdrop).
   Pure CSS scroll-driven animations; hidden where unsupported or reduced motion.
   ===================================================================== */
.stage { display: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage { display: block; position: relative; height: 430vh; view-timeline-name: --stg; view-timeline-axis: block; margin: 40px 0 20px; }
    .stage-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; border-radius: 0; }
    .stage .sc { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --stg; animation-range: cover 0% cover 100%; }
    .stage-title { position: absolute; left: 6vw; top: 14vh; z-index: 5; max-width: 12ch; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; color: var(--text); text-shadow: 0 2px 30px rgba(7, 13, 23, 0.6); }
    .stage-bg { position: absolute; inset: 0; z-index: 0; }
    .stage-bg i { position: absolute; inset: 0; opacity: 0; }
    .stage-bg .b1 { background: radial-gradient(60% 70% at 25% 60%, rgba(52, 209, 122, 0.42), transparent 70%), radial-gradient(60% 60% at 90% 10%, rgba(34, 84, 170, 0.55), transparent 70%), #08121f; }
    .stage-bg .b2 { background: radial-gradient(60% 70% at 25% 60%, rgba(19, 158, 154, 0.5), transparent 70%), radial-gradient(60% 60% at 90% 10%, rgba(80, 60, 190, 0.45), transparent 70%), #08121f; }
    .stage-bg .b3 { background: radial-gradient(60% 70% at 25% 60%, rgba(34, 120, 220, 0.5), transparent 70%), radial-gradient(60% 60% at 90% 10%, rgba(52, 209, 122, 0.35), transparent 70%), #08121f; }
    .stage-bg .b4 { background: radial-gradient(60% 70% at 25% 60%, rgba(52, 209, 122, 0.55), transparent 70%), radial-gradient(60% 60% at 90% 10%, rgba(19, 158, 154, 0.5), transparent 70%), #08121f; }
    .prompt { position: absolute; left: 6vw; top: 46vh; z-index: 4; width: min(520px, 42vw); border-radius: 20px; background: rgba(15, 20, 30, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; }
    .tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .tab { padding: 9px 16px; border-radius: 10px 10px 0 0; font: 600 13.5px var(--sans); color: var(--text-dim); }
    .ptext { position: relative; min-height: 104px; padding: 18px 70px 18px 20px; }
    .pt { position: absolute; left: 20px; right: 70px; top: 18px; margin: 0; font: 600 17px/1.4 var(--sans); color: var(--text); }
    .send { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; }
    .panel { position: absolute; right: 4vw; top: 12vh; bottom: 12vh; width: min(56vw, 860px); z-index: 3; border-radius: 22px; background: #0b0f17; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
    .plabels { position: relative; height: 20px; font: 500 13px var(--mono); color: var(--text-dim); }
    .plabels span { position: absolute; left: 0; top: 0; opacity: 0; }
    .pimgs { position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; background: #070b12; }
    .pimgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
    .wire { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
    .wire path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.9; }
    .stage-hint { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); z-index: 5; font: 500 13px var(--mono); color: rgba(233, 239, 248, 0.6); }
    @media (max-width: 900px) {
      .stage-title { top: 10vh; font-size: 30px; }
      .prompt { left: 5vw; right: 5vw; width: auto; top: 30vh; }
      .panel { left: 5vw; right: 5vw; width: auto; top: auto; bottom: 8vh; height: 36vh; }
      .wire { display: none; }
      .tabs { gap: 2px; padding: 10px 8px 0; }
      .tab { flex: 1 1 auto; min-width: 0; padding: 9px 6px; font-size: 12.5px; text-align: center; white-space: nowrap; }
      .ptext { min-height: 150px; padding: 14px 64px 14px 16px; }
      .pt { left: 16px; right: 64px; top: 14px; font-size: 15px; line-height: 1.4; }
      .send { right: 12px; bottom: 12px; width: 38px; height: 38px; }
    }
    @keyframes bgK1 {
      0%, 0.00% { opacity: 1; }
      33.00% { opacity: 1; }
      36.20%, 100% { opacity: 0; }
    }
    .stage-bg .b1 { animation-name: bgK1; }
    .stage-bg .b1 { animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes imgK1 {
      0%, 0.00% { opacity: 1; transform: translateY(0) scale(1); }
      33.00% { opacity: 1; transform: translateY(0) scale(1); }
      36.20%, 100% { opacity: 0; transform: translateY(24px) scale(0.97); }
    }
    .pimgs .i1 { animation-name: imgK1; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes lblK1 {
      0%, 0.00% { opacity: 1; }
      33.00% { opacity: 1; }
      36.20%, 100% { opacity: 0; }
    }
    .plabels .l1 { animation-name: lblK1; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes ptK1 {
      0%, 19.00% { opacity: 0; clip-path: inset(-6% 100% -6% 0); }
      20.00% { opacity: 1; clip-path: inset(-6% 100% -6% 0); }
      28.20% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
      33.00% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
      34.80%, 100% { opacity: 0; clip-path: inset(-6% 0% -6% 0); }
    }
    .ptext .p1 { animation-name: ptK1; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes tabK1 {
      0% { background: var(--accent); color: var(--on-accent); }
      33.00% { background: var(--accent); color: var(--on-accent); }
      36.20%, 100% { background: transparent; color: var(--text-dim); }
    }
    .tabs .t1 { animation-name: tabK1; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes wireK1 {
      0%, 19.20% { stroke-dashoffset: 1; }
      27.20% { stroke-dashoffset: 0; }
      100%% { stroke-dashoffset: 0; }
    }
    @keyframes bgK2 {
      0%, 33.00% { opacity: 0; }
      36.20% { opacity: 1; }
      48.40% { opacity: 1; }
      51.60%, 100% { opacity: 0; }
    }
    .stage-bg .b2 { animation-name: bgK2; }
    .stage-bg .b2 { animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes imgK2 {
      0%, 33.00% { opacity: 0; transform: translateY(24px) scale(0.97); }
      36.20% { opacity: 1; transform: translateY(0) scale(1); }
      48.40% { opacity: 1; transform: translateY(0) scale(1); }
      51.60%, 100% { opacity: 0; transform: translateY(24px) scale(0.97); }
    }
    .pimgs .i2 { animation-name: imgK2; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes lblK2 {
      0%, 33.00% { opacity: 0; }
      36.20% { opacity: 1; }
      48.40% { opacity: 1; }
      51.60%, 100% { opacity: 0; }
    }
    .plabels .l2 { animation-name: lblK2; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes ptK2 {
      0%, 34.40% { opacity: 0; clip-path: inset(-6% 100% -6% 0); }
      35.40% { opacity: 1; clip-path: inset(-6% 100% -6% 0); }
      43.60% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
      48.40% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
      50.20%, 100% { opacity: 0; clip-path: inset(-6% 0% -6% 0); }
    }
    .ptext .p2 { animation-name: ptK2; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes tabK2 {
      0%, 33.00% { background: transparent; color: var(--text-dim); }
      36.20% { background: var(--accent); color: var(--on-accent); }
      48.40% { background: var(--accent); color: var(--on-accent); }
      51.60%, 100% { background: transparent; color: var(--text-dim); }
    }
    .tabs .t2 { animation-name: tabK2; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes wireK2 {
      0%, 34.60% { stroke-dashoffset: 1; }
      42.60% { stroke-dashoffset: 0; }
      100%% { stroke-dashoffset: 0; }
    }
    @keyframes bgK3 {
      0%, 48.40% { opacity: 0; }
      51.60% { opacity: 1; }
      63.80% { opacity: 1; }
      67.00%, 100% { opacity: 0; }
    }
    .stage-bg .b3 { animation-name: bgK3; }
    .stage-bg .b3 { animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes imgK3 {
      0%, 48.40% { opacity: 0; transform: translateY(24px) scale(0.97); }
      51.60% { opacity: 1; transform: translateY(0) scale(1); }
      63.80% { opacity: 1; transform: translateY(0) scale(1); }
      67.00%, 100% { opacity: 0; transform: translateY(24px) scale(0.97); }
    }
    .pimgs .i3 { animation-name: imgK3; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes lblK3 {
      0%, 48.40% { opacity: 0; }
      51.60% { opacity: 1; }
      63.80% { opacity: 1; }
      67.00%, 100% { opacity: 0; }
    }
    .plabels .l3 { animation-name: lblK3; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes ptK3 {
      0%, 49.80% { opacity: 0; clip-path: inset(-6% 100% -6% 0); }
      50.80% { opacity: 1; clip-path: inset(-6% 100% -6% 0); }
      59.00% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
      63.80% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
      65.60%, 100% { opacity: 0; clip-path: inset(-6% 0% -6% 0); }
    }
    .ptext .p3 { animation-name: ptK3; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes tabK3 {
      0%, 48.40% { background: transparent; color: var(--text-dim); }
      51.60% { background: var(--accent); color: var(--on-accent); }
      63.80% { background: var(--accent); color: var(--on-accent); }
      67.00%, 100% { background: transparent; color: var(--text-dim); }
    }
    .tabs .t3 { animation-name: tabK3; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes wireK3 {
      0%, 50.00% { stroke-dashoffset: 1; }
      58.00% { stroke-dashoffset: 0; }
      100%% { stroke-dashoffset: 0; }
    }
    @keyframes bgK4 {
      0%, 63.80% { opacity: 0; }
      67.00% { opacity: 1; }
      100% { opacity: 1; }
    }
    .stage-bg .b4 { animation-name: bgK4; }
    .stage-bg .b4 { animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes imgK4 {
      0%, 63.80% { opacity: 0; transform: translateY(24px) scale(0.97); }
      67.00% { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    .pimgs .i4 { animation-name: imgK4; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes lblK4 {
      0%, 63.80% { opacity: 0; }
      67.00% { opacity: 1; }
      100% { opacity: 1; }
    }
    .plabels .l4 { animation-name: lblK4; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes ptK4 {
      0%, 65.20% { opacity: 0; clip-path: inset(-6% 100% -6% 0); }
      66.20% { opacity: 1; clip-path: inset(-6% 100% -6% 0); }
      74.40% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
      100% { opacity: 1; clip-path: inset(-6% 0% -6% 0); }
    }
    .ptext .p4 { animation-name: ptK4; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes tabK4 {
      0%, 63.80% { background: transparent; color: var(--text-dim); }
      67.00% { background: var(--accent); color: var(--on-accent); }
      100% { background: var(--accent); color: var(--on-accent); }
    }
    .tabs .t4 { animation-name: tabK4; animation-timeline: --stg; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; }
    @keyframes wireK4 {
      0%, 65.40% { stroke-dashoffset: 1; }
      73.40% { stroke-dashoffset: 0; }
      100%% { stroke-dashoffset: 0; }
    }
    .wire path { animation: none; }
    @keyframes wireAll {
      0%, 19.20% { stroke-dashoffset: 1; }
      27.20% { stroke-dashoffset: 0; }
      34.60% { stroke-dashoffset: 1; }
      42.60% { stroke-dashoffset: 0; }
      50.00% { stroke-dashoffset: 1; }
      58.00% { stroke-dashoffset: 0; }
      65.40% { stroke-dashoffset: 1; }
      73.40% { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: 0; }
    }
    .wire path { animation: wireAll linear both; animation-timeline: --stg; animation-range: cover 0% cover 100%; }
  }
}
