/* ================================================================
   Тимофей Эдельвейс — IT-проекты под ключ
   Тёмная технологичная система: сетка, электрик, моно-акценты
   ================================================================ */
:root {
  --bg: #05060a;
  --surface: #0b0e16;
  --surface-2: #10141f;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e8ecf4;
  --muted: #8b93a5;
  --accent: #5b8cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(91, 140, 255, 0.12);
  --glow: 0 0 24px rgba(91, 140, 255, 0.35);
  --grad: linear-gradient(92deg, #5b8cff, #22d3ee);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --tr: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Технологичная сетка на фоне */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(91, 140, 255, 0.09), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(34, 211, 238, 0.05), transparent 60%),
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand, .stat-num { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; }
.mono { font-family: var(--font-mono); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--s3); }
.section { padding: var(--s6) 0; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.13rem; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s2);
}
.eyebrow::before { content: "//"; color: var(--accent); }

/* ─── Кнопки ─── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  padding: 14px 28px; border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: 600 1rem var(--font-body);
  cursor: pointer; background: none; color: var(--text);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr), background var(--tr);
}
.btn-primary { background: var(--grad); color: #04060c; box-shadow: var(--glow); }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); transition: left 0.55s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(91, 140, 255, 0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.btn-danger { border-color: rgba(255, 99, 99, 0.4); color: #ff8f8f; font-size: 0.85rem; padding: 6px 14px; }
.btn-danger:hover { background: rgba(255, 99, 99, 0.1); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.08rem; }

/* ─── Шапка ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 70px; }
.brand { font-size: 1.08rem; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: var(--s3); }
.nav a { position: relative; color: var(--muted); font-weight: 500; padding: 6px 2px; transition: color var(--tr); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform var(--tr);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--s2); }
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; font-family: var(--font-mono); font-size: 0.84rem; font-weight: 700;
}
.lang-switch a, .lang-switch button {
  padding: 7px 14px; background: none; border: none; color: var(--muted);
  cursor: pointer; font: inherit; transition: background var(--tr), color var(--tr);
}
.lang-switch .active { background: var(--accent-soft); color: var(--accent-2); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 42px; height: 42px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 11px; width: 18px; height: 2px;
  background: var(--text); transition: transform var(--tr), background var(--tr);
}
.burger span { top: 20px; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: rotate(45deg); top: 0; }
.burger.open span::after { transform: rotate(-45deg); top: 0; }

/* ─── Hero ─── */
.hero { padding: var(--s6) 0 var(--s5); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s5); align-items: center; }
.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  margin-bottom: var(--s3);
}
.status-badge i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px #34d399;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { margin-bottom: var(--s2); }
.hero .lead { margin-bottom: var(--s3); }
.hero-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.hero-stats { display: flex; gap: var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--s3); }
.stat-num { display: block; font-size: 1.9rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 0.88rem; }

