/* Сапфиро-мятный дизайн с сайта-визитки (?v=174) — переносится в Flask.
   Черновой каркас заменён; дальше правим как на статичной версии. */

:root {
  --bg: #0F172A;          /* почти чёрный с синим подтоном */
  --card: #141C2B;        /* карточки: глубокий сине-графитовый */
  --card-hover: #1B2438;  /* hover карточек */
  --ink: #F4F1EA;         /* текст: фарфор */
  --muted: #94A3B8;       /* вторичный текст */
  --line: #2A3547;        /* тонкие границы */
  --green: #5EEAD4;       /* акцентный синий: заголовки-акценты, ссылки, результат */
  --gold: #5EEAD4;        /* нумерация, линии */
  --lime: #F4F1EA;        /* кнопки на тёмном фоне: фарфор */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }  /* ни один элемент не может сдвигать экран по горизонтали */
body {
  font-family: "Manrope", -apple-system, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;  /* футер прижат к низу экрана */
}
.wrap { max-width: 1290px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }
.draw { height: 1px; background: var(--gold); width: 0; transition: width 1.2s ease .2s; }
.reveal.on .draw { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw { width: 100%; transition: none; }
  .hero-lines span { opacity: 1; transform: none; animation: none; }
  .ray { stroke-dashoffset: 0; animation: none; }
  .ray-dot { opacity: 1; animation: none; }
  .ray-run { display: none; }
  * { animation: none !important; }
}

/* ---------- подсветка за курсором ---------- */
.spot {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 40%), rgba(93,120,214,.06), transparent 65%);
}
body.has-spot .spot { opacity: 1; }

