/* Design Jacks — общий стиль сайта v5 (главная и внутренние страницы) */
:root {
  --bg: #f5f4f2;
  --paper: #ffffff;
  --gray: #ebebea;
  --gray-2: #dcdcda;
  --ink: #232323;
  --ink-2: #5a5a5a;
  --muted: #8f8f8f;
  --line: rgba(35, 35, 35, .1);
  --orange: #e8732f;
  --orange-d: #c95a1f;
  --coral: #9b3e23;
  --amber: #cf622e;
  --peach: #f8e3d6;
  --blue: #600e15;
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --gutter: clamp(12px, 1.6vw, 24px);
  --hdr-h: 84px;
  --max: 1440px;
  --pad: clamp(16px, 3vw, 40px);
  --edge: var(--gutter);
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol { margin: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

.inner { padding: 0 var(--gutter); }
.sec { padding: clamp(64px, 8vw, 120px) 0 0; position: relative; }
main > .sec:last-child { padding-bottom: clamp(64px, 8vw, 120px); }

/* Типографика: спокойный гротеск, заголовки слева */
.title { font-family: var(--f-body); font-weight: 500; font-size: clamp(30px, 3.7vw, 54px); line-height: 1.08; letter-spacing: -0.028em; color: var(--ink); max-width: 820px; margin-bottom: clamp(28px, 3.4vw, 48px); text-wrap: balance; }
.title--light { color: #fff; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.4vw, 48px); }
.head-row .title { margin-bottom: 0; }
.head-row__text { max-width: 400px; font-size: 15.5px; color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; padding-bottom: 6px; }
.more svg { width: 18px; height: 18px; color: var(--orange); transition: transform .4s var(--ease); }
.more:hover svg { transform: rotate(45deg); }

/* Кнопки */
.btn { --b: var(--ink); --f: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 14px; background: var(--b); color: var(--f); text-decoration: none; font-weight: 500; font-size: 15.5px; border: 0; cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn--orange { --b: var(--orange); }
.btn--white { --b: #fff; --f: var(--ink); }
.btn--white:hover { color: #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 11px; }

/* «Кляксы» за объектами */
.blob { position: absolute; z-index: 0; width: 78%; aspect-ratio: 1; right: -14%; bottom: -24%; background: rgba(255,255,255,.28); border-radius: 58% 42% 46% 54% / 52% 58% 42% 48%; animation: blob 14s ease-in-out infinite alternate; pointer-events: none; }
.blob--white { background: #fff; }
.blob--orange { background: var(--orange); }
@keyframes blob { 0% { border-radius: 58% 42% 46% 54% / 52% 58% 42% 48%; transform: rotate(0); } 50% { border-radius: 42% 58% 62% 38% / 44% 40% 60% 56%; } 100% { border-radius: 52% 48% 38% 62% / 60% 46% 54% 40%; transform: rotate(18deg); } }

/* Шапка: стоит над hero, после него — фиксированная */
.hdr { position: absolute; z-index: 80; top: 0; left: 0; right: 0; height: var(--hdr-h); display: flex; align-items: center; padding: 0 var(--gutter); }
.hdr.is-fixed { position: fixed; height: 70px; background: rgba(245,244,242,.85); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); transition: transform .5s var(--ease); }
.hdr.is-hidden { transform: translateY(-110%); }
.hdr__in { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -0.05em; line-height: 1; }
.hdr__nav { display: none; gap: 30px; list-style: none; margin: 0; padding: 0; }
.hdr__nav a { font-size: 15px; color: var(--ink); text-decoration: none; position: relative; padding: 6px 0; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.hdr__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__right { display: flex; align-items: center; gap: 12px; }
.hdr__info { display: none; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); text-align: right; }
.hdr__info b { color: var(--ink); font-weight: 600; }
.hdr__tg { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.hdr__tg:hover { background: var(--ink); }
.hdr__tg svg { width: 20px; height: 20px; }
.hdr__cta { display: none !important; min-height: 46px; }
.burger { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.burger svg { width: 20px; height: 20px; }
@media (min-width: 1100px) { .hdr__nav { display: flex; } .hdr__cta { display: inline-flex !important; } .burger { display: none; } }
@media (min-width: 1280px) { .hdr__info { display: block; } }
@media (max-width: 899px) { :root { --hdr-h: 72px; } }

.mobile-menu { position: fixed; inset: 0; z-index: 120; background: var(--orange); color: #fff; display: flex; flex-direction: column; padding: 18px 22px 30px; clip-path: circle(0% at calc(100% - 46px) 42px); visibility: hidden; transition: clip-path .7s var(--ease), visibility .7s; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .brand { color: #fff; }
.mobile-menu nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.mobile-menu nav a { font-weight: 500; letter-spacing: -0.03em; font-size: clamp(34px, 9vw, 52px); line-height: 1.15; color: #fff; text-decoration: none; }

/* Фирменный знак DESIGN JACKS с «A»-курсором */
.wm { display: inline-flex; gap: .32em; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: -0.04em; line-height: .8; white-space: nowrap; }
.wm__w { display: inline-flex; align-items: flex-end; }
.wm .ch { display: inline-block; will-change: transform; }

/* Hero */
.hero { padding: var(--hdr-h) var(--gutter) 0; }
.hero__card { position: relative; height: max(600px, calc(100svh - var(--hdr-h) - var(--gutter))); max-height: 980px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(55% 65% at 50% 55%, #ffa368 0%, rgba(255,163,104,0) 70%), radial-gradient(80% 70% at 0% 100%, #ec520c 0%, rgba(236,82,12,0) 60%), radial-gradient(80% 70% at 100% 100%, #ec520c 0%, rgba(236,82,12,0) 60%), linear-gradient(180deg, #ff8c50 0%, #ff6b1a 60%, #f35e12 100%); }
.hero__card::after { content: ""; position: absolute; inset: 0; z-index: 5; opacity: .16; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transform: scale(1.06); will-change: transform; }
/* проекты за спиной */
.hero__works { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.work { width: var(--w, 15%); aspect-ratio: 1; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); will-change: transform; }
.work--1 { --w: 16%; left: 12%; top: 33%; rotate: -8deg; }
.work--2 { --w: 14%; left: 25%; top: 48%; rotate: 5deg; filter: brightness(.82); }
.work--3 { --w: 11%; left: 10%; top: 64%; rotate: 5deg; filter: brightness(.7) blur(1px); }
.work--4 { --w: 16%; right: 12%; top: 31%; rotate: 7deg; }
.work--5 { --w: 14%; right: 25%; top: 47%; rotate: -5deg; filter: brightness(.82); }
.work--6 { --w: 11%; right: 10%; top: 63%; rotate: -4deg; filter: brightness(.7) blur(1px); }
@media (max-width: 899px) {
  .work { border-radius: 10px; }
  .work--1 { --w: 34%; left: -3%; top: 34%; }
  .work--4 { --w: 34%; right: -3%; top: 31%; }
  .work--2 { --w: 26%; left: 7%; top: 56%; }
  .work--5 { --w: 26%; right: 7%; top: 54%; }
  .hero__works .work--3, .hero__works .work--6 { display: none; }
}
.hero__word { position: absolute; z-index: 2; left: 0; right: 0; top: 7%; display: flex; justify-content: center; pointer-events: none; }
.hero__word .wm { font-size: clamp(40px, 8.6vw, 150px); }
.hero__me { position: absolute; z-index: 3; left: 50%; bottom: 0; height: 88%; width: max-content; translate: -50% 0; display: block; pointer-events: none; }
.hero__me img { height: 100%; width: auto; max-width: none; display: block; filter: drop-shadow(0 30px 60px rgba(90,20,0,.3)); will-change: transform; transform-origin: 50% 100%; }
.hero__card::before { content: ""; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, rgba(35,10,0,0), rgba(35,10,0,.6)); pointer-events: none; }
.hero__h1 { position: absolute; z-index: 5; left: 50%; bottom: clamp(22px, 3vw, 40px); transform: translateX(-50%); width: min(560px, 88%); text-align: center; font-weight: 500; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.4; letter-spacing: -0.01em; }
@media (max-width: 899px) {
  .hero__card { height: max(560px, calc(100svh - var(--hdr-h) - var(--gutter))); }
  .hero__word { top: 6%; }
  .hero__word .wm { flex-direction: column; align-items: center; gap: .06em; font-size: clamp(40px, 17vw, 120px); }
  .hero__me { height: 70%; }
}

/* Для кого — квадратные карточки */
.aud-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .aud-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.aud { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); padding: clamp(16px, 1.8vw, 24px); overflow: hidden; isolation: isolate; text-decoration: none; color: var(--ink); display: block; transition: transform .6s var(--ease); }
.aud:hover { transform: translateY(-6px); }
.aud h3 { position: relative; z-index: 2; font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -0.02em; }
.aud p { position: relative; z-index: 2; font-size: clamp(12.5px, 1vw, 14px); line-height: 1.35; margin-top: 4px; opacity: .8; max-width: 190px; }
.aud--white { background: #fff; }
.aud--white .blob { background: var(--gray); }
.aud--amber { background: var(--amber); color: #fff; }
.aud--coral { background: var(--coral); color: #fff; }
.aud--gray { background: var(--gray); }
.aud--gray .blob { background: #fff; }
.shot { position: absolute; z-index: 1; display: block; overflow: hidden; background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.35); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.aud__shot { width: 64%; aspect-ratio: 1; right: -8%; bottom: -10%; transform: rotate(-7deg); transition: transform .8s var(--ease); }
.aud:hover .aud__shot { transform: rotate(-2deg) translateY(-10px) scale(1.04); }

/* Почему со мной — фото-блок со статистикой */
.why { position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; padding: clamp(24px, 3.6vw, 52px); color: #fff; background: radial-gradient(60% 80% at 85% 20%, rgba(232,115,47,.55), rgba(232,115,47,0) 70%), radial-gradient(50% 60% at 10% 90%, rgba(96,14,21,.85), rgba(96,14,21,0) 70%), linear-gradient(135deg, #2c0d0a 0%, #160605 100%); }
.why::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.why__bg { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.why:has(.why__bg)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,14,10,.6), rgba(20,14,10,.15)); }
.why__head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .why__head { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.why__head .title { margin: 0; }
.why__head p { font-size: 15.5px; opacity: .85; max-width: 380px; justify-self: end; }
.why__cards { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .why__cards { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (max-width: 599px) { .why__cards { grid-template-columns: 1fr; } }
.stat { position: relative; overflow: hidden; isolation: isolate; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 22px; min-height: 230px; display: flex; flex-direction: column; text-align: center; align-items: center; }
.stat b { font-weight: 500; font-size: clamp(30px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1.1; position: relative; z-index: 2; }
.stat p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; max-width: 200px; position: relative; z-index: 2; }
.stat .blob { width: min(50%, 160px); right: -10%; bottom: -26%; }
.stat__shot { width: min(36%, 118px); aspect-ratio: 1; right: 7%; bottom: -12%; transform: rotate(8deg); }
.stat__faces { display: flex; margin-top: auto; padding-top: 18px; }
.stat__faces img { width: clamp(64px, 5.6vw, 84px); height: clamp(64px, 5.6vw, 84px); border-radius: 50%; border: 3px solid #fff; margin-left: -18px; background: var(--gray); object-fit: cover; object-position: center 20%; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.stat__faces img:first-child { margin-left: 0; }
.stat__route { width: 100%; max-width: 220px; margin-top: auto; overflow: visible; }
.stat__route path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; }
.stat__route circle { fill: #fff; stroke: var(--orange); stroke-width: 4; }
.stat__route text { font-size: 12px; fill: var(--muted); font-family: var(--f-body); }
.why__note { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; min-height: 160px; }
.why__note b { font-weight: 500; font-size: clamp(40px, 4vw, 58px); letter-spacing: -0.04em; line-height: 1; }
.why__note span { font-size: 14px; opacity: .8; }

/* Услуги — бенто */
.svc-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(250px, 23vw, 290px); gap: 18px; } .svc--tall { grid-column: 4; grid-row: 1 / span 2; } }
@media (max-width: 599px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 280px; }
  .svc .mk-browser { left: 26%; height: 52%; }
  .svc .mk-phone { width: 38%; right: 10%; bottom: -42%; }
  .aud__shot { width: 56%; right: -10%; bottom: -14%; }
  .aud p { max-width: 70%; }
}
.svc { position: relative; border-radius: var(--r-lg); padding: clamp(18px, 1.8vw, 24px); overflow: hidden; isolation: isolate; text-decoration: none; color: var(--ink); min-height: 250px; display: flex; flex-direction: column; transition: transform .6s var(--ease); }
a.svc:hover { transform: translateY(-6px); }
.svc h3 { position: relative; z-index: 3; font-weight: 500; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.15; letter-spacing: -0.02em; max-width: 230px; }
.svc p { position: relative; z-index: 3; font-size: 13.5px; line-height: 1.4; opacity: .8; margin-top: 6px; max-width: 210px; }
.svc--coral { background: var(--coral); color: #fff; }
.svc--orange { background: var(--orange); color: #fff; }
.svc--amber { background: var(--amber); color: #fff; }
.svc--gray { background: var(--gray); }
.svc--white { background: #fff; }
.svc--blue { background: var(--blue); color: #fff; }
.svc--blue .blob { background: rgba(255,255,255,.12); }
.svc--ask { justify-content: center; }
.svc--ask .btn { align-self: flex-start; margin-top: 20px; position: relative; z-index: 3; }
@media (min-width: 1000px) { .svc--tall h3 { font-size: clamp(24px, 2.2vw, 30px); } }

/* Мини-макеты */
.mk-browser { position: absolute; z-index: 2; left: 22%; right: -18%; bottom: -6%; height: 66%; background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); overflow: hidden; transform: rotate(-6deg); transition: transform .8s var(--ease); }
.mk-browser--r { transform: rotate(5deg); }
a.svc:hover .mk-browser { transform: rotate(-2deg) translateY(-12px); }
.mk-browser__bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid #eee; }
.mk-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #e1e1df; }
.mk-browser img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mk-phone { position: absolute; z-index: 2; right: 12%; bottom: -30%; width: 46%; max-width: 150px; aspect-ratio: 9 / 17; border-radius: 26px; background: #fff; border: 5px solid var(--ink); padding: 12px 9px; display: grid; gap: 6px; align-content: start; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); transform: rotate(9deg); transition: transform .8s var(--ease); }
a.svc:hover .mk-phone { transform: rotate(3deg) translateY(-14px); }
.mk-phone__ava { width: 42px; height: 42px; border-radius: 50%; margin: 2px auto 4px; background: url("/img/zhenya.webp") top / cover; }
.mk-phone b { height: 22px; border-radius: 8px; background: var(--gray); display: block; }
.mk-phone b:first-of-type { background: var(--orange); }
.mk-chat { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.mk-chat span { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; }
.mk-chat .me { align-self: flex-end; background: var(--orange); color: #fff; border-bottom-right-radius: 4px; }
.mk-chat .bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.mk-chat .typing { display: inline-flex; gap: 4px; }
.mk-chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .5; animation: typing 1.2s infinite; }
.mk-chat .typing i:nth-child(2) { animation-delay: .15s; } .mk-chat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .3; } 30% { transform: translateY(-4px); opacity: 1; } }
.fan { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 64%; }
.fan .shot { width: 62%; aspect-ratio: 1; transition: transform .8s var(--ease); }
.fan__1 { left: -6%; bottom: 18%; transform: rotate(-12deg); }
.fan__2 { right: -8%; bottom: 30%; transform: rotate(10deg); }
.fan__3 { left: 22%; bottom: -8%; transform: rotate(-2deg); }
a.svc:hover .fan__1 { transform: rotate(-16deg) translate(-8px, -8px); }
a.svc:hover .fan__2 { transform: rotate(14deg) translate(8px, -10px); }
a.svc:hover .fan__3 { transform: rotate(0) translateY(-14px); }
@media (max-width: 999px) { .svc--tall { min-height: 380px; } }
.slides { position: absolute; z-index: 2; right: -6%; bottom: -10%; width: 62%; aspect-ratio: 4 / 3; }
.slides i { position: absolute; inset: 0; border-radius: 12px; background: #fff; box-shadow: 0 20px 40px -16px rgba(0,0,0,.4); transition: transform .8s var(--ease); }
.slides i:nth-child(1) { transform: rotate(-14deg) translate(-18%, -6%); background: var(--peach); }
.slides i:nth-child(2) { transform: rotate(-6deg) translate(-8%, -2%); background: var(--amber); }
.slides i:nth-child(3) { transform: rotate(3deg); background: #fff linear-gradient(var(--orange), var(--orange)) 14px 16px / 40% 10px no-repeat; }
a.svc:hover .slides i:nth-child(1) { transform: rotate(-20deg) translate(-26%, -14%); }
a.svc:hover .slides i:nth-child(2) { transform: rotate(-9deg) translate(-12%, -8%); }

/* Слайдеры */
.slider { position: relative; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--edge) 14px; scroll-padding-inline: var(--edge); scrollbar-width: none; cursor: grab; }
.track::-webkit-scrollbar { display: none; }
.track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.sl-btn { position: absolute; z-index: 3; top: 40%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(232,115,47,.6); transition: background .3s, transform .4s var(--ease); }
.sl-btn:hover { background: var(--ink); }
.sl-btn svg { width: 20px; height: 20px; }
.sl-btn--prev { left: 6px; }
.sl-btn--next { right: 6px; }
@media (max-width: 899px) { .sl-btn { display: none; } }

/* Карточки кейсов и статей */
.card { flex: 0 0 clamp(270px, 27vw, 330px); scroll-snap-align: start; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.25); }
.card__img { aspect-ratio: 1; overflow: hidden; background: var(--gray); }
.card__img--wide { aspect-ratio: 16 / 11; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__tag { font-size: 12.5px; color: var(--muted); }
.card h2, .card h3 { font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card__body p + .btn { margin-top: 12px; }

/* Этапы: синий блок, из которого «выглядываю» я */
.head-row--steps { margin-bottom: 0; padding-right: clamp(0px, 24vw, 330px); }
.steps { position: relative; margin-top: clamp(28px, 3vw, 40px); background: var(--blue); color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 3.6vw, 48px); }
.steps__me { position: absolute; z-index: 2; right: clamp(16px, 3vw, 44px); bottom: 0; height: clamp(260px, 27vw, 390px); width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.steps__list { list-style: none; padding: 0; display: grid; gap: 26px; position: relative; z-index: 1; }
@media (min-width: 900px) { .steps__list { grid-template-columns: repeat(4, 1fr); margin-right: clamp(250px, 29vw, 400px); gap: 22px; } }
.step b { display: block; font-weight: 500; font-size: clamp(40px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 16px; }
.step h3 { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; line-height: 1.45; opacity: .78; }
@media (max-width: 899px) {
  /* на телефоне выглядываю из-за верхнего края блока */
  .head-row--steps { padding-right: 0; }
  .steps { isolation: isolate; background: none; margin-top: 170px; }
  .steps::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); border-radius: inherit; }
  .steps__me { z-index: -2; height: 240px; right: 6%; bottom: calc(100% - 70px); }
  .steps__list { grid-template-columns: 1fr 1fr; }
}

/* Видеоотзывы */
.review { flex: 0 0 clamp(230px, 21vw, 280px); scroll-snap-align: start; }
.review__video { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.review__video img, .review__video video { width: 100%; height: 100%; object-fit: cover; }
.review__play { position: absolute; inset: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); }
.review__play span { width: 62px; height: 62px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; transition: transform .5s var(--ease); }
.review__play span svg { width: 22px; height: 22px; margin-left: 3px; }
.review__play:hover span { transform: scale(1.12); }
.review__meta { padding: 12px 4px 0; }
.review__meta b { display: block; font-weight: 600; font-size: 15.5px; }
.review__meta span { color: var(--muted); font-size: 13.5px; }

/* CTA + форма */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--orange); color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4.4vw, 64px); display: grid; gap: 32px; }
@media (min-width: 980px) { .cta { grid-template-columns: 1fr 440px; gap: 56px; align-items: center; } }
.cta .title { margin-bottom: 18px; }
.cta__lead { margin-bottom: 28px; max-width: 440px; opacity: .92; font-size: 16.5px; }
.cta__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.cta__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; background: rgba(255,255,255,.18); color: #fff; text-decoration: none; font-size: 14px; transition: background .3s; }
.cta__links a:hover { background: rgba(255,255,255,.32); }
.cta__links svg { width: 16px; height: 16px; }
.cta__text { position: relative; z-index: 2; }
.blob--cta { width: 520px; right: -120px; bottom: -200px; background: rgba(255,255,255,.14); }
.form { position: relative; z-index: 2; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 14px; box-shadow: 0 40px 80px -30px rgba(90,25,0,.45); }
.form h3 { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 13px 15px; transition: border-color .3s, background .3s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form__status { font-size: 14px; min-height: 20px; }
.form__status.ok { color: #15803d; }
.form__status.err { color: #c2410c; }

/* CTA: фон как на главном экране, справа фото */
.cta { background: #2a0b08; padding-bottom: 0; align-items: stretch; }
.cta > .ph__bg { position: absolute; inset: 0; z-index: -2; }
.cta > .ph__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,6,5,.35), rgba(20,6,5,0) 55%); pointer-events: none; }
.cta__text { align-self: center; padding-bottom: clamp(28px, 4.4vw, 64px); position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.cta__text .cta__links { align-self: stretch; }
.cta__me { position: relative; z-index: 1; align-self: end; justify-self: center; height: clamp(460px, 46vw, 680px); margin-top: -40px; width: auto; max-width: none; display: block; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 82%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 82%, transparent 100%); }
.cta__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 18px; }
.cta__badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf6a; box-shadow: 0 0 0 4px rgba(60,207,106,.25); }
@media (max-width: 979px) {
  .cta__text { padding-bottom: 0; }
  /* фото на всю ширину карточки, обрезано примерно по плечи и стоит вплотную к нижнему краю */
  .cta__me { width: calc(100% + 2 * clamp(28px, 4.4vw, 64px)); height: auto; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: 50% 0;
    margin: -10px calc(-1 * clamp(28px, 4.4vw, 64px)) 0; justify-self: stretch;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
}

.cta .title { margin-bottom: 10px; }
.cta__lead { margin-bottom: 20px; }
.cta__badge { margin-bottom: 12px !important; }
.cta__links { margin-top: 12px; }

@media (min-width: 980px) {
  .cta { grid-template-columns: minmax(0, 1fr); min-height: clamp(500px, 40vw, 580px); padding-top: clamp(40px, 4vw, 60px); padding-bottom: clamp(40px, 4vw, 60px); }
  .cta__text { padding-bottom: 0; max-width: 56%; }
  .cta__me { position: absolute; right: 6%; top: 28px; height: clamp(700px, 62vw, 900px); margin: 0; }
}

/* FAQ */
.faq-wrap { display: grid; gap: 10px 60px; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-md); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-weight: 500; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); flex-shrink: 0; position: relative; transition: background .3s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: background .3s; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--orange); transform: rotate(135deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq__a { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }

/* Подвал */
.foot { padding: clamp(64px, 8vw, 120px) var(--gutter) var(--gutter); }
.foot__card { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(32px, 4vw, 56px) clamp(22px, 4vw, 56px) 0; overflow: hidden; }
.foot__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot__h { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.foot a:not(.btn) { color: var(--ink); text-decoration: none; transition: color .3s; }
.foot a:not(.btn):hover { color: var(--orange); }
.foot__lead { font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 20px; max-width: 320px; }
.foot__word { margin-top: clamp(40px, 6vw, 80px); display: flex; justify-content: center; color: var(--orange); user-select: none; }
.foot__word .wm { font-size: 10.6vw; transform: translateY(14%); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 16px 6px 8px; font-size: 12.5px; color: var(--muted); }
.foot__legal a { color: var(--ink-2); }

/* ================= Главная: как работаем ================= */
.pr { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); color: #fff; background: #2a0b08; display: grid; gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4.4vw, 72px); }
@media (min-width: 1000px) { .pr { grid-template-columns: 1fr 1.1fr; min-height: 760px; } }
.pr > .ph__bg { position: absolute; inset: 0; z-index: -2; }
.pr > .ph__bg img { width: 100%; height: 100%; object-fit: cover; }
.pr::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,6,5,.15), rgba(20,6,5,.7) 60%); pointer-events: none; }
.pr__left { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pr__left .title { margin: 4px 0 0; max-width: 520px; }
.pr__lead { font-size: 16.5px; opacity: .8; max-width: 400px; }
.pr__me { position: absolute; left: 8%; bottom: calc(-1 * clamp(28px, 4.4vw, 72px)); height: min(520px, 62%); width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.pr__me--m { display: none; }
.pr__steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; align-content: center; }
.pr__line { position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: rgba(255,255,255,.14); }
.pr__line i { position: absolute; inset: 0; background: var(--orange); transform-origin: top; transform: scaleY(0); }
.pr__step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.pr__dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; background: #2a0d0a; border: 2px solid rgba(255,255,255,.18); color: rgba(255,255,255,.6); transition: background .5s, border-color .5s, color .5s, transform .6s var(--ease); }
.pr__body { padding: 20px 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .5s, border-color .5s, transform .6s var(--ease); }
.pr__body h3 { font-weight: 500; font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -0.02em; }
.pr__body p { font-size: 14.5px; opacity: .72; margin-top: 6px; }
.pr__res { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.pr__res svg { width: 14px; height: 14px; color: var(--orange); }
.pr__step.is-on .pr__dot { background: var(--orange); border-color: var(--orange); color: #fff; transform: scale(1.06); }
.pr__step.is-on .pr__body { background: rgba(255,255,255,.12); border-color: rgba(232,115,47,.5); transform: translateX(4px); }
@media (max-width: 999px) {
  .pr__left { padding-bottom: 0; }
  /* на телефоне и планшете фото — в самом низу блока, после шагов, на всю ширину карточки */
  .pr__left .pr__me { display: none; }
  .pr__me--m { position: static; display: block; width: calc(100% + 2 * clamp(28px, 4.4vw, 72px)); height: auto; max-width: none;
    margin: 0 calc(-1 * clamp(28px, 4.4vw, 72px)) calc(-1 * clamp(28px, 4.4vw, 72px)); filter: none; }
}
@media (max-width: 599px) { .pr__step { grid-template-columns: 44px 1fr; gap: 12px; } .pr__dot { width: 44px; height: 44px; font-size: 13px; } .pr__line { left: 21px; } .pr__body { padding: 16px; } }

/* ================= Главная: проекты — интерактивный список ================= */
.works { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); color: #fff; background: #2a0b08; padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) clamp(20px, 3vw, 40px); }
.works > .ph__bg { position: absolute; inset: 0; z-index: -2; opacity: .55; }
.works > .ph__bg img { width: 100%; height: 100%; object-fit: cover; }
.works::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,6,5,.35), rgba(20,6,5,.85)); pointer-events: none; }
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 44px); }
.works__head .title { margin: 14px 0 0; }
.wl { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.wl li { border-bottom: 1px solid rgba(255,255,255,.14); }
.wl__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 64px 52px; gap: 20px; align-items: center; padding: clamp(18px, 2vw, 26px) 6px; color: #fff; text-decoration: none; position: relative; transition: opacity .45s var(--ease); }
.wl__row::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: rgba(255,255,255,.06); opacity: 0; transition: opacity .45s var(--ease); }
.wl__num { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.45); transition: color .4s; }
.wl__main { display: grid; gap: 4px; min-width: 0; transition: transform .6s var(--ease); }
.wl__title { margin: 0; font-weight: 500; font-size: clamp(22px, 2.5vw, 38px); line-height: 1.12; letter-spacing: -0.025em; transition: color .4s; }
.wl__role { font-size: 14px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl__tag { font-size: 13.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); white-space: nowrap; transition: background .4s, border-color .4s; }
.wl__year { font-size: 14px; color: rgba(255,255,255,.55); text-align: right; }
.wl__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: background .4s, border-color .4s, transform .6s var(--ease); }
.wl__arrow svg { width: 18px; height: 18px; }
.wl__thumb { display: none; }
.wl:hover .wl__row { opacity: .38; }
.wl .wl__row:hover, .wl .wl__row:focus-visible { opacity: 1; }
.wl__row:hover::before { opacity: 1; }
.wl__row:hover .wl__main { transform: translateX(14px); }
.wl__row:hover .wl__title, .wl__row:hover .wl__num { color: var(--orange); }
.wl__row:hover .wl__tag { background: rgba(255,255,255,.1); border-color: transparent; }
.wl__row:hover .wl__arrow { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.wl__preview { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(260px, 24vw, 380px); pointer-events: none; opacity: 0; visibility: hidden; }
.wl__preview-in { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); background: #fff; }
.wl__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .45s var(--ease), transform .9s var(--ease); }
.wl__preview img.is-on { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .wl__row { grid-template-columns: 76px minmax(0, 1fr) 40px; gap: 14px; padding: 14px 0; }
  .wl__num, .wl__tag, .wl__year { display: none; }
  .wl__thumb { display: block; width: 76px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
  .wl__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .wl__title { font-size: 18px; }
  .wl__role { font-size: 13px; white-space: normal; }
  .wl__arrow { width: 40px; height: 40px; }
  .wl:hover .wl__row { opacity: 1; }
  .wl__preview { display: none; }
}
@media (hover: none) { .wl__preview { display: none; } }

.wl li[hidden] { display: none; }
.works__head:has(.filters) { align-items: center; }
.filters--dark { margin: 0; }
.filters--dark .filter { background: rgba(255,255,255,.1); color: #fff; }
.filters--dark .filter:hover { background: rgba(255,255,255,.2); }
.filters--dark .filter.is-active { background: var(--orange); }

/* ================= Главная: статьи — журнальная вёрстка ================= */
.mag { display: grid; gap: 18px; }
@media (min-width: 1000px) { .mag { grid-template-columns: 1.15fr 1fr; align-items: stretch; } }
/* главная статья: обложка целиком сверху, текст — под ней (текст на обложке не смешивается с заголовком) */
.mag__lead { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); display: flex; flex-direction: column; color: #fff; text-decoration: none; background: #1f0a07; padding: clamp(10px, 1vw, 14px); }
.mag__lead > img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: calc(var(--r-xl) - 10px); transition: transform 1.4s var(--ease); }
.mag__lead:hover > img { transform: scale(1.03); }
.mag__lead-body { display: grid; gap: 12px; justify-items: start; padding: clamp(18px, 2.4vw, 32px) clamp(12px, 2vw, 26px) clamp(14px, 2vw, 24px); }
.mag__lead-title { font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -0.025em; max-width: 620px; }
.mag__excerpt { font-size: 15.5px; opacity: .8; max-width: 540px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mag__chip { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--orange); }
.mag__meta { font-size: 13px; color: var(--muted); }
.mag__lead .mag__meta { color: rgba(255,255,255,.7); }
.mag__meta b { color: var(--orange); font-weight: 600; }
.mag__list { display: grid; gap: 10px; align-content: start; }
.mag__row { display: grid; grid-template-columns: clamp(96px, 9vw, 132px) minmax(0, 1fr) 44px; gap: 18px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: #fff; color: var(--ink); text-decoration: none; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.mag__row:hover { transform: translateX(6px); box-shadow: 0 24px 40px -28px rgba(0,0,0,.3); }
.mag__thumb { aspect-ratio: 16 / 12; border-radius: 14px; overflow: hidden; background: var(--gray); }
.mag__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mag__row:hover .mag__thumb img { transform: scale(1.1); }
.mag__row-body { display: grid; gap: 6px; min-width: 0; }
.mag__row-title { font-weight: 600; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mag__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); transition: background .4s, color .4s, transform .6s var(--ease); }
.mag__go svg { width: 17px; height: 17px; }
.mag__row:hover .mag__go { background: var(--orange); color: #fff; transform: rotate(45deg); }
.mag__all { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-radius: var(--r-lg); background: var(--orange); color: #fff; text-decoration: none; font-weight: 500; transition: background .4s; }
.mag__all svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.mag__all:hover { background: var(--ink); }
.mag__all:hover svg { transform: rotate(45deg); }
.mag.mag--list { grid-template-columns: 1fr; }
.mag--list .mag__all { grid-column: 1 / -1; }
@media (min-width: 900px) { .mag--list .mag__list { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); } .mag--list .mag__row { grid-template-columns: 120px minmax(0, 1fr) 44px; } }
@media (max-width: 599px) { .mag__row { grid-template-columns: 84px minmax(0, 1fr); } .mag__go { display: none; } }

/* ================= Внутренние страницы ================= */
.hdr__nav a[aria-current] { color: var(--orange); }
.hdr__nav a[aria-current]::after { transform: scaleX(1); }
.btn--ghost { --b: transparent; --f: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: #fff; }

/* Шапка страницы — карточка с фирменным дымным фоном */
.ph { padding: var(--hdr-h) var(--gutter) 0; }
.ph__card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); color: #fff; background: #3a120a; min-height: clamp(380px, 46vw, 560px); display: flex; align-items: flex-end; }
.ph--post .ph__card { min-height: clamp(360px, 40vw, 520px); }
.ph--sm .ph__card { min-height: clamp(260px, 26vw, 340px); }
.ph--404 .ph__card { min-height: max(520px, calc(100svh - var(--hdr-h) - var(--gutter))); align-items: center; }
.ph__bg { position: absolute; inset: 0; z-index: -2; }
.ph__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.ph__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,8,4,.55) 0%, rgba(25,8,4,.15) 60%, rgba(25,8,4,0) 100%); pointer-events: none; }
.ph__me { position: absolute; z-index: 0; right: clamp(-40px, 2vw, 60px); bottom: 0; height: 96%; width: auto; max-width: none; pointer-events: none; }
.ph__in { position: relative; z-index: 1; width: 100%; padding: clamp(24px, 3.6vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.ph__in .facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 4px; }
@media (max-width: 899px) { .ph__in .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ph__in .facts div { padding: 12px 14px; } }
.ph--me .ph__in { max-width: min(760px, 62%); }
.ph__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ph__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.ph__title { font-weight: 500; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; max-width: 1000px; text-wrap: balance; }
.ph--post .ph__title { font-size: clamp(28px, 3.8vw, 54px); }
.ph--sm .ph__title { font-size: clamp(28px, 3.6vw, 50px); }
.ph__lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; opacity: .88; max-width: 640px; }
.ph__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.crumbs { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; width: 100%; max-width: 980px; margin-top: 10px; }
.facts div { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 4px; }
.facts span { font-size: 12.5px; color: var(--muted); }
.facts b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.facts b a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange, #e8732f); text-underline-offset: 3px; }
.facts b a:hover { color: #e8732f; }
@media (max-width: 899px) {
  /* фото — внизу карточки, под текстом и кнопками, на всю ширину; верх плавно растворяется в фоне */
  .ph--me .ph__card { min-height: 0; flex-direction: column; align-items: stretch; }
  .ph--me .ph__in { max-width: none; order: 1; padding-bottom: 8px; }
  .ph--me .ph__me { position: relative; order: 2; right: auto; bottom: auto; top: auto; translate: none; width: 100%; height: auto; margin-top: -24px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%); }
  .ph--me .ph__card::after { display: none; }
  .crumbs [aria-current] { display: none; }
  .crumbs li:nth-last-child(2)::after { display: none; }
}

/* Контент: белая карточка с удобной колонкой текста */
.sec--doc { padding-top: var(--gutter); }
.doc { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 5vw, 80px) clamp(18px, 4vw, 40px); }
.doc > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.doc__cover { max-width: 1000px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); background: var(--gray); }
.doc__cover img { width: 100%; height: auto; }
.doc__cover--free { max-width: 1000px; }
.prose { font-size: 17.5px; line-height: 1.72; color: #3a3a3a; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-weight: 500; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); margin-top: 1.9em; }
.prose h3 { font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; color: var(--ink); margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--orange-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.prose ol { counter-reset: ol; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: ol; }
.prose ol li::before { content: counter(ol); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; background: var(--peach); color: var(--orange-d); font-size: 14px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.prose figure { margin: 1.8em 0; }
.prose figure img, .prose > img { border-radius: var(--r-md); width: 100%; height: auto; }
.prose blockquote { margin: 1.8em 0; padding: 26px 28px; border-radius: var(--r-lg); background: var(--bg); position: relative; }
.prose blockquote::before { content: "“"; position: absolute; top: -6px; left: 22px; font-size: 64px; line-height: 1; color: var(--orange); font-family: Georgia, serif; }
.prose blockquote p { font-size: 18.5px; color: var(--ink); padding-top: 14px; }
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14.5px; color: var(--muted); }
.callout { background: var(--peach); border-radius: var(--r-lg); padding: 22px 26px; }
.callout b { display: block; color: var(--orange-d); font-weight: 600; margin-bottom: 6px; }
.callout p + p { margin-top: .8em; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prose .gallery figure { margin: 0; }
.gallery figure img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); cursor: pointer; margin: 1.8em 0; }
.prose .video img, .video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 0; cursor: pointer; }
.video__play span { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease); }
.video__play span svg { width: 26px; height: 26px; margin-left: 3px; }
.video__play:hover span { transform: scale(1.1); }
.video-alt { font-size: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; font-size: 13px; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: 22px; border-radius: var(--r-lg); background: var(--bg); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.author-box b { display: block; margin-bottom: 4px; }
.author-box p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.author-box a { color: var(--orange-d); }
.cta-band { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--orange); color: #fff; }
.cta-band h2 { font-weight: 500; font-size: clamp(21px, 2vw, 27px); letter-spacing: -0.02em; line-height: 1.2; }
.cta-band p { font-size: 15px; opacity: .9; margin-top: 6px; max-width: 460px; }

/* Сетки карточек и фильтр */
.cards-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cards-grid .card { flex: none; }
.card[hidden] { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter { border: 0; cursor: pointer; padding: 11px 20px; border-radius: 12px; background: #fff; font-weight: 500; font-size: 15px; transition: background .3s, color .3s; }
.filter:hover { background: var(--gray); }
.filter.is-active { background: var(--orange); color: #fff; }

/* ================= Страница статьи ================= */
.progress { position: fixed; z-index: 150; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffb37a); transform-origin: left; transform: scaleX(0); }

/* Шапка: текст слева, обложка справа */
.ah { padding: var(--hdr-h) var(--gutter) 0; }
.ah__card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); color: #fff; background: #3a120a; display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 64px); }
@media (min-width: 1000px) { .ah__card { grid-template-columns: 1.05fr 1fr; min-height: clamp(520px, 44vw, 640px); } }
.ah__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,8,4,.55), rgba(25,8,4,.1)); }
.ah__text { display: grid; gap: 18px; justify-items: start; position: relative; z-index: 1; }
.ah__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ah__chip { font-size: 13.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); }
.ah__title { font-weight: 500; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.ah__author { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.ah__author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid rgba(255,255,255,.3); }
.ah__author b { display: block; color: #fff; font-weight: 600; font-size: 14.5px; }
.ah__cover { position: relative; z-index: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .9s var(--ease); cursor: zoom-in; will-change: transform; }
.ah__cover img { width: 100%; height: auto; display: block; }
@media (max-width: 999px) { .ah__cover { transform: none; } }

/* Три колонки: оглавление · текст · «поделиться» */
.read { display: grid; gap: var(--gutter); align-items: start; }
@media (min-width: 1000px) { .read { grid-template-columns: 250px minmax(0, 1fr); } }
@media (min-width: 1280px) { .read { grid-template-columns: 260px minmax(0, 1fr) 260px; } }
.read__side { display: none; }
@media (min-width: 1000px) { .read__side--l { display: block; position: sticky; top: 90px; } }
@media (min-width: 1280px) { .read__side--r { display: block; position: sticky; top: 90px; } }
.doc--read { padding-top: clamp(28px, 4vw, 64px); }
.doc--read > * { max-width: 720px; }

.toc { background: #fff; border-radius: var(--r-lg); padding: 22px 18px 18px; }
.toc__title { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 6px 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.toc a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: background .3s, color .3s; }
.toc a span { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 1px; transition: color .3s; flex-shrink: 0; }
.toc a:hover { background: var(--bg); color: var(--ink); }
.toc a.is-active { background: var(--peach); color: var(--ink); }
.toc a.is-active span { color: var(--orange); }
.toc-m { margin-bottom: 28px; background: var(--bg); border-radius: var(--r-md); }
.toc-m summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 500; display: flex; justify-content: space-between; }
.toc-m summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; }
.toc-m[open] summary::after { content: "−"; }
.toc-m .toc { background: none; padding-top: 0; }
.toc-m .toc__title { display: none; }
@media (min-width: 1000px) { .toc-m { display: none; } }

.read__sticky { display: grid; gap: 12px; }
.read__left { background: #fff; border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 2px; }
.read__left b { font-weight: 500; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.read__left span { font-size: 13px; color: var(--muted); }
.share { background: #fff; border-radius: var(--r-lg); padding: 16px 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share > span { width: 100%; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.share__btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, transform .4s var(--ease); }
.share__btn:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.share__btn svg { width: 19px; height: 19px; }
.share__ok { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; white-space: nowrap; font-size: 12px; background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 8px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.share__btn.is-copied .share__ok { opacity: 1; transform: none; }
.share--bottom { margin-top: clamp(36px, 4vw, 56px); padding: 0; background: none; }
.share--bottom > span { width: auto; margin: 0 8px 0 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.mini-cta { background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: 20px; display: grid; gap: 8px; justify-items: start; }
.mini-cta img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid rgba(255,255,255,.2); }
.mini-cta b { font-weight: 600; font-size: 17px; margin-top: 4px; }
.mini-cta p { font-size: 13.5px; opacity: .75; margin-bottom: 6px; }

/* Типографика статьи */
.prose--article > p:first-child { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink); }
.prose h2 { position: relative; scroll-margin-top: 100px; }
.prose .h-num { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--orange); margin-bottom: 10px; }
.h-anchor { margin-left: 10px; color: var(--gray-2) !important; text-decoration: none !important; opacity: 0; transition: opacity .3s, color .3s; }
.prose h2:hover .h-anchor { opacity: 1; }
.h-anchor:hover { color: var(--orange) !important; }
.prose--article h2 { padding-top: 1.4em; border-top: 1px solid var(--line); margin-top: 1.6em; }
.prose figure img, .prose > img { cursor: zoom-in; }

.art-faq { margin-top: clamp(40px, 5vw, 64px); }
.art-faq h2 { font-weight: 500; font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -0.025em; margin-bottom: 18px; }
.art-faq .faq details { background: var(--bg); }
.art-faq .faq summary i { background: #fff; }

/* Предыдущая / следующая */
.pn-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .pn-grid { grid-template-columns: 1fr 1fr; } }
.pn { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: #fff; text-decoration: none; color: var(--ink); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pn:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.25); }
.pn img { width: 140px; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 14px; }
.pn__label { display: block; font-size: 13px; color: var(--orange); font-weight: 500; margin-bottom: 6px; }
.pn b { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.pn--next { text-align: right; grid-template-columns: 1fr 140px; }
.pn--next img { order: 2; }
@media (max-width: 599px) { .pn, .pn--next { grid-template-columns: 96px 1fr; text-align: left; } .pn img { width: 96px; } .pn--next img { order: 0; } }

/* Просмотр картинок */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,10,8,.92); display: grid; place-items: center; padding: 4vw; cursor: zoom-out; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__close svg { width: 20px; height: 20px; }

/* ================= Страница кейса ================= */
.ah--case .facts { grid-column: 1 / -1; position: relative; z-index: 1; max-width: none; margin: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.read--case { }
@media (min-width: 1280px) { .read--case { grid-template-columns: 260px minmax(0, 1fr); } }
.doc--case > * { max-width: 1040px; }
.prose--case > :not(figure):not(.gallery):not(.ss) { max-width: 720px; margin-left: auto; margin-right: auto; }
.prose--case > figure, .prose--case > .gallery, .prose--case > .ss { max-width: 1040px; margin-left: auto; margin-right: auto; }
.prose--case > figure img { border-radius: var(--r-lg); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.prose--case .gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.prose--case .gallery:has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose--case .gallery figure { border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.prose--case .gallery figure img { border-radius: 0; transition: transform 1s var(--ease); }
.prose--case .gallery figure:hover img { transform: scale(1.04); }
.prose--case blockquote { background: var(--blue); color: #fff; padding: clamp(28px, 3vw, 40px); }
.prose--case blockquote::before { color: var(--orange); }
.prose--case blockquote p { color: #fff; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.prose--case blockquote cite { color: rgba(255,255,255,.65); }
.prose--case .callout { background: var(--ink); color: #fff; padding: clamp(24px, 3vw, 36px); }
.prose--case .callout b { color: var(--orange); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.prose--case .callout p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #fff; }

/* «Живой сайт»: длинный скриншот в окне браузера или телефона */
.ss { margin: 2.2em auto; }
.ss__frame { position: relative; margin: 0 auto; background: #fff; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(30,15,5,.45), 0 0 0 1px var(--line); }
.ss--browser .ss__frame { border-radius: 18px; }
.ss__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f1f0ee; border-bottom: 1px solid var(--line); }
.ss__bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2dfdb; }
.ss__bar i:nth-child(1) { background: #ff6b5a; } .ss__bar i:nth-child(2) { background: #ffc23d; } .ss__bar i:nth-child(3) { background: #3ccf6a; }
.ss__bar span { margin-left: 14px; flex: 1; max-width: 420px; font-size: 12.5px; color: var(--muted); background: #fff; border-radius: 8px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss__view { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; cursor: ns-resize; }
.ss__view::-webkit-scrollbar { display: none; }
.ss--browser .ss__view { height: min(72vh, 640px); }
.ss__view img { display: block; width: 100%; height: auto; border-radius: 0 !important; box-shadow: none !important; cursor: inherit; }
.ss--phone .ss__frame { width: min(330px, 82vw); border-radius: 46px; border: 10px solid var(--ink); padding: 0; }
.ss--phone .ss__view { height: min(640px, 70vh); border-radius: 34px; }
.ss__notch { position: absolute; z-index: 2; top: 8px; left: 50%; translate: -50% 0; width: 96px; height: 26px; border-radius: 16px; background: var(--ink); }
.ss__track { position: absolute; right: 6px; top: 60px; bottom: 14px; width: 4px; border-radius: 4px; background: rgba(0,0,0,.06); opacity: 0; transition: opacity .4s; }
.ss--phone .ss__track { top: 46px; bottom: 30px; right: 4px; }
.ss__track i { display: block; width: 100%; height: 18%; border-radius: inherit; background: var(--orange); }
.ss.is-live .ss__track { opacity: 1; }
.ss figcaption { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.ss__hint::before { content: "↕"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--peach); color: var(--orange); font-size: 13px; }
.ss__open { border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--bg); padding: 8px 14px; border-radius: 10px; transition: background .3s, color .3s; }
.ss__open:hover { background: var(--orange); color: #fff; }

/* Просмотр длинных скриншотов */
.lightbox.is-long { place-items: start center; overflow-y: auto; overscroll-behavior: contain; }
.lightbox.is-long img { width: min(1100px, 100%); max-height: none; height: auto; cursor: default; }
.lightbox.is-long.is-phone img { width: min(420px, 100%); }

/* Следующий кейс */
.next-case { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 28px; align-items: center; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 64px); color: #fff; text-decoration: none; background: #3a120a; }
@media (min-width: 900px) { .next-case { grid-template-columns: 1.1fr 1fr; min-height: 420px; } }
.next-case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,8,4,.55), rgba(25,8,4,.1)); }
.next-case__text { display: grid; gap: 16px; justify-items: start; }
.next-case__text b { font-weight: 500; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -0.03em; }
.next-case__sub { opacity: .75; font-size: 15px; }
.next-case__img { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0,0,0,.7); transform: perspective(1200px) rotateY(-8deg) rotate(2deg); transition: transform 1s var(--ease); }
.next-case:hover .next-case__img { transform: perspective(1200px) rotateY(0) rotate(0) scale(1.03); }
.next-case__img img { width: 100%; height: auto; display: block; }

/* iOS Safari: скругления карточек с трансформируемыми картинками внутри */
.hero__card, .ph__card, .ah__card, .works, .pr, .cta, .why, .next-case, .mag__lead, .aud, .svc, .stat { -webkit-mask-image: -webkit-radial-gradient(white, black); }
.burger:focus { outline: none; }

/* Мобильная версия: компактнее */
@media (max-width: 599px) {
  .why { padding: 24px 18px; }
  .why__head { gap: 12px; margin-bottom: 22px; }
  .why__cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { min-height: 0; padding: 16px 12px 18px; }
  .stat b { font-size: 26px; }
  .stat p { font-size: 12.5px; }
  .stat:first-child { padding-bottom: 96px; }
  .stat__shot { width: 84px; right: 10%; bottom: -14px; }
  .stat .blob { width: 120px; }
  .stat__faces { padding-top: 12px; }
  .stat__faces img { width: 44px; height: 44px; margin-left: -12px; border-width: 2px; }
  .stat__route { max-width: 150px; }
  .why__note { min-height: 0; padding: 12px 0; }
  .why__note b { font-size: 38px; }
  .svc { min-height: 230px; }
  .svc .mk-browser { left: 30%; height: 64%; bottom: -8%; }  /* окно сайта выше, но ниже текста карточки */
  .svc .mk-phone { width: 32%; right: 12%; bottom: -34%; }
  .svc--tall { min-height: 320px; }
  .title { font-size: clamp(28px, 8vw, 36px); }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
  .foot__lead { max-width: none; }
  .foot__word .wm { font-size: 9.6vw; transform: translateY(10%); }
  .foot ul a { overflow-wrap: anywhere; }
  .foot ul a.foot__mail { overflow-wrap: normal; word-break: keep-all; }  /* почту переносим только перед «@» */
  .foot { padding-top: 48px; }
}

/* ===== MAX и кнопки связи ===== */
.btn--ghost-light { --b: rgba(255,255,255,.14); --f: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--ink); }
.mini-cta .btn--ghost-light, .cta-band .btn--ghost-light { --b: rgba(255,255,255,.16); }
.cta__btns, .cta-band__btns, .mini-cta__btns, .mobile-menu__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-menu__btns .btn { flex: 1; }
.hdr__max { background: var(--ink); }
.hdr__max:hover { background: var(--orange); color: #fff; }
@media (max-width: 599px) { .hdr__max { display: none; } }

/* ===== Плавающая панель «Написать» (телефон) ===== */
.fab { position: fixed; z-index: 85; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; gap: 8px; padding: 6px; border-radius: 18px; background: rgba(35,35,35,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px -10px rgba(0,0,0,.45); transform: translateY(calc(100% + 24px)); transition: transform .5s var(--ease); }
.fab.is-on { transform: none; }
.fab__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 13px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.fab__btn svg { width: 19px; height: 19px; }
.fab__btn--tg { background: var(--orange); }
.fab__btn--max { background: rgba(255,255,255,.12); }
@media (max-width: 899px) { .fab { display: flex; } }
@media (prefers-reduced-motion: reduce) { .fab { transition: none; } }

/* ===== Отзыв ↔ кейс ===== */
.review__case { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--orange-d); text-decoration: none; }
.review__case svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.review__case:hover svg { transform: rotate(45deg); }
.review__meta span { display: block; }
.case-review { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 16px; margin: 0 auto clamp(32px, 4vw, 48px); border-radius: var(--r-lg); background: var(--bg); }
.case-review .review__video { border-radius: var(--r-md); }
.case-review__text { display: grid; gap: 8px; justify-items: start; }
.case-review__text .ph__kicker { background: #fff; color: var(--ink); }
.case-review__text b { font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.case-review__text p { color: var(--ink-2); font-size: 15px; margin: 0; }
.case-review__hint { color: var(--muted) !important; font-size: 13.5px !important; }
@media (max-width: 599px) { .case-review { grid-template-columns: 120px 1fr; gap: 14px; } }

/* Cookie */
.cookie { position: fixed; z-index: 90; left: 14px; bottom: 14px; right: 14px; max-width: 420px; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.16); display: grid; gap: 14px; font-size: 14px; color: var(--ink-2); }
.cookie[hidden] { display: none; }
.cookie a { color: var(--ink); }
.cookie__btns { display: flex; gap: 8px; }
.cookie__btns button { flex: 1; min-height: 44px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 500; }
.cookie__btns .ok { background: var(--orange); color: #fff; }
.cookie__btns .no { background: var(--bg); color: var(--ink); }

/* Курсор */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, opacity .3s; opacity: 0; }
.cursor span { font-size: 13px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(232,115,47,.22); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--orange); }
.cursor.is-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Начальные состояния для анимаций (только при работающем JS) */
.js-anim [data-fade] { opacity: 0; transform: translateY(40px); }
.hero-wait .hero__word .ch, .hero-wait .hero__me img, .hero-wait .work, .hero-wait .hero__h1 { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js-anim [data-fade], .hero-wait .hero__word .ch, .hero-wait .hero__me img, .hero-wait .work, .hero-wait .hero__h1 { opacity: 1; transform: none; } * { animation: none !important; } }

@media (max-width: 599px) { .prose { font-size: 16.5px; line-height: 1.68; } .doc { border-radius: var(--r-lg); } }

/* ---------- Блог: соцсети и лента Telegram ---------- */
.tgfeed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tgp { background: #fff; border-radius: var(--r-md); padding: 16px; display: grid; gap: 12px; }
.tgp[hidden] { display: none; }
.tgp__head { display: flex; align-items: center; gap: 10px; }
.tgp__head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tgp__head span { display: grid; line-height: 1.25; }
.tgp__head b { font-size: 14px; font-weight: 600; }
.tgp__head time { font-size: 12.5px; color: var(--muted); }
.tgp__media { position: relative; display: grid; gap: 3px; border-radius: 12px; overflow: hidden; background: #eee; }
.tgp__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.tgp__media--1 img, .tgp__media--video img { aspect-ratio: auto; max-height: 420px; }
.tgp__media--2, .tgp__media--4 { grid-template-columns: 1fr 1fr; }
.tgp__media--3 { grid-template-columns: 1fr 1fr; } .tgp__media--3 img:first-child { grid-column: 1 / -1; }
.tgp__more { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; }
.tgp__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; }
.tgp__play svg { width: 22px; height: 22px; }
.tgp__dur { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; }
.tgp__text { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; max-height: 13.9em; overflow: hidden; position: relative; }
.tgp__text.is-open { max-height: none; }
.tgp__text.is-clamped:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.tgp__text a { color: var(--orange-d); }
.tgp__text blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--orange); }
.tgp__text .spoiler { background: #232323; color: transparent; border-radius: 4px; cursor: pointer; transition: color .3s, background .3s; }
.tgp__text .spoiler.is-shown { background: #f1efec; color: inherit; }
.tgp__toggle { justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--orange-d); cursor: pointer; }
.tgp__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px solid #efedea; }
.tgp__foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; margin-left: auto; }
.tgp__foot a svg { width: 14px; height: 14px; }
.tgfeed__more { display: flex; justify-content: center; margin-top: 22px; }
@media (max-width: 1099px) { .tgfeed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .tgfeed { grid-template-columns: minmax(0, 1fr); }
}

/* Блог: мозаика соцсетей */
.sbento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 12px; }
.sb { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: clamp(18px, 1.8vw, 26px); border-radius: var(--r-lg); color: #fff; text-decoration: none; background: var(--bg-c, #232323); transition: transform .6s var(--ease); }
a.sb:hover { transform: translateY(-6px); }
.sb > * { position: relative; z-index: 1; }
.sb > .blob { position: absolute; z-index: 0; }
.sb__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sb__ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.sb__ic svg { width: 24px; height: 24px; }
.sb__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); transition: transform .5s var(--ease), background .3s, color .3s; }
.sb__go svg { width: 16px; height: 16px; }
a.sb:hover .sb__go { background: #fff; color: var(--ink); transform: rotate(45deg); }
.sb__name { font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; letter-spacing: -.02em; }
.sb__sub { font-size: 14.5px; line-height: 1.4; opacity: .72; max-width: 30ch; }
.sb__bottom { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.sb__num { font-size: clamp(34px, 3.2vw, 50px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.sb__num--txt { font-size: clamp(22px, 1.8vw, 26px); letter-spacing: -.02em; }
.sb__num--xl { font-size: clamp(48px, 5.4vw, 84px); }
.sb__lbl { font-size: 14px; opacity: .7; }
/* крупный логотип-водяной знак */
.sb__mark { position: absolute !important; z-index: 0 !important; right: -12%; bottom: -18%; width: 62%; aspect-ratio: 1; opacity: .14; transform: rotate(-14deg); transition: transform 1s var(--ease), opacity .6s; pointer-events: none; }
.sb__mark svg { width: 100%; height: 100%; stroke-width: 1.2; }
a.sb:hover .sb__mark { transform: rotate(0) scale(1.08); opacity: .22; }
/* цвета */
.sb--youtube { --bg-c: #600e15; grid-column: span 2; }
.sb--youtube .sb__ic { background: #ff0033; }
.sb--instagram { --bg-c: linear-gradient(140deg, #6228d7 0%, #c13584 45%, #f56040 80%, #fcaf45 100%); background: var(--bg-c); }
.sb--vk { --bg-c: #0077ff; }
.sb--max { --bg-c: linear-gradient(140deg, #2e9bff, #6b3cf0); background: var(--bg-c); }
.sb--dzen { --bg-c: #111; }
.sb--rutube { --bg-c: #14123a; }
.sb--rutube .sb__ic { background: #ff3c3c; }
.sb--total { --bg-c: var(--orange); }
.sb--total .blob { width: 90%; right: -30%; bottom: -40%; }
.sb--total .sb__name { font-size: 18px; font-weight: 500; opacity: .9; }
/* Telegram — большая плитка */
.sb--telegram { grid-column: span 2; grid-row: span 2; --bg-c: #232323; min-height: 520px; }
.sb--telegram .sb__ic { background: #2aabee; }
.sb--telegram .blob { width: 70%; right: -22%; bottom: -30%; opacity: .9; }
.sb--telegram .sb__name { font-size: clamp(26px, 2.4vw, 36px); }
.sb--telegram .sb__num { font-size: clamp(54px, 6vw, 92px); }
.sb__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; }
.sb__badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); animation: sb-pulse 2s infinite; }
@keyframes sb-pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } }
.sb__chat { display: grid; gap: 8px; margin: 22px 0 6px; max-width: 430px; }
.sb__bubble { display: grid; gap: 4px; padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: #fff; color: var(--ink); box-shadow: 0 16px 34px -18px rgba(0,0,0,.6); transform-origin: left bottom; transition: transform .6s var(--ease); }
.sb__bubble b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.sb__bubble small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.sb__bubble:nth-child(1) { margin-right: 14%; } .sb__bubble:nth-child(2) { margin-left: 6%; margin-right: 6%; opacity: .92; } .sb__bubble:nth-child(3) { margin-left: 12%; opacity: .8; }
a.sb--telegram:hover .sb__bubble:nth-child(1) { transform: translateX(6px) rotate(-1deg); }
a.sb--telegram:hover .sb__bubble:nth-child(3) { transform: translateX(-6px) rotate(1deg); }
.sb__cta { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 500; font-size: 15px; }
.sb__cta svg { width: 14px; height: 14px; }
/* YouTube — веер обложек */
.sb__fan { position: absolute !important; right: 4%; top: 50%; width: 46%; height: 70%; translate: 0 -50%; pointer-events: none; }
.sb__fan img { position: absolute; width: 78%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); transition: transform .8s var(--ease); }
.sb__fan img:nth-child(1) { right: 0; top: 0; transform: rotate(7deg); }
.sb__fan img:nth-child(2) { right: 14%; top: 22%; transform: rotate(-4deg); }
.sb__fan img:nth-child(3) { right: 4%; bottom: 0; transform: rotate(3deg); z-index: 2; }
a.sb--youtube:hover .sb__fan img:nth-child(1) { transform: rotate(12deg) translate(10px, -8px); }
a.sb--youtube:hover .sb__fan img:nth-child(2) { transform: rotate(-9deg) translate(-12px, 0); }
a.sb--youtube:hover .sb__fan img:nth-child(3) { transform: rotate(0) translateY(-6px); }
.sb--youtube .sb__mark { display: none; }
@media (max-width: 1099px) {
  .sbento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb--telegram { grid-row: auto; min-height: 0; }
}
@media (max-width: 680px) {
  .sbento { gap: 8px; grid-auto-rows: minmax(200px, auto); }
  .sb { padding: 16px; border-radius: var(--r-md); }
  .sb__top { margin-bottom: 12px; }
  .sb__ic { width: 42px; height: 42px; border-radius: 12px; }
  .sb__go { width: 34px; height: 34px; }
  .sb__sub { font-size: 13px; }
  .sb__num { font-size: 32px; }
  .sb__num--txt { font-size: 19px; }
  .sb--telegram .sb__num { font-size: 56px; }
  .sb__cta { margin: 12px 0 0; width: 100%; justify-content: center; }
  .sb--youtube { min-height: 300px; }
  .sb__fan { top: auto; bottom: 18px; translate: none; width: 58%; height: 58%; right: 2%; }
  .sb--total, .sb--youtube { grid-column: 1 / -1; }
}
.sb__top { z-index: 3 !important; }
.sb--telegram .sb__cta { background: #fff; color: var(--ink); }
.sb__fan { top: 58%; right: 9%; }
.sb__num--xl { font-size: clamp(44px, 4.4vw, 68px); white-space: nowrap; }
@media (max-width: 680px) {
  .sb--total { grid-column: auto; }
  .sb__num--xl { font-size: 34px; }
  .sb--youtube { min-height: 0; }
  .sb__fan { position: relative !important; inset: auto; translate: none; width: 100%; height: 170px; margin-top: 16px; }
  .sb__fan img { width: 64%; }
}
.foot__meta { flex-basis: 100%; font-size: 11.5px; opacity: .85; }