/* Терминальная карточка */
.terminal {
  font-family: var(--font-mono);
  background: rgba(11, 14, 22, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  font-size: 0.92rem;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.terminal-bar i:first-child { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar b { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.terminal-body { padding: var(--s3) var(--s3) var(--s4); min-height: 216px; }
.terminal-line { display: block; white-space: pre-wrap; line-height: 1.75; }
.t-ok { color: #7ee2b8; }
.t-dim { color: var(--muted); }
.t-cursor { display: inline-block; width: 9px; height: 1.1em; vertical-align: text-bottom; background: var(--accent-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.terminal-tags span {
  font-size: 0.74rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px;
}

/* ─── Бегущая строка стека ─── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: var(--s4); width: max-content; animation: slide 28s linear infinite; }
.marquee span {
  font-family: var(--font-mono); font-size: 0.92rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: var(--s4); white-space: nowrap;
}
.marquee span::after { content: "·"; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ─── Bento-секция услуг ─── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.bento-card {
  position: relative;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s3);
  display: flex; flex-direction: column; gap: var(--s1);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.bento-card:hover { transform: translateY(-4px); border-color: rgba(91, 140, 255, 0.5); box-shadow: var(--shadow), var(--glow); }
.bento-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 140, 255, 0.14), transparent 55%);
  opacity: 0; transition: opacity var(--tr);
}
.bento-card:hover::after { opacity: 1; }
.bento-card.wide { grid-column: span 4; }
.bento-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); margin-bottom: var(--s1); }
.bento-card p { color: var(--muted); font-size: 0.96rem; }
.bento-meta { margin-top: auto; padding-top: var(--s2); font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); display: flex; gap: var(--s2); flex-wrap: wrap; }
.bento-meta b { color: var(--accent-2); font-weight: 600; }

/* ─── Калькулятор ─── */
.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s4);
}
.calc-group { margin-bottom: var(--s3); }
.calc-group > span, .calc-group > label { display: block; font-weight: 600; margin-bottom: var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); cursor: pointer; font: 500 0.92rem var(--font-body);
  transition: all var(--tr);
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #04060c; box-shadow: var(--glow); }
.calc input[type="number"] {
  width: 110px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; font-family: var(--font-mono);
}
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s1); }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; color: var(--muted); font-size: 0.95rem;
  transition: border-color var(--tr), color var(--tr);
}
.check:hover { border-color: var(--accent); }
.check input { accent-color: var(--accent); }
.check:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.calc-result {
  display: flex; flex-direction: column; justify-content: center; gap: var(--s2);
  padding: var(--s3); border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface-2);
  border: 1px solid rgba(91, 140, 255, 0.3);
}
.calc-price { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--accent-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(34, 211, 238, 0.4); }
.calc-note { color: var(--muted); font-size: 0.88rem; }

/* ─── Процесс ─── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s2); counter-reset: step; }
.step { position: relative; padding: var(--s3) var(--s3) 0; border-top: 2px solid var(--line-strong); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 2.3rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  position: absolute; top: calc(var(--s3) * -1); background: var(--bg); padding-right: var(--s2);
}
.step h3 { margin: var(--s2) 0 var(--s1); }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ─── Карточки, результаты, услуги ─── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s2); }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s3);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.card-hover:hover { transform: translateY(-4px); border-color: rgba(91, 140, 255, 0.5); box-shadow: var(--shadow), var(--glow); }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--accent-soft);
  color: var(--accent); margin-bottom: var(--s2);
}
.card-text { color: var(--muted); font-size: 0.97rem; }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.95rem; display: inline-block; margin-top: var(--s2); }
.card-link:hover { text-decoration: underline; }
.card-date, .meta { color: var(--muted); font-size: 0.85rem; }
.card-tag, .chip-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 600; font-family: var(--font-mono);
  padding: 4px 12px; border-radius: 999px; margin-bottom: var(--s1);
  border: 1px solid var(--line);
}
.tag-pet { color: #7ee2b8; border-color: rgba(126, 226, 184, 0.4); }
.tag-client { color: var(--accent-2); border-color: rgba(34, 211, 238, 0.45); }
.card-thumb { margin: calc(var(--s1) * -1) calc(var(--s1) * -1) var(--s2); }
.card-thumb .ph, .card-thumb .thumb { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.chip-tag { margin: 0; }

/* Результаты: крупные цифры */
.result-card { display: flex; flex-direction: column; gap: var(--s2); }
.result-card .stat-num { font-size: clamp(2rem, 4vw, 2.9rem); }

/* Заглушки под фото */
.ph {
  border: 2px dashed rgba(91, 140, 255, 0.4);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, rgba(91, 140, 255, 0.05) 0 12px, transparent 12px 24px), var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s1); color: var(--muted); text-align: center;
  min-height: 320px; font-size: 0.9rem;
  position: relative; overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.ph svg { opacity: 0.55; position: relative; }
.ph > span { position: relative; }
.ph-lg { min-height: 430px; }
.ph-sm { min-height: 160px; }

