/* ==========================================================================
   Визитка разработчика — me.4mister.ru
   Темы: aurora (по умолчанию), night, light, system — через data-theme на <html>.
   Никаких внешних библиотек: только токены, CSS-переменные и современный CSS.
   ========================================================================== */

:root,
[data-theme="aurora"] {
  --bg: #080b16;
  --bg-2: #0c1020;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .06);
  --text: #f4f6ff;
  --muted: #9aa4c4;
  --dim: #6d7796;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #2dd4bf;
  --btn-text: #07101f;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --shadow-soft: 0 18px 40px -28px rgba(0, 0, 0, .8);
  --hero-image: url("/assets/img/hero-dark.webp");
  --hero-veil-1: rgba(8, 11, 22, .35);
  --hero-veil-2: rgba(8, 11, 22, .96);
  --blobs: block;
  --hover-border: rgba(139, 92, 246, .45);
}

/* строгая тёмная: без аврора-пятен и цветных свечений */
[data-theme="night"] {
  --bg: #0a0c11;
  --bg-2: #0e1119;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .05);
  --text: #eef1f8;
  --muted: #99a2b8;
  --dim: #6e7789;
  --accent: #7c9cff;
  --accent-2: #4fd1e0;
  --accent-3: #34d399;
  --btn-text: #08101d;
  --shadow: 0 20px 50px -32px rgba(0, 0, 0, .95);
  --shadow-soft: 0 14px 34px -26px rgba(0, 0, 0, .9);
  --hero-image: none;
  --hero-veil-1: rgba(10, 12, 17, .25);
  --hero-veil-2: rgba(10, 12, 17, 1);
  --blobs: none;
  --hover-border: rgba(124, 156, 255, .45);
}

/* светлая */
[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --line: #e2e7f0;
  --line-2: #edf1f7;
  --text: #0f172a;
  --muted: #58627a;
  --dim: #7b8598;
  --accent: #6d28d9;
  --accent-2: #0e7490;
  --accent-3: #0f766e;
  --btn-text: #ffffff;
  --shadow: 0 20px 45px -30px rgba(15, 23, 42, .35);
  --shadow-soft: 0 12px 30px -24px rgba(15, 23, 42, .3);
  --hero-image: url("/assets/img/hero-light.webp");
  --hero-veil-1: rgba(255, 255, 255, .55);
  --hero-veil-2: rgba(245, 247, 251, .97);
  --blobs: none;
  --hover-border: rgba(109, 40, 217, .35);
}

/* системная: тёмная по умолчанию, светлая — если так настроена ОС */
[data-theme="system"] {
  --bg: #080b16;
  --bg-2: #0c1020;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .06);
  --text: #f4f6ff;
  --muted: #9aa4c4;
  --dim: #6d7796;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #2dd4bf;
  --btn-text: #07101f;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --shadow-soft: 0 18px 40px -28px rgba(0, 0, 0, .8);
  --hero-image: url("/assets/img/hero-dark.webp");
  --hero-veil-1: rgba(8, 11, 22, .35);
  --hero-veil-2: rgba(8, 11, 22, .96);
  --blobs: block;
  --hover-border: rgba(139, 92, 246, .45);
}
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg: #f5f7fb;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f4fa;
    --line: #e2e7f0;
    --line-2: #edf1f7;
    --text: #0f172a;
    --muted: #58627a;
    --dim: #7b8598;
    --accent: #6d28d9;
    --accent-2: #0e7490;
    --accent-3: #0f766e;
    --btn-text: #ffffff;
    --shadow: 0 20px 45px -30px rgba(15, 23, 42, .35);
    --shadow-soft: 0 12px 30px -24px rgba(15, 23, 42, .3);
    --hero-image: url("/assets/img/hero-light.webp");
    --hero-veil-1: rgba(255, 255, 255, .55);
    --hero-veil-2: rgba(245, 247, 251, .97);
    --blobs: none;
    --hover-border: rgba(109, 40, 217, .35);
  }
}

