/* ============================================================
   VladOfSky — тема
   Тёмная «инженерная» эстетика: глубокий фон, кислотно-зелёный
   акцент, Space Grotesk для текста и JetBrains Mono для меток/данных.
   Имена классов — смысловые, чтобы по разметке всё читалось.
   ============================================================ */

/* --- Токены --- */
:root {
  --bg:          #0d1318;
  --surface:     #161e25;
  --surface-2:   #1d272f;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text:        rgba(255, 255, 255, 0.88);
  --muted:       rgba(255, 255, 255, 0.52);
  --accent:      #52e035;
  --accent-glow: #a4ff91;
  --accent-soft: rgba(82, 224, 53, 0.14);
  --danger:      #ff6b5e;

  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 18px 50px -24px rgba(0, 0, 0, 0.7);
  --maxw:      1180px;
}

/* --- База --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 600; }

img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* --- Анимированный фон + курсор --- */
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

body::before {
  /* мягкое свечение сверху, чтобы фон не был плоским */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(82, 224, 53, 0.10), transparent 70%),
    radial-gradient(700px 600px at 100% 0%, rgba(82, 224, 53, 0.05), transparent 60%);
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(82, 224, 53, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.18s, height 0.18s, background 0.18s;
}
.cursor-glow.is-hovering { width: 46px; height: 46px; background: rgba(82, 224, 53, 0.08); }