/* ─── FAQ ─── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); margin-bottom: var(--s1);
  overflow: hidden; transition: border-color var(--tr);
}
.faq details[open] { border-color: rgba(91, 140, 255, 0.45); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s2) var(--s3); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-family: var(--font-mono); transition: transform var(--tr); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 var(--s3) var(--s2); color: var(--muted); }
.faq details[open] .faq-a { animation: fadeUp 0.3s ease both; }

/* ─── CTA-баннер ─── */
.cta-banner {
  background:
    radial-gradient(600px 200px at 15% 0%, rgba(91, 140, 255, 0.18), transparent 70%),
    radial-gradient(500px 200px at 90% 100%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: var(--r-lg);
  padding: var(--s4);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
}

/* ─── Форма ─── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s4); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); }
.form-field { margin-bottom: var(--s2); }
.form-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--glow);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-hint { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.form-error { color: #ff8f8f; margin-top: var(--s2); }
.form-success { color: #7ee2b8; margin-top: var(--s2); }
.captcha-row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.captcha-q {
  font-family: var(--font-mono); font-weight: 700;
  background: var(--accent-soft); color: var(--accent-2);
  border-radius: var(--r-sm); padding: 8px 14px; white-space: nowrap;
}
.captcha-row input { width: 90px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-family: var(--font-mono); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.contact-line svg { flex-shrink: 0; color: var(--accent-2); margin-top: 3px; }
.contact-aside .card { margin-bottom: var(--s2); }

/* ─── Проекты ─── */
.filters { display: flex; gap: var(--s1); flex-wrap: wrap; margin-bottom: var(--s3); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s2); }
.project-card { display: flex; flex-direction: column; gap: var(--s2); }
.project-card.hidden { display: none; }
.thumb {
  height: 150px; border-radius: var(--r-md); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--surface-2), #0d111c);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.thumb::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(91, 140, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 4.5s ease-in-out infinite;
}
.thumb b {
  position: relative;
  font-family: var(--font-display); font-size: 2.1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.05em;
}
.project-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.project-card footer { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.project-card footer .kind { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.badge-note { font-size: 0.84rem; color: var(--muted); margin-top: var(--s3); }

/* ─── Блог ─── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.article-card { display: flex; flex-direction: column; gap: var(--s2); }
.article-card h3 a { transition: color var(--tr); }
.article-card h3 a:hover { color: var(--accent-2); }
.article-card .meta { display: flex; align-items: center; gap: 10px; }
.article-card .excerpt { color: var(--muted); margin: 0; }
.article-card .card-link { margin-top: auto; }
.blog-state { color: var(--muted); padding: var(--s4) 0; }
.skeleton {
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  height: 190px; position: relative; overflow: hidden;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(148, 163, 184, 0.08) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.article-page { max-width: 780px; margin: 0 auto; }
.article-page .meta { display: flex; gap: 12px; align-items: center; margin-bottom: var(--s3); }
.article-page .prose { font-size: 1.05rem; line-height: 1.8; color: #cdd3de; }
.article-page .prose p { margin: 0 0 1.1em; }
.article-page h1 { margin-bottom: var(--s2); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.92rem; margin-bottom: var(--s4); }
.back-link:hover { text-decoration: underline; }

/* ─── Услуги: строки ─── */
.svc-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s3);
  align-items: center;
  padding: var(--s4) 0; border-top: 1px solid var(--line);
}
.svc-row h3 { font-size: 1.5rem; margin-bottom: var(--s1); }
.svc-row .svc-price { font-family: var(--font-mono); color: var(--accent-2); font-size: 0.9rem; }
.svc-row ul { list-style: none; color: var(--muted); font-size: 0.97rem; }
.svc-row ul li { padding: 5px 0 5px 22px; position: relative; }
.svc-row ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }

/* ─── About ─── */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s5); align-items: center; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s2); margin-top: var(--s4); }
.timeline { margin-top: var(--s4); border-left: 2px solid var(--line-strong); padding-left: var(--s3); display: grid; gap: var(--s3); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(var(--s3) * -1 - 6px); top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--glow);
}
.timeline-item b { display: block; font-family: var(--font-mono); color: var(--accent-2); font-size: 0.88rem; }
.timeline-item p { color: var(--muted); font-size: 0.95rem; }
.quote {
  border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--r-md);
  padding: var(--s3); margin: var(--s4) 0 0;
  font-size: 1.15rem; line-height: 1.6;
}
.quote small { display: block; margin-top: var(--s2); color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; }

