/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-cyrillic-ext-v11.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-cyrillic-v11.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* math */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-math-v11.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-symbols-v11.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-vietnamese-v11.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-latin-ext-v11.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-latin-v11.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



:root { color-scheme: dark; --bg: #080808; --text: #f3f3f3; --muted: #797979; --line: #272727; --shell: 1240px; --media-gap: 20px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: "Onest", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.case-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.site-header { position: relative; z-index: 3; width: calc(100% - 220px); max-width: none; height: 86px; display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 40px; }
.brand { display: inline-flex; width: 179px; height: 38px; }
.brand img { display: block; width: 60%; height: 100%; object-fit: contain; object-position: left center; }
.main-nav { display: flex; justify-content: center; gap: 42px; color: #a5a5a5; font-size: 13px; }
.main-nav a { white-space: nowrap; transition: color .2s ease; }
.main-nav a:hover, .main-nav .is-active { color: #fff; }
.header-contacts { display: flex; align-items: center; gap: 22px; white-space: nowrap; font-size: 12px; }
.pill { min-height: 46px; padding: 0 27px; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; font-size: 13px; font-weight: 500; transition: transform .2s ease; }
.pill:hover { transform: translateY(-2px); }
.pill-light { background: #fff; color: #080808; }
.case-pill { min-height: 38px; padding: 0 20px; border: 1px solid #515151; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.case-pill-light { border-color: #fff; background: #fff; color: #111; }
.case-breadcrumbs { margin-top: 26px; display: flex; align-items: center; gap: 9px; overflow: hidden; color: #4f4f4f; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.case-breadcrumbs a { flex: 0 0 auto; color: #818181; transition: color .2s ease; }
.case-breadcrumbs a:hover { color: #fff; }
.case-breadcrumbs [aria-current="page"] { overflow: hidden; text-overflow: ellipsis; }
.case-detail { min-height: 600px; padding: 28px 0 55px; }
.case-loading { min-height: 400px; display: grid; place-items: center; color: #555; }
.case-hero { padding-bottom: 25px; }
.case-hero h1 { max-width: 850px; margin: 0; overflow-wrap: anywhere; font-size: clamp(42px, 4.2vw, 66px); line-height: 1; letter-spacing: -.052em; font-weight: 500; }
.case-hero > p { margin: 12px 0 0; color: #818181; font-size: 14px; }
.company-frame { max-width: 870px; margin-top: 28px; padding: 23px 26px; border: 1px solid #1d1d1d; border-radius: 15px; background: linear-gradient(145deg, #151515, #101010); }
.company-frame span { color: #555; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.company-frame p { margin: 13px 0 0; color: #909090; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.company-frame p:empty::after { content: "Описание компании будет добавлено в конструкторе кейса."; color: #525252; }
.detail-block { padding: 25px 0; }
.detail-block h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.detail-block.heading-small h2 { font-size: 23px; }
.detail-block.heading-large h2 { font-size: 34px; }
.detail-block > .rich-text { max-width: 930px; margin: 0; color: #808080; font-size: 13px; line-height: 1.62; white-space: pre-wrap; }
.detail-block > .rich-text p { margin: 0 0 .7em; }
.detail-block > .rich-text p:last-child { margin-bottom: 0; }
.detail-block > .rich-text font[size="2"] { font-size: 11px; }
.detail-block > .rich-text font[size="3"] { font-size: 13px; }
.detail-block > .rich-text font[size="4"] { font-size: 16px; }
.detail-block > .rich-text font[size="5"] { font-size: 20px; }
.detail-block > .rich-text:empty::after { content: "Текст раздела будет добавлен в конструкторе."; color: #444; }
.detail-divider { height: 1px; background: var(--line); }
.detail-media { padding: 10px 0; }
.detail-media.size-small { width: 58%; }
.detail-media.size-medium { width: 78%; }
.detail-media.size-large { width: 100%; }
.detail-media.align-center { margin-inline: auto; }
.media-window { min-height: 260px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: #121212; color: #4f4f4f; font-size: 13px; }
.media-window.ratio-wide { aspect-ratio: 16 / 9; }
.media-window.ratio-standard { aspect-ratio: 4 / 3; }
.media-window.ratio-square { aspect-ratio: 1; }
.media-window img, .media-window video { width: 100%; height: 100%; max-height: 780px; display: block; object-fit: cover; }
.media-window.ratio-auto { min-height: 0; display: block; background: transparent; }
.media-window.ratio-auto img, .media-window.ratio-auto video { height: auto; max-height: none; }
.media-window.fit-contain img, .media-window.fit-contain video { object-fit: contain; }
.detail-media.is-auto-fit { padding-block: 0; }
.detail-media.is-auto-fit .media-window { min-height: 0; display: block; background: transparent; }
.detail-media.is-auto-fit .media-window img, .detail-media.is-auto-fit .media-window video { height: auto; max-height: none; }
.detail-full-bleed-media { position: relative; width: 100vw; margin: 18px 0 18px calc(50% - 50vw); }
.full-bleed-media-frame { width: 100%; height: clamp(560px, 100svh, 1000px); display: grid; place-items: center; overflow: hidden; background: #121212; color: #4f4f4f; font-size: 13px; }
.detail-full-bleed-media.height-large .full-bleed-media-frame { height: clamp(500px, 75svh, 820px); }
.detail-full-bleed-media.height-wide .full-bleed-media-frame { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.full-bleed-media-frame img, .full-bleed-media-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-full-bleed-media.fit-contain .full-bleed-media-frame img, .detail-full-bleed-media.fit-contain .full-bleed-media-frame video { object-fit: contain; }
.detail-full-bleed-media > p { width: min(1180px, calc(100% - 48px)); margin: 12px auto 0; color: #5e5e5e; font-size: 10px; }
.media-caption { margin: 11px 0 0; color: #5e5e5e; font-size: 10px; }
.detail-gallery { padding: 10px 0; display: grid; gap: var(--media-gap); }
.detail-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.detail-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.detail-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { min-height: 210px; border-radius: 15px; display: grid; place-items: center; overflow: hidden; background: #131313; color: #4e4e4e; font-size: 11px; }
.detail-gallery.ratio-wide .gallery-item { aspect-ratio: 16 / 9; min-height: 0; }
.detail-gallery.ratio-standard .gallery-item { aspect-ratio: 4 / 3; min-height: 0; }
.detail-gallery.ratio-square .gallery-item { aspect-ratio: 1; min-height: 0; }
.gallery-item img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.detail-gallery.fit-contain .gallery-item img { object-fit: contain; }
.detail-gallery.layout-feature-left,
.detail-gallery.layout-feature-right { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(210px, 25vw, 340px); grid-auto-flow: dense; }
.detail-gallery.layout-feature-left .gallery-item,
.detail-gallery.layout-feature-right .gallery-item,
.detail-gallery.layout-mosaic .gallery-item { min-height: 0; aspect-ratio: auto; }
.detail-gallery.layout-feature-left:has(.gallery-item:nth-child(3)) > .gallery-item:first-child { grid-row: span 2; }
.detail-gallery.layout-feature-right:has(.gallery-item:nth-child(3)) > .gallery-item:first-child { grid-column: 2; grid-row: span 2; }
.detail-gallery.layout-feature-left > .gallery-item:nth-child(4),
.detail-gallery.layout-feature-right > .gallery-item:nth-child(4) { grid-column: 1 / -1; }
.detail-gallery.layout-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(135px, 14vw, 205px); grid-auto-flow: dense; }
.detail-gallery.layout-mosaic > .gallery-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.detail-gallery.layout-mosaic > .gallery-item:nth-child(6n + 4) { grid-column: span 2; }
.detail-comparison { --comparison-position: 50%; position: relative; aspect-ratio: 16 / 9; margin: 10px 0; border-radius: 18px; overflow: hidden; background: #121212; color: #555; }
.comparison-layer { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.comparison-layer img { width: 100%; height: 100%; display: block; object-fit: cover; }
.comparison-after { clip-path: inset(0 0 0 var(--comparison-position)); }
.comparison-label { position: absolute; z-index: 2; top: 18px; padding: 7px 11px; border: 1px solid #ffffff24; border-radius: 999px; background: #090909b8; color: #fff; font-size: 10px; backdrop-filter: blur(10px); }
.comparison-label-before { left: 18px; }
.comparison-label-after { right: 18px; }
.comparison-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--comparison-position); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.comparison-handle::before { content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 7px 24px #0008; }
.comparison-handle { display: grid; place-items: center; color: #111; font-size: 16px; }
.detail-comparison input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.detail-project-metrics { padding: 10px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--media-gap); }
.detail-project-metrics > div { min-height: 190px; padding: 26px; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, #171717, #101010); }
.detail-project-metrics strong { font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.detail-project-metrics span { max-width: 180px; color: #777; font-size: 12px; line-height: 1.45; }
.detail-brandkit { padding: 10px 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--media-gap); }
.brandkit-colors, .brandkit-fonts { padding: 26px; border-radius: 18px; background: #121212; }
.brandkit-colors { display: grid; grid-template-columns: repeat(var(--brand-color-columns, 2), minmax(0, 1fr)); gap: 18px; }
.brandkit-colors > div { min-width: 0; }
.brandkit-colors > div > span { width: 100%; aspect-ratio: 1.8; border: 1px solid #ffffff14; border-radius: 13px; display: block; }
.brandkit-colors p, .brandkit-fonts p { margin: 11px 0 0; display: grid; gap: 4px; }
.brandkit-colors strong, .brandkit-fonts b { font-size: 15px; font-weight: 500; }
.brandkit-colors small, .brandkit-fonts span { color: #737373; font-size: 13px; line-height: 1.4; }
.brandkit-fonts { display: grid; gap: 12px; }
.brandkit-fonts > div { min-height: 92px; padding-bottom: 12px; border-bottom: 1px solid #242424; display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 20px; }
.brandkit-fonts > div:last-child { border-bottom: 0; }
.brandkit-fonts > div > strong { font-size: 54px; line-height: 1; letter-spacing: -.06em; font-weight: 500; }
.brandkit-fonts p { margin: 0; }
.detail-horizontal-gallery { position: relative; padding: 10px 0; }
.horizontal-gallery-track { display: flex; gap: var(--media-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.horizontal-gallery-track::-webkit-scrollbar { display: none; }
.horizontal-gallery-track > div { flex: 0 0 min(82%, 900px); aspect-ratio: 16 / 9; border-radius: 18px; display: grid; place-items: center; overflow: hidden; scroll-snap-align: start; background: #121212; color: #555; font-size: 12px; }
.horizontal-gallery-track.ratio-standard > div { aspect-ratio: 4 / 3; }
.horizontal-gallery-track.ratio-square > div { flex-basis: min(60%, 610px); aspect-ratio: 1; }
.horizontal-gallery-track img { width: 100%; height: 100%; display: block; object-fit: cover; }
.horizontal-gallery-track.fit-contain img { object-fit: contain; }
.horizontal-gallery-controls { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
.horizontal-gallery-controls button { width: 42px; height: 42px; border: 1px solid #343434; border-radius: 50%; background: #111; color: #ddd; cursor: pointer; font-size: 16px; transition: border-color .2s ease, background .2s ease; }
.horizontal-gallery-controls button:hover { border-color: #777; background: #1a1a1a; }
.detail-sticky-video { min-height: min(125vh, 1100px); padding: 10px 0; }
.sticky-video-frame { position: sticky; top: 105px; height: min(72vh, 720px); border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: #121212; color: #555; font-size: 12px; }
.sticky-video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.sticky-video-frame.fit-contain video { object-fit: contain; }
.detail-sticky-video > p { max-width: 700px; margin: 14px 0 0; color: #626262; font-size: 11px; line-height: 1.5; }
.detail-split-media { padding: 10px 0; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: var(--media-gap); align-items: center; }
.detail-split-media.position-left .split-media-copy { order: 2; }
.detail-split-media.position-left .split-media-visual { order: 1; }
.split-media-copy { padding: clamp(8px, 2vw, 28px); }
.split-media-copy h2 { margin: 0 0 14px; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.detail-split-media.heading-small h2 { font-size: 23px; }
.detail-split-media.heading-large h2 { font-size: 34px; }
.split-media-copy .rich-text { color: #808080; font-size: 13px; line-height: 1.62; white-space: pre-wrap; }
.split-media-copy .rich-text p { margin: 0 0 .7em; }
.split-media-copy .rich-text p:last-child { margin-bottom: 0; }
.split-media-copy .rich-text font[size="2"] { font-size: 11px; }
.split-media-copy .rich-text font[size="3"] { font-size: 13px; }
.split-media-copy .rich-text font[size="4"] { font-size: 16px; }
.split-media-copy .rich-text font[size="5"] { font-size: 20px; }
.split-media-window { min-height: 300px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: #121212; color: #505050; font-size: 12px; }
.split-media-window.ratio-wide { aspect-ratio: 16 / 9; }
.split-media-window.ratio-standard { aspect-ratio: 4 / 3; }
.split-media-window.ratio-square { aspect-ratio: 1; }
.split-media-window img, .split-media-window video { width: 100%; height: 100%; display: block; object-fit: cover; }
.split-media-window.fit-contain img, .split-media-window.fit-contain video { object-fit: contain; }
.split-media-visual > p { margin: 10px 0 0; color: #5e5e5e; font-size: 10px; }
.detail-logo-showcase { padding: 10px 0; }
.logo-showcase-header { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-showcase-header h2 { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.logo-showcase-toggle { padding: 3px; border: 1px solid #303030; border-radius: 999px; display: flex; }
.logo-showcase-toggle button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #777; cursor: pointer; font: inherit; font-size: 10px; transition: background .2s ease, color .2s ease; }
.logo-showcase-toggle button.is-active { background: #eee; color: #111; }
.logo-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--media-gap); }
.logo-showcase-grid figure { position: relative; min-height: 310px; margin: 0; padding: 58px 42px 70px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; transition: background .25s ease, color .25s ease; }
.logo-showcase-grid.theme-dark figure { background: #101010; color: #fff; }
.logo-showcase-grid.theme-light figure { background: #f1f1f1; color: #111; }
.logo-showcase-grid img { width: 100%; height: 150px; display: block; object-fit: contain; }
.logo-showcase-grid figcaption { position: absolute; left: 24px; bottom: 21px; font-size: 11px; opacity: .55; }
.logo-showcase-placeholder { font-size: 12px; opacity: .35; }
.case-empty { padding: 70px 0; border-top: 1px solid var(--line); color: #555; text-align: center; }
.case-cta { min-height: 340px; margin: 80px 0 170px; padding: 50px 30px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #0b0b0b url("assets/hero.webp") center 57% / cover no-repeat; }
.case-cta h2 { margin: 0; font-size: clamp(34px, 4vw, 53px); letter-spacing: -.05em; font-weight: 400; }
.case-cta p { max-width: 620px; margin: 22px 0 28px; color: #8b8b8b; font-size: 14px; line-height: 1.55; }
.case-cta > div { display: flex; gap: 12px; }
footer { border-top: 1px solid #202020; }
footer > div { min-height: 90px; display: flex; align-items: center; justify-content: space-between; color: #555; font-size: 10px; }
footer > div > div { display: flex; gap: 20px; }
footer a:hover { color: #fff; }

@media (max-width: 950px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .header-contacts > a:not(.pill) { display: none; }
  .detail-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .case-shell { width: min(calc(100% - 28px), 1180px); }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { height: 92px; gap: 10px; }
  .brand { width: 150px; height: 48px; }
  .header-contacts .pill { min-height: 38px; padding-inline: 18px; font-size: 11px; }
  .case-breadcrumbs { margin-top: 18px; font-size: 10px; }
  .case-detail { padding-top: 22px; }
  .case-hero h1 { font-size: clamp(34px, 11.5vw, 43px); }
  .case-hero > p { font-size: 13px; }
  .company-frame { margin-top: 34px; padding: 22px; }
  .detail-block { padding: 23px 0; }
  .detail-block h2 { font-size: 25px; }
  .detail-media.size-small, .detail-media.size-medium { width: 100%; }
  .media-window { width: 100%; min-width: 0; min-height: 0; border-radius: 14px; }
  .detail-full-bleed-media { margin-block: 12px; }
  .full-bleed-media-frame { height: 78svh; min-height: 480px; }
  .detail-full-bleed-media.height-large .full-bleed-media-frame { height: 65svh; min-height: 420px; }
  .detail-full-bleed-media > p { width: min(calc(100% - 28px), 1180px); }
  .detail-gallery.cols-2, .detail-gallery.cols-3, .detail-gallery.cols-4 { grid-template-columns: 1fr; }
  .detail-gallery.layout-feature-left,
  .detail-gallery.layout-feature-right,
  .detail-gallery.layout-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .detail-gallery.layout-feature-left:has(.gallery-item:nth-child(3)) > .gallery-item:first-child,
  .detail-gallery.layout-feature-right:has(.gallery-item:nth-child(3)) > .gallery-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .detail-gallery.layout-mosaic > .gallery-item:nth-child(6n + 1) { grid-column: 1 / -1; grid-row: auto; }
  .detail-gallery.layout-mosaic > .gallery-item:nth-child(6n + 4) { grid-column: 1 / -1; }
  .gallery-item { min-height: 230px; }
  .detail-comparison { border-radius: 14px; }
  .comparison-label { top: 10px; padding: 5px 8px; font-size: 8px; }
  .comparison-label-before { left: 10px; }
  .comparison-label-after { right: 10px; }
  .comparison-handle::before { width: 34px; height: 34px; }
  .detail-project-metrics { grid-template-columns: 1fr 1fr; }
  .detail-project-metrics > div { min-height: 145px; padding: 20px; }
  .detail-project-metrics strong { font-size: 35px; }
  .detail-brandkit { grid-template-columns: 1fr; }
  .brandkit-colors, .brandkit-fonts { padding: 20px; border-radius: 14px; }
  .horizontal-gallery-track > div { flex-basis: 88%; border-radius: 14px; }
  .horizontal-gallery-track.ratio-square > div { flex-basis: 80%; }
  .detail-sticky-video { min-height: 0; }
  .sticky-video-frame { position: relative; top: auto; height: auto; min-height: 230px; aspect-ratio: 16 / 9; border-radius: 14px; }
  .detail-split-media { grid-template-columns: 1fr; }
  .detail-split-media.position-left .split-media-copy, .detail-split-media.position-left .split-media-visual { order: initial; }
  .split-media-copy { padding: 10px 4px 0; }
  .split-media-visual { order: 2 !important; }
  .split-media-window { min-height: 220px; border-radius: 14px; }
  .logo-showcase-header { align-items: flex-start; flex-direction: column; }
  .logo-showcase-grid figure { min-height: 220px; padding: 40px 24px 55px; border-radius: 14px; }
  .logo-showcase-grid img { height: 105px; }
  .case-cta { margin-bottom: 100px; }
  .case-cta > div { width: 100%; flex-direction: column; }
}

@media (max-width: 420px) {
  .detail-project-metrics { grid-template-columns: 1fr; }
  .detail-project-metrics > div { min-height: 125px; }
  .brandkit-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-showcase-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .horizontal-gallery-track { scroll-behavior: auto; }
}

button, input, select, textarea { font-family: inherit; }

/* Footer links wrap as navigation grows, including cookie preferences. */
footer > div { gap: 16px; flex-wrap: wrap; padding-block: 22px; }
footer > div > div { min-width: 0; flex-wrap: wrap; }
