/* Cartsoon — портфолио видеомонтажёра. Концепт «Монтажный стол»: тёмные панели монтажки, таймлайн, яркие акценты. */
:root {
  --bg: #0e1014;
  --bg-2: #121419;
  --panel: #171a20;
  --panel-2: #1d2128;
  --line: #262b34;
  --line-2: #323844;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --dim: #6f7887;
  --blue: #2f9bff;
  --blue-2: #1f86ec;
  --pink: #ff4fa3;
  --orange: #ff8a2a;
  --violet: #9b6bff;
  --red: #ff3d3d;
  --green: #2fd18c;
  --cyan: #35d0ff;
  --radius: 14px;
  --radius-s: 10px;
  --wrap: 1600px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); overflow-x: hidden;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.c-blue { color: var(--blue); } .c-pink { color: var(--pink); } .c-orange { color: var(--orange); }
.c-violet { color: var(--violet); } .c-red { color: var(--red); } .c-green { color: var(--green); }
.c-cyan { color: var(--cyan); } .c-yellow { color: #f5c542; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
       border-radius: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(47, 155, 255, .8); }
.btn-blue:hover { background: var(--blue-2); box-shadow: 0 10px 28px -8px rgba(47, 155, 255, .9); }
.btn-ghost { border: 1.5px solid #3a404b; color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: #5a6270; background: rgba(255, 255, 255, .05); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn .k { font-weight: 800; font-size: 17px; }

/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(14, 16, 20, .82); backdrop-filter: blur(14px) saturate(140%);
          -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.logo svg { width: 26px; height: 26px; color: var(--blue); }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14.5px; font-weight: 600; color: #c9cfda; }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--dim); }
.lang button { color: var(--dim); padding: 4px 2px; }
.lang button[aria-pressed="true"] { color: var(--text); }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }    /* открыто — крестик */
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding-top: 36px; background:
  radial-gradient(900px 420px at 78% 0%, rgba(47, 155, 255, .10), transparent 70%),
  radial-gradient(700px 380px at 10% 30%, rgba(155, 107, 255, .07), transparent 70%); }
/* фон первого экрана: размытая монтажная студия, полупрозрачно, гаснет к таймлайну */
.hero { isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1; pointer-events: none;
                background: url("../img/hero-bg.webp") 70% 40% / cover no-repeat; opacity: .5;
                -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 82%);
                mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 82%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; align-items: center; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 800; }