/* ─── Футер ─── */
.site-footer { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s4); margin-top: var(--s5); background: linear-gradient(180deg, transparent, rgba(91, 140, 255, 0.04)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s3); }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: var(--muted); transition: color var(--tr); }
.footer-grid ul a:hover { color: var(--accent-2); }
.copyright { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* ─── Плавающая кнопка ─── */
.float-cta {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40;
  box-shadow: var(--shadow);
}

/* ─── Прогресс чтения ─── */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--grad); z-index: 60;
  transition: width 0.1s linear; pointer-events: none;
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.6);
}

/* ─── Анимации ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero .reveal { animation: fadeUp 0.7s ease both; animation-delay: calc(var(--d, 0) * 90ms); }
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 140, 255, 0.12), transparent 55%);
  opacity: 0; transition: opacity var(--tr);
}
.card:hover::after { opacity: 1; }

/* ─── Админка ─── */
.admin-body { padding: var(--s4) var(--s3); }
.admin-wrap { max-width: 1100px; margin: 0 auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.admin-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-toolbar a {
  color: var(--accent); font-size: 0.9rem;
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
  transition: border-color var(--tr);
}
.admin-toolbar a:hover { border-color: var(--accent); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th {
  text-align: left; color: var(--muted); font-weight: 600;
  padding: 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-msg { max-width: 360px; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: var(--s2); font-size: 0.92rem; }
.admin-msg.ok { background: rgba(126, 226, 184, 0.1); color: #7ee2b8; border: 1px solid rgba(126, 226, 184, 0.3); }
.admin-msg.err { background: rgba(255, 143, 143, 0.1); color: #ff8f8f; border: 1px solid rgba(255, 143, 143, 0.3); }
.admin-hint { color: var(--muted); font-size: 0.92rem; }
.admin-empty { color: var(--muted); text-align: center; padding: var(--s4) !important; }
.admin-inline { display: inline-flex; gap: var(--s1); align-items: center; }
.admin-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s3); margin-bottom: var(--s3);
}
.admin-card h2, .admin-card h3 { margin-bottom: var(--s2); }
.admin-form label, .admin-card label { display: block; margin-bottom: var(--s2); font-weight: 500; }
.admin-form input[type="text"], .admin-form input[type="password"], .admin-card input[type="text"], .admin-card textarea, .admin-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit;
}
.admin-form .form-field textarea, .admin-form textarea { min-height: 260px; resize: vertical; font-family: var(--font-mono); font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.form-row .check-line { display: flex; align-items: center; gap: 10px; align-self: end; padding-bottom: 14px; font-size: 0.92rem; color: var(--muted); }
.form-row .check-line input { width: auto; margin: 0; accent-color: var(--accent); }
.admin-form .form-field label { display: block; }
.admin-form .check-line label { display: inline; margin: 0; }
.admin-pager { display: flex; gap: 6px; margin-top: var(--s3); flex-wrap: wrap; }
.admin-pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.admin-pager a.current { border-color: var(--accent); color: var(--accent); }
.admin-tag {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 999px; padding: 2px 10px; margin-left: 6px;
}
.admin-delete {
  background: none; border: none; color: #ff8f8f; cursor: pointer;
  font: 500 0.85rem var(--font-body);
}
.admin-delete:hover { text-decoration: underline; }
.status-on { color: #7ee2b8; }
.status-off { color: var(--muted); }
.admin-articles .form-field textarea { min-height: 70px; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .btn-primary::before { display: none; }
  .ph::before, .skeleton::after, .thumb::before { animation: none; }
  .card::after { display: none; }
  .hero .reveal { animation: none; }
}

/* ─── Адаптив ─── */
@media (max-width: 1024px) {
  .calc, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .bento-card, .bento-card.wide { grid-column: span 3; }
  .svc-row { grid-template-columns: 1fr; gap: var(--s2); }
  .blog-grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: var(--s5) 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .ph, .ph-lg { min-height: 280px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: var(--s2);
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--s3);
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .burger { display: block; }
  .header-actions .btn-sm { display: none; }
  .float-cta { display: inline-flex; }
  .bento-card, .bento-card.wide { grid-column: span 6; }
  .blog-grid, .skeleton-grid, .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; }
  .calc { padding: var(--s3); }
}