/* ---------- навигация ---------- */
nav { position: sticky; top: 0; z-index: 50; background: rgba(15,23,42,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); color: var(--ink); }
nav .links a { color: var(--muted); }
nav .burger { color: var(--ink); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.logo em { font-family: "Archivo", sans-serif; font-style: normal; color: #5EEAD4; }
.links { display: flex; gap: 34px; }
.links a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .25s; }
.links a:hover { color: #5EEAD4; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 14px; cursor: pointer; }

/* ---------- hero ---------- */
header.hero { padding: 110px 0 110px; } /* низ = 110px как у секций — одинаковые зазоры */
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 40px; }
.hero-art { display: grid; place-items: center; padding-left: 200px; }
.rays { width: min(100%, 430px); height: auto; overflow: visible; }
/* лучи-снежинки: точки вместо линий, рваными россыпями */
.ray { stroke-linecap: round; stroke-dasharray: 0 0.062 0.003 0.09 0.002 0.11; stroke-dashoffset: 0; animation: none; }
.ray.sp { stroke-width: 3.4; }
.ray.gh { stroke-width: 2.4; }
.ray-run { display: none; }
.ray-run.sp { stroke-width: 3.6; }
.ray-run.gh { stroke-width: 2.6; }
.ray-dot { opacity: 0; animation: dotIn .5s ease forwards; }
.ray-dot.sp { fill: #5EEAD4; }
.ray-dot.gh { fill: rgba(226,232,240,.75); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes rayIn { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #5EEAD4; margin-bottom: 26px; }
h1 { font-family: "Archivo", sans-serif; font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.012em; color: var(--ink); }
h1 em { font-style: normal; color: var(--ink); }
.hero-lines span { display: block; opacity: 0; transform: translateY(16px); animation: rise .65s ease forwards; }
.hero-lines span:nth-child(2) { animation-delay: .16s; }
.hero-lines span:nth-child(3) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.sub { color: var(--muted); font-size: 18px; max-width: 34em; margin: 30px 0 40px; }
.cta-row { display: flex; gap: 44px; flex-wrap: wrap; padding-top: 36px; }
.cta-row .btn { width: 216px; text-align: center; box-sizing: border-box; }
.cta-row .btn-ghost { margin-left: 72px; }
.btn { display: inline-block; font: 600 15px/1 "Manrope", sans-serif; padding: 17px 30px; border-radius: 2px; text-decoration: none; transition: transform .25s, background .25s, border-color .25s, color .25s; }
.btn-primary, .btn-ghost { background: transparent; color: var(--muted); border: 1px solid #34425A; }
.btn-primary:hover, .btn-ghost:hover { background: rgba(148,163,184,.08); border-color: #5EEAD4; color: #5EEAD4; }
.btn-primary:hover { transform: translateY(-2px); }

/* ---------- секции ---------- */
section { padding: 110px 0; }
.sec-head { margin-bottom: 56px; }
h2 { font-family: "Archivo", sans-serif; font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; }
h2 em { font-style: italic; color: var(--green); }
.sec-sub { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 40em; }

/* ---- кейсы (фарфоровая секция, тёмные карточки) ---- */
#cases { background: var(--bg); }
#cases .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
#cases .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
#cases .sec-sub { color: var(--muted); }
.cases { display: grid; gap: 24px; }
.cases-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
.case.wide { grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: stretch; display: grid; border-color: var(--line); }
.case-text { display: flex; flex-direction: column; gap: 6px; }
.case-media { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.case { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 20px 20px 17px; display: flex; flex-direction: column; gap: 8px; transition: transform .3s, border-color .3s, background .3s, box-shadow .3s; position: relative; box-shadow: 0 10px 26px rgba(3,6,12,.32); }
.case:hover { transform: translateY(-3px); border-color: #3E4C63; background: var(--card-hover); box-shadow: 0 14px 34px rgba(3,6,12,.42); }
.case-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ctag { font-size: 11px; font-weight: 600; color: #0F172A; background: var(--lime); border-radius: 3px; padding: 4px 11px; } /* пилюли заменены на прямоугольники */
.ctag.ghost { background: rgba(148,163,184,.07); color: var(--muted); border: 1px solid var(--line); transition: color .25s, border-color .25s, background .25s; }
.ctag.ghost:hover { color: #5EEAD4; border-color: rgba(94,234,212,.45); background: rgba(45,212,191,.08); }
h3 { font-family: "Archivo", sans-serif; font-weight: 500; font-size: 17.5px; line-height: 1.3; transition: color .25s; }
.case h3:hover, .case h3 a:hover { color: #5EEAD4; }
.case h3 a { color: inherit; text-decoration: none; }
.case dl { display: grid; gap: 5px; margin-top: 0; }
.case dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; transition: color .25s; }
.case dd { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.result { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(169,178,193,.4); }
.result .rv { font-family: "Archivo", sans-serif; font-size: 16px; color: var(--ink); line-height: 1.35; }
.result .rl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.case .result { margin-top: auto; }
.case .tech { display: flex; flex-wrap: wrap; gap: 6px; }
.case .tech span { font-size: 11px; color: #5EEAD4; background: rgba(45,212,191,.1); border: none; border-radius: 3px; padding: 3px 8px; line-height: 1; letter-spacing: .02em; }
.case .btn { align-self: flex-start; margin-top: 2px; padding: 8px 14px; border-radius: 2px; font-size: 12.5px; }

/* — слайд-шоу — */
.shots { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0B0F16; }
.frame { display: none; }
.frame.on { display: block; }
.frame img { display: block; width: 100%; height: auto; }
.cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px; font-size: 12px; color: #F4F1EA;
  background: linear-gradient(180deg, rgba(6,9,15,0), rgba(6,9,15,.8));
}
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(8,11,18,.6); color: #F4F1EA; font-size: 15px; line-height: 1;
}
.arrow:hover { background: rgba(8,11,18,.85); }
.arrow.prev { left: 10px; } .arrow.next { right: 10px; }
.dots { position: absolute; right: 12px; top: 10px; display: flex; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(244,240,231,.4); cursor: pointer; border: 0; padding: 0; }
.dot.on { background: var(--green); }
.counter { margin-top: 8px; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.case .shots { border-color: rgba(169,178,193,.4); }

/* — TG-диалог в карточке Work Bot — */
.case .tg { background: #1B2534; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.case .tg-head { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.case .ava { width: 26px; height: 26px; border-radius: 50%; background: #5EEAD4; color: #F4F1EA; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.case .tg-name { font-weight: 600; font-size: 13px; }
.case .tg-status { font-size: 10px; color: #5EEAD4; }
.case .tg-body { padding: 11px 11px 13px; display: flex; flex-direction: column; gap: 7px; }
.case .msg { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; opacity: 0; transform: translateY(7px); transition: opacity .4s ease, transform .4s ease; }
.case .msg.on { opacity: 1; transform: none; }
.case .msg.user { align-self: flex-end; background: #1B2534; color: var(--ink); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.case .msg.bot  { align-self: flex-start; background: #1B2534; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.case .msg .src { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #5EEAD4; border: 1px solid rgba(94,234,212,.45); }
.case .typing { align-self: flex-start; background: #1B2534; border: 1px solid var(--line); border-radius: 12px; border-bottom-left-radius: 4px; padding: 9px 11px; display: flex; gap: 4px; opacity: 0; transition: opacity .3s; }
.case .typing.on { opacity: 1; }
.case .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: wblink 1.1s infinite; }
.case .typing i:nth-child(2) { animation-delay: .18s; }
.case .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes wblink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---- подход ---- */
#approach .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
#approach .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
#approach .steps { margin-top: 0; }
.approach-note { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 40em; }
.approach .big { font-family: "Manrope", sans-serif; font-weight: 400; font-size: 18px; line-height: 1.5; color: var(--muted); margin-top: 16px; max-width: 40em; }
.approach .big em { font-style: italic; color: var(--green); }
.steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
.step { position: relative; z-index: 1; width: 86%; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 15px 20px; box-shadow: rgba(2,12,27,.7) 0 10px 30px -15px; transition: border-color .3s, background .3s, transform .3s; }
.step:nth-child(odd) { justify-self: start; }   /* первая — слева */
.step:nth-child(even) { justify-self: end; }    /* вторая — справа */
.step:nth-child(3n) { justify-self: start; }    /* третья — снова слева */
.step + .step { margin-top: -16px; } /* каждая чуть наползает на предыдущую, зигзагом */
.step:hover { border-color: #3E4C63; background: var(--card-hover); z-index: 5; }
.step .snum { font-family: "Archivo", sans-serif; color: #5EEAD4; font-size: 26px; }
.step .stx { font-size: 15.5px; font-weight: 500; margin-top: 0; color: var(--ink); transition: color .25s; }
.step:hover .stx { color: #5EEAD4; }
.step .sdes { color: var(--ink); font-size: 13.5px; line-height: 1.45; margin-top: 4px; }

/* ---- контакты ---- */
.contact-wrap { background: var(--bg); border-top: 1px solid var(--line); }
.contact-wrap h2 { color: var(--ink); }
.contact-wrap h2 em { color: var(--green); }
.contact { padding: 90px 0 90px; }
.contact-wrap .wrap { display: grid; grid-template-columns: .9fr .8fr; gap: 16px 64px; align-items: center; }
#contact .social-line { margin-top: 16px; font-size: 14px; color: var(--muted); }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.c-item { display: flex; align-items: center; gap: 13px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .25s; }
.c-item svg { width: 18px; height: 18px; flex: 0 0 18px; color: #5EEAD4; transition: color .25s; }
.c-item:hover { color: var(--ink); }
.c-item:hover svg { color: var(--ink); }
.contact-wrap .sec-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.contact-list { grid-column: 1; grid-row: 2; }
.contact-cta { grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: end; }
#contact .sec-head p { margin-top: 16px; max-width: 26em; }
#contact .social-line { margin-top: 28px; font-size: 14px; color: var(--muted); }
#contact .social-line a { color: #5EEAD4; text-decoration: none; transition: color .25s; }
.social-line a:hover { color: var(--ink); }
.btn-lime { background: var(--lime); color: #0F172A; font-size: 16px; padding: 18px 34px; }
.btn-lime:hover { transform: translateY(-2px); background: #FFFFFF; }

footer { border-top: 1px solid var(--line); padding: 0; margin-top: auto; color: rgba(169,178,193,.55); } /* высота = высоте навбара, 68px */
section.page { flex: 1 0 auto; }
.foot-in { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-note { margin-left: auto; padding-right: 0; }
.foot-note em { font-style: italic; color: #5EEAD4; font-weight: 500; }
/* значки почты/Telegram в футере — тем же стилем, что и в контактах */
.foot-left { display: flex; align-items: center; gap: 15px; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  #cases .wrap, #approach .wrap, .contact-wrap .wrap { grid-template-columns: 1fr; gap: 40px; }
  #cases .sec-head, #approach .sec-head { position: static; }
  .contact-cta { grid-column: 1; grid-row: auto; justify-self: start; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { display: none; }
  .case.wide { grid-template-columns: 1fr; }
  .cases-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-bottom: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 78px 0; }
  header.hero { padding: 110px 0 78px; }
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #1E293B; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .links.open { display: flex; }
  .links a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .sec-head { margin-bottom: 38px; }

  .case { padding: 26px 22px 24px; }
}

/* ============================================================
   Дополнения для Flask-версии: подчинённые страницы, форма,
   сообщения, чат-заглушка, админка — в той же палитре.
   ============================================================ */

.page { padding: 40px 0 90px; }
.page h1 { margin-bottom: 14px; }
.back-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--green); }

/* — сообщения (flash) — */
.flash {
  max-width: 1290px; margin: 18px auto 0; padding: 0 24px;
}
.flash .flash-box {
  padding: 12px 18px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--card); font-size: 14.5px;
}
.flash-success .flash-box { border-color: rgba(94,234,212,.45); color: var(--green); }
.flash-error .flash-box { border-color: rgba(248,113,113,.45); color: #F87171; }

/* — форма контактов — */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 22px 16px; max-width: 100%; margin: 0 auto; box-shadow: 0 10px 26px rgba(3,6,12,.32);
}
/* пара полей в ряд — компактная форма, всё на один экран */
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.input-row { margin-bottom: 10px; }
.input-row label {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.input-row input, .input-row textarea {
  width: 100%; padding: 9px 12px; border-radius: 4px; font: inherit;
  background: #0B111C; border: 1px solid var(--line); color: var(--ink);
}
.input-row input:focus, .input-row textarea:focus { outline: none; border-color: var(--green); }
/* когда браузер подставляет автозаполнение — поле остаётся тёмным, текст фарфоровым */
.input-row input:-webkit-autofill,
.input-row input:-webkit-autofill:hover,
.input-row input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 64px #0B111C inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 99999s ease-in-out 0s;
}
/* чекбокс — маленький, слева от подписи, не растягивается */
.input-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }
.input-row label[for="remember"] { display: inline; margin: 0; }
/* браузер не красит поля сам — красная рамка только на реально незаполненном поле */
.input-row input:invalid, .input-row textarea:invalid { border-color: var(--line); }
.input-row input:user-invalid, .input-row textarea:user-invalid { border-color: rgba(248,113,113,.65); }
.input-row input:user-invalid:focus, .input-row textarea:user-invalid:focus { border-color: var(--green); }
.field-error { color: #F87171; font-size: 12.5px; margin-top: 5px; }
.form-card .btn { margin-top: 6px; padding: 13px 30px; display: block; margin-left: auto; }
@media (max-width: 640px) { .fr2 { grid-template-columns: 1fr; } }

/* ссылка возвращения после отправленной заявки */
.qs-link { color: var(--green); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.qs-link:hover { color: #7DE6D6; text-decoration: underline; }

/* «Заявка отправлена» — после успешных отправок формы */
.sent-box {
  max-width: 720px; background: var(--card); border: 1px solid var(--line);
  border-left: 2px solid #5EEAD4; border-radius: 4px; padding: 22px 26px;
}
.sent-box .sb-title { color: var(--ink); font-size: 16px; font-weight: 600; }
.sent-box .sb-note { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* чат-заглушка */
.chat-stub {
  margin: 0 auto; max-width: 720px; background: var(--card);
  border: 1px dashed #34425A; border-radius: 6px; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.chat-stub .cs-title { font-size: 15px; color: var(--ink); }
.chat-stub .cs-note { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.chat-stub img { width: 300px; max-width: 100%; border-radius: 4px; }

/* чат-виджет в правом углу (пока заглушка «скоро») */
.chat-pill {
  position: fixed; bottom: 92px; right: max(24px, calc((100% - 1290px) / 2 + 24px)); z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 20px 12px 15px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  transition: transform .25s, border-color .25s;
}
.chat-pill:hover { transform: translateY(-2px); border-color: #5EEAD4; }
.chat-pill svg { width: 18px; height: 18px; stroke: #5EEAD4; flex: none; }
.chat-pill b { font: 600 13.5px/1 "Manrope", sans-serif; color: var(--ink); }
.chat-pill i { font: 400 12px/1 "Manrope", sans-serif; font-style: normal; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.chat-pop {
  position: fixed; bottom: 152px; right: max(24px, calc((100% - 1290px) / 2 + 24px)); z-index: 59;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 18px; max-width: 270px; box-shadow: 0 16px 44px rgba(0,0,0,.5);
  font-size: 13px; color: var(--muted); line-height: 1.55;
}
.chat-pop b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; font-size: 13.5px; }
@media (max-width: 640px) {
  .chat-pill { right: 24px; bottom: 84px; padding: 11px 20px 11px 15px; }
  .chat-pill b { display: none; }          /* на телефоне — только иконка */
  .chat-pop { right: 24px; bottom: 144px; }
  .foot-in { height: auto; padding: 14px 0; }  /* на телефоне футер сам по себе */
}

/* — админка — */
.admin-main { padding: 40px 0 90px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.admin-links { display: flex; gap: 22px; font-size: 14px; }
.admin-links a { color: var(--muted); text-decoration: none; }
.admin-links a:hover { color: var(--green); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 14.5px; }
.admin-table th {
  text-align: left; padding: 10px 12px; color: var(--muted); font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: var(--card); }
.admin-table tr.row-unread td { background: rgba(94,234,212,.05); }
.td-muted { color: var(--muted); font-size: 13px; }
.act-btn {
  background: none; border: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--green); padding: 0;
}
.act-btn:hover { text-decoration: underline; }
.act-btn.danger { color: #F87171; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.pill.unread { background: rgba(94,234,212,.12); color: var(--green); }
.pill.read { background: rgba(148,163,184,.1); color: var(--muted); }

.logs-pre {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px; font-size: 13px; line-height: 1.55; color: var(--muted);
  overflow-x: auto; max-height: 72vh; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* шаги нумерации шага (snum как в статике) */
.step-content { display: block; }