/* ─────────────────────────────────────────────────────────────────────────
   SUNARROW V23 — единый стиль сайта.
   Заменяет собой стопку styles/spectacle/v11…v21: один файл, одна система.
   Вид перенесён с образца .qa-temp/redesign (v5), согласованного владельцем
   4–5 сентября 2026: тёмное полотно, крупные строки проектов вместо карточек,
   превью-слайды под курсором, продающий блок «Что можно заказать».
   ───────────────────────────────────────────────────────────────────────── */

/* Шрифты: заголовки — Tektur (как на боевом сайте с V22.4C), текст — Onest,
   служебные подписи — JetBrains Mono. Все файлы лежат в assets/fonts. */
@font-face { font-family: "Tektur"; src: url("assets/fonts/tektur-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tektur"; src: url("assets/fonts/tektur-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face { font-family: "Tektur"; src: url("assets/fonts/tektur-cyrillic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tektur"; src: url("assets/fonts/tektur-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-cyrillic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-cyrillic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Токены ─────────────────────────────────────────────────────────────── */
:root {
  --ink: #0a1310;            /* полотно страницы */
  --ink-soft: #0e1a15;       /* поверхности: панели, рамки снимков */
  --bone: #ece4d4;           /* основной текст */
  --bone-dim: #a8b3a6;       /* второстепенный текст */
  --mute: #87978b;           /* служебные подписи (4,5:1 на тёмном полотне) */
  --orange: #e5792f;         /* единственный акцент */
  --orange-soft: #f0a468;
  --ok: #7fc98f;             /* точка «беру проекты» */
  --line: rgba(236, 228, 212, .13);
  --line-strong: rgba(236, 228, 212, .26);
  --glow: rgba(229, 121, 47, .34);
  --sun: radial-gradient(circle at 38% 36%, #ffe2a8 0%, #f3b45f 38%, #e27e2f 68%, rgba(226, 126, 47, 0) 72%);
  --display: Tektur, "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: Onest, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --edge: clamp(20px, 5vw, 96px);
  --shell: 1320px;
  --ambient-dock-space: 0px;
}
/* Тёплая тема — та же конструкция на кремовом полотне прежнего сайта. */
[data-theme="light"] {
  --ink: #f4ead9;
  --ink-soft: #eadcc7;
  --bone: #173328;
  --bone-dim: #3f5347;
  --mute: #556359;           /* ≥4,69:1 и на кремовом полотне, и на раскрытой строке */
  --orange: #c16321;         /* крупный текст и значки ≥3:1 на всех светлых фонах */
  --orange-soft: #944c19;    /* «текстовый» оранжевый: мелкий текст ≥4,7:1 */
  --ok: #2f6948;
  --line: rgba(23, 51, 40, .14);
  --line-strong: rgba(23, 51, 40, .32);
  --glow: rgba(213, 109, 36, .22);
}

/* ── База ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

/* Живой фон: тот же ambient-canvas, но тише и под правой частью экрана —
   слева, где читают, остаётся лишь слабая сетка под курсором. */
canvas.ambient-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .28) 34%, #000 58%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .28) 34%, #000 58%);
}
[data-theme="light"] canvas.ambient-canvas { opacity: .42; }
@media (max-width: 900px) { canvas.ambient-canvas { mask-image: none; -webkit-mask-image: none; opacity: .35; } }

.shell { position: relative; z-index: 1; max-width: var(--shell); margin: 0 auto; padding: 0 var(--edge); }
main { position: relative; z-index: 1; }
/* Переход по якорю не прячет заголовок раздела под липкой шапкой. */
main > section { position: relative; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
main > section:first-of-type { border-top: 0; }
.band { padding: clamp(64px, 9vw, 132px) 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--orange); color: #0a1310; font: 500 14px/1 var(--display); border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ── Шапка: одна строка, без плашек ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(var(--edge), calc((100% - var(--shell)) / 2 + var(--edge)));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { position: relative; width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand-logo-fallback { width: 30px; height: 30px; background: url("assets/brand/sunarrow-spiral-mark.svg") center / contain no-repeat; }
.brand-mark.has-custom-logo .brand-logo-fallback { display: none; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font: 700 15px/1 var(--display); letter-spacing: .12em; }
.brand-copy small { font: 400 10px/1.2 var(--mono); color: var(--mute); letter-spacing: .18em; }

.main-nav { margin-left: auto; display: flex; gap: 26px; }
.main-nav a { color: var(--bone-dim); text-decoration: none; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--bone); border-bottom-color: var(--orange); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.language-switch { display: flex; gap: 4px; }
.language-switch button { background: none; border: 0; padding: 6px 4px; cursor: pointer; font: 400 11px/1 var(--mono); letter-spacing: .12em; color: var(--mute); border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.language-switch button:hover, .language-switch button.active { color: var(--bone); border-bottom-color: var(--orange); }
.header-icon, .admin-link {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); color: var(--bone); text-decoration: none;
  font-size: 15px; line-height: 1; transition: border-color .2s ease, color .2s ease;
}
.header-icon:hover, .admin-link:hover { border-color: var(--orange); color: var(--orange-soft); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--bone); transition: transform .25s ease, opacity .25s ease; }
body.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Выдвижное меню (телефон и планшет). */
.section-drawer-backdrop { position: fixed; inset: 0; z-index: 38; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.section-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(86vw, 380px);
  display: flex; flex-direction: column; gap: 24px; padding: max(22px, env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) 26px;
  overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  background: var(--ink-soft); border-left: 1px solid var(--line); color: var(--bone);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
}
body.menu-open .section-drawer { transform: none; visibility: visible; }
.section-drawer > * { flex-shrink: 0; }
.section-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-drawer-head small { display: block; font: 400 10px/1.4 var(--mono); letter-spacing: .18em; color: var(--mute); }
.section-drawer-head strong { font: 700 20px/1.2 var(--display); }
.section-drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--bone); font-size: 20px; line-height: 1; cursor: pointer; }
.section-drawer-nav { display: grid; }
.section-drawer-nav a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--bone); font: 500 20px/1.2 var(--display); }
.section-drawer-nav a:last-child { border-bottom: 1px solid var(--line); }
.section-drawer-nav a b { font: 400 11px/1 var(--mono); color: var(--mute); letter-spacing: .12em; }
.section-drawer-nav a i { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.section-drawer-nav a.active i { background: var(--orange); }
.section-drawer-settings { display: grid; gap: 12px; }
.section-drawer-settings button, .drawer-language-switch button { background: transparent; border: 1px solid var(--line-strong); color: var(--bone); border-radius: 999px; min-height: 44px; min-width: 44px; padding: 10px 16px; cursor: pointer; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.section-drawer-settings > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-language-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }
.drawer-language-switch { display: flex; gap: 6px; }
.drawer-language-switch button.active { border-color: var(--orange); color: var(--orange-soft); }
.section-drawer-contact { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 18px; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange-soft); text-decoration: none; font: 500 15px/1 var(--display); letter-spacing: .02em; }