.lead { margin-top: 18px; font-size: clamp(16px, 1.35vw, 18.5px); color: #c3cad6; max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.monitor-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: stretch; }
.monitor { margin: 0; background: #08090c; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
           box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.monitor-screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.monitor-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform 6s ease; }
.monitor-img.swap { opacity: .25; }
.monitor-screen:hover .monitor-img { transform: scale(1.03); }
.monitor-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55)), linear-gradient(0deg, rgba(0,0,0,.65), transparent 40%); }
.monitor-tag { position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(-4deg); max-width: 34%; text-align: left;
               font: italic 800 clamp(16px, 2.4vw, 34px)/1.05 var(--font); text-transform: uppercase; color: rgba(255, 255, 255, .78);
               text-shadow: 0 2px 18px rgba(0, 0, 0, .6); pointer-events: none; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
        background: rgba(10, 12, 16, .55); border: 2px solid rgba(255, 255, 255, .85); display: grid; place-items: center;
        backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.monitor-screen:hover .play { transform: scale(1.08); background: var(--blue); border-color: var(--blue); }
.monitor-title { position: absolute; left: 18px; bottom: 14px; right: 40%; text-align: left; font-weight: 700; font-size: 14px;
                 color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; color: #c9cfda; background: #0b0d11; border-top: 1px solid var(--line); }
.tc { font: 500 12.5px var(--mono); color: #d7dce5; white-space: nowrap; }
.scrub { flex: 1; height: 4px; border-radius: 4px; background: #2a2f39; overflow: hidden; }
.scrub i { display: block; height: 100%; width: 100%; background: var(--blue); border-radius: 4px; transform: scaleX(0); transform-origin: 0 50%; }
.monitor-bar .i { width: 17px; height: 17px; color: #aeb5c2; }

.tools { list-style: none; margin: 0; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; width: 128px;
         background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tools li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #c3cad6; cursor: default; transition: background .2s, color .2s; }
.tools li:hover { background: var(--panel-2); color: #fff; }
.tools li .i { width: 17px; height: 17px; color: var(--dim); }
.tools li:hover .i { color: var(--blue); }

/* ---------- таймлайн ---------- */
.timeline { margin-top: 34px; display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--bg-2);
            border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); user-select: none; }
.tl-heads { border-right: 1px solid var(--line); background: var(--panel); }
.tl-ruler-head { height: 30px; display: grid; place-items: center; color: var(--dim); border-bottom: 1px solid var(--line); }
.tl-head { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px; font: 600 12px var(--mono); color: #c3cad6; border-bottom: 1px solid var(--line); }
.tl-head:last-child { border-bottom: 0; }
.tl-head .i { width: 14px; height: 14px; color: var(--dim); }
.tl-head span { background: #2a2f39; border-radius: 4px; padding: 2px 6px; }
/* полосы прокрутки у таймлайна нет: на телефоне листается пальцем; ручка плейхеда у края не раздвигает область */
.tl-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tl-scroll::-webkit-scrollbar { display: none; }
.tl-area { position: relative; min-width: 100%; overflow: hidden; }
.tl-ruler { position: relative; height: 30px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); color: var(--dim);
            background-image: repeating-linear-gradient(90deg, transparent 0 19px, #2a2f39 19px 20px); background-size: 20px 7px; background-repeat: repeat-x; background-position: 0 bottom; }
.tl-ruler span { position: absolute; top: 6px; transform: translateX(4px); white-space: nowrap; }
.tl-ruler span::before { content: ""; position: absolute; left: -4px; top: -6px; width: 1px; height: 30px; background: #353b47; }
.tl-track { position: relative; height: 52px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.tl-track:last-of-type { border-bottom: 0; }
.tl-track.v1 { display: flex; gap: 3px; padding-left: 10px; padding-right: 10px; }
.clip { position: relative; height: 100%; padding: 0; border-radius: 7px; overflow: hidden; flex: 1 1 120px; min-width: 90px; border: 1px solid rgba(255,255,255,.08);
        background: #222; cursor: pointer; transition: filter .2s, box-shadow .2s, transform .15s; }
.clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip::after { content: ""; position: absolute; inset: 0; border-radius: inherit;  /* плотная подложка под подписью — до самого низа клипа */
               background: linear-gradient(180deg, rgba(10,12,16,0) 0%, rgba(10,12,16,.3) 28%, rgba(10,12,16,.86) 58%, rgba(10,12,16,.94) 100%); }
.clip:hover { filter: brightness(1.15); transform: translateY(-1px); }
.clip.on { box-shadow: 0 0 0 2px var(--blue); filter: brightness(1.15); }
.clip span { position: absolute; left: 7px; bottom: 5px; right: 6px; z-index: 1; font: 600 10.5px/1.2 var(--font); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tclip { position: absolute; top: 7px; bottom: 7px; border-radius: 7px; display: grid; place-items: center; padding: 0 12px;
         font: 800 11.5px/1.15 var(--font); letter-spacing: .06em; text-transform: uppercase; text-align: center; color: #fff; white-space: nowrap; overflow: hidden; }
.tclip.a { background: linear-gradient(180deg, #6d4ae8, #5435c8); }
.tclip.b { background: linear-gradient(180deg, #b0459c, #8e3480); }
.tclip.c { background: linear-gradient(180deg, #2c7be5, #2261b8); }
.a1 canvas { display: block; width: 100%; height: 100%; }
/* плейхед двигается transform'ом (без перерасчёта раскладки в каждом кадре) */
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--blue); z-index: 5; cursor: ew-resize; touch-action: none; will-change: transform; }
.playhead::before { content: ""; position: absolute; top: 0; left: -7px; width: 16px; height: 16px; background: var(--blue);
                    clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.playhead i { position: absolute; inset: 0 -10px; }

/* ---------- с кем работал ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-in { display: flex; align-items: center; gap: 28px; min-height: 96px; padding-top: 18px; padding-bottom: 18px; }
.trust-label { font-weight: 600; color: var(--muted); white-space: nowrap; }
/* бегущая строка: два одинаковых ряда, лента уезжает на ширину одного ряда; на наведении — пауза */
.marquee { flex: 1; min-width: 0; overflow: hidden;
           -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
           mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marks { list-style: none; margin: 0; padding: 0 0 0 0; display: flex; align-items: center; gap: 30px; padding-right: 30px; flex: none; }
.marks .dot { color: #3d4450; font-size: 14px; }
.mark { font-weight: 800; font-size: 20px; letter-spacing: .02em; color: #d9dee6; opacity: .82; transition: opacity .2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.mark:hover { opacity: 1; }
.mark .box { border: 2px solid currentColor; border-radius: 4px; padding: 0 6px; font-size: 16px; line-height: 1.3; }
.mark .ring { width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 12px; }
.mark small { display: block; font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: .04em; }

/* ---------- цифры ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 30px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line-2); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: #c3cad6; font-size: 15px; }

/* ---------- секции ---------- */
section.works, section.services, section.process { padding: 40px 0 0; }
section.services, section.process { padding-top: 56px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.sub-h { font-size: 20px; font-weight: 800; margin: 38px 0 16px; }

/* фильтры = «клипы» монтажки: цветная полоска категории слева, иконка, счётчик; активный подсвечен цветом категории */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { --c: var(--blue); position: relative; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 8px 0 14px;
        border-radius: 11px; background: linear-gradient(180deg, #1b1f26, #15181e); border: 1px solid var(--line); color: #c3cad6;
        font-size: 14px; font-weight: 700; overflow: hidden; transition: transform .18s, color .2s, border-color .2s, box-shadow .25s, background .25s; }
.chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: .85; }
.chip .ci { width: 17px; height: 17px; color: var(--c); flex: none; transition: color .2s; }
.chip .cn { min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px; display: grid; place-items: center; font: 600 12px var(--mono);
            background: rgba(255, 255, 255, .06); color: #aeb5c2; transition: background .2s, color .2s; }
.chip:hover { transform: translateY(-2px); color: #fff; border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 8px 22px -14px var(--c); }
.chip[aria-pressed="true"] { color: #fff; border-color: var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #1b1f26), color-mix(in srgb, var(--c) 16%, #15181e));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 10px 28px -12px var(--c); }
.chip[aria-pressed="true"] .ci { color: #fff; }
.chip[aria-pressed="true"] .cn { background: var(--c); color: #fff; }
.chip[aria-pressed="true"]::before { opacity: 0; }

/* сетка работ: секция шире остальных — ролики крупнее; на широком экране 4 колонки 16:9 и 8 колонок Shorts */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 14px; }
.card { display: flex; flex-direction: column; justify-content: flex-start; align-self: start; text-align: left; width: 100%; min-width: 0; padding: 0; }
.card > span { display: block; }
.thumb { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.card:hover .thumb img { transform: scale(1.05); filter: brightness(1.08); }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font: 600 12px var(--mono); padding: 2px 7px; border-radius: 6px; }
.thumb .badge { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.66); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
.thumb .pl { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--blue);
             display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.thumb .pl svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.card:hover .pl, .card:focus-visible .pl { opacity: 1; transform: scale(1); }
.card .ct { margin-top: 12px; font-size: 15.5px; font-weight: 700; line-height: 1.35; letter-spacing: -0.005em; }
.card .meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.card .desc { margin-top: 6px; font-size: 13.5px; color: #aeb5c2; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* вертикальные ролики */
.shorts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 12px; }
.shorts .thumb { aspect-ratio: 9 / 16; }
.shorts .card .ct { font-size: 13.5px; }
.grid.vertical { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 12px; }
.grid.vertical .thumb { aspect-ratio: 9 / 16; }
.grid.vertical .card .ct { font-size: 13.5px; }
.more { display: flex; justify-content: center; margin-top: 30px; }
.more[hidden], .shorts-block[hidden] { display: none; }

/* ---------- услуги ---------- */
section.services { position: relative; isolation: isolate; margin-top: 40px; padding: 48px 0 52px;
  background: linear-gradient(180deg, rgba(18, 21, 27, .0), rgba(18, 21, 27, .85) 18%, rgba(18, 21, 27, .85) 82%, rgba(18, 21, 27, 0)); }
section.services + section.process { padding-top: 24px; }
/* точечная сетка, как подложка монтажного стола */
section.services::before { content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 25%, transparent 80%); }
/* мягкие цветные свечения в цветах категорий */
section.services::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(720px 380px at 12% 40%, rgba(47, 155, 255, .2), transparent 70%),
              radial-gradient(640px 360px at 90% 68%, rgba(155, 107, 255, .19), transparent 70%),
              radial-gradient(520px 260px at 58% 8%, rgba(255, 79, 163, .09), transparent 70%),
              radial-gradient(480px 240px at 40% 100%, rgba(47, 209, 140, .07), transparent 70%); }
section.services .srv { background: rgba(23, 26, 32, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035); }
section.services .srv:hover { background: rgba(29, 33, 40, .92); border-color: rgba(255, 255, 255, .14); }
.srv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.srv { display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px 18px 16px; background: var(--panel); border: 1px solid var(--line);
       border-radius: var(--radius); transition: transform .2s, border-color .2s, background .2s; }
.srv:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.srv .ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.045); }
.srv .ic svg { width: 25px; height: 25px; }
.srv h3 { font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.srv p { margin-top: 5px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
/* ---------- процесс ---------- */
.process h2 { margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { display: flex; gap: 16px; position: relative; }
.num { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.steps h3 { font-size: 16px; font-weight: 700; margin-top: 2px; }
.steps p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- заказ ---------- */
.order { position: relative; isolation: isolate; margin-top: 42px; padding: 60px 0 68px; overflow: hidden;
         background: radial-gradient(900px 480px at 20% 35%, #152033, transparent 70%), var(--bg-2);
         border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-photo { position: absolute; z-index: -1; left: 16%; top: 0; width: 66%; height: 100%; object-fit: cover; object-position: 0% 50%;
               opacity: .36; pointer-events: none;   /* надпись на мониторе уходит под карточку, слева — монтажка с таймлайном */
               -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 62%, transparent 92%), linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
               -webkit-mask-composite: source-in; mask-composite: intersect;
               mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 62%, transparent 92%), linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); }
.order-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4.5vw, 80px); align-items: center; }
.order-side { padding: 8px 0; }
.order-h { font-size: clamp(46px, 5.6vw, 88px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.order-h span { display: block; }
.order-sub { margin-top: 16px; font-size: clamp(18px, 1.6vw, 24px); color: #c3cad6; }
.promises { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.promises li { display: flex; gap: 18px; align-items: flex-start; }
.pi { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; color: var(--blue);
      border: 1.5px solid rgba(47, 155, 255, .55); background: rgba(47, 155, 255, .08); box-shadow: 0 0 22px -6px rgba(47, 155, 255, .55); }
.pi svg { width: 28px; height: 28px; }
.promises b { display: block; font-size: 18px; font-weight: 700; margin-top: 4px; }
.promises p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 360px; }
.order-direct { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.order-direct .eyebrow { margin-bottom: 14px; }
.tg-big { display: inline-flex; align-items: center; gap: 18px; height: 60px; padding: 0 22px 0 0; border-radius: 12px; overflow: hidden;
          border: 1.5px solid rgba(47, 155, 255, .7); background: rgba(14, 20, 30, .6); font-size: 17px; transition: border-color .2s, background .2s, transform .15s; }
.tg-big:hover { border-color: var(--blue); background: rgba(47, 155, 255, .12); }
.tg-big:active { transform: translateY(1px); }
.tg-ic { width: 66px; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #3aa8ff, #1f7fe0); color: #fff; }
.tg-ic svg { width: 26px; height: 26px; }
.tg-big b { font-weight: 700; }
.tg-big .i { color: var(--blue); margin-left: 18px; }
.small { font-size: 13.5px; margin-top: 10px; }

.order-card { position: relative; padding: clamp(12px, 1.2vw, 16px) clamp(20px, 2.2vw, 30px); border-radius: 20px; border: 1px solid var(--line-2);
              background: rgba(20, 23, 29, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
              box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
              display: grid; gap: 10px; }
.order-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.order-card legend, .fld > span:first-child { display: block; padding: 0; margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.fld { display: block; }
/* выбор вариантов: чекбоксы/радио спрятаны, видна «кнопка» */
.opts { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.opt, .seg4 label, .seg2 label { position: relative; }
.opt input, .seg4 input, .seg2 input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt span, .seg4 span, .seg2 span { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); font-size: 15px; font-weight: 600; color: #dfe4ec;
  cursor: pointer; user-select: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.opt span { min-width: 140px; justify-content: flex-start; }
.opt .i, .seg4 .i, .seg2 .i { width: 20px; height: 20px; }
.opt span:hover, .seg4 span:hover, .seg2 span:hover { border-color: #4a5260; background: rgba(255, 255, 255, .045); }
.opt input:checked + span, .seg4 input:checked + span, .seg2 input:checked + span {
  border-color: var(--blue); background: rgba(47, 155, 255, .1); box-shadow: inset 0 0 0 1px var(--blue), 0 0 18px -8px rgba(47, 155, 255, .8); color: #fff; }
.opt input:focus-visible + span, .seg4 input:focus-visible + span, .seg2 input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.seg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seg4 .i { color: #aeb5c2; }
.seg4 input:checked + span .i { color: var(--blue); }
.seg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg2 b { font-weight: 600; }
/* поля */
.inp { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; border-radius: 10px;
       border: 1px solid var(--line-2); background: rgba(8, 10, 14, .45); transition: border-color .2s, box-shadow .2s; }
.inp:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 155, 255, .16); }
.inp .i { color: var(--dim); }
.inp input, .inp textarea { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; color: var(--text); font: 500 15px var(--font); }
.inp textarea { height: auto; min-height: 92px; padding: 14px 0 26px; resize: none; line-height: 1.5; field-sizing: content; max-height: 260px; }
.inp.area { align-items: flex-start; }
.inp.area > .i { margin-top: 15px; }
.inp input::placeholder, .inp textarea::placeholder { color: #727b8a; }
.inp.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 61, 61, .14); }
.cnt { position: absolute; right: 14px; bottom: 8px; font: 500 12px var(--mono); font-style: normal; color: var(--dim); }
.row-src { display: flex; gap: 10px; }
.row-src .grow { flex: 1; }
.src-btn { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2);
           background: rgba(255, 255, 255, .025); font-size: 14.5px; font-weight: 600; color: #dfe4ec; transition: border-color .2s, background .2s; }
.src-btn:hover { border-color: #4a5260; background: rgba(255, 255, 255, .05); }
.src-btn .i { width: 20px; height: 20px; }
.src-btn:first-of-type .i { color: #ffcc33; }
.src-btn:last-of-type .i { color: #34a853; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; margin-top: 6px; }
.row2.top { margin-top: 0; gap: 14px; }
/* выпадающий список в стиле полей: своя стрелка, пустой выбор — цветом подсказки */
.inp.sel { cursor: pointer; }
.inp select { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; color: var(--text); font: 500 15px var(--font);
              -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 26px; }
.inp select.empty { color: #727b8a; }
.inp select option { background: #1a1e25; color: var(--text); }
.inp .chev { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; color: #8a93a2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-order { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 60px; border-radius: 12px; margin-top: 2px;
             background: linear-gradient(180deg, #3aa8ff, #1f86ec); color: #fff; font-size: 18px; font-weight: 700;
             box-shadow: 0 14px 34px -14px rgba(47, 155, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .25); transition: filter .2s, transform .15s; }
.btn-order:hover { filter: brightness(1.08); }
.btn-order:active { transform: translateY(1px); }
.btn-order[disabled] { filter: saturate(.4) brightness(.8); cursor: progress; }
.order-err { margin-top: -4px; color: #ff8f8f; font-size: 14px; text-align: center; }
.order-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -3px; color: var(--dim); font-size: 13.5px; text-align: center; }
.order-note .i { width: 15px; height: 15px; }
.order-done { position: absolute; inset: 0; z-index: 2; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center;
              gap: 14px; padding: 30px; text-align: center; background: rgba(18, 21, 27, .97); animation: pop .35s ease; }
.done-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff;
           background: linear-gradient(135deg, #3aa8ff, #1f7fe0); box-shadow: 0 0 0 10px rgba(47, 155, 255, .12), 0 16px 40px -12px rgba(47, 155, 255, .9); }
.done-ic svg { width: 38px; height: 38px; }
.order-done h3 { font-size: 28px; margin-top: 8px; }
.order-done p { color: #c3cad6; max-width: 440px; line-height: 1.55; }
.order-done .btn { margin-top: 8px; }
.order-done .fb { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 460px; margin-top: 4px; }
.order-done .fb .btn { flex: 1 1 180px; }
.fb-text { width: 100%; resize: none; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(8, 10, 14, .5); color: #c3cad6;
           font: 500 13px/1.5 var(--font); padding: 10px 12px; }
.fb-play { position: relative; display: block; width: 100%; height: 100%; }
.fb-play img { width: 100%; height: 100%; object-fit: cover; }
.fb-play .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center;
                 border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 10px 30px -8px rgba(47, 155, 255, .9); }
.fb-play .play svg { width: 30px; height: 30px; margin-left: 4px; }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }

/* ---------- подвал ---------- */
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.socials { display: flex; gap: 16px; }
.socials a { color: #aeb5c2; transition: color .2s; }
.socials a:hover { color: #fff; }
.socials .i { width: 20px; height: 20px; }
.foot-tag { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- плеер ---------- */
/* плеер целиком помещается в экран — без полос прокрутки; видео подстраивается под высоту окна */
.player { --info: 190px; width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2);
          border-radius: 16px; background: var(--panel); color: var(--text); overflow: hidden; }
.player::backdrop { background: rgba(4, 5, 8, .82); backdrop-filter: blur(6px); }
/* открыт плеер — страница под ним не прокручивается (clip у body — чтобы липкая шапка осталась на месте) */
html:has(dialog.player[open]) { overflow: hidden; }
html:has(dialog.player[open]) body { overflow-x: clip; }
.player-box { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.player-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.player-x:hover { background: rgba(0,0,0,.85); }
.player-frame { position: relative; flex: none; background: #000; aspect-ratio: 16 / 9;
                width: min(100%, calc((100dvh - 34px - var(--info)) * 16 / 9)); margin: 0 auto; }
.player.is-vertical { width: min(520px, calc(100vw - 32px)); }
.player-frame.vertical { aspect-ratio: 9 / 16; width: auto; max-width: 100%; height: min(calc(100dvh - 34px - var(--info)), 820px); }
.player-frame iframe { overflow: hidden; }
.player-frame iframe, .player-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.player-frame .fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(0,0,0,.55); }
.player-frame .fallback p { max-width: 460px; color: #d7dce5; margin-bottom: 16px; }
.player-info { padding: 16px 22px 20px; overflow-y: auto; scrollbar-width: none; min-height: 0; }
.player-info::-webkit-scrollbar { display: none; }
.player-title { font-size: 20px; font-weight: 800; }
.player-meta { margin-top: 4px; font-size: 14px; }
.player-desc { margin-top: 10px; color: #c3cad6; }
.player-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.player-links .btn { height: 40px; font-size: 14px; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (min-width: 1400px) {                     /* широкий экран: крупная сетка роликов */
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shorts, .grid.vertical { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .tools { display: none; }
  .monitor-wrap { grid-template-columns: minmax(0, 1fr); }
  .srv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 16 карточек — ровно 8 рядов */
  .srv { padding: 16px 14px; }
  .shorts, .grid.vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .order-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .opt span { min-width: 0; }
}
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 18px;
         background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .lang { margin-left: auto; margin-right: -8px; gap: 0; }               /* RU/EN — 40×44 под палец, буквы на прежних местах */
  .lang button { min-width: 40px; min-height: 44px; }
  .socials { gap: 0; }
  .socials a { display: grid; place-items: center; width: 40px; height: 40px; }
  .clip { min-width: 0; }                                                  /* все 9 клипов влезают, плейхед доходит до последнего */
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero h1 { font-size: clamp(34px, 7vw, 52px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .steps li + li::before { display: none; }
  .trust-in { flex-direction: column; align-items: stretch; gap: 12px; }
  .mark { font-size: 17px; }
  .order-in { grid-template-columns: minmax(0, 1fr); }
  .order-photo { width: 100%; height: 55%; opacity: .25; }
  .promises p { max-width: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }                      /* только бока: вертикальные отступы блоков остаются */
  .topbar-in { gap: 14px; height: 60px; }
  .nav { top: 60px; }
  .hide-sm { display: none; }
  .logo { font-size: 17px; }
  .hero { padding-top: 24px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .monitor-tag { display: none; }
  .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .monitor-bar .i:not(:first-of-type) { display: none; }
  .timeline { grid-template-columns: 64px minmax(0, 1fr); margin-top: 26px; }
  .tl-head { gap: 6px; padding: 0 8px; }
  .tl-head .i:last-child { display: none; }
  .tl-area { min-width: 860px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat { padding: 22px 8px; }
  section.works, section.services, section.process { padding-top: 34px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shorts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .shorts .card { flex: 0 0 42%; scroll-snap-align: start; }
  .grid.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; width: calc(100% + 32px); }
  .chip { flex: none; }
  .order { padding: 40px 0 44px; }
  .order-card { border-radius: 16px; gap: 10px; }
  .opt { flex: 1 1 calc(50% - 5px); }
  .opt span { min-width: 0; }
  .seg4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-src { flex-wrap: wrap; }
  .row-src .grow { flex: 1 1 100%; }
  .src-btn { flex: 1; justify-content: center; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .tg-big { width: 100%; }
  .tg-big .i { margin-left: auto; }
  .foot-in { flex-direction: column; text-align: center; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }            /* без анимации — ленту можно прокрутить вручную */
}
