/* Шрифт Manrope лежит на самом сайте (static/fonts), а не грузится с Google — IP посетителей не уходит третьим лицам */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ✏️ Цвета сайта — меняются здесь */
:root {
  --bg: #fafaf8;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e2;
  --card: #f1f1ed;
  --accent: #111111;
  --accent-text: #fafaf8;
  --ok: #2e9d5b;
  --err: #d0473a;
  color-scheme: light;
}
/* Тёмная тема: по настройке устройства (если посетитель сам не выбрал светлую) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e;
    --text: #f2f2ef;
    --muted: #9a9a96;
    --line: #262626;
    --card: #171717;
    --accent: #f2f2ef;
    --accent-text: #0e0e0e;
    color-scheme: dark;
  }
}
/* …или если посетитель выбрал тёмную кнопкой */
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --text: #f2f2ef;
  --muted: #9a9a96;
  --line: #262626;
  --card: #171717;
  --accent: #f2f2ef;
  --accent-text: #0e0e0e;
  color-scheme: dark;
}
body { transition: background-color .25s, color .25s; }

/* Кнопка темы */
.theme-toggle {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  background: none; color: var(--text); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme-effective="dark"] .theme-toggle .sun { display: none; }
:root[data-theme-effective="dark"] .theme-toggle .moon { display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Навигация */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 68px;
  padding: 0 max(16px, calc((100% - 1120px) / 2));
  /* Почти сплошной фон: текст страницы под панелью не просвечивает */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, height .25s;
}
/* После прокрутки — тонкая линия и лёгкая тень, панель чуть ниже */
.nav.scrolled {
  height: 60px;
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text); font-size: 15px; font-weight: 800;
}
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 6px; }
.menu a:not(.btn) {
  position: relative; text-decoration: none; color: var(--muted); font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.menu a:not(.btn):hover { color: var(--text); background: var(--card); }
/* Текущий раздел при прокрутке */
.menu a.active { color: var(--text); }
.menu a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--text);
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.nav-cta { margin-left: 4px; }
.menu .menu-cta { display: none; }
.burger { display: none; }
/* Выпадающий список языков */
.lang { position: relative; }
.lang button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.lang .lang-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.lang .lang-toggle:hover { border-color: var(--text); }
.chev { font-size: 10px; transition: transform .2s; }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  list-style: none; padding: 6px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  animation: drop .18s ease;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu button {
  width: 100%; text-align: left; display: flex; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--muted);
}
.lang-menu b { color: var(--text); font-size: 12px; width: 22px; }
.lang-menu button:hover { background: var(--card); color: var(--text); }
.lang-menu button[aria-current="true"] { background: var(--card); color: var(--text); }