/* ── Первый экран ───────────────────────────────────────────────────────── */
.hero { min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(24px, 4vw, 64px); align-items: end; width: 100%; padding-top: clamp(28px, 5vw, 64px); }
.eyebrow { margin: 0; font: 400 11px/1.6 var(--mono); letter-spacing: .3em; color: var(--mute); text-transform: uppercase; }
.hero h1 { margin: 26px 0 0; font: 700 clamp(46px, 6.4vw, 104px)/1.0 var(--display); letter-spacing: -.02em; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
/* Перемешивание букв рисуется в наложенной копии; настоящий текст на месте, но прозрачный —
   поэтому ниже заголовка ничего не сдвигается. */
.hero h1 { position: relative; }
.hero h1.is-scrambling > #hero-title-before, .hero h1.is-scrambling > #hero-title-accent { color: transparent; }
.scramble-overlay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scramble-overlay .sw { white-space: nowrap; }
.scramble-overlay.is-fixed .sc { display: inline-block; text-align: center; vertical-align: baseline; }
.lead { margin: 30px 0 0; max-width: 54ch; color: var(--bone-dim); }
.actions { margin-top: 42px; display: flex; gap: 34px; flex-wrap: wrap; }
.link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--bone); font: 500 15px/1 var(--display); letter-spacing: .02em;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-strong);
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.link i { font-style: normal; color: var(--orange); }
.link:hover { color: var(--orange-soft); border-color: var(--orange); gap: 16px; }
.status { margin: 46px 0 0; display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1.5 var(--mono); color: var(--bone-dim); letter-spacing: .06em; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.status i.is-offline { background: var(--mute); }

/* Солнце — фирменный тёплый элемент прежнего сайта; здесь оно светит из-за портрета. */
.portrait { position: relative; min-height: 420px; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.portrait::before { content: ""; position: absolute; width: min(72vw, 620px); aspect-ratio: 1; right: -12%; top: -6%; border-radius: 50%; background: var(--sun); opacity: .95; }
.portrait::after { content: ""; position: absolute; inset: -20% -30% -10% -30%; background: radial-gradient(circle at 60% 40%, var(--glow), transparent 58%); pointer-events: none; }
.portrait img { position: relative; z-index: 1; width: min(100%, 520px); height: auto; display: block; mask-image: linear-gradient(180deg, #000 82%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.portrait .ring { position: absolute; z-index: 1; right: 6%; top: 8%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); opacity: .7; }
.portrait .ring.two { right: -8%; top: -10%; width: 72%; opacity: .45; }

/* Страховка на случай, если скрипт не выполнился (index.html показывает блок сам). */
.app-fallback { margin: 32px var(--edge) 0; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 12px; max-width: 640px; }
.app-fallback strong { display: block; font: 700 18px/1.3 var(--display); }
.app-fallback p { margin: 8px 0 12px; color: var(--bone-dim); }
.app-fallback a { color: var(--orange-soft); }

/* ── Лента фактов ───────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fact { padding: 30px 0 30px 28px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact b { display: block; font: 700 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.02em; }
.fact span { display: block; margin-top: 10px; font: 400 11px/1.5 var(--mono); color: var(--mute); letter-spacing: .14em; text-transform: uppercase; }

/* ── Заголовок раздела ──────────────────────────────────────────────────── */
.sec-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(34px, 4vw, 58px); }
.sec-head small { font: 400 11px/1 var(--mono); letter-spacing: .26em; color: var(--mute); text-transform: uppercase; white-space: nowrap; }
.sec-head hr { flex: 1; height: 1px; border: 0; margin: 0; background: var(--line); }
h2 { margin: 0; font: 700 clamp(30px, 3.6vw, 54px)/1.06 var(--display); letter-spacing: -.02em; max-width: 20ch; }
.sec-intro { margin: 18px 0 0; max-width: 60ch; color: var(--bone-dim); }

/* ── Проекты: крупные строки вместо карточек ────────────────────────────── */
.rows { border-top: 1px solid var(--line); margin-top: clamp(28px, 3vw, 44px); }
.row { display: block; padding: 0; border-bottom: 1px solid var(--line); color: inherit; position: relative; transition: background .25s ease, padding-left .25s ease, opacity .25s ease; }
.row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .25s ease; }
.row:hover { background: color-mix(in srgb, var(--bone) 4%, transparent); padding-left: 18px; }
.row:hover::before, .row[open]::before { transform: scaleY(1); }
.row[open] { background: color-mix(in srgb, var(--bone) 4%, transparent); }
.rows:hover .row:not(:hover) { opacity: .55; }
/* Колонка «сторона» (логотип + подпись) фиксированной ширины под самый широкий набор (110 + 18 + 79 px),
   иначе её содержимое вылезало влево, на текст описания. Текст держит свою границу через padding-right. */
.row > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1.05fr) 212px; gap: 24px; align-items: center; padding: 24px 8px 24px 0; }
.row > summary::-webkit-details-marker { display: none; }
.row .n { font: 400 12px/1.6 var(--mono); color: var(--mute); }
.row .name { font: 700 clamp(22px, 2.3vw, 34px)/1.1 var(--display); letter-spacing: -.015em; }
.row .tag { display: block; margin-top: 8px; font: 400 10px/1.6 var(--mono); letter-spacing: .16em; color: var(--mute); text-transform: uppercase; }
.row .what { color: var(--bone-dim); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 8px; }
.row .side { justify-self: stretch; width: 100%; min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.row .go { flex: none; font: 400 12px/1.6 var(--mono); color: var(--mute); white-space: nowrap; transition: color .25s ease, transform .25s ease; }
.row:hover .go, .row[open] .go { color: var(--orange); }
/* Светлая тема: мелкий оранжевый текст — «текстовым» оттенком (контраст ≥4,5:1). */
[data-theme="light"] .row:hover .go, [data-theme="light"] .row[open] .go,
[data-theme="light"] .channel:hover .go, [data-theme="light"] .qr-cta:hover span { color: var(--orange-soft); }
.row:hover .go { transform: translateX(4px); }
.row .go .go-close, .row[open] .go .go-open { display: none; }
.row[open] .go .go-close { display: inline; }
.row .logo { flex: 0 1 auto; min-width: 0; height: 26px; width: auto; max-width: 110px; object-fit: contain; opacity: .55; filter: grayscale(1) brightness(1.4); transition: opacity .25s ease, filter .25s ease; }
[data-theme="light"] .row .logo { filter: grayscale(1) brightness(.9); }
.row:hover .logo, .row[open] .logo { opacity: 1; filter: none; }
.row .logo.logo-round { height: 40px; border-radius: 50%; }
/* Круглая эмблема «7 кругов рая» тёмная, на чёрной подложке: общее серое приглушение гасит её
   почти до невидимости. В тёмной теме — ярче, при наведении и в раскрытой строке — полный цвет. */
[data-theme="dark"] .row .logo.logo-round, [data-theme="dark"] .trust-logos img.logo-round { opacity: .8; filter: grayscale(1) brightness(2.2); }
[data-theme="dark"] .row:hover .logo.logo-round, [data-theme="dark"] .row[open] .logo.logo-round,
[data-theme="dark"] .trust-logos a:hover img.logo-round, [data-theme="dark"] .trust-logos span.brand-item:hover img.logo-round { opacity: 1; filter: none; }
/* Светлый вариант того же логотипа — вытянутая надпись, а не круг: без овальной обрезки. */
.row .logo.logo-light.logo-round { height: 26px; border-radius: 0; }
/* Логотип под тему: два файла, виден один. */
[data-theme="dark"] .logo-light, [data-theme="light"] .logo-dark { display: none; }
.more { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); padding: 6px 8px 32px 58px; align-items: start; }
.more .desc { margin: 0 0 18px; color: var(--bone-dim); }
.more dl { margin: 0 0 22px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; }
.more dt { font: 400 11px/1.7 var(--mono); letter-spacing: .18em; color: var(--mute); text-transform: uppercase; }
.more dd { margin: 0; color: var(--bone-dim); font-size: 15px; }
.more .links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.more .links button.link { background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0 0 10px; cursor: pointer; }
.trust-note { margin: 26px 0 0; display: flex; align-items: center; gap: 10px; font: 400 12px/1.6 var(--mono); color: var(--mute); letter-spacing: .06em; }
.trust-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }

