/* ============================================================
   Alina Okishor — портфолио. Пиксель-в-пиксель по фрейму 456-913.
   Фиксированный холст 1920×12300, масштабируется под ширину экрана.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 12335;
  overflow: hidden;
}
#canvas {
  position: absolute;
  top: 0; left: 0;
  width: 1920px;
  height: 12335px;
  transform-origin: top left;
  background: #ffffff;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* ---- движущееся плёночное зерно поверх всего сайта ---- */
.grain { display: none; }
@keyframes grain-move {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6%, 4%); }
  50%  { transform: translate(5%, -5%); }
  75%  { transform: translate(-4%, 3%); }
  100% { transform: translate(4%, -3%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---- лайтбокс: крупный просмотр кадров графики ---- */
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(22,22,22,.92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: none; overflow: hidden; }
.lightbox.open { display: flex; }
.lightbox::before {
  content: ""; position: absolute; inset: -50%; width: 200%; height: 200%; z-index: 0; pointer-events: none;
  opacity: .05;
  background-image: url("assets/noise.png");
  background-size: 160px 160px;
  animation: none;
}
.lightbox img { position: relative; z-index: 1; width: auto; height: auto; max-width: 92%; max-height: 90%; object-fit: contain; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .lightbox::before { animation: none; } }

/* базовый абсолют */
.a { position: absolute; }

/* моргающий глаз-глиф в заголовке (раз в 2 сек) — через прозрачность, не трогает вёрстку */
.blink-eye { animation: eye-blink 2s infinite; display: inline-block; transform: scale(1.4); transform-origin: center; position: relative; top: -0.2em; }
  .m-h2 .blink-eye { margin: 0 16px; }
@keyframes eye-blink {
  0%, 90%, 100% { opacity: 1; }
  93%, 95%      { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .blink-eye { animation: none; } }

/* «эффект выключения телевизора» (сжатие в полоску) для глаза-глифа в заголовке.
   Ширина зафиксирована (1em), чтобы строка не переразбивалась. */
.tv-eye {
  display: inline-block; width: 1em; text-align: center;
  vertical-align: baseline; overflow: visible;
  transform-origin: center; animation: tv-off 2.6s infinite;
}
@keyframes tv-off {
  0%, 88%, 100% { transform: scaleY(1); }
  93%           { transform: scaleY(0.06); }
}
@media (prefers-reduced-motion: reduce) { .tv-eye { animation: none; } }

/* шрифтовые утилиты */
.osw   { font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; color: #262626; }
.inter { font-family: 'Inter', sans-serif; }
.mono  { font-family: 'IBM Plex Mono', monospace; font-size: 16px; color: #000; }
.hel   { font-family: 'Helvetica Neue', Arial, sans-serif; }
.glyph { font-family: 'Noto Sans Egyptian Hieroglyphs', serif; }
.lower { text-transform: lowercase; }
.g3    { color: #b3b3b3; }
.wine  { color: #7a1f2b; }
.num   { color: #737373; }

.h110  { font-size: 110px; line-height: 120px; letter-spacing: -1.4px; }

/* nav */
.nav a { position: absolute; top: 27px; font-size: 20px; letter-spacing: -0.32px; color: #262626; text-transform: lowercase; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.nav a:hover { color: #7a1f2b; }
.logo { display: flex; }

/* кнопка-вино */
.btn-wine {
  display: flex; align-items: center; justify-content: center;
  background: #7a1f2b; color: #fff; border: 1px solid #000;
  text-transform: lowercase; letter-spacing: -0.32px;
}
.btn-wine:hover { opacity: .9; }
/* десктоп-дропдаун услуг (liquid glass) */
.f-arrow-d { transition: transform .25s ease; transform-origin: center; }
.f-arrow-d.open { transform: rotate(180deg); }
.f-dd-d { position: absolute; display: none; z-index: 60; background: rgba(255,255,255,0.5); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); border: 1px solid rgba(122,31,43,0.22); box-shadow: 0 18px 54px rgba(0,0,0,0.16); }
.f-dd-d.open { display: block; }
.f-dd-opt-d { font-family: 'Inter', sans-serif; font-size: 23px; color: #262626; padding: 20px 28px; cursor: pointer; border-bottom: 1px solid rgba(122,31,43,0.10); transition: background .15s, color .15s; }
.f-dd-opt-d:last-child { border-bottom: none; }
.f-dd-opt-d:hover { background: rgba(122,31,43,0.08); color: #7a1f2b; }
.dd-hit { background: transparent; cursor: pointer; z-index: 6; }

/* ---- философия: карточки ---- */
.card { width: 390px; height: 260px; background: #fff; border: 1px solid #262626; }
.card.dark { background: #262626; }
.ph-t { position: absolute; left: 30px; right: 30px; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 17px; line-height: 22px; color: #000; }
.card.dark .ph-t { color: #fff; }
.ph-n { position: absolute; left: 301px; top: 32px; font-family: 'IBM Plex Mono', monospace; font-size: 16px; color: #000; }
.ph-p { position: absolute; left: 30px; right: 30px; bottom: 42px; font-family: 'Inter', sans-serif; font-size: 17px; line-height: 26px; color: #484848; }
.badge { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #262626; line-height: 17px; }

/* ---- работы ---- */
.ph-img { background: #d9d9d9; }
.wk-h .wk-no { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 26px; color: #484848; }
.wk-h .wk-nm { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 26px; color: #0b0b0b; }
.wk-f { text-align: right; }
.wk-f .wk-tg { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 26px; color: #484848; text-transform: lowercase; }
.wk-f .wk-sb { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 26px; color: #484848; text-transform: lowercase; }

/* ---- графика: авто-панорама ---- */
.pano-wrap { overflow: hidden; }
.pano-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.pano-wrap { cursor: none; }
.pano-eye {
  position: absolute; z-index: 5; left: 0; top: 0;
  font-size: 40px; line-height: 1; color: #fff;
  transform: translate(-50%, -50%); will-change: transform;
  pointer-events: none; opacity: 0; transition: opacity .15s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.pano-frame {
  flex: 0 0 auto;
  width: 1031px; height: 580px;
  margin-right: 16px;
  background: #d9d9d9;
  position: relative;
  overflow: hidden;
}
.pano-frame:nth-child(even) { background: #d0d0d0; }
.pano-frame img { width: 100%; height: 100%; object-fit: cover; }
.pano-frame .pf-no   { position: absolute; left: 22px; top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 1; }
.pano-frame .pf-hint { position: absolute; left: 22px; bottom: 20px; font-family: 'Inter', sans-serif; font-size: 15px; color: #8a8a8a; }
.pano-fade { position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 2; }
.pano-fade.l { left: 0;  background: linear-gradient(90deg,  #fff, rgba(255,255,255,0)); }
.pano-fade.r { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.pano-hint { font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 17px; color: #a8a8a8; }
@keyframes pano-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- живой глаз в квадрате «что делаю» ---- */
.eye-box { background: transparent; overflow: visible; animation: eye-levitate 3.6s ease-in-out infinite; }
@keyframes eye-levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .eye-box { animation: none; } }
.eye-wrap {
  position: absolute; left: 0; top: 50%;
  transform: translate(0, -50%);
  width: 250px; will-change: transform;
}
.eye-img { width: 100%; height: auto; display: block; }
.eye-pupil {
  position: absolute; left: 47.7%; top: 28.3%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: #2e2e2e;
  will-change: transform;
}

/* ---- услуги ---- */
.svc-tab { color: #a9a9a9; cursor: pointer; transition: color .2s ease; }
.svc-tab:hover { color: #000; }
.svc-tab.active { color: #7a1f2b; }
.svc-tab.active::before { content: "⟡ "; color: #7a1f2b; }
.sv-div { width: 900px; height: 1px; background: #727272; }
.sv-row { width: 900px; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; font-size: 44px; line-height: 1; color: #000; }
.sv-ar  { position: relative; display: inline-block; width: 25px; height: 25px; flex-shrink: 0; }
.sv-ar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #262626; }
.sv-ar::after  { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #262626; }

/* ---- процесс: анимация прорисовки + появление шагов ---- */
.js-anim .proc-rev { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease, background-color .45s ease, border-color .45s ease; }
.js-anim .proc-rev.shown { opacity: 1; transform: translateY(0); }
/* кружок шага окрашивается в бургунди, когда линия до него дошла */
.js-anim .dot.shown, .js-anim .m-p2n.shown { background: #7a1f2b; border-color: #7a1f2b; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .proc-rev { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---- процесс ---- */
.proc-path { transform: rotate(4.29deg); opacity: .9; pointer-events: none; }
.dot { width: 15px; height: 15px; border-radius: 50%; background: #ffffff; border: 1px solid #9a9a9a; }
.dot.fill { background: #7a1f2b; border-color: #7a1f2b; }
.t-no { font-family: 'IBM Plex Mono', monospace; font-size: 12.8px; color: #a8a8a8; }
.t-t  { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 27.6px; line-height: 1.1; color: #1b1b1b; }
.t-d  { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14.9px; line-height: 1.4; color: #777; }

/* ---- не нужно ---- */
.hr { width: 1820px; height: 1px; background: #ddd; }

/* ---- контакты ---- */
.socials a { display: block; font-size: 16px; line-height: 21px; letter-spacing: -0.32px; text-transform: uppercase; color: #262626; margin-bottom: 14px; }
.socials a:hover { color: #7a1f2b; }
.marquee { border-top: 1px solid #262626; overflow: hidden; display: flex; align-items: center; white-space: nowrap; }
.marquee span { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: #262626; }


/* десктопный подвал (новый дизайн) */
#fConsentD { width: 35px; height: 35px; flex-shrink: 0; }
.f-socials-d a { display: block; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 28px; line-height: 1; letter-spacing: -0.32px; text-transform: uppercase; color: #262626; text-decoration: underline; margin-bottom: 24px; }
.f-socials-d a:last-child { margin-bottom: 0; }
.f-socials-d a:hover { color: #7a1f2b; }

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================================ */
.m { display: none; }

@media (max-width: 767px) {
  #stage { display: none !important; }
  .m { display: block; overflow-x: hidden; width: 100%; }

  body { background: #fff; color: #262626; font-family: 'Inter', sans-serif; }
  .m-sec, .m-hero, .m-work, .m-work-img, .m-work-foot, .m-card, .m-faq, .m-faq-row { min-width: 0; max-width: 100%; }
  .m-work-foot span, .m-work-nm, .m-work-no { overflow-wrap: anywhere; }
  .m-h1, .m-bigname { overflow-wrap: break-word; }
  .m-h2 { overflow-wrap: normal; word-break: normal; }

  .m, .m * { box-sizing: border-box; }
  .m .glyph { font-family: 'Noto Sans Egyptian Hieroglyphs', serif; }
  .m .wine { color: #7a1f2b; }
  .m .g3 { color: #b3b3b3; }
  .m .muted2 { color: #a9a9a9; }
  .m-mono { font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.5; color: #000; }

  /* --- меню (оверлей по бургеру) --- */
  /* --- выезжающее меню слева, 2 колонки --- */
  .m-nav-bg {
    position: fixed; inset: 0; z-index: 290;
    background: rgba(20,20,20,.42);
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .m-nav-bg.open { opacity: 1; pointer-events: auto; }
  .m-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
    width: min(78vw, 320px); overflow: hidden;
    background: #fff; border-left: 1px solid #262626;
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.65,0,.2,1);
    display: flex; flex-direction: column; gap: 0;
    padding: 88px 24px 32px;
    font-family: 'IBM Plex Mono', monospace; font-size: 18px; letter-spacing: -0.3px;
  }
  .m-nav-links { display: flex; flex-direction: column; gap: 24px; }
  .m-nav::before {
    content: ""; position: absolute; inset: -50%; width: 200%; height: 200%; z-index: 0; pointer-events: none; opacity: .045;
    background-image: url("assets/noise.png");
    background-size: 90px 90px;
    animation: grain-move .28s steps(5) infinite;
  }
  @media (prefers-reduced-motion: reduce) { .m-nav::before { animation: none; } }
  .m-nav > * { position: relative; z-index: 1; }
  .m-nav.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.2); }
  .m-nav a { color: #262626; text-decoration: none; }
  .m-nav a:hover { color: #7a1f2b; }
  .m-nav-close { position: absolute; top: 22px; right: 22px; z-index: 2; width: 44px; height: 44px; background: none; border: none; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 40px; font-weight: 300; line-height: 1; color: #262626; padding: 0; }
  .m-nav-tg { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; background: #7a1f2b; color: #fff !important; font-size: 16px; height: 48px; }
  .m-nav-tg:hover { opacity: .9; }

  /* --- секции: единый просторный отступ 96px между всеми блоками --- */
  .m-sec { padding: 120px 26px 0; position: relative; }
  /* убираем «протекающий» нижний margin последнего элемента секции,
     чтобы зазор между блоками был ровно 64px.
     Внутренности «процесса» (#m-process) не трогаем — только его внешний отступ. */
  .m-sec:not(#m-process) > *:last-child { margin-bottom: 0; }
  .m-hero { padding-bottom: 0; }
  .m-num { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #737373; margin-bottom: 16px; }
  /* номер + короткий заголовок в одну строку, по нижней линии (номер слева, заголовок справа) */
  .m-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(32px, 10vw, 48px); }
  .m-head .m-num { margin-bottom: 0; }
  .m-head .m-h2 { margin-bottom: 0; }
  /* услуги: заголовок + табы в правый столбец, табы выровнены по ширине заголовка */
  #m-services .m-head { align-items: baseline; }
  .m-head-r { display: flex; flex-direction: column; flex: 0 0 auto; gap: 14px; }
  .m-head-r .m-words { justify-content: space-between; gap: 12px; margin-bottom: 0; }
  .m-h2 {
    font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase;
    font-size: clamp(40px, 13vw, 64px); line-height: 1; letter-spacing: -1px; color: #262626;
    margin-bottom: clamp(32px, 10vw, 48px);
    text-align: right;
  }
  .m-body { font-size: 16px; line-height: 1.55; color: #2c2c2c; margin-bottom: 16px; }
  .m-lead { font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.5; letter-spacing: 0; color: #737373; margin-bottom: 28px; white-space: nowrap; }
  .m-strong { font-weight: 500; font-size: 19px; color: #000; margin-bottom: 10px; }
  #m-services .m-body { font-size: 16px; line-height: 1.5; }

  /* кнопки/ссылки */
  .m-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: #7a1f2b; color: #fff; border: 1px solid #000;
    font-family: 'Helvetica Neue', Arial, sans-serif; text-transform: lowercase;
    font-size: 19px; height: 56px; padding: 0 32px;
  }
  .m-link-c { display: inline-block; font-family: 'Helvetica Neue', Arial, sans-serif; text-transform: lowercase; font-size: 19px; color: #000; }
  .m-link-w { display: inline-block; color: #7a1f2b; font-weight: 500; font-size: 16px; padding: 12px 0; }
  .m-link-w:active, .m-link-w:hover { text-decoration: underline; }

  /* --- hero: 1:1 по макету 574:3944 (масштабируемый холст 390×686) --- */
  .m-hero { position: relative; width: 100vw; overflow: hidden; padding: 0; }
  .m-hero-cv { position: absolute; top: 0; left: 0; width: 390px; height: 817px; transform-origin: top left; }
  .m-hero-cv > * { position: absolute; }
  .m-hc-logo { display: block; }
  .m-hc-logo img { position: absolute; }
  .m-hc-burger { background: none; border: none; padding: 0; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: .3px; text-transform: lowercase; color: #1f1f1f; }
  .m-hc-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: -1.1px; text-transform: lowercase; color: #000; white-space: nowrap; }
  .m-hc-h { font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 52px; line-height: 53.8px; letter-spacing: -1.66px; color: #262626; }
  .m-hc-web { font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.04; text-transform: lowercase; color: #000; }
  .m-hc-girl { object-fit: cover; }
  .m-hc-ml { font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1; color: #b3b3b3; white-space: nowrap; }
  .m-hc-mv { font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1; color: #000; white-space: nowrap; }
  .m-hc-btn { background: #7a1f2b; border: 1px solid #000; color: #fff; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 17px; text-transform: lowercase; letter-spacing: -0.32px; display: flex; align-items: center; justify-content: center; }
  .m-hc-link { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 19px; text-transform: lowercase; letter-spacing: -0.32px; color: #000; display: flex; align-items: center; justify-content: center; gap: 16px; }

  /* --- философия --- */
  .m-cards { display: flex; flex-direction: column; gap: 16px; }
  .m-card { border: 1px solid #262626; background: #fff; padding: 24px; min-height: 200px; display: flex; flex-direction: column; }
  .m-card.dark { background: #262626; color: #fff; }
  .m-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: auto; }
  .m-card-top h3 { font-weight: 400; font-size: 18px; line-height: 1.25; }
  .m-card .m-mono { color: inherit; white-space: nowrap; }
  .m-card .m-eye { font-size: 48px; line-height: 1; }
  .m-card p { font-size: 16px; line-height: 1.5; color: #484848; margin-top: 40px; }
  .m-card.dark p { color: #fff; }

  /* бейджи философии — кластер как в макете (𓆣 сверху, alina design снизу-слева, /26 снизу-справа) */
  .m-badges { position: relative; width: 264px; height: 208px; margin-top: 24px; }
  .m-badge { position: absolute; background: #fff; border: 1px solid #262626; display: flex; }
  .m-badge-glyph { left: 96px; top: 0; width: 112px; height: 112px; align-items: center; justify-content: center; border-color: #000; }
  .m-badge-glyph .glyph { font-size: 48px; color: #7a1f2b; line-height: 1; }
  .m-badge-name { left: 0; top: 111px; width: 97px; height: 97px; align-items: flex-end; padding: 16px; }
  .m-badge-name span { font-family: 'IBM Plex Mono', monospace; font-size: 14px; line-height: 1.1; }
  .m-badge-year { left: 207px; top: 111px; width: 57px; height: 57px; align-items: center; justify-content: center; }
  .m-badge-year span { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }

  /* --- работы --- */
  .m-works-h { font-size: clamp(34px, 10vw, 52px); line-height: 1.04; text-align: left; }
  .m-work { margin-bottom: 40px; }
  .m-work-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
  .m-work-no { font-size: 15px; color: #484848; }
  .m-work-nm { font-size: 17px; color: #0b0b0b; }
  .m-work-img { width: 100%; aspect-ratio: 1 / 1 !important; background: #d9d9d9; position: relative; overflow: hidden; }
  .m-work-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .m-work-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; text-align: right; }
  .m-work-foot span { font-size: 15px; color: #484848; text-transform: lowercase; }

  /* --- графика: авто-панорама --- */
  .m-pano { width: 100vw; margin-left: -24px; overflow: hidden; }
  .m-pano-track { display: flex; width: max-content; will-change: transform; }
  .m-pano-frame { flex: 0 0 auto; width: 320px; height: 180px; margin-right: 12px; background: #d9d9d9; position: relative; overflow: hidden; }
  .m-pano-frame:nth-child(even) { background: #d0d0d0; }
  .m-pano-frame img { width: 100%; height: 100%; object-fit: cover; }
  .m-pano-frame .pf-no { position: absolute; left: 14px; top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 1; }
  .m-pano-hint { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #a8a8a8; margin-top: 14px; }
  @keyframes m-pano { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* --- услуги --- */
  .m-words { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 32px; }
  .m-words > span { font-size: 22px; line-height: 1; text-transform: lowercase; color: #000; }
  .m-words .muted2 { color: #a9a9a9; }
  .m-words .svc-tab-m { color: #a9a9a9; cursor: pointer; transition: color .2s ease; }
  .m-words .svc-tab-m.m-active { color: #7a1f2b; }
  .m-words .svc-tab-m.m-active::before { content: "⟡ "; color: #7a1f2b; }
  .m-eye2 { font-size: 20px; }
  .m-srv { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid #727272; }
  /* --- аккордеон услуг --- */
  .acc-item { border-bottom: 1px solid #727272; }
  .acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; cursor: pointer; padding: 16px 0; font-family: 'Inter', sans-serif; font-size: 24px; color: #000; text-align: left; }
  .acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
  .acc-item.open .acc-body { max-height: 560px; }
  .acc-inner { padding: 0 0 24px; }
  .acc-desc { font-size: 16px; line-height: 1.5; color: #2c2c2c; margin: 0 0 16px; }
  .acc-tags { background: #eceae2; color: #5e5e5e; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.6; padding: 12px 16px; margin: 0 0 16px; }
  .acc-meta { font-family: 'Inter', sans-serif; font-size: 14px; text-transform: none; letter-spacing: 0; color: #1b1b1b; margin: 0 0 8px; }
  .acc-meta:last-child { margin-bottom: 0; }
  .acc-meta b { font-weight: 500; }
  .acc-order { position: relative; display: inline-block; margin-top: 18px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px; line-height: 1; color: #7a1f2b; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .acc-order::after { content: ""; position: absolute; inset: -14px -18px; }
  .acc-order:active { color: #94303d; }
  .m-plus { position: relative; display: inline-block; width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s ease; }
  .acc-item.open .m-plus { transform: rotate(45deg); }
  .m-plus::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #262626; }
  .m-plus::after  { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #262626; }
  .m-srv-card { width: 100%; aspect-ratio: 440/230; background: #c6c6c6; margin-bottom: 16px; }
  .m-eye-box { width: 100%; height: 155px; display: flex; align-items: center; justify-content: center; overflow: visible; margin: 8px 0 24px; }
  .m-eye-eye { font-size: 120px; line-height: 1; color: #262626; will-change: transform; }
  .m-services .m-link-w, .m-sec .m-link-w { margin-top: -4px; }

  /* --- процесс: 1:1 мобильный прототип (холст 390×1567, масштабируется) --- */
  .m-proc { position: relative; width: 100vw; margin-left: -24px; overflow: hidden; }
  .m-proc-cv { position: absolute; top: 0; left: 0; width: 390px; height: 1577px; transform-origin: top left; }
  .m-p2path { position: absolute; display: block; pointer-events: none; }
  .m-p2n { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 1px solid #9a9a9a; box-sizing: border-box; }
  .m-p2n.fill { background: #7a1f2b; border-color: #7a1f2b; }
  .m-p2num { position: absolute; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #a8a8a8; white-space: nowrap; }
  .m-p2num.w { color: #7a1f2b; }
  .m-p2t { position: absolute; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 19px; line-height: 1.1; color: #1b1b1b; }
  .m-p2d { position: absolute; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.4; color: #777; }
  .m-p2h { position: absolute; font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 57px; line-height: 1; letter-spacing: -1.4px; color: #262626; white-space: nowrap; }
  .m-p2date { position: absolute; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.5px; color: #a8a8a8; }
  .m-p2b { position: absolute; font-family: 'Noto Sans Egyptian Hieroglyphs', serif; font-size: 35.25px; color: #7a1f2b; line-height: 1; transform: translate(-50%,-50%) rotate(150deg); }

  /* --- FAQ --- */
  .m-noneed-h { font-size: clamp(34px, 10vw, 52px); line-height: 1.05; text-align: left; }
  .m-faq { border-top: 1px solid #ddd; margin-bottom: 24px; }
  .m-faq-row { padding: 24px 0; border-bottom: 1px solid #ddd; }
  .m-faq-row h3 { font-weight: 500; font-size: 20px; color: #8a8a8a; margin-bottom: 8px; }
  .m-faq-row p { font-size: 16px; line-height: 1.5; color: #2c2c2c; }

  /* --- контакты / подвал: 1:1 по макету 568:3867 (масштабируемый холст 390×1158) --- */
  .m-contacts { padding: 64px 0 0; }
  .m-foot { position: relative; width: 100vw; overflow: hidden; }
  .m-foot-cv { position: absolute; top: 0; left: 0; width: 390px; height: 1136px; transform-origin: top left; }
  .m-foot-cv > * { position: absolute; }
  .m-fc-girl-wrap { position: absolute; }
  .m-fc-girl { width: 100%; height: 100%; object-fit: cover; display: block; }
  .m-fc-soc { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 20.8px; letter-spacing: -0.32px; text-transform: uppercase; color: #262626; text-decoration: underline; }
  .m-fc-soc:hover { color: #7a1f2b; }
  .m-fc-h { font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 45.62px; line-height: 68.308px; letter-spacing: -0.8px; color: #262626; white-space: nowrap; }
  .m-fc-intro { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.5; color: #8a8a8a; }
  .m-fc-input { border: none; background: transparent; outline: none; font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.2; color: #262626; padding: 0; height: 24px; }
  .m-fc-input::placeholder { color: #d9d9d9; }
  .m-fc-line { height: 1px; background: #7a1f2b; }
  .m-fc-arrow { pointer-events: none; transition: transform .25s ease; transform-origin: center; }
  .m-fc-arrow.open { transform: rotate(180deg); }
  /* кастомный дропдаун услуг — liquid glass, без скруглений */
  .m-fc-dd { position: absolute; display: none; z-index: 60;
    background: rgba(255,255,255,0.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(122,31,43,0.22);
    box-shadow: 0 14px 44px rgba(0,0,0,0.16); }
  .m-fc-dd.open { display: block; }
  .m-fc-dd-opt { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.2; color: #262626; padding: 13px 16px; cursor: pointer; border-bottom: 1px solid rgba(122,31,43,0.10); transition: background .15s ease, color .15s ease; }
  .m-fc-dd-opt:last-child { border-bottom: none; }
  .m-fc-dd-opt:hover, .m-fc-dd-opt:active { background: rgba(122,31,43,0.08); color: #7a1f2b; }
  .m-fc-btn { background: #7a1f2b; color: #fff; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px; display: flex; align-items: center; justify-content: center; }
  .m-fc-tg { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: #7a1f2b; white-space: nowrap; background: #fff; border: 1.5px solid #7a1f2b; box-sizing: border-box; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .m-fc-tg:hover { background: #7a1f2b; color: #fff; }
  .m-fc-name { font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 70px; line-height: 186.2px; letter-spacing: -3px; color: #262626; white-space: nowrap; pointer-events: none; }
  .m-fc-copy { font-family: 'Inter', sans-serif; font-size: 16px; letter-spacing: -0.32px; color: #262626; white-space: nowrap; }
  .m-fc-marq { height: 53px; border-top: 1px solid #262626; overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
  .m-fc-marq-t { display: inline-flex; animation: m-marq 18s linear infinite; }
  .m-fc-marq-t span { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: #262626; }
  @keyframes m-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

/* обложки работ (десктоп) */
.ph-img { overflow: hidden; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }

/* ===== кейс-окно работы (модалка) ===== */
.case { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 10001; background: #0c0c0c; display: none; overflow: hidden; }
.case.open { display: block; }
.case-wrap { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding: 56px 24px; }
.case-panel { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; background: #1b1b1b; color: #f1ede4; overflow: hidden; }
.case-panel::before { content: ""; position: absolute; inset: -50%; width: 200%; height: 200%; z-index: 0; pointer-events: none; opacity: .04; background-image: url("assets/noise.png"); background-size: 180px; animation: grain-move .3s steps(5) infinite; }
.case-inner { position: relative; z-index: 1; padding: 48px 52px 52px; }
.case-close { position: fixed; top: 18px; right: 22px; z-index: 10002; font-family: 'IBM Plex Mono', monospace; font-size: 38px; font-weight: 300; color: #efe9de; background: none; border: none; cursor: pointer; line-height: 1; padding: 8px; transition: color .2s; }
.case-close:hover { color: #fff; }
.case-cover { width: 100%; aspect-ratio: 21/9; max-height: 320px; object-fit: cover; display: block; margin-bottom: 28px; background: #111; }
.case-eyebrow { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .4px; color: #8a8a8a; margin-bottom: 14px; }
.case-title { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 52px; line-height: 1; color: #fff; margin: 0 0 10px; }
.case-sub { font-family: 'Inter', sans-serif; font-size: 14px; color: #8f8a80; letter-spacing: .3px; margin-bottom: 40px; }
.case-rows { display: flex; flex-direction: column; }
.case-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; border-top: 1px solid #292929; padding: 24px 0; }
.case-k { font-family: 'Inter', sans-serif; font-size: 14px; color: #7d7a72; }
.case-v { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 26px; color: #e9e5dc; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 40px; }
.case-metric { min-width: 110px; }
.case-metric b { display: block; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 46px; line-height: 1; color: #fff; }
.case-metric span { display: block; font-family: 'Inter', sans-serif; font-size: 13px; color: #8a8a8a; margin-top: 10px; }
.case-accent { color: #6fcf97 !important; }
.case-note { margin-top: 22px; font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.5; color: #bdb8ad; }
.case-shots { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.case-shots img { width: 100%; display: block; border: 1px solid #2c2c2c; }
.case-shot-ph { border: 1px dashed #3a3a3a; color: #6a6a6a; font-family: 'IBM Plex Mono', monospace; font-size: 13px; padding: 40px; text-align: center; }
.case-cta { display: inline-flex; align-items: center; gap: 9px; color: #f1ede4; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; padding: 6px 0; text-decoration: none; width: fit-content; transition: color .2s, gap .2s; }
.case-cta:hover { color: #fff; gap: 13px; }
.case-cta-off { color: #6a6a6a; cursor: default; }
@media (prefers-reduced-motion: reduce) { .case-panel::before { animation: none; } }
@media (max-width: 767px) {
  .case-wrap { padding: 0; }
  .case-panel { max-width: 100%; min-height: 100%; }
  .case-inner { padding: 70px 20px 32px; }
  .case-cover { aspect-ratio: 16/9; margin-bottom: 22px; }
  .case-title { font-size: 34px; }
  .case-sub { margin-bottom: 26px; }
  .case-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .case-close { top: 10px; right: 12px; font-size: 34px; padding: 6px; }
  .case-metrics { gap: 22px; }
  .case-metric b { font-size: 36px; }
}

/* ===== десктоп-аккордеон услуг ===== */
.sv-acc { width: 900px; }
.sv-item { border-top: 1px solid #727272; }
.sv-item:last-child { border-bottom: 1px solid #727272; }
.sv-head { width: 100%; -webkit-appearance: none; appearance: none; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; font-size: 44px; line-height: 1; color: #000; text-align: left; padding: 21px 0; }
.sv-head:hover { color: #7a1f2b; }
.sv-plus { position: relative; display: inline-block; width: 25px; height: 25px; flex-shrink: 0; margin-left: 24px; }
.sv-plus::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #262626; }
.sv-plus::after  { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #262626; transition: transform .3s ease; }
.sv-item.open .sv-plus::after { transform: scaleY(0); }
.sv-item.open .sv-head { color: #7a1f2b; }
.sv-body { max-height: 0; overflow: hidden; transition: max-height .42s ease; }
.sv-item.open .sv-body { max-height: 360px; }
.sv-body-in { padding: 0 0 30px; max-width: 760px; }
.sv-desc { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 26px; color: #484848; margin: 0 0 16px; }
.sv-tags { display: inline-block; background: #eceae2; color: #5e5e5e; font-family: 'IBM Plex Mono', monospace; font-size: 14px; line-height: 1.6; padding: 12px 16px; margin: 0 0 18px; }
.sv-meta { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 28px; color: #1b1b1b; }
.sv-meta b { font-weight: 500; }
.sv-order { position: relative; display: inline-block; margin-top: 24px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 20px; line-height: 1; color: #7a1f2b; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.sv-order::after { content: ""; position: absolute; inset: -16px -22px; }
.sv-order:hover { color: #94303d; }

/* ===== форма подвала ===== */
.f-input { background: transparent; border: none; outline: none; padding: 0; color: #1b1b1b; line-height: 1.1; }
.f-input::placeholder { color: #cccccc; }
.f-hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ===== бегущая строка (десктоп) ===== */
.marquee-t { display: inline-flex; flex: none; will-change: transform; animation: marq 38s linear infinite; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-t { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-t { animation: none; } }

/* ===== согласие на обработку данных ===== */
.consent { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 19px; color: #8a8a8a; cursor: pointer; }
.consent input { -webkit-appearance: none; appearance: none; margin: 0; width: 16px; height: 16px; border: 1.5px solid #7a1f2b; border-radius: 0; background: #fff; flex-shrink: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.consent input:checked { background: #7a1f2b; }
.consent input:checked::after { content: ''; width: 26%; height: 52%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.f-input.is-err::placeholder, .m-fc-input.is-err::placeholder { color: #d23b3b; }
.consent input.is-err, .m-consent input.is-err { border-color: #d23b3b; }
.consent a { color: #7a1f2b; }
@media (max-width: 767px) { .m-consent { font-size: 10px; line-height: 1.3; gap: 16px; align-items: center; color: #262626; } .m-consent input { width: 22px; height: 22px; } .m-consent a { color: #7a1f2b; } }

/* ===== живое моргание + дыхательная пульсация аватара ===== */
.blink-overlay { opacity: 0; pointer-events: none; }
.avatar-breathe { animation: avatar-float 6.4s ease-in-out infinite; will-change: transform; transform-origin: 50% 45%; }
@keyframes avatar-float {
  0%   { transform: translateY(0)     scale(1); }
  50%  { transform: translateY(-14px) scale(1.012); }
  100% { transform: translateY(0)     scale(1); }
}
@media (prefers-reduced-motion: reduce) { .avatar-breathe { animation: none; } .blink-overlay { opacity: 0; } }

/* ===== аватар: контейнер для левитации + наклона к курсору ===== */
.avatar-wrap { transition: transform .12s ease-out; transform-style: preserve-3d; }
.avatar-inner { position: relative; width: 100%; height: 100%; }
.avatar-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }


/* ===== глаз-курсор в лайтбоксе ===== */
.lb-eye { position: fixed; z-index: 3; left: 0; top: 0; will-change: transform; font-size: 40px; line-height: 1; color: #fff; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity .15s ease; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.lightbox.open .lb-eye { opacity: 1; }

/* ===== кастомный тонкий скролл (1px, без скруглений) ===== */
html { scrollbar-width: none; }                         /* Firefox: спрятать нативный */
::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; } /* webkit: спрятать нативный */
#vscroll { position: fixed; top: 0; right: 0; width: 8px; height: 100vh; z-index: 99999; pointer-events: none; }
#vscroll-thumb { position: absolute; top: 0; right: 0; width: 1px; background: #1a1a1a; pointer-events: auto; cursor: grab; will-change: transform; }
#vscroll-thumb:hover { width: 2px; background: #7a1f2b; }
#vscroll.dragging #vscroll-thumb { width: 2px; background: #7a1f2b; cursor: grabbing; }
@media (max-width: 767px) { #vscroll { display: none !important; } }  /* на мобиле — родной тач-скролл */

/* ===== контраст и рамка карточек работ ===== */
.ph-img img, .m-work-img img { filter: contrast(1.1) saturate(1.06); }
.ph-img, .m-work-img { border: 1px solid rgba(20,20,20,0.14); }
/* кнопка-подсказка «открыть кейс» на обложках работ */
.ph-img::after, .m-work-img::after { content: "\2197"; position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; font-size: 24px; line-height: 1; color: #7a1f2b; background: #fff; border: 1px solid rgba(122,31,43,0.22); pointer-events: none; transition: background .2s ease, color .2s ease; }
.ph-img { cursor: pointer; }
.ph-img:hover::after { background: #7a1f2b; color: #fff; border-color: #7a1f2b; }
@media (max-width: 767px) { .m-work-img::after { width: 36px; height: 36px; font-size: 20px; top: 10px; right: 10px; } }


/* ===== экран успеха формы (liquid glass) ===== */
.form-ok { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 10005; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(18,18,18,0.42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.form-ok.show { display: flex; animation: form-ok-fade .3s ease; }
@keyframes form-ok-fade { from { opacity: 0; } to { opacity: 1; } }
.form-ok-card { background: rgba(255,255,255,0.66); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); border: 1px solid rgba(122,31,43,0.28); padding: 44px 34px; text-align: center; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.form-ok-eye { font-family: 'Noto Sans Egyptian Hieroglyphs', serif; font-size: 60px; color: #7a1f2b; line-height: 1; margin-bottom: 18px; animation: eye-levitate 3.6s ease-in-out infinite; }
.form-ok-title { font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase; font-size: 30px; letter-spacing: -0.5px; color: #262626; margin-bottom: 12px; }
.form-ok-sub { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.55; color: #555; margin-bottom: 26px; }
.form-ok-close { display: block; width: 100%; height: 52px; font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 500; color: #7a1f2b; background: #fff; border: 1.5px solid #7a1f2b; padding: 0 30px; cursor: pointer; transition: background .2s, color .2s; }
.form-ok-close:hover { background: #7a1f2b; color: #fff; }
@media (prefers-reduced-motion: reduce) { .form-ok-eye { animation: none; } }


/* ===== кнопка «наверх» ===== */
.to-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; -webkit-appearance: none; appearance: none; border-radius: 0; background: rgba(255,255,255,0.7); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); border: 1px solid rgba(122,31,43,0.28); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, background .2s ease; }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top::after { content: ""; position: absolute; inset: -24px; }
.to-top:hover { background: #7a1f2b; }
.to-top:hover svg path { stroke: #fff; }
.to-top svg { width: 18px; height: 10px; display: block; }
.to-top svg path { transition: stroke .2s ease; }