/* Секции */
section { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
section.hero { border-top: 0; padding-top: 112px; }
h1 { font-size: clamp(36px, 6.4vw, 80px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; max-width: 15ch; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.eyebrow { color: var(--muted); font-size: 13px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .08em; }
.lead { max-width: 600px; margin-top: 24px; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  text-decoration: none; font-weight: 600; font-size: 15px; font-family: inherit;
  border: 1px solid var(--accent); transition: transform .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }

/* Карточки преимуществ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border-radius: 20px; padding: 28px; }
.card .num { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 40px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Кейс */
.shot { display: block; margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.shot img { transition: transform .5s; }
.shot:hover img { transform: scale(1.015); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stats div { background: var(--card); border-radius: 16px; padding: 20px; }
.stats dt { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stats dd { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.4; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.case-body p { color: var(--muted); margin-top: 8px; }
.checks { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--text); font-weight: 700; }
.more { display: inline-block; margin-top: 24px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line); }
.more:hover { border-color: var(--text); }

/* Две колонки */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 300px; }
.list { list-style: none; }
.list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { padding-top: 0; }
.list p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Этапы */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.steps li { counter-increment: s; border-top: 2px solid var(--text); padding-top: 16px; }
.steps li::before { content: "0" counter(s); display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Заявка */
.contact h2 { font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1.05; max-width: 16ch; }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.messengers:not(:has(a:not([hidden]))) { display: none; }
.btn.wa { background: #25d366; border-color: #25d366; color: #0b2915; }
.btn.tg { background: #2aabee; border-color: #2aabee; color: #fff; }
.form { margin-top: 40px; max-width: 720px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea {
  font: inherit; color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form button:disabled { opacity: .5; cursor: default; transform: none; }
.status { font-size: 15px; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 560px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.foot { display: flex; justify-content: space-between; padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { text-decoration: none; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Планшет и телефон */
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .theme-toggle { margin-left: auto; }
  /* Кнопка-бургер */
  .burger {
    display: grid; place-content: center; gap: 5px; flex: none;
    width: 36px; height: 36px; padding: 0; cursor: pointer;
    background: none; border: 1px solid var(--line); border-radius: 999px;
  }
  .burger span { display: block; width: 15px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s; }
  .nav.open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  /* Меню выпадает вниз под панелью */
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
    display: none;
  }
  .nav.open .menu { display: flex; animation: drop .2s ease; }
  .menu a:not(.btn) { font-size: 17px; padding: 12px 8px; border-radius: 12px; }
  .menu a.active::after { display: none; }
  .menu .menu-cta { display: block; text-align: center; margin-top: 10px; padding: 14px; font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .card .num { margin-bottom: 16px; }
  .case-body, .split { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  section.hero { padding-top: 56px; }
  .lead { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
}

/* =====================================================================
   v2: фирменный цвет, демо-чат, иконки, калькулятор, вопросы
   ===================================================================== */
:root {
  --brand: #4f46e5;
  --brand-2: #8b5cf6;
  --brand-soft: rgba(79, 70, 229, .10);
  --bubble-in: #ffffff;
  --bubble-out: #4f46e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7c7cff;
    --brand-2: #b18cff;
    --brand-soft: rgba(124, 124, 255, .14);
    --bubble-in: #1f1f24;
    --bubble-out: #5b5bf0;
  }
}
:root[data-theme="dark"] {
  --brand: #7c7cff;
  --brand-2: #b18cff;
  --brand-soft: rgba(124, 124, 255, .14);
  --bubble-in: #1f1f24;
  --bubble-out: #5b5bf0;
}

/* Основная кнопка — фирменный градиент */
.btn:not(.ghost):not(.wa):not(.tg) {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px -10px var(--brand);
}
.logo-mark { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.menu a.active::after { background: var(--brand); }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Первый экран: текст + телефон ---------- */
section.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 72px; position: relative;
}
section.hero::before {
  content: ""; position: absolute; z-index: -1; top: -80px; right: -160px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 65%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 68px); max-width: 14ch; }
.hero-demo { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 36px; }
.hero-demo figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.phone {
  width: min(340px, 100%); height: 520px; border-radius: 36px; padding: 10px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; overflow: hidden;
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 14px; border-bottom: 1px solid var(--line); }
.phone-head b { display: block; font-size: 15px; line-height: 1.2; }
.phone-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.phone-head .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.phone-ava {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 13px; font-weight: 800;
}
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 8px 8px; overflow: hidden; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; animation: msg .35s ease both; }
.msg.c { align-self: flex-end; background: var(--bubble-out); color: #fff; border-bottom-right-radius: 5px; }
.msg.b { align-self: flex-start; background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes msg { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.notify {
  position: absolute; right: -36px; top: 0; display: flex; gap: 10px; align-items: flex-start;
  width: 250px; padding: 12px 14px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .4s, transform .4s; pointer-events: none;
}
.notify.show { opacity: 1; transform: none; }
.notify-ico { font-size: 18px; line-height: 1.2; }
.notify b { display: block; font-size: 13px; }
.notify div span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- Иконки ---------- */
.ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--brand-soft); color: var(--brand);
}
.ico svg { width: 22px; height: 22px; }
.card .ico { margin-bottom: 28px; }
.card { transition: transform .25s, border-color .25s; border: 1px solid transparent; }
.card:hover { transform: translateY(-3px); border-color: var(--line); }
.list li { display: flex; gap: 16px; align-items: flex-start; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 40px; }
.calc-form { display: grid; gap: 26px; padding: 28px; border-radius: 20px; background: var(--card); }
.calc-row { display: grid; gap: 10px; }
.calc-lab { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.calc-lab output { font-weight: 800; color: var(--brand); white-space: nowrap; }
.calc input[type="range"] { width: 100%; accent-color: var(--brand); }
.calc input[type="number"] {
  font: inherit; font-size: 18px; font-weight: 700; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%;
}
.calc input[type="number"]:focus { outline: none; border-color: var(--brand); }
.calc-result {
  display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 32px; border-radius: 20px;
  background: linear-gradient(160deg, var(--brand-soft), transparent 70%), var(--card);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.calc-cap { color: var(--muted); font-size: 15px; }
.calc-sum { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.calc-sub { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.calc-result .btn { align-self: flex-start; }
.calc-result small { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 6px; }

/* ---------- Частые вопросы ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: background-color .2s; }
.faq details[open] { background: var(--card); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin-top: -4px; }

@media (max-width: 900px) {
  section.hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  section.hero::before { right: -300px; }
  .notify { right: 0; top: 0; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .phone { height: 460px; }
  .notify { width: 220px; right: -4px; }
  .calc-form, .calc-result { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .msg, .msg.typing i { animation: none; }
}

/* Свечение первого экрана не должно давать горизонтальную прокрутку */
html, body { overflow-x: clip; }

/* ---------- Кто за этим стоит ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
  width: 100%; aspect-ratio: 640 / 760; object-fit: cover; border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5), 0 0 0 1px var(--line);
}
.about-photo::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 70%; height: 70%; z-index: -1;
  border-radius: 32px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: .35; filter: blur(30px);
}
.about-badge {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line);
}
.about-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.about-text h2 { margin-bottom: 20px; }
.about-text p + p { margin-top: 14px; }
.about-text p:not(.big):not(.eyebrow) { color: var(--muted); }
.about .skills { margin-top: 24px; }
.about .actions { margin-top: 28px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 360px; }
}

/* Плашки навыков */
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }

/* ---------- Карточка-перевёртыш с фото ---------- */
.flip {
  display: block; width: 100%; aspect-ratio: 640 / 760; padding: 0; border: 0; background: none;
  cursor: pointer; perspective: 1400px; font: inherit; color: inherit; border-radius: 28px;
}
.flip:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; }
.flip-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip:not(.flipped):hover .flip-inner { transform: rotateY(-8deg) rotateX(3deg); }
.flip-face {
  position: absolute; inset: 0; display: block; border-radius: 28px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5), 0 0 0 1px var(--line);
}
.flip-back { transform: rotateY(180deg); background: #fff; }
.flip-back img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }

/* Рубашка карточки */
.flip-front {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  color: #fff; text-align: center; padding: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .22), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px),
    linear-gradient(145deg, var(--brand), var(--brand-2));
}
.flip-front::before {
  content: ""; position: absolute; inset: 14px; border-radius: 20px;
  border: 1.5px dashed rgba(255, 255, 255, .35); pointer-events: none;
}
.flip-q {
  font-size: clamp(110px, 16vw, 170px); font-weight: 800; line-height: 1;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  animation: q-bob 3s ease-in-out infinite;
}
.flip-hint { font-size: 15px; font-weight: 600; max-width: 22ch; opacity: .92; }
@keyframes q-bob { 50% { transform: translateY(-8px) rotate(-4deg); } }

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .flip-q { animation: none; }
}

/* ---------- Политика конфиденциальности и 404 ---------- */
.policy-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; }
.policy-back { color: var(--muted); text-decoration: none; font-weight: 600; }
.policy-back:hover { color: var(--text); }
.policy-langs { display: flex; gap: 4px; }
.policy-langs button {
  font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.policy-langs button[aria-current="true"] { color: var(--text); border-color: var(--text); }
.policy { max-width: 760px; padding-bottom: 80px; }
.policy h1 { font-size: clamp(32px, 5vw, 52px); max-width: none; }
.policy h2 { font-size: 20px; letter-spacing: -0.01em; margin-top: 36px; margin-bottom: 10px; }
.policy p, .policy li { color: var(--text); font-size: 16px; line-height: 1.6; }
.policy p + p { margin-top: 10px; }
.policy ul { padding-left: 20px; display: grid; gap: 8px; }
.policy a { color: inherit; }
.policy-date { color: var(--muted) !important; font-size: 14px !important; margin-top: 12px; }
.page404 { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.page404-langs { list-style: none; padding: 0; color: var(--muted); display: grid; gap: 4px; }

/* Согласие под формой и ссылка в подвале */
.form .consent, .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.form .consent input, .consent input { padding: 0; border-radius: 4px; width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--text); }
.consent a { color: var(--text); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