/* Раскрытая строка: снимки сайта листаются сами и по клику. */
.shots { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; padding: 2px; cursor: pointer; background: linear-gradient(135deg, rgba(229, 121, 47, .9), rgba(240, 164, 104, .55) 45%, rgba(229, 121, 47, .2)); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.shots .frame, .peek .frame { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: var(--ink-soft); }
.shots img, .peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.shots img.on, .peek img.on { opacity: 1; }
.shots[role="button"]:focus-visible { outline-offset: 4px; border-radius: 12px; }
.shots .frame::after, .peek .frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 10, 8, 0), rgba(4, 10, 8, .62)); }
.shots small { position: absolute; left: 12px; bottom: 9px; z-index: 2; font: 400 10px/1.4 var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .7); text-transform: uppercase; }
.peek .dots, .shots .dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.peek .dots i, .shots .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background .3s ease, transform .3s ease; }
.peek .dots i.on, .shots .dots i.on { background: var(--orange-soft); transform: scale(1.35); }

/* Превью под курсором: под строкой у правого края (или над ней), в цветной рамке. */
.peek {
  position: fixed; z-index: 25; width: min(36vw, 430px); aspect-ratio: 16 / 10; border-radius: 14px; padding: 2px; pointer-events: none; opacity: 0;
  transform: translateY(10px) scale(.97); transition: opacity .2s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-soft) 40%, rgba(240, 164, 104, .35) 70%, var(--orange) 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45), 0 0 46px var(--glow);
}
.peek .frame { border-radius: 12px; }
.peek.on { opacity: 1; transform: none; }
@media (hover: none) { .peek { display: none; } }