:root {
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1320px;
  /* свои шрифты первыми, системные — запасной вариант */
  --font: "Noto Sans Web", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Noto Sans Mono Web", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--text); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
::selection { background: rgba(139, 92, 246, .35); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- фон-аврора (темы aurora и системная-тёмная) ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: var(--blobs); }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; will-change: transform; }
.aurora__blob--1 { width: 46vw; height: 46vw; left: -10vw; top: -12vw;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.7), transparent 68%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora__blob--2 { width: 40vw; height: 40vw; right: -8vw; top: 18vh;
  background: radial-gradient(circle at 60% 40%, rgba(34,211,238,.55), transparent 68%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora__blob--3 { width: 34vw; height: 34vw; left: 28vw; bottom: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(45,212,191,.45), transparent 70%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, -4vh, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(4vw, -6vh, 0) scale(1.15); } }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 22, .82);
  border-bottom: 1px solid var(--line-2);
}
[data-theme="night"] .site-header { background: rgba(10, 12, 17, .85); }
[data-theme="light"] .site-header { background: rgba(245, 247, 251, .85); }
@media (prefers-color-scheme: light) {
  [data-theme="system"] .site-header { background: rgba(245, 247, 251, .85); }
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { border-radius: 10px; }
.brand { min-width: 0; }
.brand__text { display: flex; flex-direction: column; font-weight: 600; font-size: .98rem; line-height: 1.2; min-width: 0; }
.brand__text em { font-style: normal; font-size: .72rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; gap: 2px; }
.nav a { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-size: .95rem; transition: color .18s, background .18s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); background: var(--surface-2); }

.theme-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.theme-switch button {
  width: 32px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background .18s, color .18s;
}
.theme-switch button:hover { color: var(--text); background: var(--surface-2); }
.theme-switch button[aria-pressed="true"] { color: var(--text); background: rgba(139, 92, 246, .3); }
.theme-switch svg { width: 16px; height: 16px; }

.burger { display: none; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; padding: 11px 10px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

.mobile-nav { display: none; flex-direction: column; padding: 6px 20px 24px; border-top: 1px solid var(--line-2); background: var(--bg); }
.mobile-nav a { padding: 15px 2px; color: var(--text); font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
.mobile-nav a:active { color: var(--accent-2); }
.mobile-nav a:last-of-type {
  margin-top: 14px; padding: 15px 18px; text-align: center;
  border: 0; border-radius: 13px; font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--btn-text);
}
.mobile-nav__caption { margin: 20px 0 8px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.theme-switch.theme-switch--labelled { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; padding: 6px; }
.theme-switch.theme-switch--labelled button {
  width: 100%; height: 64px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; font-size: .76rem; color: var(--muted);
}
.theme-switch.theme-switch--labelled button svg { width: 21px; height: 21px; }
.theme-switch.theme-switch--labelled .theme-label { font-weight: 600; letter-spacing: .01em; }
.theme-switch.theme-switch--labelled button[aria-pressed="true"] {
  background: rgba(139, 92, 246, .34); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .5);
}
.theme-switch.theme-switch--labelled button:active { transform: scale(.97); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 13px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .16s, box-shadow .22s, background .22s, border-color .22s;
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--btn-text); box-shadow: var(--shadow-soft); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 17px; font-size: .92rem; border-radius: 11px; }
.btn--wide { width: 100%; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 88px 0 76px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: var(--hero-image) center/cover no-repeat;
  opacity: .55;
  mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 78%);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--hero-veil-1), var(--hero-veil-2)); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 56px; align-items: center; }
/* grid-элементы по умолчанию не сжимаются уже своего содержимого: длинные строки
   кода в терминале распирали колонку и весь первый экран уезжал вправо */