/* --- Каркас страницы --- */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* --- Карточка профиля --- */
.profile-card {
  position: sticky;
  top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(82, 224, 53, 0.18), transparent 55%);
  pointer-events: none;
}
.profile-card__media {
  position: relative;
  width: 132px; height: 132px;
  margin: 0 auto 18px;
  border-radius: 22%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.profile-card__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.profile-card__avatar {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-card__name {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  position: relative;
}
.profile-card__role {
  margin: 6px 0 22px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  min-height: 1.4em;
  position: relative;
}
.profile-card__caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.profile-card__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* --- Иконки/ссылки соцсетей (без внешних шрифтов иконок) --- */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.92rem;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-link__icon {
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.social-link__icon--discord  { -webkit-mask-image: url('/images/icons.svg#discord');  mask-image: url('/images/icons.svg#discord'); }
.social-link__icon--telegram { -webkit-mask-image: url('/images/icons.svg#telegram'); mask-image: url('/images/icons.svg#telegram'); }
.social-link__icon--github   { -webkit-mask-image: url('/images/icons.svg#github');   mask-image: url('/images/icons.svg#github'); }

/* запасной кружок, если SVG-маска не подхватилась */
.social-link__icon { border-radius: 4px; }

/* --- Рабочая область --- */
.workspace { min-width: 0; }

/* --- Верхняя панель / навигация --- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 26px;
  position: sticky;
  top: 32px;
  z-index: 20;
  box-shadow: var(--shadow);
}
.topbar__nav { display: flex; gap: 6px; }
.topbar__account { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); }
.nav-link--accent { color: var(--accent); }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.account-chip img { width: 26px; height: 26px; border-radius: 50%; }

.topbar__burger { display: none; }

/* --- Кнопки --- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.button--accent { background: var(--accent); color: #0a0f0a; }
.button--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px var(--accent); }
.button--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button--ghost:hover { border-color: var(--accent); color: var(--accent); }
.button--discord { background: #5865f2; color: #fff; }
.button--discord:hover { transform: translateY(-2px); }
.button--sm { padding: 8px 14px; font-size: 0.85rem; }

.link-button {
  background: none; border: none; padding: 0;
  color: var(--muted); font: inherit; cursor: pointer;
  font-size: 0.88rem; transition: color 0.2s;
}
.link-button:hover { color: var(--accent); }
.link-button--danger:hover { color: var(--danger); }
.inline-form { display: inline; }

.link-arrow { color: var(--accent); font-weight: 500; font-size: 0.92rem; transition: opacity 0.2s; }
.link-arrow:hover { opacity: 0.75; }
.link-arrow--back { display: inline-block; margin-bottom: 18px; color: var(--muted); }
.link-arrow--back:hover { color: var(--accent); }

/* --- Секции --- */
.section { margin-bottom: 56px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__title { font-size: 1.7rem; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.empty {
  color: var(--muted);
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

/* --- Обо мне --- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
.about-grid__sub { margin: 18px 0 8px; font-weight: 600; color: var(--text); }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.about-grid__facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  align-self: start;
}
.fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: none; }
.fact__label { display: block; color: var(--accent); margin-bottom: 2px; }
.fact__value { color: var(--text); }

/* --- Сетки карточек --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Карточка проекта */
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.project-card__image { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-card__image img { transform: scale(1.05); }
.project-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(13, 19, 24, 0.85);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
}
.project-card__body { padding: 18px 20px 20px; }
.project-card__title { font-size: 1.12rem; margin-bottom: 6px; }
.project-card__tagline { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.project-card__stack { color: var(--accent); }

/* Карточка статьи */
.card-grid--posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.post-card__image { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 16px 20px 20px; }
.post-card__meta { color: var(--muted); margin: 0 0 8px; }
.post-card__title { font-size: 1.12rem; margin-bottom: 8px; }
.post-card__summary { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* --- Фильтр-чипсы и пагинация --- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.pager { display: flex; gap: 8px; margin-top: 34px; justify-content: center; }
.pager__page {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.pager__page:hover { border-color: var(--line-strong); color: var(--text); }
.pager__page.is-active { background: var(--accent); color: #0a0f0a; border-color: var(--accent); }

/* --- Статья / проект --- */
.article { max-width: 760px; }
.article__meta { color: var(--muted); margin: 0 0 10px; }
.article__title { font-size: 2.1rem; letter-spacing: -0.025em; margin-bottom: 14px; }
.article__lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 22px; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; border: 1px solid var(--line); }
.article__cover img { width: 100%; }

.tech-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.tech-pill { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 100px; font-size: 0.82rem; }

.project-links { display: flex; gap: 12px; margin-top: 30px; }

/* Текст статьи (отрендеренный Markdown) */
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.22rem; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 0 0 16px;
  padding: 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 18px;
}
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius-sm); margin: 8px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* --- Комментарии --- */
.comments { margin-top: 56px; max-width: 760px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment__avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.comment__body { min-width: 0; }
.comment__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.comment__author { font-weight: 600; }
.comment__date { color: var(--muted); }
.comment__text { margin: 0; color: var(--text); }

.comment-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.comment-cta p { margin: 0 0 14px; color: var(--muted); }

/* --- Формы --- */
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-size: 0.88rem; margin-bottom: 7px; color: var(--text); font-weight: 500; }
input[type="text"], input[type="url"], input[type="number"], input[type="search"],
textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 14px;
  transition: border-color 0.2s;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="file"] { color: var(--muted); font-size: 0.88rem; }
.hint { color: var(--muted); margin: 6px 0 0; }

.comment-form { margin-top: 8px; }

/* --- Уведомления (flash) --- */
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.92rem;
  border: 1px solid;
}
.flash--success { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-glow); }
.flash--error { background: rgba(255, 107, 94, 0.12); border-color: var(--danger); color: var(--danger); }

/* --- Подвал --- */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 36px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* --- Страница ошибки --- */
.error-page { text-align: center; padding-top: 40px; }
.error-page__code { font-size: 4rem; color: var(--accent); margin: 0; }
.error-page__message { color: var(--muted); margin: 8px 0 26px; }

/* ============================================================
   Админка
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; margin-bottom: 28px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav__link {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s;
}
.admin-nav__link:hover { color: var(--text); background: var(--surface-2); }
.admin-nav__link.is-active { color: var(--accent); background: var(--accent-soft); }
.admin-sidebar__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }

.admin-main { padding: 28px 34px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-head__title { font-size: 1.5rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-card--alert { border-color: var(--danger); }
.stat-card__value { display: block; font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.stat-card__label { color: var(--muted); font-size: 0.9rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.panel--tight { padding: 18px 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel__title { font-size: 1.15rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: none; }
.data-table__actions { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }

.badge { font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 9px; border-radius: 100px; border: 1px solid; }
.badge--live { color: var(--accent); border-color: var(--accent); }
.badge--draft { color: var(--muted); border-color: var(--line-strong); }
.badge--accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 8px; }
.switch input { width: auto; }

.editor__grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.editor__buttons { display: flex; gap: 10px; margin-top: 8px; }
.editor__preview { width: 100%; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid var(--line); }

.moderation-list { list-style: none; padding: 0; margin: 0; }
.moderation-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.moderation-item:last-child { border-bottom: none; }
.moderation-item__head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.moderation-item__text { margin: 0 0 12px; }
.moderation-item__actions { display: flex; gap: 10px; }

/* --- Услуги (страница и тизер) --- */
.section__intro { color: var(--muted); max-width: 640px; margin: -8px 0 28px; line-height: 1.6; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.service-card--highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow); }
.service-card__flag {
  position: absolute; top: -11px; left: 24px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
  background: var(--accent); color: #0a0f0a;
  padding: 4px 10px; border-radius: 100px;
}
.service-card__title { font-size: 1.25rem; margin-bottom: 8px; }
.service-card__summary { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin-bottom: 18px; }
.service-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.service-card__amount { font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.service-card__note { color: var(--muted); }
.service-card__delivery { color: var(--muted); margin: 6px 0 0; }
.service-card__features {
  list-style: none; margin: 18px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line); display: grid; gap: 9px;
}
.service-card__features li { position: relative; padding-left: 24px; font-size: 0.9rem; line-height: 1.45; }
.service-card__features li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.service-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.service-card__hint { color: var(--muted); margin: 10px 0 0; font-size: 0.75rem; }

.order-note {
  margin-top: 28px; padding: 16px 18px;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.92rem;
}

/* шаги «как это работает» */
.how-it-works .steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px;
}
.step__num { color: var(--accent); font-size: 1.1rem; display: block; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* тизер услуг на главной */
.service-teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.service-teaser {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-teaser:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-teaser__title { font-size: 1.08rem; }
.service-teaser__summary { color: var(--muted); font-size: 0.88rem; line-height: 1.5; flex: 1; }
.service-teaser__price { color: var(--accent); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .editor__grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar__foot { margin: 0 0 0 auto; flex-direction: row; border: none; padding: 0; }
}

@media (max-width: 680px) {
  .layout { padding: 16px 14px 0; }
  .topbar { flex-wrap: wrap; top: 14px; }
  .topbar__burger {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .topbar__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .topbar__nav {
    display: none; flex-direction: column; width: 100%; order: 3;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__account { margin-left: auto; }
  .section__title { font-size: 1.4rem; }
  .article__title { font-size: 1.6rem; }
  .admin-main { padding: 18px 16px; }
}

/* --- Уважение к настройке «меньше движения» --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ambient-grid { display: none; }
  .cursor-glow { display: none; }
}