/* Другие проекты: компактный список под основными. */
.other { margin-top: 34px; }
.other > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--display); color: var(--bone); padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.other > summary::-webkit-details-marker { display: none; }
.other > summary i { font-style: normal; color: var(--orange); }
.other > summary .sum-close, .other[open] > summary .sum-open { display: none; }
.other[open] > summary .sum-close { display: inline; }
.other .rows { margin-top: 22px; }
.other .row .name { font-size: clamp(19px, 1.8vw, 26px); }

/* ── Что можно заказать ─────────────────────────────────────────────────── */
.offer { display: grid; grid-template-columns: 92px minmax(0, 1fr) 210px; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.offer:first-child { border-top: 1px solid var(--line); }
.offer b { font: 700 clamp(32px, 3.2vw, 44px)/1 var(--display); color: var(--orange); letter-spacing: -.03em; }
.offer h3 { margin: 0 0 8px; font: 500 22px/1.2 var(--display); }
.offer p { margin: 0; color: var(--bone-dim); max-width: 62ch; }
.offer .meta { display: grid; gap: 10px; font: 400 11px/1.6 var(--mono); letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }
.offer .meta strong { display: block; font: 500 15px/1.3 var(--display); color: var(--bone); letter-spacing: 0; text-transform: none; }
.offer .meta a { display: block; width: max-content; max-width: 100%; margin-top: 4px; color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid var(--line-strong); text-transform: none; letter-spacing: 0; font: 400 14px/1.5 var(--body); }
.offer .meta a:hover { color: var(--orange-soft); border-color: var(--orange); }
.offers-foot { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
.offers-foot .note { margin: 0; font: 400 12px/1.7 var(--mono); color: var(--mute); letter-spacing: .06em; max-width: 60ch; }

/* ── Опыт: годы слева моноширинным, логотипы компаний ниже ──────────────── */
.years { display: grid; }
.year { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.year:first-child { border-top: 1px solid var(--line); }
.year time { font: 400 12px/1.7 var(--mono); color: var(--mute); letter-spacing: .08em; }
.year h3 { margin: 0 0 6px; font: 500 19px/1.25 var(--display); }
.year p { margin: 0; color: var(--bone-dim); font-size: 15px; max-width: 64ch; }
.trust-logos { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 44px; }
.trust-logos small { font: 400 11px/1 var(--mono); letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.trust-logos a, .trust-logos span.brand-item { display: inline-flex; align-items: center; }
.trust-logos img { height: 30px; width: auto; max-width: 150px; object-fit: contain; opacity: .6; filter: grayscale(1) brightness(1.3); transition: opacity .25s ease, filter .25s ease; }
[data-theme="light"] .trust-logos img { filter: grayscale(1) brightness(.9); }
.trust-logos a:hover img, .trust-logos span.brand-item:hover img { opacity: 1; filter: none; }
.trust-logos b { font: 500 15px/1 var(--display); color: var(--bone-dim); }
.trust-logos img.logo-round { height: 44px; border-radius: 50%; }
.trust-logos img.logo-light.logo-round { height: 30px; border-radius: 0; }

/* ── Обо мне ────────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about p { color: var(--bone-dim); max-width: 60ch; }
.about .accent { color: var(--bone); font-weight: 500; }

/* ── Контакты: список ссылок и код справа ───────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.channels { display: grid; }
.channel { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: color .2s ease; }
.channel:first-child { border-top: 1px solid var(--line); }
.channel small { font: 400 11px/1 var(--mono); letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.channel b { display: block; margin-top: 8px; font: 500 clamp(19px, 2vw, 26px)/1 var(--display); letter-spacing: -.01em; }
.channel .go { font: 400 12px/1.6 var(--mono); color: var(--mute); white-space: nowrap; }
.channel:hover { color: var(--orange-soft); }
.channel:hover .go { color: var(--orange); }
.qr { display: grid; gap: 16px; justify-items: center; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); }
.qr img { width: 100%; max-width: 260px; height: auto; }
.qr small { font: 400 11px/1.6 var(--mono); color: var(--mute); letter-spacing: .1em; text-align: center; }
/* Живой QR: сцена и плоский код делят одну ячейку, кнопка занимает место заранее (.is-pending). */
.qr-visual { position: relative; display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 260px; }
.qr-visual > img, .qr-visual > .qr-scene { grid-area: 1 / 1; align-self: start; width: 100%; max-width: none; }
.qr-visual > img.is-under-scene { visibility: hidden; }
.qr-scene { position: relative; z-index: 1; }
.qr-scene canvas { display: block; width: 100% !important; height: auto !important; border-radius: 14px; cursor: grab; }
.qr-scene canvas:active { cursor: grabbing; }
.qr-flip { grid-area: 2 / 1; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--bone); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.qr-flip:hover { border-color: var(--orange); color: var(--orange-soft); }
.qr-flip.is-pending { visibility: hidden; pointer-events: none; }
.qr-cta { display: grid; justify-items: center; gap: 6px; width: 100%; padding-top: 14px; border-top: 1px dashed var(--line); text-decoration: none; }
.qr-cta span { font: 500 14px/1.3 var(--display); color: var(--orange-soft); }
.qr-cta:hover span { color: var(--orange); }
.contact-status { margin-top: 36px; }

/* ── Подвал ─────────────────────────────────────────────────────────────── */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 34px 0 calc(54px + env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; font: 400 11px/1.6 var(--mono); color: var(--mute); letter-spacing: .08em; }
.foot a { color: var(--mute); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--bone-dim); border-bottom-color: var(--line-strong); }
.foot .requisites { margin-left: auto; }

/* ── Музыка (левый нижний угол) и «Наверх» (правый) ─────────────────────── */
.ambient-dock { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ambient-dock-btn, .back-to-top {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--bone-dim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--ink) 80%, transparent); font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}
.ambient-dock-btn:hover, .back-to-top:hover { color: var(--bone); border-color: var(--orange); }
.ambient-dock-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.ambient-dock-eq i { display: block; width: 3px; background: var(--orange); height: 4px; border-radius: 1px; }
.ambient-dock-eq i:nth-child(2) { height: 8px; } .ambient-dock-eq i:nth-child(3) { height: 6px; }
.ambient-dock-btn.is-playing .ambient-dock-eq i { animation: eq .9s ease-in-out infinite alternate; }
.ambient-dock-btn.is-playing .ambient-dock-eq i:nth-child(2) { animation-delay: .15s; } .ambient-dock-btn.is-playing .ambient-dock-eq i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { from { height: 3px; } to { height: 10px; } }
.ambient-dock-volume { display: none; width: 240px; padding: 14px 16px; gap: 10px; border-radius: 14px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ambient-dock.is-open .ambient-dock-volume { display: grid; }
.ambient-dock-station { font: 400 10px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.ambient-dock-controls { display: flex; align-items: center; gap: 8px; }
.ambient-dock-controls button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--bone); cursor: pointer; display: grid; place-items: center; }
.ambient-dock-controls button:hover { border-color: var(--orange); color: var(--orange-soft); }
.ambient-dock-controls svg { width: 13px; height: 13px; fill: currentColor; }
.ambient-dock-play .ambient-dock-icon-pause, .ambient-dock-play.is-playing .ambient-dock-icon-play { display: none; }
.ambient-dock-play.is-playing .ambient-dock-icon-pause { display: block; }
.ambient-dock-track { margin: 0; font: 400 11px/1.5 var(--mono); color: var(--bone-dim); overflow-wrap: anywhere; }
.ambient-dock-volume input[type="range"] { width: 100%; accent-color: var(--orange); margin: 0; }
.back-to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, color .2s ease, border-color .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top i { font-style: normal; color: var(--orange); }

/* ── Диалог видео, всплывающее сообщение ────────────────────────────────── */
.media-dialog { border: 0; padding: 0; width: min(92vw, 1100px); max-width: none; background: var(--ink-soft); color: var(--bone); border-radius: 14px; overflow: visible; }
.media-dialog::backdrop { background: rgba(0, 0, 0, .74); }
.dialog-content video, .dialog-content iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.dialog-message { margin: 0; padding: 40px 32px; text-align: center; color: var(--bone-dim); }
.dialog-close { position: absolute; right: -6px; top: -46px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ink); color: var(--bone); font-size: 20px; line-height: 1; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 45; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--ink-soft); color: var(--bone); font: 400 12px/1.4 var(--mono); letter-spacing: .06em; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Появление при прокрутке — коротко и один раз ───────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .peek, .row, .link, .shots img, .peek img { transition: none; }
  .ambient-dock-btn.is-playing .ambient-dock-eq i { animation: none; }
}