.hero__content, .hero__card { min-width: 0; }
.eyebrow { margin: 0 0 14px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 48ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--muted); }
.badges li { display: flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--a { background: var(--accent-3); }
.dot--b { background: var(--accent); }
.dot--c { background: var(--accent-2); }

/* терминал остаётся тёмным в любой теме — как в настоящем редакторе */
.terminal {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 20, 38, .97), rgba(10, 13, 26, .97));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2b3350; }
.terminal__bar span:first-child { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__bar em { margin-left: 10px; font-style: normal; font-size: .8rem; color: #6d7796; font-family: var(--mono); }
.terminal__body {
  margin: 0; padding: 20px 22px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.terminal__body code { font-family: var(--mono); font-size: .84rem; line-height: 1.75; color: #cbd5e1; }
.c-key { color: #c792ea; } .c-fn { color: #82aaff; } .c-type { color: #ffcb6b; }
.c-str { color: #c3e88d; } .c-num { color: #f78c6c; } .c-cm { color: #5b6785; }

/* ---------- секции ---------- */
.section { padding: 92px 0; position: relative; }
.section--soft { background: linear-gradient(180deg, rgba(139, 92, 246, .05), transparent); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
[data-theme="light"] .section--soft { background: linear-gradient(180deg, rgba(109, 40, 217, .045), transparent); }
.section__head { max-width: 780px; margin-bottom: 44px; }
.section__lead { color: var(--muted); font-size: 1.02rem; }

/* ---------- карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 26px 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .22s, border-color .22s, box-shadow .28s;
}
.card:hover { transform: translateY(-4px); border-color: var(--hover-border); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; margin-bottom: 16px;
  color: var(--accent-2);
  background: rgba(139, 92, 246, .16);
  border: 1px solid var(--line);
}
[data-theme="light"] .card__icon { background: rgba(109, 40, 217, .09); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--muted); font-size: .95rem; }
.card__list { margin: auto 0 18px; font-size: .9rem; color: var(--dim); }
.card__list li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); }
.card__meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: .9rem; font-weight: 600; }
.card__meta span:last-child { color: var(--accent-3); }

/* ---------- процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { min-width: 0; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps__num {
  display: block; font-family: var(--mono); font-size: 1.55rem; font-weight: 700; margin-bottom: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 1.04rem; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- стек ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: .92rem; color: var(--muted);
  font-family: var(--mono);
  transition: color .18s, border-color .18s, transform .18s;
}
.chips li:hover { color: var(--text); border-color: var(--hover-border); transform: translateY(-2px); }

/* ---------- кейсы ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case {
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--surface);
  transition: transform .22s, box-shadow .28s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case h3 { font-size: 1.03rem; }
.case p { color: var(--muted); font-size: .93rem; }
.case__stack { font-family: var(--mono); font-size: .78rem; color: var(--dim); margin-bottom: 10px; }
.case__result { margin: 0; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--accent-3) !important; font-weight: 500; }

/* ---------- гарантии ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.guarantee { min-width: 0; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.guarantee h3 { font-size: 1.02rem; }
.guarantee p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 4px 22px; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: var(--hover-border); background: var(--surface-2); }
.faq summary { cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 10px; height: 10px; border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--muted); font-size: .95rem; padding-bottom: 8px; }

/* ---------- контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 26px; align-items: start; }
.contact__form { min-width: 0; padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact__side { min-width: 0; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact__qr { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.contact__qr img { border-radius: 12px; background: #fff; padding: 8px; }
.contact__handle { margin: 0; font-weight: 700; font-size: 1.1rem; }
.contact__hint { margin: 4px 0 0; font-size: .85rem; color: var(--dim); }
.contact__facts { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.contact__facts li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.contact__facts li:last-child { border-bottom: 0; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text);
  font: inherit; font-size: .96rem;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); opacity: .85; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 20px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-note { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-note.is-ok { color: var(--accent-3); }
.form-note.is-error { color: #f472b6; }
[data-theme="light"] .form-note.is-error { color: #be185d; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none !important; }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding: 30px 0; background: var(--bg-2); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--dim); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--text); }

/* ---------- появление блоков ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.7,.3,1); }
.reveal.is-visible { opacity: 1 !important; transform: none !important; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .cards, .steps, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: block; }
  .site-header .btn--sm { display: none; }
  /* на телефоне переключатель тем живёт в меню: в шапке он выдавливал бургер за край */
  .site-header__inner .theme-switch { display: none; }
  .site-header__inner { gap: 12px; }
  .mobile-nav.is-open { display: flex; }
  .contact { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding: 60px 0 52px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .steps, .grid-4, .cases { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 26px 20px; }
  .badges { flex-direction: column; gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .site-header__inner .theme-switch button { width: 38px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora__blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- служебное ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
