/* Тёмный кино-продакшн на экране. Отдельная светлая компоновка A4 для печати. */
@font-face { font-family: "Golos Text"; src: url(assets/fonts/GolosText-cyrillic.woff2) format("woff2"); font-weight: 400 700; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url(assets/fonts/GolosText-latin.woff2) format("woff2"); font-weight: 400 700; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(assets/fonts/Oswald-cyrillic.woff2) format("woff2"); font-weight: 400 700; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: block; }
@font-face { font-family: "Oswald"; src: url(assets/fonts/Oswald-latin.woff2) format("woff2"); font-weight: 400 700; unicode-range: U+0000-00FF, U+2000-206F, U+2212; font-display: block; }
/* Знак рубля из полного Oswald 4.103 (OFL), в сабсетах Google Fonts его нет. */
@font-face { font-family: "Oswald"; src: url(assets/fonts/Oswald-rub.woff2) format("woff2"); font-weight: 400 700; unicode-range: U+20BD; font-display: block; }

:root {
  --bg: #f4f5f6; --card: #fbfbfc; --text: #16181b; --muted: #5f646b; --border: #dddfe2;
  --accent: #c8321b; --rec: #d93a22; --on-accent: #f4efe6; --link: #16181b;
  --radius: 12px; --radius-sm: 8px;
  --sans: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Oswald", var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); }
a { color: var(--link); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
/* Стрелки интерфейса — SVG: в Oswald и Golos Text нет глифов ↗ и →. */
.arrow { display: inline-block; flex: none; width: .8em; height: .8em; vertical-align: -.05em; fill: none; stroke: currentColor; stroke-width: 2; }
.result-card { color: inherit; text-decoration: none; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(244,245,246,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 22px; line-height: 1.1; }
.brand span { margin-top: 5px; font-size: 11px; line-height: 1.35; font-weight: 400; letter-spacing: 0; }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 14px; white-space: nowrap; }
.top nav a:hover, .top nav a.on { color: var(--text); background: #e9ebed; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: var(--radius-sm); white-space: nowrap; }
.btn:hover { filter: brightness(.96); }

section { padding: 56px 0 8px; }
h1 { font: 500 clamp(32px, 5vw, 52px)/1.12 var(--display); letter-spacing: -.01em; margin: 8px 0 18px; max-width: 18ch; }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; margin: 0 0 24px; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.kicker { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0; }
.lead { font-size: 20px; color: #2c2f33; max-width: 60ch; margin: 0 0 28px; }
.hero { padding-top: 64px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 72ch; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--text); border-bottom: 3px solid var(--text); transform: rotate(-45deg); }

.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cell { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.cell p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 80ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps strong { display: block; }

.cases { display: grid; gap: 20px; }
.case { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.case-head h3 { font-size: 22px; margin: 0; }
.case-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.case-period { color: var(--muted); font-size: 15px; white-space: nowrap; }
.metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 6px; }
.metric .num { font: 500 clamp(28px, 4vw, 38px)/1.1 var(--display); }
.metric-cap { color: var(--muted); font-size: 15px; }
.case-text { margin: 8px 0 14px; max-width: 75ch; }
.proof, .pair figure { margin: 14px 0 0; }
.proof img, .pair img { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.proof img { max-height: 520px; width: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.case-link { margin: 14px 0 0; }

.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.vid { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.vthumb { display: block; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #e6e8ea; border: 1px solid var(--border); }
.vid.vert .vthumb { aspect-ratio: 9/16; max-height: 320px; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-weight: 600; }
.vtitle { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vmeta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.vid:hover .vtitle { text-decoration: underline; }

.stats { display: grid; gap: 24px; }
.result-card { min-width: 0; }
.stat-text { display: flex; flex-direction: column; }
.stat-proj { margin: 0; }
.result-image { overflow: hidden; }
.clip-poster { display: none; }
.recording { display: none; }
.case-details summary { cursor: pointer; }
.case-short { margin: 14px 0; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.svc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.svc p { margin: 0; color: var(--muted); flex: 1; }
.svc .more { font-weight: 600; color: var(--link); margin-top: 10px; }
.svc:hover { border-color: var(--text); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); }
.tool-card h2, .tool-card h3 { margin: 0 0 20px; font-size: 30px; line-height: 1.2; }
.tool-card p { margin: 0 0 20px; }
.tool-card .btn { margin-top: auto; white-space: normal; }
.tool-audience, .tool-proof, .tool-footnote { color: var(--muted); }
.tool-proof { border-top: 1px solid var(--border); padding-top: 20px; font-size: 15px; }
.tool-footnote { font-size: 12px; max-width: 80ch; margin: 24px 0 40px; }
.tools-strip > h2 a { text-decoration: none; }
.tools-strip > h2 a:hover { text-decoration: underline; text-underline-offset: 8px; }
.tools-hero { padding-bottom: 0; }
.tools-hero + .tool-grid { padding-top: 48px; }
.audit-intro { margin: 28px 0 0; color: var(--muted); }
.audit-intro a { text-underline-offset: 5px; }

.cta { margin: 56px 0 24px; padding: 40px; background: var(--text); color: #fff; border-radius: var(--radius); }
.cta h2 { max-width: 30ch; }
.prose p { max-width: 72ch; margin: 0 0 10px; }
.foot { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 0; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot p { margin: 0; }
.print-link { display: none; }

.mobile-nav, .print-masthead, .play, .case-jump { display: none; }
.social-icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; vertical-align: -.15em; color: inherit; }
.svc-platforms { display: inline-flex; align-items: center; gap: 10px; }
.video-platform { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; }
.platform-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.platform-strip > span { display: inline-flex; align-items: center; gap: 10px; }
.case-head h3 > .social-icon { margin-right: 10px; }
.vthumb { position: relative; }
.ig-ui { display: none; }
.case-anchor { display: none; }

@media screen {
  :root { --bg: #0e0d0c; --card: #1b1917; --text: #f4efe6; --muted: #b1aaa2; --border: #38332f; --link: #f4efe6;
    --arrow-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E"); }
  html { scroll-behavior: smooth; scroll-padding-top: 140px; color-scheme: dark; }
  body { font-size: 17px; line-height: 1.6; }
  ::selection { color: var(--bg); background: var(--text); }
  .wrap { max-width: 1440px; padding: 0 64px; }
  .social-icon { color: var(--text); }
  .top .btn .social-icon { color: var(--on-accent); }
  .top { position: absolute; top: 16px; left: 0; right: 0; width: 100%; max-width: 1440px; margin: 0 auto; background: transparent; border: 0; border-radius: 0; backdrop-filter: none; z-index: 10; }
  .top-in { max-width: none; min-height: 72px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 32px; padding: 0 64px; }
  .brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
  .brand strong { display: flex; align-items: center; gap: 9px; font: 500 30px/1 var(--display); letter-spacing: .005em; text-transform: uppercase; }
  .brand strong::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }
  .brand span { margin: 0; padding-left: 14px; border-left: 1px solid var(--border); font: 500 10px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .top-in > .btn { grid-column: 2; grid-row: 1; font-size: 13px; padding: 10px 16px; }
  .top .desktop-nav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: flex-start; gap: 8px 28px; overflow: visible; padding-top: 10px; }
  .top nav a { padding: 3px 0; font-size: 13px; border-radius: 0; color: #c7c0b8; }
  .top nav a:hover, .top nav a.on { background: transparent; color: var(--text); text-decoration: underline; text-decoration-color: var(--rec); text-underline-offset: 7px; }
  .btn { border-radius: 999px; padding: 15px 22px; font-size: 14px; display: inline-flex; gap: 24px; align-items: center; transition: background .2s, transform .2s; }
  .btn::after { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--arrow-ne) center / contain no-repeat; mask: var(--arrow-ne) center / contain no-repeat; }
  /* Якорь внутри страницы ведёт вниз, а не наружу. */
  .btn[href^="#"]::after { transform: rotate(135deg); }
  .btn:hover { filter: none; background: #b62b17; transform: translateY(-2px); }
  a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
  section { padding: 112px 0 0; }
  h1, h2, h3, .num { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
  h1 { font-size: clamp(54px, 5.6vw, 82px); line-height: 1.06; max-width: 14ch; margin: 22px 0 28px; text-wrap: balance; }
  h2 { font-size: clamp(44px, 4.7vw, 68px); line-height: 1.05; margin-bottom: 44px; }
  h3 { letter-spacing: -.01em; }
  .kicker { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
  .lead { color: #d0c9c0; font-size: 18px; line-height: 1.6; max-width: 48ch; margin-bottom: 30px; }
  .hero { padding-top: 182px; }
  .service-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; min-height: 740px; padding: 154px 0 64px; }
  .hero-copy { min-width: 0; }
  .hero-copy > p:last-child { margin: 0; }
  .hero-work { position: relative; margin: 0; min-width: 0; }
  .hero-work img { display: block; width: 100%; height: auto; border: 0; border-radius: 18px; }
  .hero-work.portrait { width: min(100%, 315px); justify-self: end; }
  .hero-work figcaption { position: static; margin-top: 12px; padding: 0; color: var(--muted); font-size: 12px; }
  .hero-work.portrait figcaption { text-align: center; }
  /* Межстрочный подобран замером (uxfix-lh.mjs, DPR 1 и 2, 360–1920): с 1.2 точки Ё и бреве Й нынешних
     заголовков не касаются хвостов Д, Щ, Ц и запятой строкой выше, при 1.18–1.19 YouTube на телефоне касается.
     Поля уменьшены на полуинтерлиньяж (.1em), чтобы видимые отступы и кнопка в первом экране остались прежними. */
  .service-hero h1, .page-upakovka .service-hero h1, .tools-hero h1 { font-size: clamp(66px, 7.5vw, 112px); max-width: 13ch; line-height: 1.2; text-transform: uppercase; }
  :is(.service-hero, .tools-hero) h1 { margin-top: calc(22px - .1em); margin-bottom: calc(28px - .1em); }
  body { overflow-x: clip; }
  .home-hero { position: relative; isolation: isolate; height: 884px; min-height: 0; padding: 0; display: block; }
  .home-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 148px; text-align: center; pointer-events: none; }
  .home-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
  .home-copy h1 { font-size: clamp(90px, 10.3vw, 148px); line-height: 1.14; letter-spacing: -.005em; max-width: none; margin: 28px 0 0; text-transform: uppercase; }
  .home-copy h1 span { display: block; }
  .home-copy h1 span:last-child { font-size: .9em; }
  .home-intro .lead { position: absolute; top: 724px; left: 26%; width: 48%; max-width: none; margin: 0; font-size: 15px; line-height: 1.5; }
  .home-intro .btn { position: absolute; top: 804px; pointer-events: auto; }
  .hero-reel { position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; }
  .hero-film { position: absolute; width: 144px; min-width: 0; gap: 0; pointer-events: auto; animation: film-drift 7s ease-in-out infinite alternate; }
  .hero-film:nth-child(1) { top: 158px; left: 0; width: 142px; }
  .hero-film:nth-child(2) { top: 112px; right: 0; width: 178px; animation-delay: -2s; }
  .hero-film:nth-child(3) { top: 552px; right: 0; width: 270px; animation-delay: -4s; }
  .hero-film:nth-child(4) { top: 510px; left: 4%; width: 128px; animation-delay: -3s; }
  .hero-film:nth-child(5) { top: 264px; right: 19%; width: 108px; animation-delay: -5s; }
  .hero-film .reel-frame { display: block; width: 100%; aspect-ratio: 9/16; overflow: hidden; border-radius: 4px; background: #1b1917; box-shadow: 0 12px 32px #0005; }
  .hero-film.landscape .reel-frame { aspect-ratio: 16/9; }
  .hero-film img, .hero-film video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
  .hero-film .vtitle { display: flex; justify-content: space-between; gap: 3px; margin-top: 9px; font-size: 11px; line-height: 1.3; }
  .hero-film .vtitle > .arrow { margin-top: .2em; }
  .hero-film .vmeta { color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 3px; }
  .hero-film:hover .vtitle > .arrow { color: var(--rec); }
  .hero-film:nth-child(5) .ig-ui { display: none; }
  .stats { grid-template-columns: 1fr 1fr; align-items: start; gap: 68px 40px; padding-top: 100px; }
  .result-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .result-card .num { transition: color .2s; }
  .result-card:hover .num { color: var(--rec); }
  .result-card:nth-child(2) { margin-top: 160px; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); }
  .result-card:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
  .result-image { border-radius: 6px; background: #1b1917; }
  .result-image img { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: contain; }
  .result-card:nth-child(3) .result-image img { height: auto; aspect-ratio: auto; object-fit: initial; }
  .stat-text { gap: 14px; padding-top: 22px; }
  .stat-proj { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .stats .num { font: 500 clamp(64px, 7.8vw, 112px)/1 var(--display); letter-spacing: -.04em; color: var(--text); white-space: nowrap; }
  .stats .metric-cap { margin: 0; max-width: 38ch; font-size: 15px; line-height: 1.5; }
  .case-short { font-size: 17px; line-height: 1.5; }
  /* Последнее слово абзаца не остаётся одно на строке. */
  .lead, .case-short, .metric-cap, .case-text { text-wrap: pretty; }
  .case-details { margin-top: 24px; border-top: 1px solid var(--border); }
  .case-details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
  .case-details summary::-webkit-details-marker { display: none; }
  .case-details summary::after { content: ""; flex: none; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: linear-gradient(currentColor 0 0) center / 11px 1.5px no-repeat, linear-gradient(currentColor 0 0) center / 1.5px 11px no-repeat; transition: transform .3s ease, border-color .2s; }
  .case-details summary:hover::after { border-color: var(--text); }
  .case-details[open] summary::after { transform: rotate(45deg); }
  .case-details .less-label, .case-details[open] .more-label { display: none; }
  .case-details[open] .less-label { display: inline; }
  .case-details-body { padding: 2px 0 10px; }
  .case-details .case-text { margin: 0; font-size: 15px; line-height: 1.6; color: #d7d0c7; }
  .case-facts { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 16px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
  .case-facts dt { padding-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
  .case-facts dd.case-period, .case-facts dd.case-sub { display: block; margin: 0; color: #d7d0c7; font-size: 13px; line-height: 1.45; white-space: normal; }
  @supports (interpolate-size: allow-keywords) {
    .case-details { interpolate-size: allow-keywords; }
    .case-details::details-content { height: 0; opacity: 0; overflow: clip; transition: height .35s ease, opacity .3s ease, content-visibility .35s allow-discrete; }
    .case-details[open]::details-content { height: auto; opacity: 1; }
  }
  .case-textual .case-short, .case-textual .case-details { grid-column: 1; }
  .reveal-pending { opacity: 0; transform: translateY(22px); }
  .reveal-ready { transition: opacity .65s ease, transform .65s ease; }
  .hero-film.clip-playing .recording { display: inline-flex; position: absolute; top: 8px; left: 8px; z-index: 2; align-items: center; gap: 5px; padding: 3px 5px; background: #0e0d0cd9; color: #f4efe6; font-size: 9px; line-height: 1; }
  .recording::before { content: ""; width: 6px; height: 6px; background: var(--rec); border-radius: 50%; animation: rec-pulse 1.6s ease-in-out infinite alternate; }
  @keyframes rec-pulse { to { opacity: .45; } }
  @keyframes film-drift { to { transform: translateY(-9px); } }
  .platform-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 32px 0; color: var(--text); font-size: 17px; }
  .platform-strip > span { flex-direction: column; justify-content: center; gap: 14px; min-height: 124px; padding: 20px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
  .platform-strip .social-icon { width: 36px; height: 36px; color: var(--text); }
  .svc-platforms { display: flex; gap: 14px; margin-top: 12px; color: var(--text); }
  .svc-platforms .social-icon { width: 22px; height: 22px; }
  .top .btn .social-icon, .foot .social-icon { width: 20px; height: 20px; }
  a:hover .social-icon { color: currentColor; }
  .services, .grid3 { display: block; counter-reset: editorial; }
  .svc, .cell { position: relative; counter-increment: editorial; display: grid; grid-template-columns: 50px minmax(0, 1.15fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; padding: 32px 0; transition: color .2s; }
  .svc:last-child, .cell:last-child { border-bottom: 1px solid var(--border); }
  .svc::before, .cell::before { content: counter(editorial, decimal-leading-zero); font: 400 15px var(--display); color: var(--muted); }
  .svc h3 { font-size: 28px; margin: 0; }
  .svc p { font-size: 14px; line-height: 1.55; color: var(--muted); }
  .svc .more { font-size: 0; margin: 0; }
  .svc .more::after { content: ""; display: block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--arrow-ne) center / contain no-repeat; mask: var(--arrow-ne) center / contain no-repeat; }
  .svc:hover .more { color: var(--rec); }
  .cell { grid-template-columns: 50px minmax(0, .8fr) minmax(0, 1.2fr); }
  .cell h3 { font-size: 24px; margin: 0; }
  .cell p { font-size: 16px; }
  .page-montazh .cell p { text-wrap: pretty; }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: none; }
  .steps:has(> li:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps:not(:has(> li:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .situations .svc h3 { font-size: 25px; line-height: 1.2; }
  .situations .svc p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--text); font-size: 15px; }
  .situations .svc-platforms { margin-top: 0; }
  .steps li { position: relative; display: block; border-top: 1px solid var(--border); padding: 72px 28px 0 0; font-size: 15px; color: var(--muted); }
  .steps li::before { position: absolute; top: -21px; left: 0; background: var(--bg); border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; font: 400 19px var(--display); }
  .steps strong { color: var(--text); font-size: 21px; font-weight: 500; margin-bottom: 14px; }
  section:has(> .steps) h2 { margin-bottom: 70px; }
  .audience { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding-bottom: 12px; border-top: 1px solid var(--border); padding-top: 64px; }
  .audience h2 { font-size: 46px; }
  .ticks { max-width: none; gap: 18px; }
  .ticks li { padding-left: 24px; color: #cdc6bd; }
  .ticks li::before { width: 6px; height: 6px; border: none; transform: none; background: var(--muted); top: .65em; }
  .cases { gap: 72px; }
  .case { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); align-items: start; gap: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; min-width: 0; }
  /* Круг «↗» в вырезе стоит на одной вертикали с кругом «+»: --jump = правое поле карточки + 15 − 24. */
  .case-copy { --jump: 25px; position: relative; isolation: isolate; padding: 32px 34px 92px; min-width: 0; }
  .case-copy::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: var(--card); clip-path: polygon(0 0,100% 0,100% calc(100% - var(--jump) - 57px),calc(100% - var(--jump) - 57px) calc(100% - var(--jump) - 57px),calc(100% - var(--jump) - 57px) 100%,0 100%); }
  .case-copy:not(:has(.case-jump))::before { clip-path: none; }
  .case-copy:not(:has(.case-jump)):not(.case-publication .case-copy) { padding-bottom: 32px; }
  .case-head { display: block; }
  .case-head h3 { font: 500 36px/1.1 var(--display); display: flex; align-items: flex-start; }
  .case-head h3 > .social-icon { flex: none; width: 22px; height: 22px; margin: calc((1.1em - 22px) / 2) 12px 0 0; }
  .page-krosspost .case-copy:has(.case-anchor) .case-head h3 > .social-icon { display: none; }
  .page-krosspost .case-copy:has(.case-anchor) { padding-top: 112px; }
  .case-anchor { display: block; position: absolute; top: 28px; left: 34px; line-height: 0; }
  .case-anchor .social-icon { width: 56px; height: 56px; }
  .case-anchor-multi { display: flex; gap: 14px; }
  .case-period { display: block; margin-top: 16px; font-size: 12px; white-space: normal; }
  .case-sub { font-size: 14px; margin-top: 10px; }
  .metric { display: block; margin: 34px 0 24px; }
  .metric .num { display: block; font: 500 clamp(40px, 4.5vw, 66px)/1.05 var(--display); letter-spacing: -.04em; overflow-wrap: normal; color: var(--text); }
  .metric .arrow-right { width: .62em; height: .62em; vertical-align: .06em; stroke-width: 3.4; }
  .metric-cap { display: block; font-size: 13px; margin-top: 14px; }
  .case-text { margin: 20px 0 0; font-size: 15px; color: #cdc6bd; }
  .case-jump { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); position: absolute; bottom: var(--jump); right: var(--jump); text-decoration: none; transition: color .2s, background .2s; }
  .case-jump .arrow { width: 18px; height: 18px; stroke-width: 1.8; }
  .case-jump:hover { color: var(--rec); background: var(--card); }
  .case-media { min-width: 0; }
  .case.case-textual { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .case-textual .case-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; }
  .case-textual .case-copy > :is(.case-head, .case-sub, .case-text) { grid-column: 1; }
  .case-textual .metric { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: center; }
  .case-textual .case-link { margin: 12px 32px 0; }
  .page-telegram .cases { gap: 36px; }
  .case-publication .case-copy { padding: 26px 0 8px; border-top: 1px solid var(--border); gap: 0 48px; }
  .case-publication .case-copy::before, .case-publication .case-jump { display: none; }
  .case-publication .case-head h3 { font-size: 28px; }
  .case-publication .metric .num { font-size: 46px; }
  .case-publication .case-text { font-size: 14px; margin-top: 16px; }
  .case-publication .case-link { margin: 0; }
  .case.case-single-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-single-vertical .case-media { width: 100%; max-width: 360px; justify-self: center; }
  .case.case-banner { grid-template-columns: minmax(0, 1fr); }
  .case-banner .case-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  .case-banner .metric { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
  .case-banner .case-text { grid-column: 1 / -1; }
  .proof, .pair figure { margin: 0; min-width: 0; }
  .proof-zoom { position: relative; display: block; padding: 0; background: transparent; border: 0; border-radius: 18px; cursor: zoom-in; overflow: hidden; }
  .proof-zoom::after { content: "+"; position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; background: #0e0d0cd9; color: var(--text); border-radius: 50%; box-shadow: 0 3px 12px #0007; font: 400 26px/1 var(--sans); transition: color .2s; }
  .proof-zoom:hover::after { color: var(--rec); }
  .proof img, .pair img { display: block; width: 100%; height: auto; max-height: none; object-fit: cover; border: 0; border-radius: 18px; }
  .case-publication .proof img { aspect-ratio: 4/5; max-height: 640px; object-fit: cover; object-position: center top; }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  figcaption { margin-top: 10px; font-size: 12px; }
  .vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-top: 24px; }
  .vids:not(.vertical, .vids-shorts):has(> .vid:only-child) { grid-template-columns: minmax(0, 1fr); }
  .vids:not(.vertical, .vids-shorts):has(> .vid:nth-child(3):last-child) > .vid:first-child { grid-column: 1 / -1; }
  .case-media > .vids:first-child { margin-top: 0; }
  /* Shorts в смешанной подборке — отдельный ряд узких колонок, чтобы кадр не вытягивался в колонке выпуска. */
  .vids.vids-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
  .vthumb { position: relative; border-radius: 12px; border: 0; background: #29241f; }
  .play { display: grid; place-items: center; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; background: #110f0ee8; border: 1px solid #e7ddd050; border-radius: 50%; color: #fff; font-size: 23px; transition: color .2s; }
  .video-platform { transition: color .2s; }
  .vid:hover .play, .vid:hover .video-platform { color: var(--rec); }
  .reel-frame { position: relative; display: block; overflow: hidden; border-radius: 12px; }
  .hero-work .reel-frame { width: 100%; border-radius: 18px; }
  .hero-work.portrait .reel-frame { max-width: 100%; margin: 0; }
  .hero-work.portrait .reel-frame img { margin: 0; max-height: none; }
  .ig-ui { display: block; position: absolute; inset: 0; pointer-events: none; color: #fff; font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #0009;
    background: linear-gradient(to top, #000a, #0000 34%), linear-gradient(to left, #0006, #0000 32%); }
  .ig-ui svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px #0008); }
  .ig-rail { position: absolute; right: 8px; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .ig-rail > span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .ig-views { position: absolute; left: 12px; bottom: 14px; display: flex; align-items: center; gap: 5px; }
  .ig-views svg { width: 16px; height: 16px; fill: currentColor; }
  .vthumb:has(.ig-ui) .play { display: none; }
  .hero-film .ig-ui { font-size: 9px; }
  .hero-film .ig-ui svg { width: 16px; height: 16px; }
  .hero-film .ig-rail { right: 5px; bottom: 10px; gap: 8px; }
  .hero-film .ig-rail > span { gap: 2px; }
  .hero-film .ig-views { left: 7px; bottom: 9px; }
  .hero-film .ig-views svg { width: 11px; height: 11px; }
  .vtitle { font-size: 14px; line-height: 1.4; display: block; overflow: visible; margin-top: 8px; }
  .vmeta { font-size: 11px; line-height: 1.5; }
  .vids.vertical { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-color: #82766c #25201b; scrollbar-width: thin; }
  .vertical > .vid { flex: 0 0 42%; min-width: 0; scroll-snap-align: start; }
  .vid.vert .vthumb { max-height: none; }
  .vids.vertical:has(> .vid:only-child) { display: block; overflow: visible; max-width: 360px; margin: 0 auto; padding: 0; }
  .vids.vertical > .vid:only-child { width: 100%; }
  .video-platform { width: 44px; height: 44px; border-radius: 50%; color: var(--text); background: #110f0ee8; }
  .video-platform .social-icon { width: 24px; height: 24px; }
  .case-link { margin-top: 20px; font-size: 13px; }
  .case-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-underline-offset: 5px; }
  .prose { max-width: 76ch; font-size: 19px; color: #cdc6bd; }
  .cta { background: transparent; border: 0; border-radius: 0; margin: 72px 0 0; padding: 48px 0 70px; display: flex; justify-content: space-between; align-items: end; gap: 48px; }
  .cta h2 { color: var(--text); max-width: 19ch; font-size: clamp(44px, 5.7vw, 82px); margin: 0; text-wrap: balance; }
  .cta-copy { min-width: 0; }
  .cta .lead { max-width: 58ch; margin: 24px 0 0; font-size: 18px; line-height: 1.5; }
  .cta .btn { flex-shrink: 0; margin-bottom: 4px; }
  /* Одна карточка инструмента на главной и в разделе — одна разрядка заголовка. */
  .tool-card h2, .tool-card h3 { letter-spacing: -.01em; }
  /* На главной инструменты — второстепенный выход, красной остаётся только кнопка Telegram. */
  .tools-strip .tool-card .btn { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #776f67; }
  .tools-strip .tool-card .btn:hover { background: var(--card); }
  /* Ссылка на проект уже есть в круглой кнопке карточки. */
  .case:not(.case-publication):has(.case-jump) .case-media > .case-link { display: none; }
  .foot { margin: 0; padding: 32px 0 0; border-top: 1px solid var(--border); overflow: hidden; }
  .foot .wrap { font-size: 12px; align-items: center; }
  .foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
  .foot .arrow { width: 13px; height: 13px; margin-left: -4px; }
  .wordmark { font: 500 17vw/.95 var(--display); text-align: center; letter-spacing: -.055em; padding: 48px 0 .06em; margin-left: -.03em; color: var(--text); }
}


/* Десктоп: кнопка Telegram остаётся на экране при прокрутке. Только экран, в печати шапки нет.
   После шапки motion.js ставит .tg-docked, и кнопка сжимается в круг в правом поле 64 px, вне колонки
   контента, поэтому ничего не перекрывает. Пока на экране красная кнопка Telegram в самой странице,
   motion.js ставит .tg-cta-near и круг прячется. Без JS кнопка остаётся в шапке и уходит вместе с ней. */
@media screen and (min-width: 1000px) {
  .tg-docked .top-in > .btn { position: fixed; top: 16px; right: max(8px, calc((100% - 1440px) / 2 + 8px)); z-index: 20; width: 48px; height: 48px; padding: 0; gap: 0; justify-content: center; font-size: 0; box-shadow: 0 6px 24px #0008; transition: background .2s, transform .2s, opacity .2s, visibility .2s; }
  .tg-docked .top-in > .btn::after { display: none; }
  .tg-docked.tg-cta-near .top-in > .btn { opacity: 0; visibility: hidden; }
  /* Карточка с цифрой едет рядом с доказательствами и не уходит под кнопку Telegram. */
  .case:not(.case-textual):not(.case-banner) > .case-copy { position: sticky; top: 88px; }
  /* Раскрытая карточка выше экрана, поэтому она прокручивается вместе с кейсом. */
  .case > .case-copy:has(.case-details[open]) { position: relative; top: auto; }
  .vids.vertical:has(> .vid:nth-child(3):last-child) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  /* Строка поста срезана рамкой 4:5, поэтому низ скрина растворяется в белом фоне поста. */
  .case-publication .proof-zoom::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 88px; background: linear-gradient(#fff0, #fff 85%); pointer-events: none; }
}

@media screen and (min-width: 1000px) and (max-width: 1439px) {
  .top-in { grid-template-columns: 1fr auto; padding: 12px 64px; }
  .top-in > .btn { grid-column: 2; }
  .top .desktop-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-top: 10px; column-gap: clamp(14px, (100vw - 916px) / 6, 28px); }
}

@media screen and (max-width: 999px) {
  .wrap { padding: 0 24px; }
  .top { left: 12px; right: 12px; top: 12px; width: auto; max-width: none; border-radius: 14px; }
  .top-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; min-height: 0; padding: 10px 16px 4px; }
  .brand { min-height: 44px; gap: 12px; }
  .brand strong { font-size: 24px; gap: 7px; }
  .brand strong::before { width: 7px; height: 7px; }
  .brand span { padding-left: 12px; font-size: 9px; letter-spacing: .12em; }
  .top-in > .btn { font-size: 11px; padding: 9px 12px; gap: 10px; min-height: 44px; }
  .top-in > .btn::after { width: 12px; height: 12px; }
  .top .desktop-nav { display: none; }
  .mobile-nav { display: block; order: 3; flex-basis: 100%; }
  .mobile-nav summary { cursor: pointer; min-height: 44px; padding: 8px 0; color: var(--muted); font-size: 12px; }
  .top .mobile-nav nav { position: absolute; top: calc(100% + 6px); left: 0; right: 0; display: grid; gap: 0; max-height: 65svh; overflow-y: auto; padding: 10px 16px; background: #1b1917; border: 1px solid var(--border); border-radius: 14px; }
  .top .mobile-nav nav a { min-height: 44px; display: flex; align-items: center; padding: 10px 0; font-size: 14px; white-space: normal; }
  .home-hero { height: 860px; }
  .home-copy { padding-top: 158px; }
  .home-copy h1 { font-size: 13.4vw; }
  .hero-film:nth-child(1) { width: 106px; top: 155px; }
  .hero-film:nth-child(2) { width: 130px; top: 112px; }
  .hero-film:nth-child(3) { width: 220px; top: 510px; }
  .hero-film:nth-child(4) { width: 110px; top: 490px; left: 0; }
  .hero-film:nth-child(5) { display: none; }
  .home-intro .lead { top: 700px; left: 18%; width: 64%; }
  .home-intro .btn { top: 790px; }
  .service-hero { gap: 24px; min-height: 670px; }
  .hero-work.portrait { max-width: 280px; }
  .case { grid-template-columns: minmax(0, .85fr) minmax(0, 1.1fr); gap: 20px; }
  .case-copy { --jump: 15px; padding: 24px 24px 74px; }
  .case-head h3 { font-size: 30px; }
  .page-krosspost .case-anchor-multi { left: 24px; gap: 10px; }
  .page-krosspost .case-anchor-multi .social-icon { width: 48px; height: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 0; }
  .svc, .cell { gap: 16px; grid-template-columns: 30px minmax(0, 1fr) minmax(0, .9fr) 24px; }
  .cell { grid-template-columns: 30px minmax(0, .8fr) minmax(0, 1.2fr); }
  .svc h3 { font-size: 23px; }
  .steps:has(> li:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 999px) {
  h2 { text-wrap: pretty; }
  h3 { text-wrap: balance; }
  /* Скрин поста во всю ширину, без боковой обрезки текста; лишнее срезается только снизу. */
  .case-publication .proof img { aspect-ratio: auto; max-height: 560px; }
  /* Рамка фокуса не срезается краем ленты. */
  .vids.vertical { padding: 8px 8px 20px; margin-inline: -8px; scroll-padding-inline: 8px; }
}

@media screen and (min-width: 601px) and (max-width: 1199px) {
  .page-upakovka .case:has(.pair) { grid-template-columns: minmax(0, 1fr); }
  /* В ленте планшета карточка около 170 px, значки Instagram уменьшены, чтобы не закрывать кадр. */
  .vids.vertical .video-platform { width: 30px; height: 30px; left: 8px; top: 8px; }
  .vids.vertical .video-platform .social-icon { width: 18px; height: 18px; }
  .vids.vertical .ig-ui { font-size: 10px; }
  .vids.vertical .ig-ui svg { width: 18px; height: 18px; }
  .vids.vertical .ig-rail { right: 6px; bottom: 10px; gap: 8px; }
  .vids.vertical .ig-views { left: 8px; bottom: 10px; }
  .vids.vertical .ig-views svg { width: 12px; height: 12px; }
}

@media screen and (min-width: 601px) and (max-width: 999px) {
  :is(.page-youtube, .page-telegram, .page-upakovka) .service-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 32px; }
  :is(.page-youtube, .page-telegram) .service-hero h1 { max-width: 22ch; }
  :is(.page-youtube, .page-telegram, .page-upakovka) .hero-work { max-width: 640px; }
  .page-upakovka .service-hero h1 { font-size: 48px; max-width: none; }
  .page-upakovka .case { grid-template-columns: minmax(0, 1fr); }
  /* Обложки рядом с текстом, как у Reels и кросс-постинга, а не узкой колонкой у правого края. */
  .page-upakovka .service-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .steps { row-gap: 48px; }
  .steps li { padding-top: 40px; }
  .steps > li:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 60ch; }
  .page-youtube .video-platform { width: 30px; height: 30px; left: 8px; top: 8px; }
  .page-youtube .video-platform .social-icon { width: 18px; height: 18px; }
  .page-youtube .play { width: 30px; height: 30px; right: 8px; bottom: 8px; font-size: 19px; }
}

@media screen and (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top-in { padding: 10px 20px 4px; flex-wrap: nowrap; }
  .top-in > .btn { display: none; }
  .brand { flex-shrink: 0; }
  .brand span { display: none; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-card { padding: 24px; }
  .tool-card h2, .tool-card h3 { font-size: 28px; }
  /* В разделе инструментов кнопка сразу после строки «кому подходит», чтобы попасть в первый экран. */
  .page-instrumenty .tool-card .btn { order: 1; margin: 0 0 20px; }
  .page-instrumenty .tool-card > p:not(.tool-audience) { order: 2; }
  .mobile-nav { order: 0; flex: 0 1 auto; min-width: 0; }
  .mobile-nav summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top .mobile-nav:not([open]) > nav { display: none; }
  section { padding-top: 76px; }
  h1 { font-size: 52px; line-height: 1.07; }
  h2 { font-size: 44px; margin-bottom: 32px; }
  .kicker { font-size: 10px; letter-spacing: .07em; }
  .hero.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; height: auto; padding: 84px 0 28px; }
  .home-copy, .home-intro { display: contents; }
  .home-copy .kicker { grid-row: 1; font-size: 10px; text-align: center; }
  .home-copy h1 { grid-row: 2; font-size: clamp(58px, 16.5vw, 94px); line-height: 1.14; margin: 2px 0 8px; letter-spacing: -.005em; text-align: center; }
  .home-intro .lead { grid-row: 4; position: static; width: auto; max-width: none; margin: 0; font-size: 14px; line-height: 1.5; text-align: left; }
  .home-intro .btn { grid-row: 5; position: static; justify-self: start; margin-top: 6px; font-size: 12px; padding: 12px 18px; }
  .hero-reel { grid-row: 3; position: static; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.08fr) minmax(0, 1fr); gap: 14px; align-items: start; overflow: visible; margin: 0; padding: 0; }
  .hero-film:nth-child(1) { position: static; grid-column: 1; grid-row: 1; width: auto; max-width: 88px; margin-top: 24px; }
  .hero-film:nth-child(2) { position: static; grid-column: 3; grid-row: 1; width: auto; max-width: 104px; justify-self: end; margin-top: 0; }
  .hero-film:nth-child(3) { position: static; grid-column: 2; grid-row: 1; width: auto; max-width: 122px; margin-top: 100px; }
  .hero-film:nth-child(4), .hero-film:nth-child(5) { display: none; }
  .hero-film .vtitle { font-size: 11px; margin-top: 6px; }
  .hero-film .vmeta { font-size: 11px; margin-top: 3px; }
  .hero-film .ig-ui { display: none; }
  .hero { padding-top: 138px; }
  .hero.service-hero { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: start; gap: 16px; min-height: 0; padding-bottom: 48px; }
  .service-hero h1, .page-upakovka .service-hero h1, .tools-hero h1 { font-size: min(48px, 13vw); max-width: none; overflow-wrap: normal; }
  .service-hero .hero-copy { display: contents; }
  .service-hero .hero-copy .kicker, .service-hero .hero-copy h1 { grid-column: 1 / -1; }
  .service-hero .hero-copy h1 { margin: 8px 0 4px; }
  .service-hero .hero-copy .lead { grid-column: 1; padding: 0; min-height: 0; margin: 0; font-size: 14px; }
  .service-hero .hero-copy > p:last-child { grid-column: 1 / -1; margin-top: 8px; }
  .service-hero .hero-work { grid-column: 2; grid-row: 3; width: 100%; align-self: start; }
  .service-hero .hero-work img { width: 100%; height: auto; max-height: none; }
  .service-hero .hero-work figcaption { font-size: 11px; }
  .service-hero .ig-ui { font-size: 7px; }
  .service-hero .ig-ui svg { width: 12px; height: 12px; }
  .service-hero .ig-rail { right: 3px; bottom: 8px; gap: 6px; }
  .service-hero .ig-views { left: 4px; bottom: 4px; }
  .lead { font-size: 16px; }
  .hero-work figcaption { margin-top: 10px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 52px; }
  .result-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .result-card:nth-child(2) { margin-top: 0; }
  .result-card:nth-child(3) { display: flex; gap: 0; grid-column: auto; }
  .result-card:not(:nth-child(3)) .result-image { max-width: 260px; }
  .stats .num { font-size: 76px; }
  .stats .metric-cap { font-size: 14px; }
  .stat-text { gap: 10px; padding-top: 16px; }
  .svc, .cell { grid-template-columns: 24px minmax(0, 1fr) 26px; gap: 10px 14px; padding: 26px 0; align-items: start; }
  .svc h3, .cell h3 { font-size: 23px; line-height: 1.2; }
  .svc::before, .cell::before { padding-top: 3px; }
  .svc p, .cell p { grid-column: 2; font-size: 13px; margin: 0; }
  .svc .more { grid-column: 3; grid-row: 1; }
  .svc .more::after { width: 20px; height: 20px; }
  .cell { grid-template-columns: 24px minmax(0, 1fr); }
  .cell p { font-size: 15px; margin-top: 4px; }
  .steps { display: block; }
  .steps li { border-top: 0; border-left: 1px solid var(--border); margin-left: 20px; padding: 0 0 36px 36px; font-size: 14px; }
  .steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .steps li::before { top: -4px; left: -21px; }
  .steps strong { font-size: 21px; margin-bottom: 10px; }
  section:has(> .steps) h2 { margin-bottom: 40px; }
  .audience { display: block; padding-top: 44px; padding-bottom: 0; }
  .audience h2 { font-size: 40px; margin-bottom: 28px; }
  .ticks { gap: 16px; }
  .case { display: block; }
  .cases { gap: 52px; }
  .case-copy { --jump: 17px; margin-bottom: 20px; padding: 28px 26px 80px; }
  .case-head h3 { font-size: 36px; }
  .metric .num { font-size: 52px; }
  .metric { margin-top: 26px; }
  .case-text { font-size: 14px; }
  .case-textual .case-copy { display: block; }
  .case-banner .case-copy { display: block; }
  .case-banner .metric { margin: 26px 0 24px; }
  .case-textual .metric { margin: 26px 0 24px; }
  .case-publication .case-copy { padding: 24px 0 0; margin-bottom: 0; }
  .case-publication .metric { margin: 20px 0 16px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .vids { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vids.vids-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .vtitle { font-size: 15px; }
  .vmeta { font-size: 12px; }
  .vertical > .vid { flex-basis: 78%; }
  .cta { display: block; margin-top: 76px; padding: 44px 0 48px; }
  .cta h2 { font-size: 48px; max-width: 18ch; margin-bottom: 28px; }
  .cta .lead { margin: 0 0 28px; font-size: 16px; }
  .foot .wrap { display: block; font-size: 12px; }
  .foot p + p { margin-top: 10px; }
  .wordmark { padding-top: 32px; font-size: 17vw; }
  .prose { font-size: 17px; }
  .platform-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 28px 0; font-size: 15px; }
  .platform-strip > span { min-height: 112px; padding: 18px 10px; gap: 12px; }
  .platform-strip > span:last-child { grid-column: 1 / -1; }
  .platform-strip .social-icon { width: 32px; height: 32px; }
  .svc-platforms { margin-top: 10px; gap: 14px; }
  .top-in > .btn { gap: 8px; }
  .top-in > .btn .social-icon { width: 20px; height: 20px; }
  .page-krosspost .case-copy:has(.case-anchor) { padding-top: 108px; }
  .case-anchor { top: 26px; left: 26px; }
  .case-anchor-multi { gap: 10px; }
  .case-anchor-multi .social-icon { width: 48px; height: 48px; }
}
@media screen {
  .vid .video-title-print, .video-date-print { display: none; }
  .play::before { content: ""; width: .7em; height: .7em; background: currentColor; -webkit-mask: var(--arrow-ne) center / contain no-repeat; mask: var(--arrow-ne) center / contain no-repeat; }
}


@media screen and (max-width: 380px) {
  .case-anchor-multi { gap: 6px; }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .hero-reel { margin-top: 12px; }
}

@media screen and (min-width: 768px) and (max-width: 1399px) {
  .home-hero { height: 968px; }
  .home-copy h1 { font-size: clamp(84px, 11vw, 105px); }
  .hero-film:nth-child(3) { top: 584px; width: 220px; }
  .hero-film:nth-child(5) { display: none; }
  .home-intro .lead { top: 790px; left: 18%; width: 64%; text-align: center; text-wrap: balance; }
  .home-intro .btn { top: 882px; }
  .hero-film .ig-ui { display: none; }
}

/* Ноутбуки 1000–1399: лид и кнопка сразу под заголовком, в первом экране высотой 720–800. */
@media screen and (min-width: 1000px) and (max-width: 1399px) {
  .home-hero { height: 820px; }
  .home-intro .lead { top: 568px; left: 23%; width: 54%; text-align: center; text-wrap: balance; }
  .home-intro .btn { top: 646px; }
}
@media screen and (min-width: 1400px) {
  .home-intro .lead { text-align: center; text-wrap: balance; }
}

/* Автоаудит остаётся веб-формой, без печатного заказа. */
@media screen {
  .page-avtoaudit main { max-width: 960px; padding-bottom: 80px; }
  .page-avtoaudit .lead, .page-avtoaudit section > p { max-width: 76ch; }
  .page-avtoaudit section:not(.hero) { padding-top: 64px; }
  .page-avtoaudit h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
  /* Нумерация «01» шрифтом Oswald и линии на всю колонку, как в списках услуг. */
  .audit-report ol { list-style: none; padding: 0; margin: 28px 0; counter-reset: editorial; }
  .audit-report li { counter-increment: editorial; display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 24px; padding: 24px 0 12px; border-top: 1px solid var(--border); }
  .audit-report li:last-child { border-bottom: 1px solid var(--border); }
  .audit-report li::before { content: counter(editorial, decimal-leading-zero); grid-row: span 2; padding-top: 6px; font: 400 15px var(--display); color: var(--muted); }
  .audit-report h3 { margin: 0; font-size: 24px; }
  /* «Подробнее» — тот же компонент, что в кейсах (.case-details). У пункта уже есть верхняя линия. */
  .audit-report .case-details { margin-top: 4px; border-top: 0; }
  .audit-report .case-details-body p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: #d7d0c7; }
  .audit-hint .case-details-body > p:first-child { margin-top: 0; }
  .audit-more summary { cursor: pointer; color: var(--muted); }
  /* Подсказки формы — тот же «Подробнее» с кругом, но приглушённый и компактный: 13 px, зона касания 44 px по ширине подписи. */
  .audit-hint.case-details { margin-top: 4px; border-top: 0; }
  .audit-hint summary { justify-content: flex-start; width: fit-content; min-height: 44px; padding: 8px 0; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 400; transition: color .2s; }
  .audit-hint summary::after { width: 26px; height: 26px; }
  .audit-hint summary:hover { color: var(--text); }
  .audit-report details p, .audit-more p { max-width: 76ch; }
  .audit-more { border-top: 1px solid var(--border); padding: 24px 0; }
  .audit-more summary { color: var(--text); font-size: 20px; }
  .audit-price ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
  .audit-price li { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); font: 500 clamp(26px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
  #audit-form { margin-top: 32px; }
  #audit-form [hidden] { display: none; }
  #audit-form fieldset { min-width: 0; margin: 24px 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
  #audit-form legend { max-width: 100%; padding: 0 8px; font-weight: 600; overflow-wrap: anywhere; }
  .audit-choice { display: flex; gap: 12px; align-items: center; min-height: 44px; margin: 4px 0; cursor: pointer; }
  .audit-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
  .audit-field { min-width: 0; margin: 20px 0; }
  .audit-field > label { display: block; margin-bottom: 8px; }
  /* Рамка поля 3,9:1 к фону (WCAG 1.4.11), красный остаётся за ошибками. */
  .audit-field input, .audit-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #776f67; border-radius: var(--radius-sm); background: var(--card); color: var(--text); padding: 12px; font: inherit; }
  .audit-field textarea { resize: vertical; }
  .audit-hint { font-size: 14px; color: var(--muted); }
  .audit-hint p { margin-bottom: 8px; }
  #audit-form :is(input, textarea, button):focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
  #audit-form [aria-invalid=true] { outline: 2px solid var(--rec); outline-offset: 3px; }
  /* У радиокнопок красной становится рамка группы, а не квадрат вокруг первого кружка. */
  #audit-form input[type=radio][aria-invalid=true] { outline: none; }
  #audit-form fieldset:has(input[type=radio][aria-invalid=true]) { border-color: var(--rec); }
  .audit-errors { color: var(--text); border-left: 3px solid var(--rec); padding: 16px 16px 16px 36px; }
  #audit-form button { border: 0; font-family: inherit; cursor: pointer; }
  #audit-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: clamp(24px, 5vw, 40px); border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: var(--bg); }
  #audit-dialog::backdrop { background: rgb(0 0 0 / .8); }
  #audit-dialog p { margin: 0 0 24px; }
  #audit-dialog form { margin-top: 12px; }
  .audit-close { min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
  .audit-close:hover { color: var(--text); }
  .audit-close:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
}
@media screen and (min-width: 1000px) {
  .page-avtoaudit main { max-width: 1440px; }
  .page-avtoaudit main > * { max-width: 896px; }
  .audit-price li { white-space: nowrap; }
}
@media screen and (max-width: 767px) {
  .audit-report li { grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; }
  .audit-report li::before { padding-top: 3px; }
  .audit-report h3 { font-size: 22px; line-height: 1.2; }
}
@media screen and (max-width: 600px) {
  .audit-price ul { grid-template-columns: minmax(0, 1fr); }
  #audit-form fieldset { padding: 16px; }
  #audit-form .audit-owner { padding: 12px; }
}

@media screen and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .hero-film video { display: none; }
  .hero-film .clip-poster { display: block; height: 100%; }
  .hero-film .recording { display: none; }
}

/* Сетка «Все ролики» на странице услуги: вертикальные играют на сайте, длинные ведут на YouTube. */
@media screen {
  .roliki > .lead { margin: -8px 0 8px; color: var(--muted); }
  .rolik-proekt { padding-top: 36px; }
  .rolik-proekt h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 16px; font-size: 20px; }
  .rolik-obem { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
  .roliki-vert { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
  .rolik { margin: 0; min-width: 0; position: relative; }
  .rolik video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #29241f; }
  .rolik figcaption { position: absolute; top: 6px; right: 6px; margin: 0; }
  .rolik figcaption a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #110f0ec0; color: var(--text); }
  .rolik figcaption .social-icon { width: 18px; height: 18px; }
  .roliki-long { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; margin-top: 16px; }
  .roliki-vert + .roliki-long { margin-top: 16px; }
  .rolik-long { display: block; color: var(--text); }
  .rolik-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #29241f; }
  .rolik-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .roliki-vse { margin-top: 20px; }
  .roliki-vse summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px 0 22px; border: 1px solid var(--border); border-radius: 999px;
    font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; transition: border-color .2s, background-color .2s; }
  .roliki-vse summary::-webkit-details-marker { display: none; }
  .roliki-vse summary:hover { border-color: var(--text); background: #ffffff0d; }
  .roliki-vse .chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
  .roliki-vse[open] summary { margin-bottom: 16px; }
  .roliki-vse[open] .chevron { transform: rotate(180deg); }
  .rolik-sostav { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
  .roliki-mini { display: grid; gap: 6px; margin-bottom: 6px; }
  .roliki-mini.vert { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .roliki-mini.long { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .roliki-mini a { display: block; overflow: hidden; border-radius: 6px; background: #29241f; }
  .roliki-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .roliki-mini.vert a { aspect-ratio: 9 / 16; }
  .roliki-mini.long a { aspect-ratio: 16 / 9; }
  .roliki-mini a:hover img { opacity: .8; }
}
@media screen and (min-width: 601px) and (max-width: 999px) {
  .roliki-vert { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roliki-long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 600px) {
  .roliki-vert, .roliki-long { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .roliki-mini.vert { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .roliki-mini.long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Переход на другие страницы внизу: дочитал услугу — сразу следующая, без прокрутки к меню. Только на экране. */
.more-pages { display: none; }
@media screen {
  .more-pages { display: block; padding: 112px 0 96px; }
  .more-pages h2 { margin: 0 0 32px; }
  .more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--border); }
  .more-card { display: flex; align-items: center; gap: 14px; min-height: 96px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font: 500 26px/1.15 var(--display); letter-spacing: -.01em; }
  .more-card .more-name { min-width: 0; }
  .more-card .svc-platforms { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; line-height: 0; color: var(--muted); }
  .more-card .svc-platforms .social-icon { width: 18px; height: 18px; color: var(--muted); }
  .more-card .arrow { position: relative; top: 4px; flex: none; width: 22px; height: 22px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.8; transition: color .2s, transform .2s; }
  .more-card .svc-platforms + .arrow { margin-left: 0; }
  .more-card:hover .arrow { color: var(--rec); transform: translate(2px, -2px); }
}
@media screen and (max-width: 999px) {
  .more-pages { padding: 80px 0 64px; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .more-card { font-size: 22px; min-height: 76px; }
}
@media screen and (max-width: 600px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more-card { min-height: 64px; }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 14mm 19mm;
    @bottom-left { content: "Данил Патласов, контент-продюсер"; font: 8pt "Golos Text", sans-serif; color: #5f646b; }
    @bottom-right { content: "Telegram @TG_Dante   /   " counter(page) " из " counter(pages); font: 8pt "Golos Text", sans-serif; color: #16181b; }
  }
  :root { color-scheme: light; }
  html, body { background: #fff !important; font-size: 10pt; line-height: 1.34; }
  .top, .foot, .hero-work, .hero-reel, .tools-strip, .roliki { display: none; }
  video { display: none !important; }
  .clip-poster { display: block; }
  .case-details { display: block; }
  .case-details summary { display: none; }
  .case-details::details-content { content-visibility: visible; display: block; height: auto; opacity: 1; }
  .case-details-body { display: flex; flex-direction: column; }
  .case-facts { display: block; margin: 0; order: -1; }
  .case-facts dt { display: none; }
  .case-facts dd { margin: 0; }
  .case-facts dd.case-period { margin: 1em 0; }
  .case-facts dd.case-sub { margin: 4px 0 0; }
  .video-title-print, .video-date-print { display: block; }
  .case-short { margin: 1.5mm 0; font-weight: 600; }
  .reveal-pending { opacity: 1; transform: none; }
  .wrap { max-width: none; padding: 0; }
  .print-masthead { display: flex; align-items: baseline; gap: 4mm; padding-bottom: 3mm; margin-bottom: 4mm; border-bottom: 1pt solid #16181b; font-size: 9pt; }
  /* Логотип как на сайте; межстрочный 1, чтобы шапка листа не стала выше и не сдвинула разрывы страниц. */
  .print-masthead strong { font: 500 11pt/1 var(--display); text-transform: uppercase; }
  .print-masthead a { margin-left: auto; text-decoration: none; }
  section { padding: 3mm 0 0; }
  .hero { padding-top: 0; }
  .hero > p:not(.kicker):not(.lead), .hero-copy > p:not(.kicker):not(.lead) { margin: 0 0 2mm; }
  .ticks { gap: 1.5mm; max-width: none; }
  .ticks li { padding-left: 6mm; }
  .ticks li::before { width: 3mm; height: 1.7mm; border-width: 0 0 .6mm .6mm; top: .3em; }
  h1 { font-size: 22pt; line-height: 1.08; max-width: none; margin: 2mm 0 3mm; text-wrap: balance; }
  h2, h3, .case-head h3 { font-family: var(--display); font-weight: 500; }
  h2 { font-size: 16pt; line-height: 1.15; margin: 0 0 3mm; }
  h3, .case-head h3 { font-size: 13pt; line-height: 1.2; }
  .kicker { font-size: 8pt; }
  .lead { font-size: 10.5pt; line-height: 1.38; max-width: none; margin-bottom: 3mm; }
  .case-sub, .case-period, .metric-cap { font-size: 9pt; line-height: 1.35; }
  .case-period { white-space: normal; }
  .metric { margin: 2mm 0 1.5mm; gap: 1mm 3mm; }
  .metric .num { font-size: 20pt; line-height: 1.1; }
  .case-text { margin: 1.5mm 0 2mm; }
  .cell p, .svc p { font-size: 10.5pt; line-height: 1.38; }
  .vtitle { font-size: 10pt; line-height: 1.3; display: block; overflow: visible; -webkit-line-clamp: unset; }
  .vmeta, figcaption { font-size: 9pt; line-height: 1.3; }
  .page-krosspost .cell p, .page-index .svc p { font-size: 10pt; }
  .page-krosspost .vtitle { font-size: 9pt; }
  .page-krosspost .vmeta, .page-krosspost figcaption { font-size: 8pt; }
  .print-link, .vid .print-link { display: block; font-size: 7.5pt; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
  .btn { background: none; color: var(--text); padding: 0; border: 0; font-weight: 700; }
  p, li { orphans: 3; widows: 3; }
  a { color: var(--text); }
  .case, .cell, .svc, .stats > div { background: #fff; }
  .cell, .svc, .stats > div, .vids, .metric, .proof, .steps li { break-inside: avoid-page; }
  h2, h3, .case-head, .case-sub { break-after: avoid-page; }
  .cases { display: block; }
  .case { padding: 3mm; margin: 0 0 3mm; border-radius: 2mm; break-inside: avoid-page; }
  .case-copy { break-inside: avoid-page; }
  .case-media { display: block; break-inside: auto; }
  .case-media:empty { display: none; }
  .case-media > .proof, .case-media > .pair, .case-media > .vids { margin: 0; min-width: 0; }
  .case-media > .vids { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; }
  .case-media:has(> .proof) > .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3mm; }
  .proof { break-inside: avoid-page; margin-bottom: 3mm; }
  .proof img { max-width: 100%; max-height: 65mm; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
  .proof-analysis img { max-height: 85mm; }
  .page-youtube .proof-analysis img { max-height: 75mm; }
  .proof-overview img { max-height: 85mm; }
  .page-youtube .case:has(.proof-analysis) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm 4mm; }
  .page-youtube .case-head { display: block; }
  .page-youtube .case:has(.proof-analysis) .case-media { display: contents; }
  .page-youtube .case:has(.proof-analysis) .proof { grid-column: 2; grid-row: 1; align-self: start; }
  .page-youtube .case:has(.proof-analysis) .proof img { max-height: 60mm; }
  .page-youtube .case:has(.proof-analysis) .vids, .page-youtube .case:has(.proof-analysis) .case-link { grid-column: 1 / -1; margin: 0; }
  /* Выпуск и Short одного проекта печатаются в одну строку: стопкой карточка выталкивает следующую на новый лист. */
  .page-youtube .case:has(.proof-analysis):has(.vids-shorts) .vids { grid-row: 2; grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .page-youtube .case:has(.proof-analysis) .case-media > .vids-shorts { grid-row: 2; grid-column: 2; margin: 0; }
  .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; break-inside: avoid-page; }
  .pair figure { display: flex; flex-direction: column; margin: 0; min-width: 0; break-inside: avoid-page; }
  .pair img { width: 100%; height: auto; max-height: 100mm; object-fit: contain; }
  .pair figcaption { order: -1; margin: 0 0 2mm; font-size: 10pt; }
  .vid.vert .vthumb { align-self: flex-start; height: 34mm; width: auto; aspect-ratio: 9 / 16; max-height: none; }
  .vid:not(.vert) .vthumb { max-height: none; }
  .case-media > .vids:has(> .vid:only-child) { grid-template-columns: minmax(0, 1fr); }
  .vids > .vid.vert:only-child { display: grid; grid-template-columns: 34mm minmax(0, 1fr); column-gap: 5mm; align-content: start; }
  .vid.vert:only-child .vthumb { width: 34mm; height: auto; max-height: none; grid-row: 1 / 4; }
  .vid.vert:only-child .vtitle, .vid.vert:only-child .vmeta, .vid.vert:only-child .print-link { grid-column: 2; }
  .page-youtube .case-media > .vids .vid { display: grid; grid-template-columns: 38mm minmax(0, 1fr); column-gap: 3mm; row-gap: 1mm; align-content: start; }
  .page-youtube .vids .vthumb { width: 38mm; height: auto; max-height: none; grid-column: 1; grid-row: 1 / 3; }
  .page-youtube .vids .vtitle, .page-youtube .vids .vmeta { grid-column: 2; }
  .page-youtube .vids .print-link { grid-column: 1 / -1; }
  /* Shorts отдельным рядом: в печати узкий вертикальный кадр, иначе карточка не влезает на лист и рвёт страницу. */
  .case-media > .vids-shorts { margin-top: 3mm; }
  .vids-shorts .vid { grid-template-columns: 16mm minmax(0, 1fr) !important; }
  .vids-shorts .vid.vert .vthumb { width: 16mm; height: auto; aspect-ratio: 9 / 16; max-height: none; }
  .page-krosspost .vid .print-link { font-size: 7pt; }
  .vids > .vid:not(.vert):only-child { display: grid; grid-template-columns: 85mm minmax(0, 1fr); column-gap: 5mm; align-content: start; }
  .vid:not(.vert):only-child .vthumb { width: 85mm; height: auto; max-height: none; grid-row: 1 / 4; }
  .vid:not(.vert):only-child .vtitle, .vid:not(.vert):only-child .vmeta, .vid:not(.vert):only-child .print-link { grid-column: 2; }
  /* Подпись одиночного ролика собирается под названием, а не растягивается по высоте превью. */
  .vids > .vid:only-child { grid-template-rows: auto auto 1fr; }
  /* Выпуск, оставшийся один рядом с рядом Shorts, печатается узким, как пара выпусков, а не на полстраницы. */
  .case-media:has(> .vids-shorts) > .vids > .vid:not(.vert):only-child { grid-template-columns: 38mm minmax(0, 1fr); column-gap: 3mm; }
  .case-media:has(> .vids-shorts) > .vids > .vid:not(.vert):only-child .vthumb { width: 38mm; }
  .case-link { grid-column: 1 / -1; margin: 2mm 0 0; break-before: avoid-page; break-inside: avoid-page; }
  .case-textual { break-inside: avoid-page; }
  .case-link > a { text-decoration-thickness: .5pt; text-underline-offset: 1.5pt; }
  .case-single-vertical { display: grid; grid-template-columns: minmax(0, 1fr) 66mm; gap: 4mm; }
  .case-single-vertical .vid.vert:only-child { grid-template-columns: 20mm minmax(0, 1fr); column-gap: 3mm; }
  .case-single-vertical .vid.vert:only-child .vthumb { width: 20mm; }
  .grid3 { display: block; }
  .cell { display: grid; grid-template-columns: 46mm minmax(0, 1fr); gap: 4mm; padding: 1.5mm 0; border: 0; border-top: .5pt solid #dddfe2; border-radius: 0; }
  .cell h3 { font-size: 10.5pt; line-height: 1.3; margin: 0; break-after: auto; }
  .cell p { margin: 0; }
  .grid3 > .cell:first-child { break-after: avoid-page; }
  .steps { display: block; max-width: none; }
  .steps li { display: block; position: relative; padding-left: 7mm; margin: 0 0 1.5mm; }
  .steps li::before { content: counter(s) "."; position: absolute; left: 0; top: 0; width: auto; height: auto; display: block; border-radius: 0; background: none; color: var(--text); }
  .steps strong { display: inline; margin-right: 1.5mm; }
  .cta { background: #fff; color: var(--text); border: 0; border-top: 1pt solid #16181b; border-radius: 0; padding: 4mm 0 0; margin: 5mm 0 0; break-before: avoid-page; break-inside: avoid-page; }
  .cta h2 { max-width: none; font-size: 13pt; line-height: 1.25; margin: 0 0 2mm; }
  .cta .lead { margin: 0 0 2mm; font-size: 10pt; line-height: 1.34; }
  .prose p:last-child, .prose .ticks li:last-child { break-after: avoid-page; }
  main:has(.services) h1 { font-size: 22pt; max-width: none; }
  main:has(.services) section { padding-top: 3mm; }
  main:has(.services) .hero { padding-top: 0; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; margin: 3mm 0; }
  .result-card { break-inside: avoid-page; }
  .result-image img { width: 100%; height: 34mm; object-fit: contain; }
  .stat-text { gap: 1mm; padding-top: 2mm; }
  .stat-proj { font-size: 8pt; }
  .stats .num { font: 500 24pt/1.1 var(--display); }
  .stats .metric-cap { font-size: 8pt; line-height: 1.35; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5mm; }
  .svc { display: flex; flex-direction: column; gap: 0; padding: 2mm 3mm; border-radius: 1.5mm; break-inside: avoid-page; }
  .svc h3 { font-size: 11pt; margin-bottom: 1mm; }
  .svc p { flex: 1; line-height: 1.3; }
  .svc .more { display: block; font-size: 8.5pt; margin-top: auto; padding-top: 1.5mm; }
  main:has(.services) .steps li { margin-bottom: 1.5mm; }
  section:has(> .steps) { break-inside: avoid-page; }
  .social-icon { width: 3mm; height: 3mm; color: #16181b; }
  .svc-platforms { display: inline-flex; gap: 2mm; margin: 1mm 0 1mm 2mm; }
  .video-platform { left: 1mm; top: 1mm; padding: .6mm; background: #fff; color: #16181b; }
  .video-platform .social-icon { display: block; }
  .case-link a, .print-masthead a { display: inline-flex; align-items: center; gap: 1.5mm; }
  .platform-strip { padding: 2mm 0; margin-bottom: 1mm; font-size: 8pt; gap: 2mm; }
  .platform-strip > span { gap: 1.5mm; }
  .page-index main:has(.services) section { padding-top: 2mm; }
  .page-index .result-image img { height: 27mm; }
  .page-index .svc { padding: 1.5mm 2mm; }
  .page-index .svc .more { display: none; }
  .page-index .cta { margin-top: 3mm; padding-top: 3mm; }
  .page-reels .cell { padding-top: 1mm; padding-bottom: 1mm; }
  .page-reels .cta { margin-top: 3mm; padding-top: 3mm; }
  .case { break-inside: auto; }
  .page-youtube .case:has(.proof-analysis) { break-inside: avoid-page; }
  .vids { break-inside: auto; }
  .vid { break-inside: avoid-page; }
  .page-telegram .case-publication { display: grid; grid-template-columns: minmax(0, 1fr) 48mm; gap: 4mm; break-inside: avoid-page; }
  .page-telegram .case-publication .case-media { min-width: 0; }
  .page-telegram .case-publication .proof img { max-height: 53mm; }
  .page-telegram .case-publication .case-link { font-size: 8pt; }
  .page-reels .scope .grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm 6mm; }
  .page-reels .scope .cell { display: block; padding: 2mm 0; }
  .page-reels .scope .cell h3 { margin-bottom: 1mm; }
  .page-upakovka .pair img { max-height: 80mm; }
  .page-upakovka .proof-overview img { max-height: 65mm; }
  :is(.page-upakovka, .page-youtube) .scope .grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm 6mm; }
  :is(.page-upakovka, .page-youtube) .scope .cell { display: block; padding: 2mm 0; }
  :is(.page-upakovka, .page-youtube) .scope .cell h3 { margin-bottom: 1mm; }
  .page-upakovka .scope, .page-youtube .scope { break-inside: avoid-page; }
  .page-index .home-hero { position: relative; padding-right: 30mm; min-height: 32mm; }
  .page-index .hero-reel { display: block; position: absolute; top: 0; right: 0; width: 22mm; }
  .page-index .hero-film { display: none; }
  .page-index .hero-film:has(video) { display: block; }
  .page-index .hero-film .clip-poster img { width: auto; height: 30mm; }
  .page-index .hero-film .vtitle, .page-index .hero-film .vmeta, .page-index .hero-film .ig-ui { display: none; }
}

/* Страница проекта: proekty/*.md -> sait/proekt-*.html. */
.project-hero h1 { max-width: 16ch; }
.project-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0 0 28px; max-width: 60ch; }
.project-facts dt { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.project-facts dd { margin: 0; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.project-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.project-link .social-icon { width: 20px; height: 20px; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.ba { border-top: 1px solid var(--border); padding-top: 18px; }
.ba-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; }
.ba-value .num { font: 500 clamp(40px, 5vw, 72px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.ba-from { font: 500 clamp(22px, 2.4vw, 32px)/1 var(--display); color: var(--muted); white-space: nowrap; }
.ba-value .arrow-right { width: 26px; height: 26px; color: var(--muted); align-self: center; }
.ba .metric-cap { margin: 0; }
.chart { margin: 0 0 36px; }
.chart-svg { display: block; width: 100%; height: auto; aspect-ratio: 720 / 280; overflow: visible; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--text); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-area { fill: var(--text); opacity: .08; }
.chart-dot { fill: var(--text); }
.chart-value { fill: var(--text); font: 500 22px var(--display); }
.chart-date { fill: var(--muted); font: 400 14px var(--sans); }
.chart figcaption, .proofs figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.proofs figcaption a { color: inherit; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.proof-grid .proof { margin: 0; }
/* Высокий скрин с телефона не растягиваем на всю ширину колонки: не выше 640 px. */
.proof-grid .proof img { width: auto; max-width: 100%; max-height: 640px; height: auto; }
.proof-grid .proof, .proof-grid .proof .proof-zoom { width: fit-content; max-width: 100%; }
.proof-grid .proof-analysis { grid-column: 1 / -1; }
.project-visual { margin: 0; }
.device-screen { position: relative; display: block; overflow: hidden; background: #000; }
.device-screen > img, .device-screen > video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 40px 18px 14px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(#000c, #0000); }
.device-bar .social-icon { width: 18px; height: 18px; color: #fff; }
.device-telefon { justify-self: center; width: min(100%, 320px); }
.device-telefon .device-screen { aspect-ratio: 9 / 19.5; border: 10px solid #1d1b19; border-radius: 48px; box-shadow: 0 0 0 1px #4a4440, 0 40px 90px -24px #000d; }
.device-telefon .device-screen::before { content: ""; position: absolute; z-index: 3; top: 10px; left: 50%; width: 92px; height: 26px; border-radius: 16px; background: #000; transform: translateX(-50%); }
/* Посты Telegram в телефоне: лента под шапкой канала, картинки во всю ширину без обрезки. */
.device-post .device-screen { background: #17212b; }
.device-feed { position: absolute; inset: 64px 0 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; overflow: hidden; }
.device-feed > img { width: 100%; height: auto; flex: none; }
.device-post .device-bar { background: #232e3c; padding-bottom: 12px; }
.device-ekran .device-screen { padding-top: 40px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: 0 40px 90px -30px #000d; }
.device-ekran .device-screen > img { aspect-ratio: 16 / 9; height: auto; }
.device-ekran .device-bar { height: 40px; padding: 0 16px; background: none; color: var(--text); }
.device-ekran .device-bar .social-icon { color: var(--text); }
.device-ekran .device-bar::before { content: ""; flex: none; width: 40px; height: 10px; margin-right: 8px; background: radial-gradient(circle at 5px 5px, var(--muted) 4px, transparent 4.5px), radial-gradient(circle at 20px 5px, var(--muted) 4px, transparent 4.5px), radial-gradient(circle at 35px 5px, var(--muted) 4px, transparent 4.5px); opacity: .6; }
.project-tool { display: grid; justify-items: start; gap: 12px; max-width: 760px; margin-top: 32px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); }
.project-tool h3 { margin: 0; font: 500 30px/1.2 var(--display); }
.project-tool p { margin: 0; }
.project-tool .kicker { margin: 0; }
@media screen {
  .project-hero { padding: 182px 0 24px; }
  .project-hero h1 { font-size: clamp(54px, 7vw, 104px); line-height: 1.1; text-transform: uppercase; }
  .project-link { color: var(--text); }
  .proofs .vids + .vids { margin-top: 28px; }
  .project-tool .btn { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #776f67; margin-top: 8px; }
  .project-tool .btn:hover { background: var(--card); }
  .project-visual .ig-ui { z-index: 2; }
}
@media screen and (min-width: 1000px) {
  .project-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; }
  .project-hero:has(.device-ekran) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-hero h1 { font-size: clamp(54px, 5.6vw, 92px); }
}
@media screen and (max-width: 999px) {
  .project-visual { margin-top: 40px; }
  .device-telefon { width: min(72vw, 280px); }
}
@media screen and (min-width: 768px) {
  /* Специфичность выше правила трёх роликов в ряд на страницах услуг: здесь ролики узкими колонками. */
  .page-proekt .proofs .vids:is(.vids-shorts, .vertical):has(> .vid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); overflow: visible; padding-bottom: 0; }
}
@media screen and (max-width: 767px) {
  .project-hero { padding-top: 132px; }
  .project-hero h1 { font-size: clamp(36px, 10vw, 54px); }
  .chart-value { font-size: 30px; }
  .chart-date { font-size: 20px; }
}
@media print {
  .project-hero { padding: 0; }
  .project-visual, .project-tool .btn { display: none; }
  .project-tool { margin-top: 3mm; padding: 3mm; border-radius: 2mm; break-inside: avoid-page; }
  .project-tool h3 { font-size: 12pt; }
  .project-hero h1 { font-size: 22pt; margin: 2mm 0 3mm; }
  .project-actions .btn, .project-link { display: none; }
  .project-actions .print-link { display: block; }
  .ba-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ba-value .num { font-size: 22pt; }
  .ba-from { font-size: 13pt; }
  .chart, .proof-grid .proof, .ba { break-inside: avoid; page-break-inside: avoid; }
  .chart-svg { display: block; width: 100%; height: auto; }
  .proof-grid { grid-template-columns: repeat(auto-fit, minmax(38mm, 1fr)); gap: 10px; }
  .proof-grid .proof-analysis { grid-column: auto; }
  .proof-grid .proof img { width: auto; max-width: 100%; max-height: 75mm; }
  .proof-grid .proof-image img { max-height: 48mm; }
  .proofs .vids { break-inside: auto; }
  .chart-svg { max-width: 150mm; }
}