/* Воздух между заголовком раздела и его содержимым. */
.offers-list, .years, .contact { margin-top: clamp(28px, 3vw, 44px); }
.about h2 + p { margin-top: 26px; }
.about p + p { margin-top: 16px; }

/* ── Планшет и телефон ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .row > summary { grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1fr) 192px; gap: 18px; }
  .row .logo { max-width: 90px; }
}
@media (max-width: 900px) {
  .site-header { gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .main-nav, .language-switch, .admin-link { display: none; }
  .menu-toggle { display: flex; }
  .header-tools { margin-left: auto; }
  .hero .shell { grid-template-columns: 1fr; }
  .portrait { min-height: 0; margin-top: 12px; }
  .portrait img { width: min(88%, 380px); }
  .row > summary { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .row .what { display: none; }
  .row .side .go { display: none; }
  .more { grid-template-columns: 1fr; padding-left: 0; }
  .about, .contact { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .offer .meta { grid-column: 2; }
  .year { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; }
  /* Факты: 2×2 на всём диапазоне до 900 px — иначе на планшете сетка 3+1 с лишней чертой. */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .foot .requisites { margin-left: 0; }
  .ambient-dock-text { display: none; }
  .back-to-top { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* На телефонах логотип чуть меньше, а промежуток шире: текст и лого не должны
     смыкаться (владелец, 09.09.2026). Ширина текстовой колонки при этом не теряется. */
  .row > summary { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; padding: 20px 4px 20px 0; }
  .row:hover { padding-left: 0; }
  .row .logo { max-width: 64px; height: 22px; }
  .row .logo.logo-round { height: 32px; }
  .row .logo.logo-light.logo-round { height: 22px; }
  .fact { padding: 22px 0 22px 18px; }
  .sec-head { margin-bottom: 26px; }
  .actions { gap: 22px; }
  .status { margin-top: 32px; }
  .offer { grid-template-columns: 1fr; gap: 10px; }
  .offer .meta { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year { grid-template-columns: 1fr; gap: 6px; }
  .channel { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qr { padding: 16px; }
}
